Harness Intelligence Wiki
SpecsCLIProperty Testing in Delivery

Property Testing in Delivery Plan

Plan: Property Testing in Delivery

Context Pointers

PointerIdentityFreshness rule
SPECSPEC.md @ d7372bf2, sha256 8fb49ea03f2d9a05…Re-verify bytes before each wave; a changed spec stops dispatch
ARCHITECTUREARCHITECTURE.md @ 44e28b23, sha256 546c125a5d052de5…Same; #spec-traceability maps every OUT/AC to ARC/FLOW and Q anchors
Grillstatus and log @ c6d14622405f (Q1–Q39, closed R4); delivery amendments Q40, Q41 in the logDecisions change only through requirements-grill
Glossarydomains/test-evidence-glossary.mdxCanonical terms; no renaming
Skills source/home/stefan/repos/skills on main at 348c3a3d672egit -C /home/stefan/repos/skills branch --show-current must print main before every skills edit
BacklogEpic IP-534, Stories IP-535–IP-537, Tasks IP-538–IP-545, milestone V4.9 Property Testing in DeliveryProvider 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-checking skill) and new cross-skill edges appear (create-architecture → model-checking; tdd and review-phase → model-checking when installed; model-checking → tdd). backend-domain-structure and frontend-domain-structure do 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 upstream 62f43a1) still has a Refactor step and no property, mutation or Model guidance.
  • effect has no Arbitrary or it.effect.prop guidance.
  • Grill axioms carry no check hint; SPEC-TEMPLATE.md has 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:

ChoiceValueReason
Contract tests for new skill textone new node --test file per new or changed skill groupMatches skills repo practice (tests/make-tsuite.contract.test.mjs)
model-checking invocationmodel-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 fileagents/openai.yaml like other model-invoked skillsRepo convention (frontend-domain-structure/agents/openai.yaml)
Model smoke evidencemanual npx --yes tsprover@0.0.2 run recorded in task evidence, not a contract testContract tests stay offline
Skills repo commitsthe 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 writingOne checkout, no worktrees (root CLAUDE.md); avoids index contention and half-written reads
Remote movement on skills mainbefore 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 committedgit pull --rebase refuses a dirty tree
Links into model-checkingT5 adds the tdd/properties.md link; T6 adds the review linkA link to a skill that does not exist yet fails tests/installed-skill-links.contract.test.mjs
Stale ask-hi referencesT1 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 phraseT6 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:77Same 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/skills main; HI work only on branch team/stefan/property-testing-delivery.
  • tdd/properties.md stays language-neutral; Effect API names live only in effect (SPEC Constraints).
  • tsprover@0.0.2 exact pin everywhere; Q40 (during T8) removed the separate tla-ts pin.
  • Baseline-only release: no apps/cli/package.json version 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; no tdd, effect or create-architecture contract test exists.
  • HI catalog: apps/cli/src/data/catalog/skills.ts entry shape { framework, id, language, requiresTools, sourceDirectory, tier } (quality-types at :777); typescript Pack in apps/cli/src/data/catalog/packs.ts lists skills: ["quality-types"]; tests src/registry/publisher/sources/{packs,skills}.test.ts.
  • Sync pin: apps/cli/scripts/sync-skills-repo.mjs:21-22; runbook apps/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-phase owns 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.
  • 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-research and planning-discovery skipped: the grill grounded every path; no open readonly question remains. plan-reviewer runs 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: tdd naming Effect APIs; pipeline skills restating the pattern table or the Sensitivity Proof steps; any skill pinning tsprover/tla-ts except model-checking and create-architecture (its check command).

Responsibility Acceptance Criteria

