Property Testing in Delivery Plan
Plan: Property Testing in Delivery
Context Pointers
| Pointer | Identity | Freshness rule |
|---|---|---|
| SPEC | SPEC.md @ d7372bf2, sha256 8fb49ea03f2d9a05… | Re-verify bytes before each wave; a changed spec stops dispatch |
| ARCHITECTURE | ARCHITECTURE.md @ 44e28b23, sha256 546c125a5d052de5… | Same; #spec-traceability maps every OUT/AC to ARC/FLOW and Q anchors |
| Grill | status and log @ c6d14622405f (Q1–Q39, closed R4); delivery amendments Q40, Q41 in the log | Decisions change only through requirements-grill |
| Glossary | domains/test-evidence-glossary.mdx | Canonical terms; no renaming |
| Skills source | /home/stefan/repos/skills on main at 348c3a3d672e | git -C /home/stefan/repos/skills branch --show-current must print main before every skills edit |
| Backlog | Epic IP-534, Stories IP-535–IP-537, Tasks IP-538–IP-545, milestone V4.9 Property Testing in Delivery | Provider Task identity and blockers are preserved unchanged |
architecture_applicability: architecture-bearing. Evidence: eight Tasks change one capability cumulatively across twelve skills; public seams change (spec template section, plan task fields, worker Task Result, review Spec Axis); a new owner appears (model-checkingskill) and new cross-skill edges appear (create-architecture→model-checking;tddandreview-phase→model-checkingwhen installed;model-checking→tdd).backend-domain-structureandfrontend-domain-structuredo not apply: owners are Markdown skills, contract tests and catalog data.
Initial Situation
- Delivery skills produce example tests only; ci-app has 3,211 test files and no property test (Brief §6).
tdd(skills/agnostic/quality/tdd, pinned upstream62f43a1) still has a Refactor step and no property, mutation or Model guidance.effecthas noArbitraryorit.effect.propguidance.- Grill axioms carry no check hint;
SPEC-TEMPLATE.mdhas no invariant section; plan tasks have no test-form field. - Skills read
GLOSSARY.md, but HI glossaries are wiki pages (ask-hi/references/known-gaps.md:14).
Problem Statement
Approved rules do not reach tests, a passing test is never shown to be able to fail, and concurrency designs are never checked before code (SPEC Context).
Proposed Solution Shape
ARCHITECTURE Whole System: a rule flows grill → architecture (Model step) →
spec (## Spec Invariants) → plan (test_form, invariant_refs,
sensitivity_evidence) → tdd (example → property; Sensitivity Proof) →
review (Spec Axis test_gap) → consumer CI (properties, check:models).
Resolved Decision Ledger
All decisions are closed in the grill (Q2–Q39). The plan adds no design. Planning choices recorded here:
| Choice | Value | Reason |
|---|---|---|
| Contract tests for new skill text | one new node --test file per new or changed skill group | Matches skills repo practice (tests/make-tsuite.contract.test.mjs) |
model-checking invocation | model-invoked (description with trigger branches; no disable-model-invocation) | Other skills call it (writing-for-agents SKILL-MECHANICS: a skill another skill must reach is model-invoked) |
model-checking agents file | agents/openai.yaml like other model-invoked skills | Repo convention (frontend-domain-structure/agents/openai.yaml) |
| Model smoke evidence | manual npx --yes tsprover@0.0.2 run recorded in task evidence, not a contract test | Contract tests stay offline |
| Skills repo commits | the parent commits each finished skills task on main with git add of that task's owned paths only; workers do not commit; the parent runs the full node --test tests/*.test.mjs only when no other skills task in the wave is still writing | One checkout, no worktrees (root CLAUDE.md); avoids index contention and half-written reads |
Remote movement on skills main | before each commit the parent runs git fetch and compares origin/main; when it moved, the parent rebases only after the current wave's writes are committed | git pull --rebase refuses a dirty tree |
Links into model-checking | T5 adds the tdd/properties.md link; T6 adds the review link | A link to a skill that does not exist yet fails tests/installed-skill-links.contract.test.mjs |
Stale ask-hi references | T1 updates ask-hi/references/delivery.md:44,50 (red-green, no refactoring.md); T5 updates ask-hi/references/baseline.md:92 and discovery-and-docs.md:232 (typescript Pack gains model-checking) | Consequences of accepted Q13, Q27, Q29; docs move with their consumers (root CLAUDE.md); no new requirement |
make-tsuite duplicate phrase | T6 replaces "a mutation in a disposable copy" at both implement-suite.md:27 and audit-portfolio.md:39 with the Sensitivity Proof link and updates tests/make-tsuite.contract.test.mjs:77 | Same meaning as Q33; the proof's revert check keeps production content unchanged |
Assumptions and Constraints
- Every task that writes a skill, reference, plan or brief loads and applies
writing-for-agents(user rule, 2026-10-22 and 2026-10-29). - Skills work only on
/home/stefan/repos/skillsmain; HI work only on branchteam/stefan/property-testing-delivery. tdd/properties.mdstays language-neutral; Effect API names live only ineffect(SPEC Constraints).tsprover@0.0.2exact pin everywhere; Q40 (during T8) removed the separatetla-tspin.- Baseline-only release: no
apps/cli/package.jsonversion change.
Codebase Findings
- Skill paths at
348c3a3:agnostic/quality/{tdd,make-tsuite,simplify},frameworks/effect/effect,languages/typescript/quality-types,agnostic/planning/{create-architecture,create-spec,create-plan,implement-spec},agnostic/requirements/requirements-grill,agnostic/cli/ask-hi,phases/{review-phase,debugging-phase}. - Existing contract tests:
tests/make-tsuite.contract.test.mjs,tests/routed-glossary-consumers.contract.test.mjs,tests/create-plan-backlog-tasks.contract.test.mjs,tests/review-contract.test.mjs,tests/review-phase-cli.test.mjs; notdd,effectorcreate-architecturecontract test exists. - HI catalog:
apps/cli/src/data/catalog/skills.tsentry shape{ framework, id, language, requiresTools, sourceDirectory, tier }(quality-typesat:777);typescriptPack inapps/cli/src/data/catalog/packs.tslistsskills: ["quality-types"]; testssrc/registry/publisher/sources/{packs,skills}.test.ts. - Sync pin:
apps/cli/scripts/sync-skills-repo.mjs:21-22; runbookapps/wiki/content/docs/project/runbooks/hi-cli-scaffolding.md:632.
Wiki Context
- Knowledge used:
- Test Evidence Glossary —
selected as this delivery's canonical glossary; all terms; fresh
(
c6d14622); accepted design. - Project Verification Capability Glossary
— "Applies when" verification vs review; claim: Verification and Code
Review are separate gates; fresh; verified implementation
(
review-phaseowns no Verification evidence). The Spec Axis bullet (T6) checks test evidence only, so the separation holds. - Harness runbook: hi-cli scaffolding
— sync flow and pin; fresh at
348c3a3d672e; verified implementation.
- Test Evidence Glossary —
selected as this delivery's canonical glossary; all terms; fresh
(
- Stale or contradictory claims: none found.
- Returned findings: knowledge no-op; the grill close already published the glossary.
External Research Used
- npm
effect@4.1.0,@effect/vitest@4.1.0,tsprover@0.0.2,tla-ts@0.0.3(SPEC Dependency Readiness).parallel-researchandplanning-discoveryskipped: the grill grounded every path; no open readonly question remains.plan-reviewerruns before retention.
Target Ownership Topology
wearedevpunks/skills (main)
├── agnostic/quality/tdd/ owner: language-neutral test evidence (ARC-002, ARC-003)
│ public: properties.md, sensitivity.md, SKILL.md Hard Law line
├── frameworks/effect/effect/ owner: Effect property API (ARC-004)
│ must not: restate the pattern catalog
├── languages/typescript/model-checking/ owner: Model authoring + CI (ARC-005, ARC-007)
├── agnostic/planning/create-architecture owner: Model step + ## Models (ARC-006)
├── agnostic/planning/{create-spec,create-plan,implement-spec} owner: INV carry-down (ARC-001)
├── agnostic/requirements/requirements-grill owner: axiom hint; GLOSSARY-MAP.md (ARC-001, ARC-011)
├── phases/review-phase owner: Spec Axis test_gap check (ARC-008)
├── agnostic/quality/make-tsuite owner: merge rule (ARC-009)
└── phases/debugging-phase owner: regression property (ARC-010)
harness-intelligence
└── apps/cli catalog, sync pin, wiki, BASELINE_CHANGELOG.md owner: distribution (ARC-012)
collective-intelligence-platform/ci-app throwaway proof only (ARC-013)Conclusion: tdd owns the evidence rules, framework and tool skills own
their API specifics, and every pipeline skill only cites them.
Declared Dependency Graph
- Allowed: edges above only (names and links).
- Forbidden:
tddnaming Effect APIs; pipeline skills restating the pattern table or the Sensitivity Proof steps; any skill pinningtsprover/tla-tsexceptmodel-checkingandcreate-architecture(its check command).
Responsibility Acceptance Criteria
| criterion_id | Owner | Observable assertion | Evidence | due_architecture_wave |
|---|---|---|---|---|
| RAC-1 | tdd | properties.md, sensitivity.md, Tautological, no Refactor step, red-green, UPSTREAM note (AC-005–AC-009, AC-010 procedure) | cd /home/stefan/repos/skills && node --test tests/tdd-property-testing.contract.test.mjs | A1 |
| RAC-2 | requirements-grill, ask-hi | GLOSSARY-MAP.md step; gap removed (AC-019) | cd /home/stefan/repos/skills && node --test tests/routed-glossary-consumers.contract.test.mjs | A1 |
| RAC-3 | carry-down skills | axiom hint, ## Spec Invariants, plan fields, Task Result, parent gate (AC-001–AC-004, AC-010 gate) | cd /home/stefan/repos/skills && node --test tests/spec-invariant-carry-down.contract.test.mjs tests/create-plan-backlog-tasks.contract.test.mjs | A2 |
| RAC-4 | effect | PROPERTY_TESTING.md content and pointers (AC-011, AC-012) | cd /home/stefan/repos/skills && node --test tests/effect-property-testing.contract.test.mjs | A2 |
| RAC-5 | model-checking, create-architecture | skill content, Model step, ## Models (AC-013–AC-015) | cd /home/stefan/repos/skills && node --test tests/model-checking.contract.test.mjs; manual npx --yes tsprover@0.0.2 smoke | A2 |
| RAC-6 | review, make-tsuite, debugging | Spec Axis bullet, merge rule, step 7 bullet (AC-016–AC-018) | cd /home/stefan/repos/skills && node --test tests/make-tsuite.contract.test.mjs tests/test-evidence-checks.contract.test.mjs tests/review-contract.test.mjs tests/review-phase-cli.test.mjs | A3 |
| RAC-7 | ci-app proof | #402 Model result, #381 replay failure (AC-022, AC-023) | recorded outputs in IMPLEMENTATION-NOTES | A3 |
| RAC-8 | HI distribution | Pack membership, synced copies, wiki, changelog, Baseline-only (AC-020, AC-021) | bun run --cwd apps/cli vitest run --config vitest.config.ts src/registry/publisher/sources/packs.test.ts src/registry/publisher/sources/skills.test.ts; bun run --cwd apps/wiki check:health; node apps/cli/scripts/classify-release-impact.mjs --base origin/main --head HEAD; after Baseline publication, hi diff in /home/stefan/repos/next-effect-app lists model-checking and the changed skills | A4 |
Architecture Waves
A1 boundary establishment: tdd evidence rules (T1) + glossary map (T2)
RAC-1, RAC-2; checkpoint: Form values and term names in T1 are final
A2 vertical slice: carry-down (T3) + effect (T4) + model-checking (T5)
RAC-3, RAC-4, RAC-5; checkpoint: RAC-1..RAC-5 green; no skill restates T1
A3 convergence: evidence checks (T6) + ci-app proof (T8)
RAC-6, RAC-7; checkpoint: RAC-1..RAC-7 green
A4 final closure: distribution (T7)
RAC-8; zero-drift: all RAC green; migration ledger emptyPublic Seam Contract
| Seam | Owner | Allowed consumers |
|---|---|---|
Form values example | property | stateful-property | model | type | tdd/properties.md | SPEC template, plan schema, review |
sensitivity_evidence field and parent_required marker | tdd/sensitivity.md | plan schema, worker Task Result, parent Task Gate, review |
## Spec Invariants table and INV-nnn | create-spec template | create-plan, review |
## Models table | create-architecture template | review, plan task that moves Models |
check:models script name | model-checking | consumer CI |
GLOSSARY-MAP.md format | requirements-grill wiki-output | domain-modeling, wait-what (unchanged) |
Migration Ledger
Empty. No temporary seam is planned.
Dependency Graph and Waves
| Tn | Provider Task | Story | depends_on | wave_boundary | architecture_wave |
|---|---|---|---|---|---|
| T1 | IP-538 | IP-535 | — | W1 | A1 |
| T2 | IP-539 | IP-535 | — | W1 | A1 |
| T3 | IP-540 | IP-535 | T1 | W2 | A2 |
| T4 | IP-541 | IP-536 | T1 | W2 | A2 |
| T5 | IP-542 | IP-536 | T1 | W2 | A2 |
| T6 | IP-543 | IP-535 | T1, T3, T5 | W3 | A3 |
| T8 | IP-544 | IP-537 | T4, T5 | W3 | A3 |
| T7 | IP-545 | IP-537 | T1, T2, T3, T4, T5, T6, T8 | W4 | A4 |
W1 runs T1 and T2 in parallel (disjoint skills paths). W2 runs T3, T4 and T5
in parallel (disjoint skills paths). W3 runs T6 (skills repo) and T8 (ci-app).
Each task starts as soon as its own blockers pass their gates. T8 blocks T7, so
a gap the proof finds in model-checking or effect is fixed before the one
sync and changelog entry.
Testing Strategy
- Skills: one RED contract test per task through
node --test, asserting the accepted strings and file layout; RED is the missing file or section. - Model smoke (T5): a guarded and an unguarded sample Model in a scratch
directory;
npx --yes tsprover@0.0.2must pass and fail respectively. - HI (T7): existing catalog tests extended for
model-checking. - ci-app (T8): throwaway branches; outputs recorded, nothing merged.
- CI owns the full suite (validation-scope.md).
Risks and Mitigations
| Risk | Mitigation |
|---|---|
Other sessions edit the same skills on main (the 2026-10-28 pr work moved the pin) | Each task re-reads its files at dispatch; the parent rebases with git pull --rebase before each commit |
tsprover 0.0.x changes behavior | Exact pins; pin-bump rule (Q38) |
effect latest moves past 4.1.0 during delivery | T4 re-reads npm view effect dist-tags and the installed types before writing |
| Contract tests become shape-only checks | Each test asserts accepted meaning (patterns, steps, field names) from the AC text, not mere file existence |
| ci-app pilot needs a running stack | Models and the #381 property run without the full stack; a DB-backed replay uses the ci-app test PostgreSQL fixture |
Validation Gates
- Task gates: each task's RED/GREEN; skills repo
node --test tests/*.test.mjsbefore the parent commits a skills task; for T7 alsobun run --cwd apps/cli check-typesandbun run --cwd apps/cli lint. - Architecture checkpoints: see Architecture Waves.
Tasks
T1: Rewrite tdd for properties, Sensitivity Proofs and the red-green loop
- depends_on: []
- location: /home/stefan/repos/skills/skills/agnostic/quality/tdd
- owned_paths: [skills/agnostic/quality/tdd/**, skills/agnostic/cli/ask-hi/references/delivery.md, tests/tdd-property-testing.contract.test.mjs]
- read_dependencies: [SPEC.md AC-005–AC-010, ARCHITECTURE.md ARC-002 ARC-003 FLOW-002, grill log Q4 Q5 Q12 Q13 Q15 Q18 Q22 Q27 Q36, test-evidence-glossary.mdx, mattpocock/skills
59db609tdd/SKILL.md] - shared_runtime_resources: skills repo
maincheckout (parent commits) - relevant_input_set: SPEC and ARCHITECTURE Context Pointers; hash
tdd/*.mdat dispatch - wave_boundary: W1
- description: Add
properties.mdandsensitivity.md; add the "a test that never failed is not evidence" line beside the Hard Law; remove Workflow §4 Refactor andrefactoring.md; description "red-green"; Tautological anti-pattern with the oracle warning inhigh-signal-tests.md; record adaptations inUPSTREAM.md; updateask-hi/references/delivery.md:44,50(red-green; norefactoring.md). The Model trace → Pinned Replay section names no skill yet; T5 adds themodel-checkinglink. - validation: AC-005–AC-009 and the procedure half of AC-010 hold by contract test and by reading each file.
- status: Complete
- log: Task Gate passed 2026-10-29; see IMPLEMENTATION-NOTES Execution and Reconciliation.
- files edited/created: skills
5644b65: tdd/properties.md, tdd/sensitivity.md, SKILL.md, high-signal-tests.md, UPSTREAM.md, refactoring.md (deleted), ask-hi/references/delivery.md, tests/tdd-property-testing.contract.test.mjs - task_identity_mode: provider-task
- backlog_item_id: IP-538
- backlog_item_url: https://linear.app/devpunks/issue/IP-538
- relation_mode: native
- backlog_sync_skip_reason:
- assigned_skills: [
writing-for-agents,tdd,codebase-design] - implementation_skill_guidance:
- skill:
writing-for-agentsapplicable_behavior: KeepSKILL.mdsteps in-file and push the pattern table and procedure to the two references behind sharp pointers; use leading words (red, Mutant, Pinned Replay); every step ends on a checkable completion criterion. - skill:
tddapplicable_behavior: Write the contract test first and observe it fail on the missing files and lines. - skill:
codebase-designapplicable_behavior: State properties at the public seam; the interface is the test surface.
- skill:
- tdd_status: required
- tdd_target:
tddshipsproperties.mdwith nine patterns andsensitivity.mdwith five steps. - red_command:
cd /home/stefan/repos/skills && node --test tests/tdd-property-testing.contract.test.mjs - expected_red_failure:
ENOENTforskills/agnostic/quality/tdd/properties.md, and the Refactor heading still present. - green_command:
cd /home/stefan/repos/skills && node --test tests/tdd-property-testing.contract.test.mjs && node --test tests/*.test.mjs - reason_not_testable:
- red_evidence:
node --test tests/tdd-property-testing.contract.test.mjs: 8 tests, 0 pass, 8 fail (ENOENT tdd/properties.md, tdd/sensitivity.md; description still red-green-refactor; refactoring.md present; no Tautological) - green_evidence: same command 8/8 pass; full suite 373/373 at
5321472 - codebase_design_notes:
tddis the only owner of the Form vocabulary and the Sensitivity Proof; consumers link it. - review_mode: cli
- runtime_validation: not_required
- runtime_target: not_applicable
- runtime_evidence: not_applicable
- runtime_cleanup: not_applicable
- architecture_wave: A1
- behavior_owner:
tdd - integration_surface: every skill that writes or judges tests
- public_seam: Form values;
sensitivity_evidence;parent_required - topology_delta: new evidence-rule owner inside
tdd - forbidden_ownership: Effect API names;
tsprovercommands - temporary_seams: none
- responsibility_acceptance_criteria: [RAC-1]
T2: Create GLOSSARY-MAP.md from grill close and remove the ask-hi glossary gap
- depends_on: []
- location: /home/stefan/repos/skills/skills/agnostic/requirements/requirements-grill/references/wiki-output.md
- owned_paths: [skills/agnostic/requirements/requirements-grill/references/wiki-output.md, skills/agnostic/cli/ask-hi/references/known-gaps.md, tests/routed-glossary-consumers.contract.test.mjs]
- read_dependencies: [SPEC.md AC-019, ARCHITECTURE.md ARC-011, grill log Q14 Q16 Q35, mattpocock/skills domain-modeling GLOSSARY-MAP format]
- shared_runtime_resources: skills repo
maincheckout (parent commits) - relevant_input_set: hash both owned skill files at dispatch
- wave_boundary: W1
- description: Wiki synthesis creates or updates root
GLOSSARY-MAP.md(one line per context with itsdomains/<context>-glossary.mdxpath) whenever it publishes a glossary page; delete the glossary-location bullet fromknown-gaps.md. - validation: AC-019.
- status: Complete
- log: Task Gate passed 2026-10-29; see IMPLEMENTATION-NOTES Execution and Reconciliation.
- files edited/created: skills
5321472: requirements-grill/references/wiki-output.md, ask-hi/references/known-gaps.md, tests/routed-glossary-consumers.contract.test.mjs - task_identity_mode: provider-task
- backlog_item_id: IP-539
- backlog_item_url: https://linear.app/devpunks/issue/IP-539
- relation_mode: native
- backlog_sync_skip_reason:
- assigned_skills: [
writing-for-agents,tdd,domain-modeling] - implementation_skill_guidance:
- skill:
writing-for-agentsapplicable_behavior: One step with a checkable completion criterion (the map lists every published glossary page). - skill:
tddapplicable_behavior: Extend the glossary contract test first; observe RED. - skill:
domain-modelingapplicable_behavior: Match the upstreamGLOSSARY-MAP.mdformat exactly sodomain-modelingreads it unchanged.
- skill:
- tdd_status: required
- tdd_target:
wiki-output.mdnamesGLOSSARY-MAP.mdandknown-gaps.mdlacks the glossary gap. - red_command:
cd /home/stefan/repos/skills && node --test tests/routed-glossary-consumers.contract.test.mjs - expected_red_failure: assertion that
wiki-output.mdmentionsGLOSSARY-MAP.mdfails. - green_command:
cd /home/stefan/repos/skills && node --test tests/routed-glossary-consumers.contract.test.mjs && node --test tests/*.test.mjs - reason_not_testable:
- red_evidence:
node --test tests/routed-glossary-consumers.contract.test.mjs: pass 1, fail 1 (input did not match /repository-root \GLOSSARY-MAP.md`/`) - green_evidence: 34/34 across routed-glossary-consumers, installed-skill-links, requirements-grill-graph, requirements-grill-composition, wiki-bookkeeping; full suite 373/373
- codebase_design_notes: the map is a pointer file; glossary content stays in the wiki pages.
- review_mode: cli
- runtime_validation: not_required
- runtime_target: not_applicable
- runtime_evidence: not_applicable
- runtime_cleanup: not_applicable
- architecture_wave: A1
- behavior_owner:
requirements-grillclose wiki synthesis - integration_surface:
domain-modeling,wait-what - public_seam:
GLOSSARY-MAP.mdformat - topology_delta: glossary pointer owner added to grill close
- forbidden_ownership: CLI scaffold seeding
- temporary_seams: none
- responsibility_acceptance_criteria: [RAC-2]
T3: Carry Spec Invariants from grill axioms through spec and plan to the worker
- depends_on: [T1]
- location: /home/stefan/repos/skills/skills/agnostic/planning
- owned_paths: [skills/agnostic/requirements/requirements-grill/references/artifact-output.md, skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md, skills/agnostic/planning/create-spec/references/readiness.md, skills/agnostic/planning/create-plan/SKILL.md, skills/agnostic/planning/create-plan/references/plan-schema.md, skills/agnostic/planning/create-plan/references/tdd-shaping.md, skills/agnostic/planning/implement-spec/references/parallel-worker-brief.md, skills/agnostic/planning/implement-spec/references/lifecycle.md, tests/spec-invariant-carry-down.contract.test.mjs]
- read_dependencies: [SPEC.md AC-001–AC-004 AC-010, ARCHITECTURE.md ARC-001 FLOW-001 FLOW-002-STEP-006, grill log Q9 Q18 Q24–Q26 Q37, T1
tdd/properties.mdForm values] - shared_runtime_resources: skills repo
maincheckout (parent commits) - relevant_input_set: T1 commit SHA; hash owned files at dispatch
- wave_boundary: W2
- description: Add the
Checkable as:line under both axiom templates; add## Spec Invariantsafter## Acceptance Criteriawith the accepted columns, Form values and "none" rule, and theINV-nnnassignment rule; addtest_form,invariant_refs,sensitivity_evidenceto the plan field list, example task, TDD shaping and thecreate-plan/SKILL.mdstep 10 field list; carry them in the worker Task Result and the TDD completion contract; add the parent Task Gategit diff --quietcheck on every recorded Mutant file and theparent_requiredhandling. - validation: AC-001–AC-004 and the gate half of AC-010.
- status: Complete
- log: Task Gate passed 2026-10-29; see IMPLEMENTATION-NOTES Execution and Reconciliation.
- files edited/created: skills
20d9c47: requirements-grill artifact-output.md; create-spec SPEC-TEMPLATE.md, readiness.md; create-plan SKILL.md, plan-schema.md, tdd-shaping.md; implement-spec parallel-worker-brief.md, lifecycle.md; tests/spec-invariant-carry-down.contract.test.mjs - task_identity_mode: provider-task
- backlog_item_id: IP-540
- backlog_item_url: https://linear.app/devpunks/issue/IP-540
- relation_mode: native
- backlog_sync_skip_reason:
- assigned_skills: [
writing-for-agents,tdd] - implementation_skill_guidance:
- skill:
writing-for-agentsapplicable_behavior: Each new field is one single source of truth (plan-schema); other files point to it instead of restating; no duplication of the Form values outsidetdd. - skill:
tddapplicable_behavior: Write the carry-down contract test first; observe RED.
- skill:
- tdd_status: required
- tdd_target: SPEC template has
## Spec Invariantswith the accepted columns, and plan-schema lists the three fields. - red_command:
cd /home/stefan/repos/skills && node --test tests/spec-invariant-carry-down.contract.test.mjs - expected_red_failure: missing
## Spec Invariantsheading inSPEC-TEMPLATE.md. - green_command:
cd /home/stefan/repos/skills && node --test tests/spec-invariant-carry-down.contract.test.mjs && node --test tests/*.test.mjs - reason_not_testable:
- red_evidence:
node --test tests/spec-invariant-carry-down.contract.test.mjs: 6 tests, 0 pass (+ '## Constraints' - '## Spec Invariants') - green_evidence: 6/6 pass; 158/158 across tests reading owned files; full suite 390/390 at
1604797 - codebase_design_notes:
plan-schema.mdis the field authority; brief and lifecycle reference it. - review_mode: cli
- runtime_validation: not_required
- runtime_target: not_applicable
- runtime_evidence: not_applicable
- runtime_cleanup: not_applicable
- architecture_wave: A2
- behavior_owner:
create-spec,create-plan,implement-spec,requirements-grill - integration_surface: plan workers, parent Task Gate, review
- public_seam:
## Spec Invariants; three task fields - topology_delta: INV carry-down edges grill → spec → plan → worker
- forbidden_ownership: Form definitions; Sensitivity Proof steps
- temporary_seams: none
- responsibility_acceptance_criteria: [RAC-3]
T4: Add Effect PROPERTY_TESTING reference on the npm latest API
- depends_on: [T1]
- location: /home/stefan/repos/skills/skills/frameworks/effect/effect
- owned_paths: [skills/frameworks/effect/effect/**, tests/effect-property-testing.contract.test.mjs]
- read_dependencies: [SPEC.md AC-011 AC-012, ARCHITECTURE.md ARC-004, grill log Q8 Q28,
npm view effect dist-tags,effect@latestdist/Arbitrary.d.ts,@effect/vitest@latestdist/index.d.ts, T1tdd/properties.md] - shared_runtime_resources: skills repo
maincheckout (parent commits); scratch npm install undermktemp -d, removed after reading - relevant_input_set:
effectlatestversion at dispatch; T1 commit SHA - wave_boundary: W2
- description: New
references/PROPERTY_TESTING.mdwith the accepted content list; Branch Chooser line inSKILL.md; pointer inreferences/TESTING.md;opensrccheck for other versions; no beta-names note; confirmconfigureGlobaloption fields throughopensrcbefore naming any. - validation: AC-011, AC-012; every API name matches the
latesttypes. - status: Complete
- log: Task Gate passed 2026-10-29; see IMPLEMENTATION-NOTES Execution and Reconciliation.
- files edited/created: skills
71ba620: effect references/PROPERTY_TESTING.md, SKILL.md, references/TESTING.md, UPSTREAM.md; tests/effect-property-testing.contract.test.mjs - task_identity_mode: provider-task
- backlog_item_id: IP-541
- backlog_item_url: https://linear.app/devpunks/issue/IP-541
- relation_mode: native
- backlog_sync_skip_reason:
- assigned_skills: [
writing-for-agents,tdd,effect] - implementation_skill_guidance:
- skill:
writing-for-agentsapplicable_behavior: Disclosed reference behind one Branch Chooser pointer whose wording names property tests,Arbitraryandit.effect.prop; linktdd/properties.mdfor patterns instead of restating them. - skill:
tddapplicable_behavior: Write the effect contract test first; observe RED. - skill:
effectapplicable_behavior: Use the installedlatestsource throughopensrcfor every API name.
- skill:
- tdd_status: required
- tdd_target:
PROPERTY_TESTING.mdnamesArbitrary.schema,it.effect.prop,Schema.Finiteand{ arbitrary: { runs: 25 } }. - red_command:
cd /home/stefan/repos/skills && node --test tests/effect-property-testing.contract.test.mjs - expected_red_failure:
ENOENTforskills/frameworks/effect/effect/references/PROPERTY_TESTING.md. - green_command:
cd /home/stefan/repos/skills && node --test tests/effect-property-testing.contract.test.mjs && node --test tests/*.test.mjs - reason_not_testable:
- red_evidence:
node --test tests/effect-property-testing.contract.test.mjs: ENOENT for PROPERTY_TESTING.md; Branch Chooser assertionactual: 0 - green_evidence: 3/3 pass; 20/20 across effect-reading tests; every API name verified in
effect@4.1.0d.ts (schema:364,checkEffect:765,configureGlobal:214) - codebase_design_notes: Effect specifics stay behind the Branch Chooser seam.
- review_mode: cli
- runtime_validation: not_required
- runtime_target: not_applicable
- runtime_evidence: not_applicable
- runtime_cleanup: not_applicable
- architecture_wave: A2
- behavior_owner:
effect - integration_surface: Effect workers writing properties
- public_seam: Branch Chooser line
- topology_delta: new
effect→tddlink edge - forbidden_ownership: pattern catalog; Sensitivity Proof steps
- temporary_seams: none
- responsibility_acceptance_criteria: [RAC-4]
T5: Create the model-checking skill and the create-architecture Model step
- depends_on: [T1]
- location: /home/stefan/repos/skills/skills/languages/typescript/model-checking
- owned_paths: [skills/languages/typescript/model-checking/**, skills/agnostic/quality/tdd/properties.md, skills/agnostic/cli/ask-hi/references/baseline.md, skills/agnostic/cli/ask-hi/references/discovery-and-docs.md, skills/agnostic/planning/create-architecture/SKILL.md, skills/agnostic/planning/create-architecture/assets/ARCHITECTURE-TEMPLATE.md, skills/agnostic/planning/create-architecture/references/artifact-contract.md, tests/model-checking.contract.test.mjs]
- read_dependencies: [SPEC.md AC-013–AC-015, ARCHITECTURE.md ARC-005–ARC-007 FLOW-003, grill log Q11 Q19–Q21 Q29–Q31 Q38 Q39,
tsprover@0.0.2README, Brief §6 smoke test, T1tdd/sensitivity.md] - shared_runtime_resources: skills repo
maincheckout (parent commits); scratch directory undermktemp -dfor the Model smoke, removed after use - relevant_input_set: T1 commit SHA;
tsprover@0.0.2README bytes; T3 and T4 readtdd/properties.mdbut do not write it - wave_boundary: W2
- description: New model-invoked
model-checkingskill (SKILL.mdwith trigger-branch description,agents/openai.yaml) with the accepted content list;create-architecturestep between flow-lenses and compile,## Modelstemplate section,architecture-not-readyon a violation with the trace as an L2 compile gap; add the "when installed"model-checkinglink totdd/properties.md; listmodel-checkingin thetypescriptPack rows ofask-hi/references/baseline.md:92anddiscovery-and-docs.md:232. - validation: AC-013–AC-015; Model smoke: guarded sample passes and unguarded sample fails under
npx --yes tsprover@0.0.2. - status: Complete
- log: Task Gate passed 2026-10-29; see IMPLEMENTATION-NOTES Execution and Reconciliation.
- files edited/created: skills
1604797,b1e3153,0da31e0: model-checking/SKILL.md, agents/openai.yaml; create-architecture SKILL.md, ARCHITECTURE-TEMPLATE.md, artifact-contract.md; tdd/properties.md; ask-hi baseline.md, discovery-and-docs.md, requirements.md; tests/model-checking.contract.test.mjs, tests/requirements-grill-graph.contract.test.mjs - task_identity_mode: provider-task
- backlog_item_id: IP-542
- backlog_item_url: https://linear.app/devpunks/issue/IP-542
- relation_mode: native
- backlog_sync_skip_reason:
- assigned_skills: [
writing-for-agents,tdd,codebase-design] - implementation_skill_guidance:
- skill:
writing-for-agentsapplicable_behavior: Model-invoked skill per SKILL-MECHANICS: description front-loads Model and lists one trigger per branch (shared writers, background job/retry, recovery/resync, delivery guarantee); steps carry completion criteria (tsproverexit status). - skill:
tddapplicable_behavior: Write the model-checking contract test first; observe RED; record the Model smoke as Sensitivity Proof evidence. - skill:
codebase-designapplicable_behavior: A Model is scoped to one service; the composition file is the map.
- skill:
- tdd_status: required
- tdd_target:
model-checking/SKILL.mdexists with the exact pins andcreate-architecturehas the Model step. - red_command:
cd /home/stefan/repos/skills && node --test tests/model-checking.contract.test.mjs - expected_red_failure:
ENOENTforskills/languages/typescript/model-checking/SKILL.md. - green_command:
cd /home/stefan/repos/skills && node --test tests/model-checking.contract.test.mjs && node --test tests/*.test.mjs - reason_not_testable:
- red_evidence:
node --test tests/model-checking.contract.test.mjs: 0/8 (ENOENT model-checking/SKILL.md) - green_evidence: 8/8 pass; full suite 390/390; Model smoke: guarded
hash-refresh.proof.ts✓ 11 states, guard removed ✗hashMatchesContent(trace save → save → hashJob),@fairremoved ✗isPending - codebase_design_notes: the skill owns pins and commands;
create-architecturecalls it and keeps only its step and template section. - review_mode: cli
- runtime_validation: not_required
- runtime_target: not_applicable
- runtime_evidence: not_applicable
- runtime_cleanup: not_applicable
- architecture_wave: A2
- behavior_owner:
model-checking;create-architecture(Model step) - integration_surface: architecture compiler;
tdd; review - public_seam:
## Models;check:models - topology_delta: new owner and the
create-architecture→model-checkingedge - forbidden_ownership: Sensitivity Proof steps (link
tdd) - temporary_seams: none
- responsibility_acceptance_criteria: [RAC-5]
T6: Check test evidence in review, make-tsuite and debugging-phase
- depends_on: [T1, T3, T5]
- location: /home/stefan/repos/skills/skills/phases/review-phase/references/axis-spec.md
- owned_paths: [skills/phases/review-phase/references/axis-spec.md, skills/agnostic/quality/make-tsuite/references/audit-portfolio.md, skills/agnostic/quality/make-tsuite/references/implement-suite.md, skills/phases/debugging-phase/SKILL.md, tests/make-tsuite.contract.test.mjs, tests/test-evidence-checks.contract.test.mjs]
- read_dependencies: [SPEC.md AC-016–AC-018, ARCHITECTURE.md ARC-008–ARC-010 FLOW-004, grill log Q23 Q32–Q34, T1 and T3 outputs]
- shared_runtime_resources: skills repo
maincheckout (parent commits) - relevant_input_set: T1, T3 and T5 commit SHAs
- wave_boundary: W3
- description: One "Unsupported evidence" bullet (
test_gap) inaxis-spec.md, which callsmodel-checkingwhen installed for the Model-drift check; merge rule inaudit-portfolio.md; replace "a mutation in a disposable copy" atimplement-suite.md:27andaudit-portfolio.md:39with thetdd/sensitivity.mdlink and updatetests/make-tsuite.contract.test.mjs:77;debugging-phasestep 7 property bullet. - validation: AC-016–AC-018;
review-phasescript tests unchanged and green. - status: Complete
- log: Task Gate passed 2026-10-29; see IMPLEMENTATION-NOTES Execution and Reconciliation.
- files edited/created: skills
52b9e1a: review-phase references/axis-spec.md; make-tsuite references/audit-portfolio.md, implement-suite.md; debugging-phase SKILL.md; tests/make-tsuite.contract.test.mjs, tests/test-evidence-checks.contract.test.mjs - task_identity_mode: provider-task
- backlog_item_id: IP-543
- backlog_item_url: https://linear.app/devpunks/issue/IP-543
- relation_mode: native
- backlog_sync_skip_reason:
- assigned_skills: [
writing-for-agents,tdd,make-tsuite] - implementation_skill_guidance:
- skill:
writing-for-agentsapplicable_behavior: Each addition is one bullet or sentence that points totdd; no restated procedure; prohibitions paired with the positive target. - skill:
tddapplicable_behavior: Write the evidence-checks contract test and the make-tsuite assertion first; observe RED. - skill:
make-tsuiteapplicable_behavior: Keep the existing disposition set; the merge rule refinesmerge, it adds no disposition.
- skill:
- tdd_status: required
- tdd_target:
axis-spec.mdreports a first-run-pass test withoutsensitivity_evidenceastest_gap. - red_command:
cd /home/stefan/repos/skills && node --test tests/test-evidence-checks.contract.test.mjs tests/make-tsuite.contract.test.mjs - expected_red_failure: missing
sensitivity_evidenceinaxis-spec.md. - green_command:
cd /home/stefan/repos/skills && node --test tests/test-evidence-checks.contract.test.mjs tests/make-tsuite.contract.test.mjs tests/review-contract.test.mjs tests/review-phase-cli.test.mjs && node --test tests/*.test.mjs - reason_not_testable:
- red_evidence:
node --test tests/test-evidence-checks.contract.test.mjs tests/make-tsuite.contract.test.mjs: 8 tests, 4 fail ("Unsupported evidence names sensitivity_evidence") - green_evidence: 35/35 incl. review-contract, review-phase-cli; full suite 393/393; review-phase scripts unchanged (
git diff --quiet HEAD -- skills/phases/review-phase/scripts) - codebase_design_notes: consumers of the evidence rules only; owners stay in
tddand the templates. - review_mode: cli
- runtime_validation: not_required
- runtime_target: not_applicable
- runtime_evidence: not_applicable
- runtime_cleanup: not_applicable
- architecture_wave: A3
- behavior_owner:
review-phase,make-tsuite,debugging-phase - integration_surface: review Pass Report; suite audits; bug fixes
- public_seam: Spec Axis
test_gapfinding - topology_delta: three consumer edges to
tdd - forbidden_ownership: review scripts; Verification evidence
- temporary_seams: none
- responsibility_acceptance_criteria: [RAC-6]
T8: Prove the guidance on ci-app: #402 Model pilot and #381 bug replay
- depends_on: [T4, T5]
- location: collective-intelligence-platform/ci-app (throwaway branches)
- owned_paths: [ci-app throwaway branches
pilot/property-testing-402-modelandpilot/property-testing-381-replayonly; evidence section in this delivery's IMPLEMENTATION-NOTES.md] - read_dependencies: [SPEC.md AC-022 AC-023, ARCHITECTURE.md ARC-013, grill log Q6, skills
model-checkingandeffectPROPERTY_TESTING.md andtddat the T4/T5 commits, ci-app PR #381 and #402 descriptions] - shared_runtime_resources: a separate ci-app worktree under
/home/stefan/.t3/worktrees/ci-app/created for this task and removed after evidence capture; ci-app test PostgreSQL fixture when the replay needs it - relevant_input_set: T4 and T5 commit SHAs; #381 pre-fix commit SHA; #402 branch head SHA
- wave_boundary: W3
- description: Write a #402 change log + SSE resync Model under the
model-checkingguidance and runtsprover; record pass with Model Sensitivity Proof, or the violation trace as a design finding. At the commit before the #381 fix, a fresh agent that reads only the new skills and the #381 requirement writes a property; record its failure. Merge nothing; delete the branches and the worktree after recording. - validation: AC-022, AC-023.
- status: Complete
- log: Task Gate passed 2026-10-29; see IMPLEMENTATION-NOTES Execution and Reconciliation.
- files edited/created: none merged; throwaway ci-app clone removed; evidence in IMPLEMENTATION-NOTES Behavior Verification Evidence
- task_identity_mode: provider-task
- backlog_item_id: IP-544
- backlog_item_url: https://linear.app/devpunks/issue/IP-544
- relation_mode: native
- backlog_sync_skip_reason:
- assigned_skills: [
model-checking,effect,tdd] - implementation_skill_guidance:
- skill:
model-checkingapplicable_behavior: Apply the new skill as written; any gap in it is a finding returned to T5's owner, not a silent workaround. - skill:
effectapplicable_behavior: Usereferences/PROPERTY_TESTING.mdfor the #381 property. - skill:
tddapplicable_behavior: The replay property's RED on pre-fix code is the evidence.
- skill:
- tdd_status: required
- tdd_target: The #381 equivalence property fails on the pre-fix commit.
- red_command:
bun run --cwd apps/backend vitest run src/features/knowledge-schemas-deploy/services/package-definitions/policies.property.test.tson the commit before the #381 fix - expected_red_failure: equivalence property falsified: updated policy body differs from a fresh install.
- green_command: not_applicable for the replay (no fix lands; RED is the evidence). The #402 Model check
npx --yes tsprover@0.0.2 apps/backend/src/features/knowledge-entity-change-log/change-log-resync.proof.tsrecords its exit status and trace; the Model path is confirmed against the #402 branch layout at dispatch - reason_not_testable:
- red_evidence: #381 property
policies.property.test.tsat201632666:Property falsified after 6 run(s) and 1 shrink(s), replay token[0,"6282430533648173",5,1,[2],"PropertyError"] - green_evidence: #402 Model
change-log-resync.proof.ts: faithful ✗noSilentGap(design finding); fix variant ✓ 26,984 states; Sensitivity Mutants M1–M3 each violate - codebase_design_notes: the Model is scoped to the change log + SSE resync service.
- review_mode: cli
- runtime_validation: not_required
- runtime_target: not_applicable
- runtime_evidence: not_applicable
- runtime_cleanup: not_applicable
- architecture_wave: A3
- behavior_owner: none (proof only)
- integration_surface: ci-app test suite
- public_seam: unchanged
- topology_delta: none
- forbidden_ownership: any ci-app merge
- temporary_seams: none
- responsibility_acceptance_criteria: [RAC-7]
T7: Ship the skills through the typescript Pack, sync, wiki and Baseline changelog
- depends_on: [T1, T2, T3, T4, T5, T6, T8]
- location: /home/stefan/.t3/worktrees/harness-intelligence/property-testing-delivery
- owned_paths: [apps/cli/src/data/catalog/skills.ts, apps/cli/src/data/catalog/packs.ts, apps/cli/src/registry/publisher/sources/packs.test.ts, apps/cli/src/registry/publisher/sources/skills.test.ts, apps/cli/scripts/sync-skills-repo.mjs, apps/cli/skills/, apps/wiki/content/docs/harness/skills-and-packs/, apps/wiki/content/docs/project/runbooks/hi-cli-scaffolding.md, apps/wiki/log.md, BASELINE_CHANGELOG.md]
- read_dependencies: [SPEC.md AC-020 AC-021, ARCHITECTURE.md ARC-012, memory "Skills sync release flow", root CLAUDE.md release classification]
- shared_runtime_resources: HI delivery branch worktree
- relevant_input_set: final skills
mainSHA after T6; sync tagsync/property-testing-delivery-<sha12> - wave_boundary: W4
- description: Push skills
main, tag the sync commit, move the sync pin, runbun run sync:skillsand verify the receipt SHA; add themodel-checkingcatalog entry (language: "typescript",tier: "language",sourceDirectory: "skills/languages/typescript/model-checking") and add it to thetypescriptPack; update the skill reference, Pack and graph wiki pages and the runbook pin; writeBASELINE_CHANGELOG.mdUnreleasedwith compatibility notes..agents/skillschanges only through a laterhi update. After Baseline publication, runhi diffin/home/stefan/repos/next-effect-appand record that it listsmodel-checkingand the changed skills. - validation: AC-020, AC-021; release classification selects Baseline only; the
hi diffevidence after publication. - status: Complete
- log: Task Gate passed 2026-10-29; see IMPLEMENTATION-NOTES Execution and Reconciliation.
- files edited/created: HI
29716a365: apps/cli/scripts/sync-skills-repo.mjs, apps/cli/src/data/catalog/{skills,packs}.ts, apps/cli/src/registry/publisher/sources/packs.test.ts, apps/cli/skills/** (35 files, 13 skills), apps/wiki skill-packs/skill-reference/skill-graph pages, runbook pin, apps/wiki/log.md, BASELINE_CHANGELOG.md - task_identity_mode: provider-task
- backlog_item_id: IP-545
- backlog_item_url: https://linear.app/devpunks/issue/IP-545
- relation_mode: native
- backlog_sync_skip_reason:
- assigned_skills: [
writing-for-agents,tdd,hi-cli,docs-ingest-phase] - implementation_skill_guidance:
- skill:
writing-for-agentsapplicable_behavior: Wiki and changelog text that agents read keeps one source of truth per meaning and links the skills instead of restating them. - skill:
tddapplicable_behavior: Extendpacks.test.ts/skills.test.tswithmodel-checkingin thetypescriptPack first; observe RED. - skill:
hi-cliapplicable_behavior: Follow the sync and Baseline release flow; verify the exact receipt SHA. - skill:
docs-ingest-phaseapplicable_behavior: Apply discovery bookkeeping to every changed routed page.
- skill:
- tdd_status: required
- tdd_target: The
typescriptPack publishesmodel-checking. - red_command:
bun run --cwd apps/cli vitest run --config vitest.config.ts src/registry/publisher/sources/packs.test.ts src/registry/publisher/sources/skills.test.ts - expected_red_failure:
pack-typescriptregistryDependenciesequal["lint-typescript-anti-slop", "skill-quality-types", "typegraph-runtime"](packs.test.ts:59), missingskill-model-checking. - green_command:
bun run --cwd apps/cli vitest run --config vitest.config.ts src/registry/publisher/sources/packs.test.ts src/registry/publisher/sources/skills.test.ts && bun run --cwd apps/cli check-types && bun run --cwd apps/cli lint && bun run --cwd apps/wiki check:health && bun run --cwd apps/wiki check:content && node apps/cli/scripts/classify-release-impact.mjs --base origin/main --head HEAD - reason_not_testable:
- red_evidence:
packs.test.ts:57:pack-typescriptregistryDependencies missingskill-model-checking - green_evidence: packs/skills tests 9/9; check-types, lint pass; wiki content current; classification
baseline(baseline-changelog) - codebase_design_notes: catalog data only; no CLI code change.
- review_mode: cli
- runtime_validation: not_required
- runtime_target: not_applicable
- runtime_evidence: not_applicable
- runtime_cleanup: not_applicable
- architecture_wave: A4
- behavior_owner: HI distribution
- integration_surface:
hi updatein consumer projects - public_seam:
typescriptPack membership - topology_delta:
typescriptPack gainsmodel-checking - forbidden_ownership: CLI package version; skill text edits (skills repo only)
- temporary_seams: none
- responsibility_acceptance_criteria: [RAC-8]
Backlog Sync
task_identity_mode: provider-taskfor every task. Linear Epic IP-534; Stories IP-535, IP-536, IP-537; Tasks IP-538–IP-545; milestoneV4.9 Property Testing in Delivery. Native blockers read back: IP-540, IP-541, IP-542 ⟵ IP-538; IP-543 ⟵ IP-538, IP-540, IP-542; IP-544 ⟵ IP-541, IP-542; IP-545 ⟵ IP-538–IP-544. The plan'sdepends_onequals these edges. IP-543 ⟵ IP-542 and IP-545 ⟵ IP-544 were added after plan review (2026-10-29) throughwrite-backlogand read back.
Dependency Readiness
Ready (copied from SPEC): tsprover@0.0.2, tla-ts@0.0.3,
effect@4.1.0, @effect/vitest@4.1.0 on npm; skills 348c3a3d672e.
Branch/Base Intent
Copied from SPEC: skills on main (no PR); HI on
team/stefan/property-testing-delivery from origin/main 7d869ace03d2
(one PR); ci-app throwaway branches (no PR, nothing merges).
Unresolved Questions
None. Non-material unknowns stay in ARCHITECTURE Parked Work
(configureGlobal option fields, lint rules on Models).