Property Testing in Delivery
Architecture: Property Testing in Delivery
Context and Scope
- Capability identity:
apps/wiki/content/docs/project/specs/cli/property-testing-delivery. The capability carries a human-approved rule from the requirements grill down to executable evidence: a property test, a stateful property, or a Model thattsproverchecks. Every test that never failed must show a Sensitivity Proof before it counts as evidence. - Actors and outcome: an operating agent runs the Harness delivery skills
(
requirements-grill,create-architecture,create-spec,create-plan,implement-specwithtdd,review-phase,make-tsuite,debugging-phase) in a consumer repository such as ci-app; a human approves the spec and the plan. The outcome: each Spec Invariant has a test of its declared Form, each Model is checked in CI, and each passing test can be shown to fail (Q2, Q3, Q10). - In scope: skill sources in
wearedevpunks/skills(tdd,effect, newmodel-checking,create-architecture,create-spec,create-plan,implement-spec,requirements-grill,review-phase,debugging-phase,make-tsuite,ask-hi); the HI skill catalog entry formodel-checkingin thetypescriptPack; the HI sync pin, wiki pages andBASELINE_CHANGELOG.md; the acceptance pilot in ci-app (Q6, Q29, Q35). - Non-goals: Python (
python-testing-patterns, Hypothesis); binary-level proof, proved twins, LemmaScript and Quint; tool-based mutation testing (Stryker, mutmut); full adoption of upstream drift intdd,codebase-designanddomain-modeling; moving HI's owneffectpin tolatest; an npm CLI release (Q7, Q10, Q12, Q13, Q8, Q35). - Spec: sibling
SPEC.md(codes mapped in Spec Traceability).
Canonical Terms
Source: Test Evidence Glossary
and the status ## Glossary
(status).
- Spec Invariant: a checkable rule in
SPEC.mdwith anINV-nnnid, a source grill question, a Form, a pattern and a seam. Avoid: axiom id, AX-n. - Property: a rule that must hold for every generated input of a declared shape. Avoid: fuzz test, random test.
- Property Pattern: preservation, equivalence, round-trip, membership/monotonic, idempotence, security gate, oracle, no defects, stateful command sequence.
- Generator: the source of random valid inputs; in Effect, a Schema or an
Arbitrary. Generator Narrowing: excluding generated inputs so that a property passes. - Shrinking, Counterexample, Replay Token, Pinned Replay: a failing input is shrunk to a Counterexample; the Replay Token reproduces it only from the same implementation; a Pinned Replay keeps it as an explicit input in an example test.
- Model: a
*.proof.tsmodule whose exported state-changing functions are actions and whose exported boolean functions are invariants, checked bytsproverover every reachable state. Avoid: spec, proof. - Mutant: a small, named fault put into production code or a Model.
- Sensitivity Proof: the failing output on a named Mutant, a diff that proves the Mutant landed, and a diff that proves the revert. Avoid: mutation score.
- Tautological Test: a test whose expected value is computed the way the code computes it.
Axioms: a Property protects only the rule it states; Generator Narrowing needs recorded human approval; a test that never failed is not evidence until a Sensitivity Proof exists; a Model proves the design, and only its Pinned Replays reach the code.
Sources
| Source | Role | Exact location and anchor | Immutable revision or content hash |
|---|---|---|---|
| S1 | Grill status and closure | apps/wiki/content/docs/project/grilling/property-testing-delivery-grill-status.md (Branch Dashboard, Current Round closed R4, Technical Grounding, Glossary) | commit c6d14622405ff4f465557594dad1c26142764eec; sha256 711bcfb476b88575d8ec68bd484627be06b0f7bf0d2ef1a3605afabf2ee73e12 |
| S2 | Durable grill log | apps/wiki/content/docs/project/grilling/property-testing-delivery-grill-log.md (Q1–Q39, ## Closure) | commit c6d14622…; sha256 702c55c3d2c1c6cf9048588e3278eb9e8372ee08f3676bf71c89a744638ea522 |
| S3 | Current glossary | S1 ## Glossary; published apps/wiki/content/docs/project/domains/test-evidence-glossary.mdx | commit c6d14622…; sha256 b71b5f8250286fcc466d57ac6d613cc3303117aae9fac51856d6cf851db42f32 |
| S4 | Brainstorm Brief | apps/wiki/content/docs/project/grilling/property-testing-delivery-brainstorm-brief.md §2–§6 | commit c6d14622…; sha256 547a1c26cfa119e3f06ae694c3e7c0dec1f9cf7b82bdde55f127260fc9cb93b7 |
| S5 | Skill sources (current behavior) | wearedevpunks/skills skills/** (paths per row below) | 348c3a3d672eb28011848fada17611281a06447c |
| S6 | Effect API (current behavior) | npm effect@4.1.0 dist/Arbitrary.d.ts (schema :364, checkEffect :765, configureGlobal :214, CheckOptions :178-184); @effect/vitest@4.1.0 dist/index.d.ts prop :91,132 | npm dist-tag latest = 4.1.0 on 2026-10-29 |
| S7 | Model checker (current behavior) | npm tsprover@0.0.2 README (*.proof.ts, JSDoc tags, compile()), tla-ts@0.0.3 README (check() → status, violation.trace); smoke test S4 §6 | exact versions 0.0.2 / 0.0.3; repo aidenybai/tla-ts b1578d0 |
| S8 | Upstream principles | mattpocock/skills skills/engineering/tdd/SKILL.md (Tautological; "Refactoring is not part of the loop"), skills/engineering/diagnosing-bugs/SKILL.md:125 | 59db609 |
| S9 | Bug evidence | ci-app PRs #310, #347, #353, #356, #363, #381; apito #34; ci-app #402 branch team/stefan/action-plan-platform | PR numbers in collective-intelligence-platform/ci-app, collective-intelligence-solutions/apito |
| S10 | HI repository | apps/cli/scripts/sync-skills-repo.mjs:21-22 (sync pin), apps/cli/src/data/catalog/packs.ts (typescript Pack), apps/wiki/scripts/sync-content.mjs:912, apps/wiki/tsconfig.json (include **/*.ts) | base 7d869ace03d23fad241193fec12dcdd6b08d3a8b |
Source Disposition
| Question / entry | Disposition | Accepted detail, replacement, or unresolved point | Evidence | Parked owner / resume trigger |
|---|---|---|---|---|
| Q1 | superseded | Replaced by Q10: properties plus model checking | S2 | — |
| Q16 (maintainer and seeding) | superseded in part | Map shape stays; creator is the grill close wiki synthesis per Q35 | S2; S5 requirements-grill/references/wiki-output.md:56-60 | — |
| Q7 | parked | Python out of scope | S2 | User; resume when a Python consumer project needs property guidance |
| Q12 P5 | parked | Tool-based mutation testing | S2 | User; resume when a make-tsuite audit needs a mutation score |
| Q13 P4 | parked | Full upstream drift adoption | S2 | User; separate delivery |
| Q2–Q6, Q8–Q11, Q14, Q15, Q17–Q39 | accepted | See Accepted Detail Coverage | S1, S2 | — |
Whole System
The capability is a chain of skill changes. Each stage hands the next one a named rule, so no stage has to guess what to protect.
Sources: Q3,
Q11,
Q21,
Q23.
Conclusion: three entry points create tests (implement-spec, make-tsuite,
debugging-phase), and all of them go through the same tdd evidence rules,
so a test cannot reach review without its RED or its Sensitivity Proof.
| Block selector / component / level | Owner | State and authority | Interface / dependency | Supported constraint and source |
|---|---|---|---|---|
| ARC-001 Spec Invariant carry-down | requirements-grill, create-spec, create-plan, implement-spec | Grill axiom text (log authority) → SPEC.md ## Spec Invariants (spec authority) → plan task fields | Checkable as: line; INV-nnn rows; test_form, invariant_refs, sensitivity_evidence | One id family assigned by create-spec (Q9, Q24–Q26) |
ARC-002 tdd evidence rules | tdd | Language-neutral test evidence rules | properties.md, sensitivity.md, high-signal-tests.md; loop RED → GREEN only | Example first, property second; no Refactor step (Q4, Q13, Q27) |
| ARC-003 Sensitivity Proof protocol | worker (tdd), parent Task Gate (implement-spec) | Mutant lives only inside the worker's Active Write Scope; parent verifies the revert | sensitivity_evidence; parent_required marker | A test that never failed is not evidence (Q12, Q15, Q18, Q36, Q37) |
| ARC-004 Effect property-testing reference | effect | API of npm latest (4.1.0) | references/PROPERTY_TESTING.md; Branch Chooser line; TESTING.md pointer | Effect specifics stay out of tdd (Q8, Q28) |
ARC-005 model-checking skill | new skill, typescript Pack | Pins tsprover@0.0.2, no separate tla-ts (Q40) | Called by create-architecture, tdd, review when installed | Three callers share one guidance home (Q21, Q29) |
| ARC-006 Architecture Model step | create-architecture | Draft Model in <spec-folder>/models/<flow>.proof.ts; result in ## Models | npx --yes tsprover@0.0.2 <path>; architecture-not-ready on violation | Design checked before spec (Q11, Q19, Q30) |
| ARC-007 Committed Model and CI | consumer project | <feature-or-service>/<flow>.proof.ts; exact devDependency pins | check:models script runs tsprover; CI runs it; failure blocks | Model stays beside the code it models (Q11, Q20, Q31, Q38, Q39) |
| ARC-008 Spec Axis coverage check | review-phase | Reads ## Spec Invariants, task evidence, ## Models | One bullet under "Unsupported evidence", category test_gap | Coverage and cheating guard are reviewable (Q3, Q32) |
| ARC-009 Suite merge rule | make-tsuite | Portfolio dispositions | merge rule; link to tdd/sensitivity.md | Input-only-varying groups become one property (Q3, Q33) |
| ARC-010 Debugging regression property | debugging-phase | Step 7 Verify | Property when a Property Pattern applies; revert of the fix is the Mutant | Bug fixes leave a rule, not a scar (Q23, Q34) |
| ARC-011 Glossary map | requirements-grill close wiki synthesis | Root GLOSSARY-MAP.md in the consumer repo, created lazily | One line per context with its domains/<context>-glossary.mdx path | Upstream skills find wiki glossaries unchanged (Q14, Q16, Q35) |
| ARC-012 Release and distribution | HI (apps/cli catalog data, sync pin), skills repo | Baseline release only | BASELINE_CHANGELOG.md Unreleased; typescript Pack gains model-checking | No CLI code change, so no npm release (Q35; S10) |
| ARC-013 Acceptance pilot | ci-app (throwaway branches) | Nothing merges from the replay | #402 change log + SSE resync Model; #381 property on pre-fix code | Guidance proven on real bugs (Q6) |
Critical Flows and Boundaries
FLOW-001 Rule to evidence
| Step | Owner | Action | Boundary and result |
|---|---|---|---|
| FLOW-001-STEP-001 | requirements-grill | Records - Axiom: <rule> with Checkable as: <Property Pattern> | model | type | not-checkable | Log entry; no id (Q25) |
| FLOW-001-STEP-002 | create-architecture | Runs the Model step for each triggered flow (FLOW-003) | ## Models or architecture-not-ready |
| FLOW-001-STEP-003 | create-spec | Writes ## Spec Invariants after ## Acceptance Criteria: INV | Rule | Source (Q anchor) | Form | Pattern | Seam | Model; "none" when empty | Spec authority (Q24) |
| FLOW-001-STEP-004 | create-plan | Sets test_form, invariant_refs, blank sensitivity_evidence per task | PLAN.md (Q26) |
| FLOW-001-STEP-005 | worker with tdd | Example RED → GREEN, then property RED → GREEN; a first-run pass runs FLOW-002 | Task Result evidence (Q4) |
| FLOW-001-STEP-006 | worker | Runs $simplify on changed code once GREEN | Refactoring owner (Q17) |
| FLOW-001-STEP-007 | review-phase | Spec Axis reports uncovered INV, missing sensitivity_evidence, unapproved Generator Narrowing or rule loosening, Model drift | test_gap finding (Q32) |
| FLOW-001-STEP-008 | consumer CI | Runs every property (pure at default runs; DB-backed at { arbitrary: { runs: 25 } }) and check:models | Failure blocks (Q5, Q31) |
Conclusion: the rule text is approved once, in the spec; every later stage
cites INV-nnn, so review can check coverage without re-deriving intent.
FLOW-002 Sensitivity Proof
worker, inside its Active Write Scope (FLOW-002-STEP-001..005)
mutant = name a fault that breaks the rule the test protects
if mutant.file is outside the scope: pick another mutant,
or record sensitivity_evidence: parent_required
apply; require `git diff` shows the hunk
run the test; require failure for the expected reason
revert; require `git diff --quiet -- <file>`
record mutant, hunk, failing output, revert proof
parent Task Gate (FLOW-002-STEP-006)
require `git diff --quiet` on every recorded mutant file
run the proof itself when parent_required
accept, or block the task| Step | Accepted detail | Source |
|---|---|---|
| FLOW-002-STEP-001 | Applies to every first-run-pass test, every first-run-pass property and every committed Model invariant | Q15 |
| FLOW-002-STEP-002 | Typical Mutant per pattern lives in tdd/properties.md (gate: drop a condition; preservation: overwrite the kept field; idempotence: write again; round-trip: lose precision; membership: empty grants; regression: reapply the historical bug) | Q27; S4 |
| FLOW-002-STEP-003 | Mutant stays inside the worker's Active Write Scope, else parent_required | Q36 |
| FLOW-002-STEP-004 | Landed diff before the run, git diff --quiet after the revert (upstream diagnosing-bugs:125 rule) | Q12; S8 |
| FLOW-002-STEP-005 | Evidence goes to sensitivity_evidence; red_evidence keeps meaning a genuine pre-implementation failure | Q18 |
| FLOW-002-STEP-006 | Parent Task Gate checks every recorded Mutant file is clean; a remaining Mutant blocks | Q37 |
Conclusion: the proof cannot leak a fault into another worker's scope, and an interrupted worker cannot leave a fault behind unnoticed.
FLOW-003 Model lifecycle
| Step | Accepted detail | Source |
|---|---|---|
| FLOW-003-STEP-001 | Trigger: two or more writers on shared state; a background job or retry touching client-written state; recovery or resync; a delivery guarantee | Q11 |
| FLOW-003-STEP-002 | New step between flow-lenses (step 3) and compile (step 4); npx --yes tsprover@0.0.2 <path>; drafts are not projected (sync-content.mjs:912) and are type-checked (tsconfig.json **/*.ts) | Q30, Q39; S10 |
| FLOW-003-STEP-003 | Violation returns architecture-not-ready with the trace as an L2 compile gap | Q11, Q30 |
| FLOW-003-STEP-004 | ## Models row: flow → model path → invariants → state count → Sensitivity Proof (remove a guard → violation) | Q29, Q30 |
| FLOW-003-STEP-005 | One plan task moves the Model to <feature-or-service>/<flow>.proof.ts, adds exact pins and check:models, wires CI | Q19, Q20, Q31 |
| FLOW-003-STEP-006 | Trace actions map one-to-one to a stateful property's tagged commands; kept as an explicit-input Pinned Replay | Q11, Q22 |
| FLOW-003-STEP-007 | A tsprover pin bump reruns check:models and every Model Sensitivity Proof in the same change | Q38 |
Conclusion: the Model is checked before the spec exists, so a design fault returns to the grill as a decision instead of reaching code; after the move, CI keeps it honest and its traces become tests on the real service.
FLOW-004 Debugging regression
| Step | Accepted detail | Source |
|---|---|---|
| FLOW-004-STEP-001 | In debugging-phase step 7 Verify: when the fixed bug breaks a Property Pattern rule, add a property | Q23, Q34 |
| FLOW-004-STEP-002 | Its Sensitivity Proof reverts the fix as the Mutant | Q34 |
| FLOW-004-STEP-003 | A Spec Invariant row only for delivery-scoped debugging | Q23 |
Modules and Interfaces
wearedevpunks/skills skills/
├── agnostic/quality/tdd/
│ ├── SKILL.md ~ red-green; "a test that never failed is not
│ │ evidence"; Workflow §4 Refactor removed
│ ├── properties.md + patterns, spec signals, Mutants, slice order,
│ │ generator rules, Pinned Replay, run policy,
│ │ stateful, Model trace → replay
│ ├── sensitivity.md + five-step Sensitivity Proof
│ ├── high-signal-tests.md ~ Tautological anti-pattern
│ ├── refactoring.md - removed
│ └── UPSTREAM.md ~ records local adaptations
├── frameworks/effect/effect/
│ ├── SKILL.md ~ Branch Chooser line
│ └── references/{PROPERTY_TESTING.md +, TESTING.md ~}
├── languages/typescript/model-checking/ + SKILL.md
├── agnostic/planning/create-architecture/{SKILL.md, assets/
│ ARCHITECTURE-TEMPLATE.md, references/artifact-contract.md} ~
├── agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md ~
├── agnostic/planning/create-plan/references/{plan-schema,
│ tdd-shaping}.md ~
├── agnostic/planning/implement-spec/references/{parallel-worker-brief,
│ lifecycle}.md ~
├── agnostic/requirements/requirements-grill/references/{artifact-output,
│ wiki-output}.md ~
├── phases/review-phase/references/axis-spec.md ~
├── phases/debugging-phase/SKILL.md ~ (step 7)
├── agnostic/quality/make-tsuite/references/{audit-portfolio,
│ implement-suite}.md ~
└── agnostic/cli/ask-hi/references/known-gaps.md ~ (remove :14)
harness-intelligence
├── apps/cli/src/data/catalog/{packs.ts, skills.ts} ~ typescript Pack
├── apps/cli/scripts/sync-skills-repo.mjs ~ sync pin
├── apps/wiki/content/docs/... ~ skill pages
└── BASELINE_CHANGELOG.md ~ Unreleased
consumer repo
├── GLOSSARY-MAP.md + lazily (ARC-011)
└── <feature-or-service>/<flow>.proof.ts + Model (ARC-007)Legend: + new, ~ changed, - removed. Sources:
Q24–Q35;
S5 paths at 348c3a3. The HI catalog files are named by ARC-012's Pack
membership, not by a grill entry; their exact edit is planning detail.
Accepted Detail Coverage
| Question + exact entry/evidence anchor | Exact accepted choice and supplied detail | Provided rationale / alternatives | Architecture selector + applicable visual | System constraint served |
|---|---|---|---|---|
| Q2 | tdd, delivery chain, effect skill (Schema, Arbitrary, it.effect.prop) | User request | ARC-002, ARC-004; Whole System | Scope |
| Q3 | C1, C2, C3, C4, C7, C9 + stateful properties | Brief §2.A | ARC-001, ARC-002, ARC-008, ARC-009; FLOW-001 | Rule carry-down |
| Q4 | Example first, then property; pure total function may start with the property; first-run pass → Sensitivity Proof | Rejected: property always first | FLOW-001-STEP-005 | Vertical slices |
| Q5 | CI runs all properties; reduced DB runs; Pinned Replays; deep runs local | Rejected: local only | FLOW-001-STEP-008 | Regression protection |
| Q6 | #402 Model pilot + #381 throwaway replay that fails on pre-fix code | Rejected: pilot only | ARC-013 | Acceptance evidence |
| Q8 | npm latest (4.1.0) API; other versions verify via opensrc; no beta-names note | Rejected: GA + beta note | ARC-004 | Version authority |
| Q9 | Spec Invariant, INV-nnn by create-spec, cites source Q | Rejected: AX-n | ARC-001; FLOW-001-STEP-003 | One id family |
| Q10 | Properties + tsprover/tla-ts at pinned versions | Quint superseded; LemmaScript, proofs rejected | ARC-005–ARC-007 | Method set |
| Q11 | T2 trigger + compile gap; T3 beside the service, CI blocks; T4 trace → Pinned Replay; T5 pilot | Rejected: spec-folder home, advisory CI | ARC-006, ARC-007, ARC-013; FLOW-003 | Design check |
| Q12 | P1 Sensitivity Proof; P5 parked | — | ARC-003; FLOW-002 | Mutation principle |
| Q13 | Tautological in; refactor out of the loop; P4 parked | — | ARC-002 | Upstream alignment |
| Q14 | Fix the glossary path now | — | ARC-011 | Ubiquitous language |
| Q15 | Every first-run-pass test, property and committed Model invariant | Rejected: properties and Models only | FLOW-002-STEP-001 | Evidence validity |
| Q16 | Root GLOSSARY-MAP.md listing wiki glossaries (maintainer superseded by Q35) | Rejected: local skill text | ARC-011 | Upstream skills unchanged |
| Q17 | $simplify once GREEN + existing smell baseline; no new obligation | Rejected: new Standards obligation | FLOW-001-STEP-006 | Refactor owner |
| Q18 | sensitivity_evidence task field | Rejected: inside red_evidence | FLOW-002-STEP-005 | RED meaning kept |
| Q19 | Draft in <spec>/models/; plan task moves it | Rejected: code tree at architecture time | FLOW-003-STEP-002, -005 | Branch timing |
| Q20 | Exact devDependency pins via a plan task | Rejected: HI tool catalog | ARC-007 | Project CI owns tools |
| Q21 | New atomic skill; three callers | Rejected: reference in create-architecture | ARC-005 | Shared guidance |
| Q22 | Pinned Replay = explicit input literal; token in evidence only (Arbitrary.d.ts:129) | Rejected: stored token | FLOW-003-STEP-006 | Replay survives code change |
| Q23 | Debugging fix adds a property; INV row only when delivery-scoped | Rejected: example tests only | ARC-010; FLOW-004 | Entry-point convergence |
| Q24 | ## Spec Invariants after ## Acceptance Criteria; columns and Form values | — | FLOW-001-STEP-003 | Spec authority |
| Q25 | Checkable as: line under each - Axiom: in artifact-output.md (both places) | — | FLOW-001-STEP-001 | Grill hint |
| Q26 | test_form, invariant_refs, sensitivity_evidence; four files | — | FLOW-001-STEP-004; Modules tree | Plan contract |
| Q27 | properties.md, sensitivity.md, Tautological, §4 removed, refactoring.md deleted, "red-green", UPSTREAM note | — | ARC-002; Modules tree | tdd layout |
| Q28 | PROPERTY_TESTING.md content: Arbitrary.schema, it.prop/it.effect.prop, Schema.Finite, { arbitrary: { runs: 25 } }, configureGlobal (fields via opensrc), stateful Schema command array, no mutation of values, token in evidence | — | ARC-004 | Effect usage |
| Q29 | model-checking at skills/languages/typescript/model-checking/, Pack typescript, pins 0.0.2/0.0.3, content list | — | ARC-005 | Skill identity |
| Q30 | Step between 3 and 4; npx --yes tsprover@0.0.2 <path>; ## Models; architecture-not-ready | — | ARC-006; FLOW-003 | Architecture gate |
| Q31 | <feature-or-service>/<flow>.proof.ts; check:models; CI; one plan task | — | ARC-007 | CI enforcement |
| Q32 | One "Unsupported evidence" bullet, test_gap, no script change | — | ARC-008; FLOW-001-STEP-007 | Reviewable coverage |
| Q33 | Merge rule in audit-portfolio.md; implement-suite.md:27 link | — | ARC-009 | Suite hygiene |
| Q34 | Step 7 Verify bullet; revert of fix is the Mutant | — | ARC-010; FLOW-004 | Regression rule |
| Q35 | Grill close creates/updates root GLOSSARY-MAP.md; remove known-gaps.md:14; no CLI change | Rejected: hi init seeding | ARC-011, ARC-012 | Baseline-only release |
| Q36 | Mutant inside scope, else parent_required | Rejected: scope transfer | FLOW-002-STEP-003 | Write-scope exclusivity |
| Q37 | Parent gate git diff --quiet on Mutant files | Rejected: trust worker | FLOW-002-STEP-006 | No leaked faults |
| Q38 | Pin bump reruns check:models + Model Sensitivity Proofs | Rejected: check:models only | FLOW-003-STEP-007 | 0.0.x tool risk |
| Q40, Q41 | Pin tsprover@0.0.2 only, superseding the tla-ts@0.0.3 pin of Q29; ghost variables for consumer state | Rejected: pin tla-ts@0.0.2; keep tla-ts@0.0.3 | ARC-005; FLOW-003-STEP-007 | The pin reaches check:models |
| Q39 | Keep type check; scoped **/*.proof.ts lint ignore only when a rule fires | Rejected: exclude up front | FLOW-003-STEP-002 | No speculative config |
Spec Traceability
- State:
complete. EveryOUT/ACcode in the siblingSPEC.mdmaps to architecture selectors and accepted grill entries.
| Spec code / section selector | Architecture selectors | Accepted grill Q / exact log-entry and evidence anchors | Coverage explanation |
|---|---|---|---|
OUT-001 (SPEC #out-001) | ARC-001, FLOW-001 | Q3, Q9, Q24, Q25, Q26 | Rule carried grill → spec → plan |
| AC-001 | FLOW-001-STEP-001 | Q25 | Axiom hint line |
| AC-002 | FLOW-001-STEP-003 | Q9, Q24 | ## Spec Invariants section and ids |
| AC-003 | FLOW-001-STEP-004 | Q26 | Plan fields |
| AC-004 | FLOW-001-STEP-004, FLOW-002-STEP-005 | Q18, Q26 | Fields reach workers and the completion contract |
OUT-002 (SPEC #out-002) | ARC-002, FLOW-001-STEP-005 | Q3, Q4, Q13, Q27 | Language-neutral property guidance |
| AC-005 | ARC-002, FLOW-001-STEP-005, FLOW-003-STEP-006 | Q4, Q5, Q22, Q27 | tdd/properties.md content |
| AC-006 | ARC-002 | Q13, Q27 | Tautological anti-pattern |
| AC-007 | ARC-002, FLOW-001-STEP-006 | Q13, Q17, Q27 | Refactor leaves the loop |
OUT-003 (SPEC #out-003) | ARC-003, FLOW-002 | Q12, Q15, Q18, Q36, Q37 | Sensitivity Proof protocol |
| AC-008 | ARC-003, FLOW-002-STEP-004 | Q12, Q27 | Procedure file and Hard Law line |
| AC-009 | FLOW-002-STEP-001, FLOW-002-STEP-005 | Q15, Q18 | Scope and evidence field |
| AC-010 | FLOW-002-STEP-003, FLOW-002-STEP-006 | Q36, Q37 | Write-scope rule and parent gate |
OUT-004 (SPEC #out-004) | ARC-004 | Q2, Q8, Q28 | Effect API guidance |
| AC-011 | ARC-004 | Q28 | PROPERTY_TESTING.md content |
| AC-012 | ARC-004 | Q8, Q28 | Version authority and pointers |
OUT-005 (SPEC #out-005) | ARC-005, ARC-006, ARC-007, FLOW-003 | Q10, Q11, Q19, Q20, Q21, Q29, Q30, Q31, Q38, Q39 | Model lifecycle |
| AC-013 | ARC-005, FLOW-003-STEP-007 | Q21, Q29, Q38, Q39, Q40, Q41 | model-checking skill |
| AC-014 | ARC-006, FLOW-003-STEP-001–004 | Q11, Q19, Q30 | Architecture model step |
| AC-015 | ARC-007, FLOW-003-STEP-005 | Q19, Q20, Q31, Q40 | Committed Model and CI |
OUT-006 (SPEC #out-006) | ARC-008, FLOW-001-STEP-007 | Q3, Q32 | Reviewable coverage |
| AC-016 | ARC-008, FLOW-001-STEP-007 | Q32 | Spec Axis bullet |
OUT-007 (SPEC #out-007) | ARC-009, ARC-010, FLOW-004 | Q3, Q23, Q33, Q34 | Other entry points converge |
| AC-017 | ARC-009 | Q33 | make-tsuite merge rule and link |
| AC-018 | ARC-010, FLOW-004-STEP-001 | Q23, Q34 | Debugging property bullet |
OUT-008 (SPEC #out-008) | ARC-011 | Q14, Q16, Q35 | Glossary map (Q35 supersedes Q16 maintainer) |
| AC-019 | ARC-011 | Q35 | Grill close writes the map; gap removed |
OUT-009 (SPEC #out-009) | ARC-012 | Q29, Q35 | Baseline-only distribution |
| AC-020 | ARC-012 | Q29, Q35 | Pack membership, changelog, no CLI version |
| AC-021 | ARC-012 | Q2 | Wiki skill pages follow the change (root CLAUDE.md wiki rule) |
OUT-010 (SPEC #out-010) | ARC-013 | Q6 | Acceptance on real bugs |
| AC-022 | ARC-013 | Q6, Q11 | #402 Model pilot |
| AC-023 | ARC-013 | Q6 | #381 throwaway replay |
Flow Failure Coverage
| Lens | Evidence / unknown / justified not applicable | Guarantee at stake | Material unresolved gap |
|---|---|---|---|
| Entry points and path convergence | Three test-creating entries (implement-spec, make-tsuite, debugging-phase) all apply tdd rules: Q23, Q33 | No test bypasses RED or Sensitivity Proof | None |
| Critical execution paths | FLOW-001 order: grill → architecture → spec → plan → tdd → review → CI; Model step before compile (Q30) | Design faults return before spec | None |
| State ownership and authority | Rule text authority: spec ## Spec Invariants; ids by create-spec (Q9); Model authority beside code after the move (Q19) | One source per rule | None |
| Transaction and side-effect boundaries | Mutant applied and reverted inside one task; parent verifies (Q37) | No fault leaks into a commit | None |
| Concurrency and stale state | Parallel workers: Mutant only inside the exclusive Active Write Scope (Q36) | One worker's Mutant never breaks another's tests | None |
| Idempotency and retries | Pinned Replay as explicit input survives code changes; Replay Token does not (Arbitrary.d.ts:129, Q22) | Replays stay reproducible | None |
| Partial failure and recovery | Interrupted worker → parent gate blocks on a remaining Mutant (Q37); Model violation → architecture-not-ready (Q30) | Recovery is explicit | None |
| Execution lifetime and durability | Draft Models are committed with the spec folder; committed Models live in the consumer tree (Q19, Q31) | Models survive sessions | None |
| Lifecycle and dependency transitions | Tool pin bump reruns all Models and their proofs (Q38); effect guidance follows npm latest (Q8) | Version changes cannot silently weaken checks | None |
| Completion and observability | Review Spec Axis test_gap reports coverage gaps (Q32); CI blocks on property or Model failure (Q5, Q31) | Operator can see missing evidence | None |
Parked Work and Non-material Unknowns
| Question / source | Disposition and scope consequence | Owner / resume trigger | Why current guarantees remain closed |
|---|---|---|---|
| Q7 | Python parked; tdd/properties.md stays language-neutral | User; a Python consumer needs property guidance | No Python surface changes |
| Q12 P5 | Tool-based mutation testing parked | User; a make-tsuite audit needs a mutation score | Sensitivity Proof covers each new test |
| Q13 P4 | Full upstream drift parked | User; separate delivery | Only Tautological and the refactor move are adopted |
| Q28 | Unknown: Arbitrary.configureGlobal GlobalOptions fields (S6 :214 types only (options: GlobalOptions) => void) | Implementer verifies via opensrc | The accepted guidance already directs that check |
| Q8 | HI's own effect pin is 4.0.0-beta.101, not latest | Outside this grill | Guidance targets consumers on latest |
| Q39 | Unknown: whether any managed lint rule fires on a Model | model-checking skill directs a scoped ignore when it does | Type check stays on |
Validation
- Decision/source/glossary reconciliation: S1 Closure
closed R4, confirmation "letsgo", closure "yes go"; S2 Q1–Q39 with Q10 superseding Q1 and Q35 superseding part of Q16; S3 terms match S1## Glossary. - Exact-detail and cross-level coverage: every accepted Q2–Q39 entry has a row in Accepted Detail Coverage with an ARC or FLOW selector.
- Relative links, selector targets, and visual source/order checks: links use
../../../grilling/…#qNand../../../domains/…; each selector has an explicit<a id>anchor; visuals follow FLOW order. - Spec-code -> architecture -> grill coverage: complete for OUT-001–OUT-010 and AC-001–AC-023.
- Mermaid parsing/rendering:
mermaid@11.15.0(wiki dependency)mermaid.parsein Node: the FLOW-003sequenceDiagramparses; the Whole Systemflowchartparse is unavailable in Node (DOMPurify.addHook is not a function, no DOM), and a browser check could not load the module. The flowchart render stays unverified. - Existing spec agreement: absent; architecture precedes spec.
- Remaining limits: the non-material unknowns above.