criterion_idOwnerObservable assertionEvidencedue_architecture_wave
RAC-1tddproperties.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.mjsA1
RAC-2requirements-grill, ask-hiGLOSSARY-MAP.md step; gap removed (AC-019)cd /home/stefan/repos/skills && node --test tests/routed-glossary-consumers.contract.test.mjsA1
RAC-3carry-down skillsaxiom 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.mjsA2
RAC-4effectPROPERTY_TESTING.md content and pointers (AC-011, AC-012)cd /home/stefan/repos/skills && node --test tests/effect-property-testing.contract.test.mjsA2
RAC-5model-checking, create-architectureskill 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 smokeA2
RAC-6review, make-tsuite, debuggingSpec 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.mjsA3
RAC-7ci-app proof#402 Model result, #381 replay failure (AC-022, AC-023)recorded outputs in IMPLEMENTATION-NOTESA3
RAC-8HI distributionPack 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 skillsA4

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 empty

Public Seam Contract

SeamOwnerAllowed consumers
Form values example | property | stateful-property | model | typetdd/properties.mdSPEC template, plan schema, review
sensitivity_evidence field and parent_required markertdd/sensitivity.mdplan schema, worker Task Result, parent Task Gate, review
## Spec Invariants table and INV-nnncreate-spec templatecreate-plan, review
## Models tablecreate-architecture templatereview, plan task that moves Models
check:models script namemodel-checkingconsumer CI
GLOSSARY-MAP.md formatrequirements-grill wiki-outputdomain-modeling, wait-what (unchanged)

Migration Ledger

Empty. No temporary seam is planned.

Dependency Graph and Waves

TnProvider TaskStorydepends_onwave_boundaryarchitecture_wave
T1IP-538IP-535—W1A1
T2IP-539IP-535—W1A1
T3IP-540IP-535T1W2A2
T4IP-541IP-536T1W2A2
T5IP-542IP-536T1W2A2
T6IP-543IP-535T1, T3, T5W3A3
T8IP-544IP-537T4, T5W3A3
T7IP-545IP-537T1, T2, T3, T4, T5, T6, T8W4A4

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.2 must 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

