Property Testing in Delivery Grill Log
Property Testing in Delivery Grill Log
Status: property-testing-delivery-grill-status.md. Input: Brainstorm Brief.
Scope
Q1
Prerequisites:
- none
Altitude: L1
Source: Brainstorm Brief
Question: Which assurance method does this delivery add to the Harness delivery skills?
Accepted answer:
- Property-based testing only, including stateful (command-sequence) properties on real code.
Rejected alternatives:
- Binary-level proof: V8/CPython too large and dynamic.
- Proved twin in Lean/Dafny/Rocq: cost too high for the observed bug classes.
- LemmaScript: user rejected ("confirmed no lemmascript"); tech preview, no
real
await, integer-onlynumber. - Quint/TLA+ model checking: user rejected ("we only go for property testing"); stateful properties cover the #356 class on real code.
Q2
Prerequisites:
- Q1
Altitude: L1
Source: Brainstorm Brief
Question: Which skills carry the method?
Accepted answer:
tddand the delivery-phase skill chain, plus theeffectskill with guidance on Schema, Arbitrary andit.effect.prop.
Invariant Carry-Down
Q3
Prerequisites:
- Q1, Q2
Altitude: L1
Source: Brainstorm Brief
Question: Which pipeline changes carry a human-approved rule down to a property test?
Accepted answer:
- C1:
requirements-grillaxioms carry a "checkable as" pattern hint. - C2:
create-specrecords an invariant table (rule → pattern → seam). - C3:
create-plantasks carrytest_formandinvariant_refs. - C4:
tddgets aproperties.mdreference (pattern catalog, spec signals, slice order, RED by fault reinjection, no generator narrowing, replay evidence). - C7:
review-phaseSpec Axis checks invariant coverage at the declared form and recorded approval for generator narrowing or rule loosening. - C9:
make-tsuitemerges input-only-varying example groups into one property. - Stateful command-sequence properties replace the Quint row of the pattern table.
Rejected alternatives:
- C5/C6 Quint model and trace conformance: see Q1.
- C8 LemmaScript spike: see Q1.
Brief Delta Import (2026-10-29)
Q10
Prerequisites:
- Q1
Altitude: L1
Source: Brainstorm Brief
Question: Which assurance methods does this delivery add, after the TLA-ts reopening?
Accepted answer:
- Supersedes Q1. Property-based testing (including stateful properties)
and model checking with
tsprover+tla-tsat pinned exact versions.
Rejected alternatives:
- Quint: superseded by tsprover + tla-ts (TypeScript models, no new language, no JVM).
- Binary-level proof, proved twin, LemmaScript: unchanged from Q1.
Q11
Prerequisites:
- Q10
Altitude: L1
Source: Brainstorm Brief
Question: Where does model checking fit the delivery pipeline?
Accepted answer:
- T2:
create-architecturemodel step for flows that meet the trigger (two or more writers on shared state, a background job or retry on client-written state, recovery or resync, a delivery guarantee); a violation trace returns as a compile gap torequirements-grill. - T3: a model lives next to the Effect service or feature it models,
scoped to one service; CI runs
tsprover; a violation fails CI. - T4: each model counterexample becomes a Pinned Replay of a stateful property on the real code.
- T5: the ci-app #402 change log and SSE resync is the acceptance pilot.
Rejected alternatives:
- Models in the spec folder: they would not run in the owning project's CI.
- Advisory-only CI until tla-ts 0.1: user accepted blocking with a pinned version.
Q12
Prerequisites:
- Q10
Altitude: L1
Source: Brainstorm Brief
Question: How does HI carry the Mutation Testing principle?
Accepted answer:
- P1 Sensitivity Proof: a test that passes on its first run counts as evidence only when a named mutant makes it fail, with a diff proving the mutant landed and a diff proving the revert.
Rejected alternatives:
- P5 tool-based mutation testing (Stryker, mutmut): parked until a
make-tsuiteaudit needs a mutation score.
Q13
Prerequisites:
- none
Altitude: L1
Source: Brainstorm Brief
Question:
Which upstream tdd changes come in with this delivery?
Accepted answer:
- The Tautological anti-pattern, with the oracle-property warning.
- Refactoring leaves the
tddloop; it belongs to the per-task$simplifystep and to review.
Rejected alternatives:
- Full drift adoption of
tdd,codebase-design,domain-modeling(P4): parked as a separate delivery.
Q14
Prerequisites:
- none
Altitude: L1
Source: Brainstorm Brief
Question: Is the glossary path gap fixed in this delivery?
Accepted answer:
- Yes. Skills that read
GLOSSARY.mdmust find HI's wiki-hosted glossaries (ask-hi/references/known-gaps.md:14).
R1 Answers (L1)
Q4
Prerequisites:
- Q3, Q13
Altitude: L1
Question: Order inside one TDD slice?
Accepted answer:
- Example tracer bullet first (RED → GREEN), then the property as a generalisation step (RED → GREEN). A pure total function may start with the property. A property that passes on its first run needs a Sensitivity Proof instead of a faked RED.
Rejected alternatives:
- Property always first: one test drives too much code at once.
Q5
Prerequisites:
- Q3
Altitude: L1
Question: Where and how often do properties run?
Accepted answer:
- CI runs every property. Pure properties use the default run count; DB-backed properties use a reduced count. Each found counterexample becomes a Pinned Replay. Deep, high-run searches run locally at RED/GREEN time.
Rejected alternatives:
- Local only (Manuel's proposal): no regression protection after merge.
Q6
Prerequisites:
- Q3, Q11
Altitude: L1
Question: Which acceptance evidence proves the guidance works?
Accepted answer:
- The T5 #402 model pilot, plus one throwaway bug replay: an agent writes a property for ci-app #381 from the spec alone under the new guidance, and it fails on the pre-fix code. Nothing from the replay merges.
Rejected alternatives:
- The #402 pilot only.
Q7
Prerequisites:
- Q2
Altitude: L1
Question: Is Python in scope?
Accepted answer:
- Parked. User: "we park python. its a shit language anyway".
tdd/properties.mdstays language-neutral;python-testing-patternsis not changed.
Q8
Prerequisites:
- Q2
Altitude: L1
Question:
Which Effect versions does the effect skill guidance serve?
Accepted answer:
- The API of the npm
latestdist-tag ofeffectand@effect/vitest(user: "@latest tag");latestis 4.1.0 on 2026-10-29. Agents on any other installed version verify the API withopensrcbefore writing a property. No beta-names note.
Evidence anchor:
npm view effect dist-tags: latest 4.1.0, beta 4.0.0-beta.107, rc 4.0.0-rc.118, prev 3.22.4.effect@4.1.0dist/Arbitrary.d.ts:schema:364,checkEffect:765,configureGlobal:214,CheckOptionsruns/seed/replay:178-184; nofast-checkdependency.@effect/vitest@4.1.0prop:91,132with{arbitrary?: Arbitrary.CheckOptions}.
Observed constraint:
- HI itself pins
effect4.0.0-beta.101 (package.json:22,29), which uses the beta names; moving HI tolatestis outside this grill.
Rejected alternatives:
- 4.0 GA plus a beta-names note.
Q15
Prerequisites:
- Q12
Altitude: L1
Question: Which evidence needs a Sensitivity Proof?
Accepted answer:
- Every test that passes on its first run, every new property that passes on its first run, and every committed model invariant.
Rejected alternatives:
- Properties and models only.
R2 Answers (L2)
Q9
Altitude: L2
Prerequisites:
- Q3
Question: Canonical term and id family for a checkable rule?
Accepted answer:
- Canonical term Spec Invariant, id
INV-nnn, assigned bycreate-speclikeOUT/ACcodes; each row cites its source grill question. Grill axioms carry the "checkable as" hint and no id.
Rejected alternatives:
- Grill
AX-nids carried into the spec: a second id family.
Q16
Altitude: L2
Prerequisites:
- Q14
Question: Glossary pointer shape?
Accepted answer:
- A root
GLOSSARY-MAP.mdthat lists the wikidomains/*-glossary.mdxpages;hi initseeds it anddocs-ingest-phasekeeps it current when it publishes a glossary page. Upstream skill text stays unchanged.
Rejected alternatives:
- Local skill text that resolves the wiki glossary directly: more upstream drift.
Q17
Altitude: L2
Prerequisites:
- Q13
Question:
Refactoring owner after it leaves the tdd loop?
Accepted answer:
- The per-task
$simplifystep once GREEN (implement-spec/references/parallel-worker-brief.md:58) and the existing review-phase Fowler smell baseline (review-phase/references/axis-standards.md:30). No new obligation.
Rejected alternatives:
- A new review-phase Standards refactoring obligation.
Q18
Altitude: L2
Prerequisites:
- Q12, Q15
Question: Sensitivity Proof evidence home?
Accepted answer:
- A new task field
sensitivity_evidence;red_evidencekeeps meaning a genuine pre-implementation failure.
Rejected alternatives:
- Inside
red_evidence.
Q19
Altitude: L2
Prerequisites:
- Q11
Question: Model authoring at architecture time?
Accepted answer:
create-architecturedrafts the Model in the spec folder (<spec>/models/*.proof.ts) and checks it there; a plan task moves it beside the service and wires CI.
Rejected alternatives:
- Writing into the code tree on the delivery branch: that branch does not exist during requirements-phase.
Q20
Altitude: L2
Prerequisites:
- Q11
Question:
Tool distribution for tsprover and tla-ts?
Accepted answer:
- The consumer project pins both as exact-version devDependencies through a plan task.
Rejected alternatives:
- HI tool catalog: it serves agent-global CLIs, not project CI.
Q21
Altitude: L2
Prerequisites:
- Q11
Question: Home of model-writing guidance?
Accepted answer:
- A new atomic skill covering Model authoring, the trigger, the Model
Sensitivity Proof, and trace-to-Pinned-Replay; called by
create-architecture,tddand review.
Rejected alternatives:
- A reference inside
create-architecture: three callers need it.
Q22
Altitude: L2
Prerequisites:
- Q5
Question: Pinned Replay form?
Accepted answer:
- An explicit input literal in an example test named after the rule; the
Replay Token stays in evidence only, because it reproduces a falsification
only "from the same implementation" (
effectArbitrary.d.ts:129).
Rejected alternatives:
- A stored Replay Token as the test.
Q23
Altitude: L2
Prerequisites:
- Q3, Q12
Question:
debugging-phase entry?
Accepted answer:
- When a fixed bug breaks a rule with a Property Pattern, the fix adds a property; its Sensitivity Proof reverts the fix as the Mutant. A Spec Invariant row is added only for delivery-scoped debugging.
Rejected alternatives:
- Regressions stay example tests only.
R3 Answers (L3)
All R3 recommendations accepted (user: "agree all r3").
Q24
Altitude: L3
Prerequisites:
- Q9
Question:
SPEC-TEMPLATE.md Spec Invariants shape?
Accepted scope:
- New
## Spec Invariantssection right after## Acceptance Criteria. - Columns:
INV | Rule | Source (Q anchor) | Form | Pattern | Seam | Model. Form:example | property | stateful-property | model | type.- "none" when the spec has no Spec Invariant.
Q25
Altitude: L3
Prerequisites:
- Q3, Q9
Question: Grill axiom hint format?
Accepted scope:
- Under each
- Axiom:line inrequirements-grill/references/artifact-output.md(Glossary decision entry and status### Axiomslist), an indentedCheckable as: <Property Pattern> | model | type | not-checkableline.
Q26
Altitude: L3
Prerequisites:
- Q9, Q18
Question: Plan task fields and their files?
Accepted scope:
test_form(Form values plusnot_applicable),invariant_refs([INV-nnn]ornone),sensitivity_evidence(blank in the plan, filled byimplement-spec).- Files:
create-plan/references/plan-schema.md(field list and example task),create-plan/references/tdd-shaping.md,implement-spec/references/parallel-worker-brief.md(Task Result),implement-spec/references/lifecycle.md(TDD completion contract).
Q27
Altitude: L3
Prerequisites:
- Q4, Q13, Q15, Q17
Question:
tdd file layout?
Accepted scope:
- New
tdd/properties.md: pattern table (spec signal → pattern → typical Mutant), slice order, generator rules (no Generator Narrowing; ids from small pools), Pinned Replay form, run policy, stateful properties, Model trace → Pinned Replay. - New
tdd/sensitivity.md: the five-step Sensitivity Proof procedure;tdd/SKILL.mdadds "a test that never failed is not evidence" beside the Hard Law. - Tautological anti-pattern in
tdd/high-signal-tests.md. - Remove Workflow §4 Refactor and delete
tdd/refactoring.md; description "red-green-refactor" becomes "red-green";tdd/UPSTREAM.mdrecords the local adaptations.
Q28
Altitude: L3
Prerequisites:
- Q5, Q8, Q22
Question:
effect skill property-testing reference?
Accepted scope:
- New
effect/references/PROPERTY_TESTING.md, a Branch Chooser line ineffect/SKILL.md, a pointer ineffect/references/TESTING.md. - Content:
Arbitrary.schemawithit.prop/it.effect.prop;Schema.Finitefor JSON-stored numbers; per-test{ arbitrary: { runs: 25 } }for DB-backed properties;Arbitrary.configureGlobalin the vitest setup for local deep runs (option fields: verify throughopensrc); stateful properties as a Schema array of tagged commands with a fresh fixture per evaluation; no mutation of generated values; Replay Token in evidence only.
Q29
Altitude: L3
Prerequisites:
- Q21
Question: New model skill identity?
Accepted scope:
model-checkingatskills/languages/typescript/model-checking/, Packtypescript;create-architectureandtddcall it when installed.- Exact pins
tsprover@0.0.2,tla-ts@0.0.3. - Content: finite parameter types, guards,
@fair/@leadsTo,@constraintbounds; the trigger; the Model Sensitivity Proof (remove a guard → violation); trace → Pinned Replay mapping; CI step.
Q30
Altitude: L3
Prerequisites:
- Q19, Q29
Question:
create-architecture model step?
Accepted scope:
- New step between flow-lenses (step 3) and compile (step 4): call
$model-checkingper triggered flow, write<spec-folder>/models/<flow>.proof.ts, check withnpx --yes tsprover@0.0.2 <path>. - Template section
## Models: flow → model path → invariants → state count → Sensitivity Proof. - A violation returns
architecture-not-readywith the trace as an L2 compile gap. - Drafts are not projected by
apps/wiki/scripts/sync-content.mjs:912.
Q31
Altitude: L3
Prerequisites:
- Q11, Q20
Question: Committed Model layout and CI?
Accepted scope:
<feature-or-service>/<flow>.proof.ts; package scriptcheck:modelsrunstsprover; CI runscheck:models; one plan task adds the pins, script and CI step.
Q32
Altitude: L3
Prerequisites:
- Q3, Q18
Question: Review-phase Spec Axis check?
Accepted scope:
- One bullet under "Unsupported evidence" in
review-phase/references/axis-spec.md, categorytest_gap, no script change: anINVwithout a test of its Form; a first-run-pass test withoutsensitivity_evidence; Generator Narrowing or rule loosening without recorded approval; a Model that diverges from## Models.
Q33
Altitude: L3
Prerequisites:
- Q3, Q15
Question:
make-tsuite edits?
Accepted scope:
references/audit-portfolio.mdmerge disposition: an input-only-varying example group becomes one property; each existing input stays as a Pinned Replay.references/implement-suite.md:27linkstdd/sensitivity.md.
Q34
Altitude: L3
Prerequisites:
- Q23
Question:
debugging-phase edit?
Accepted scope:
- Step 7 Verify bullet: when the bug breaks a Property Pattern rule, add a property; its Sensitivity Proof reverts the fix as the Mutant.
Q35
Altitude: L3
Prerequisites:
- Q16
Question:
GLOSSARY-MAP.md creator and format?
Accepted scope:
- Supersedes the maintainer and seeding part of Q16:
requirements-grillclose wiki synthesis (references/wiki-output.md) creates or updates the rootGLOSSARY-MAP.mdwhen it publishes adomains/<context>-glossary.mdxpage; upstream map format, one line per context with its path.ask-hi/references/known-gaps.md:14is removed. - No CLI change; the release stays Baseline-only.
Evidence anchor:
- Glossary pages are published by
requirements-grill(references/wiki-output.md:56-60), notdocs-ingest-phase; no seed-once Registry artifact kind exists.
Rejected alternatives:
hi initseeding: needs a new Registry artifact kind and an npm release.
R4 Answers (L3)
All R4 recommendations accepted (user: "agree all r4").
Q36
Altitude: L3
Prerequisites:
- Q12, Q27
Question: Mutant outside the worker's Active Write Scope?
Accepted scope:
- The worker picks another Mutant inside its scope; when none exists it
records
sensitivity_evidence: parent_requiredand the parent runs the Sensitivity Proof at the Task Gate.
Rejected alternatives:
- A temporary scope transfer.
Q37
Altitude: L3
Prerequisites:
- Q26, Q27
Question: Mutant left after an interrupted worker?
Accepted scope:
- The parent Task Gate runs
git diff --quieton every recorded Mutant file before acceptance; a remaining Mutant blocks the task.
Rejected alternatives:
- Trusting the worker's revert proof alone.
Q38
Altitude: L3
Prerequisites:
- Q29, Q31
Question:
tsprover/tla-ts pin bump?
Accepted scope:
- The same change reruns
check:modelsand every Model Sensitivity Proof; themodel-checkingskill states it.
Rejected alternatives:
check:modelsonly.
Q39
Altitude: L3
Prerequisites:
- Q30, Q31
Question:
Type check and lint of *.proof.ts?
Accepted scope:
- Keep the type check (wiki
tsconfig.jsonincludes**/*.ts); no lint ignore up front; when a lint rule fires on a Model, themodel-checkingskill directs a scoped**/*.proof.tsignore.
Rejected alternatives:
- Excluding
**/*.proof.tsfrom type check and lint up front.
Closure
- Shared-understanding confirmation: "letsgo" (2026-10-29, in reply to the confirmation request).
- Closure: "yes go" (2026-10-29, in reply to the close-and-handoff step).
- Handoff: status and log to
$create-architecture, then$create-spec,$write-backlogand$create-planunder$requirements-phase. - Parked: Python (Q7, at L1); tool-based mutation testing P5 (Q12, at L1); full upstream drift adoption P4 (Q13).
- Release: Baseline only (skills);
BASELINE_CHANGELOG.mdUnreleased.
Delivery Amendments (2026-10-29)
Q40
Prerequisites:
- Q29
Altitude: L3
Question:
How does model-checking pin the checker, after T8 showed tsprover@0.0.2
depends on tla-ts ^0.0.2 (0.0.x caret = exactly 0.0.2)?
Accepted answer:
- Supersedes the
tla-ts@0.0.3pin of Q29 and Q10. Pintsprover@0.0.2only; it brings thetla-tschecker it runs. No separatetla-tsdevDependency. User: "Pin tsprover only".
Rejected alternatives:
- Pin
tla-ts@0.0.2: a second pin that only mirrors tsprover's own range. - Keep
tla-ts@0.0.3: never reachescheck:models.
Q41
Prerequisites:
- Q29
Altitude: L3
Question: May a Model carry state owned by a consumer of the service?
Accepted answer:
- Yes, as ghost variables (top-level
let,ghostprefix) changed only by the consumer's actions, when a guarantee depends on that state (T8 #402 pilot needed the SDK's Last-Event-ID). User: "Allow ghost state".