RiskMitigation
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 behaviorExact pins; pin-bump rule (Q38)
effect latest moves past 4.1.0 during deliveryT4 re-reads npm view effect dist-tags and the installed types before writing
Contract tests become shape-only checksEach test asserts accepted meaning (patterns, steps, field names) from the AC text, not mere file existence
ci-app pilot needs a running stackModels 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.mjs before the parent commits a skills task; for T7 also bun run --cwd apps/cli check-types and bun 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 59db609 tdd/SKILL.md]
  • shared_runtime_resources: skills repo main checkout (parent commits)
  • relevant_input_set: SPEC and ARCHITECTURE Context Pointers; hash tdd/*.md at dispatch
  • wave_boundary: W1
  • description: Add properties.md and sensitivity.md; add the "a test that never failed is not evidence" line beside the Hard Law; remove Workflow §4 Refactor and refactoring.md; description "red-green"; Tautological anti-pattern with the oracle warning in high-signal-tests.md; record adaptations in UPSTREAM.md; update ask-hi/references/delivery.md:44,50 (red-green; no refactoring.md). The Model trace → Pinned Replay section names no skill yet; T5 adds the model-checking link.
  • 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-agents applicable_behavior: Keep SKILL.md steps 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: tdd applicable_behavior: Write the contract test first and observe it fail on the missing files and lines.
    • skill: codebase-design applicable_behavior: State properties at the public seam; the interface is the test surface.
  • tdd_status: required
  • tdd_target: tdd ships properties.md with nine patterns and sensitivity.md with five steps.
  • red_command: cd /home/stefan/repos/skills && node --test tests/tdd-property-testing.contract.test.mjs
  • expected_red_failure: ENOENT for skills/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: tdd is 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; tsprover commands
  • 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 main checkout (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 its domains/<context>-glossary.mdx path) whenever it publishes a glossary page; delete the glossary-location bullet from known-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-agents applicable_behavior: One step with a checkable completion criterion (the map lists every published glossary page).
    • skill: tdd applicable_behavior: Extend the glossary contract test first; observe RED.
    • skill: domain-modeling applicable_behavior: Match the upstream GLOSSARY-MAP.md format exactly so domain-modeling reads it unchanged.
  • tdd_status: required
  • tdd_target: wiki-output.md names GLOSSARY-MAP.md and known-gaps.md lacks 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.md mentions GLOSSARY-MAP.md fails.
  • 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-grill close wiki synthesis
  • integration_surface: domain-modeling, wait-what
  • public_seam: GLOSSARY-MAP.md format
  • 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.md Form values]
  • shared_runtime_resources: skills repo main checkout (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 Invariants after ## Acceptance Criteria with the accepted columns, Form values and "none" rule, and the INV-nnn assignment rule; add test_form, invariant_refs, sensitivity_evidence to the plan field list, example task, TDD shaping and the create-plan/SKILL.md step 10 field list; carry them in the worker Task Result and the TDD completion contract; add the parent Task Gate git diff --quiet check on every recorded Mutant file and the parent_required handling.
  • 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-agents applicable_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 outside tdd.
    • skill: tdd applicable_behavior: Write the carry-down contract test first; observe RED.
  • tdd_status: required
  • tdd_target: SPEC template has ## Spec Invariants with 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 Invariants heading in SPEC-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.md is 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@latest dist/Arbitrary.d.ts, @effect/vitest@latest dist/index.d.ts, T1 tdd/properties.md]
  • shared_runtime_resources: skills repo main checkout (parent commits); scratch npm install under mktemp -d, removed after reading
  • relevant_input_set: effect latest version at dispatch; T1 commit SHA
  • wave_boundary: W2
  • description: New references/PROPERTY_TESTING.md with the accepted content list; Branch Chooser line in SKILL.md; pointer in references/TESTING.md; opensrc check for other versions; no beta-names note; confirm configureGlobal option fields through opensrc before naming any.
  • validation: AC-011, AC-012; every API name matches the latest types.
  • 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-agents applicable_behavior: Disclosed reference behind one Branch Chooser pointer whose wording names property tests, Arbitrary and it.effect.prop; link tdd/properties.md for patterns instead of restating them.
    • skill: tdd applicable_behavior: Write the effect contract test first; observe RED.
    • skill: effect applicable_behavior: Use the installed latest source through opensrc for every API name.
  • tdd_status: required
  • tdd_target: PROPERTY_TESTING.md names Arbitrary.schema, it.effect.prop, Schema.Finite and { arbitrary: { runs: 25 } }.
  • red_command: cd /home/stefan/repos/skills && node --test tests/effect-property-testing.contract.test.mjs
  • expected_red_failure: ENOENT for skills/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 assertion actual: 0
  • green_evidence: 3/3 pass; 20/20 across effect-reading tests; every API name verified in effect@4.1.0 d.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 → tdd link 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.2 README, Brief §6 smoke test, T1 tdd/sensitivity.md]
  • shared_runtime_resources: skills repo main checkout (parent commits); scratch directory under mktemp -d for the Model smoke, removed after use
  • relevant_input_set: T1 commit SHA; tsprover@0.0.2 README bytes; T3 and T4 read tdd/properties.md but do not write it
  • wave_boundary: W2
  • description: New model-invoked model-checking skill (SKILL.md with trigger-branch description, agents/openai.yaml) with the accepted content list; create-architecture step between flow-lenses and compile, ## Models template section, architecture-not-ready on a violation with the trace as an L2 compile gap; add the "when installed" model-checking link to tdd/properties.md; list model-checking in the typescript Pack rows of ask-hi/references/baseline.md:92 and discovery-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-agents applicable_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 (tsprover exit status).
    • skill: tdd applicable_behavior: Write the model-checking contract test first; observe RED; record the Model smoke as Sensitivity Proof evidence.
    • skill: codebase-design applicable_behavior: A Model is scoped to one service; the composition file is the map.
  • tdd_status: required
  • tdd_target: model-checking/SKILL.md exists with the exact pins and create-architecture has the Model step.
  • red_command: cd /home/stefan/repos/skills && node --test tests/model-checking.contract.test.mjs
  • expected_red_failure: ENOENT for skills/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), @fair removed ✗ isPending
  • codebase_design_notes: the skill owns pins and commands; create-architecture calls 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-checking edge
  • 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 main checkout (parent commits)
  • relevant_input_set: T1, T3 and T5 commit SHAs
  • wave_boundary: W3
  • description: One "Unsupported evidence" bullet (test_gap) in axis-spec.md, which calls model-checking when installed for the Model-drift check; merge rule in audit-portfolio.md; replace "a mutation in a disposable copy" at implement-suite.md:27 and audit-portfolio.md:39 with the tdd/sensitivity.md link and update tests/make-tsuite.contract.test.mjs:77; debugging-phase step 7 property bullet.
  • validation: AC-016–AC-018; review-phase script 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-agents applicable_behavior: Each addition is one bullet or sentence that points to tdd; no restated procedure; prohibitions paired with the positive target.
    • skill: tdd applicable_behavior: Write the evidence-checks contract test and the make-tsuite assertion first; observe RED.
    • skill: make-tsuite applicable_behavior: Keep the existing disposition set; the merge rule refines merge, it adds no disposition.
  • tdd_status: required
  • tdd_target: axis-spec.md reports a first-run-pass test without sensitivity_evidence as test_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_evidence in axis-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 tdd and 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_gap finding
  • 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-model and pilot/property-testing-381-replay only; 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-checking and effect PROPERTY_TESTING.md and tdd at 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-checking guidance and run tsprover; 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-checking applicable_behavior: Apply the new skill as written; any gap in it is a finding returned to T5's owner, not a silent workaround.
    • skill: effect applicable_behavior: Use references/PROPERTY_TESTING.md for the #381 property.
    • skill: tdd applicable_behavior: The replay property's RED on pre-fix code is the evidence.
  • 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.ts on 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.ts records 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.ts at 201632666: 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 main SHA after T6; sync tag sync/property-testing-delivery-<sha12>
  • wave_boundary: W4
  • description: Push skills main, tag the sync commit, move the sync pin, run bun run sync:skills and verify the receipt SHA; add the model-checking catalog entry (language: "typescript", tier: "language", sourceDirectory: "skills/languages/typescript/model-checking") and add it to the typescript Pack; update the skill reference, Pack and graph wiki pages and the runbook pin; write BASELINE_CHANGELOG.md Unreleased with compatibility notes. .agents/skills changes only through a later hi update. After Baseline publication, run hi diff in /home/stefan/repos/next-effect-app and record that it lists model-checking and the changed skills.
  • validation: AC-020, AC-021; release classification selects Baseline only; the hi diff evidence 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-agents applicable_behavior: Wiki and changelog text that agents read keeps one source of truth per meaning and links the skills instead of restating them.
    • skill: tdd applicable_behavior: Extend packs.test.ts/skills.test.ts with model-checking in the typescript Pack first; observe RED.
    • skill: hi-cli applicable_behavior: Follow the sync and Baseline release flow; verify the exact receipt SHA.
    • skill: docs-ingest-phase applicable_behavior: Apply discovery bookkeeping to every changed routed page.
  • tdd_status: required
  • tdd_target: The typescript Pack publishes model-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-typescript registryDependencies equal ["lint-typescript-anti-slop", "skill-quality-types", "typegraph-runtime"] (packs.test.ts:59), missing skill-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-typescript registryDependencies missing skill-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 update in consumer projects
  • public_seam: typescript Pack membership
  • topology_delta: typescript Pack gains model-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-task for every task. Linear Epic IP-534; Stories IP-535, IP-536, IP-537; Tasks IP-538–IP-545; milestone V4.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's depends_on equals these edges. IP-543 ⟵ IP-542 and IP-545 ⟵ IP-544 were added after plan review (2026-10-29) through write-backlog and 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).

On this page