coding-agent-harness 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/LICENSE +21 -0
  3. package/README.md +141 -0
  4. package/SKILL.md +423 -0
  5. package/docs-release/README.md +30 -0
  6. package/docs-release/architecture/overview.md +52 -0
  7. package/docs-release/guides/agent-installation.md +139 -0
  8. package/examples/minimal-project/.harness-capabilities.json +8 -0
  9. package/examples/minimal-project/AGENTS.md +4 -0
  10. package/examples/minimal-project/CLAUDE.md +3 -0
  11. package/examples/minimal-project/docs/09-PLANNING/TASKS/demo-task/execution_strategy.md +10 -0
  12. package/examples/minimal-project/docs/09-PLANNING/TASKS/demo-task/progress.md +11 -0
  13. package/examples/minimal-project/docs/09-PLANNING/TASKS/demo-task/review.md +27 -0
  14. package/examples/minimal-project/docs/09-PLANNING/TASKS/demo-task/task_plan.md +14 -0
  15. package/examples/minimal-project/docs/09-PLANNING/TASKS/demo-task/visual_roadmap.md +11 -0
  16. package/examples/minimal-project/docs/Harness-Ledger.md +6 -0
  17. package/package.json +34 -0
  18. package/references/adversarial-review-standard.md +173 -0
  19. package/references/agents-md-pattern.md +140 -0
  20. package/references/cadence-ledger.md +55 -0
  21. package/references/ci-cd-standard.md +90 -0
  22. package/references/delivery-operating-model-standard.md +145 -0
  23. package/references/docs-directory-standard.md +125 -0
  24. package/references/harness-ledger.md +148 -0
  25. package/references/lessons-governance.md +157 -0
  26. package/references/long-running-task-standard.md +209 -0
  27. package/references/module-parallel-standard.md +292 -0
  28. package/references/planning-loop.md +192 -0
  29. package/references/project-onboarding-audit.md +167 -0
  30. package/references/regression-system.md +89 -0
  31. package/references/repo-governance-standard.md +131 -0
  32. package/references/review-routing-standard.md +103 -0
  33. package/references/ssot-governance.md +111 -0
  34. package/references/walkthrough-closeout.md +135 -0
  35. package/references/worktree-parallel.md +184 -0
  36. package/scripts/check-harness.mjs +728 -0
  37. package/scripts/harness.mjs +201 -0
  38. package/scripts/lib/dashboard-writer.mjs +95 -0
  39. package/scripts/lib/harness-core.mjs +1318 -0
  40. package/scripts/smoke-dashboard.mjs +70 -0
  41. package/scripts/test-harness.mjs +482 -0
  42. package/templates/AGENTS.md.template +82 -0
  43. package/templates/CLAUDE.md.template +12 -0
  44. package/templates/dashboard/assets/app.css +399 -0
  45. package/templates/dashboard/assets/app.js +435 -0
  46. package/templates/dashboard/assets/i18n.js +47 -0
  47. package/templates/dashboard/assets/markdown-reader.js +116 -0
  48. package/templates/dashboard/assets/mermaid-renderer.js +59 -0
  49. package/templates/dashboard/index.html +18 -0
  50. package/templates/ledger/Harness-Ledger.md +39 -0
  51. package/templates/lessons/lesson-arch-process-change.md +47 -0
  52. package/templates/lessons/lesson-new-doc.md +50 -0
  53. package/templates/lessons/lesson-ref-change.md +45 -0
  54. package/templates/planning/execution_strategy.md +40 -0
  55. package/templates/planning/findings.md +24 -0
  56. package/templates/planning/long-running-task-contract.md +69 -0
  57. package/templates/planning/module_plan.md +36 -0
  58. package/templates/planning/module_session_prompt.md +39 -0
  59. package/templates/planning/optional/artifacts/INDEX.md +12 -0
  60. package/templates/planning/optional/references/INDEX.md +13 -0
  61. package/templates/planning/optional/slices/_slice-template/brief.md +27 -0
  62. package/templates/planning/optional/slices/_slice-template/evidence.md +9 -0
  63. package/templates/planning/optional/slices/_slice-template/review.md +31 -0
  64. package/templates/planning/progress.md +33 -0
  65. package/templates/planning/review.md +48 -0
  66. package/templates/planning/task_plan.md +86 -0
  67. package/templates/planning/visual_roadmap.md +28 -0
  68. package/templates/reference/adversarial-review-standard.md +28 -0
  69. package/templates/reference/ci-cd-standard.md +28 -0
  70. package/templates/reference/delivery-operating-model-standard.md +28 -0
  71. package/templates/reference/docs-library-standard.md +28 -0
  72. package/templates/reference/engineering-standard.md +29 -0
  73. package/templates/reference/execution-workflow-standard.md +29 -0
  74. package/templates/reference/harness-ledger-standard.md +26 -0
  75. package/templates/reference/long-running-task-standard.md +28 -0
  76. package/templates/reference/regression-ssot-governance.md +28 -0
  77. package/templates/reference/repo-governance-standard.md +29 -0
  78. package/templates/reference/review-routing-standard.md +29 -0
  79. package/templates/reference/testing-standard.md +28 -0
  80. package/templates/reference/walkthrough-standard.md +28 -0
  81. package/templates/reference/worktree-standard.md +28 -0
  82. package/templates/regression/Cadence-Ledger.md +41 -0
  83. package/templates/ssot/Delivery-SSoT.md +43 -0
  84. package/templates/ssot/Feature-SSoT.md +43 -0
  85. package/templates/ssot/Lessons-SSoT.md +44 -0
  86. package/templates/ssot/Module-Registry.md +43 -0
  87. package/templates/ssot/Regression-SSoT.md +51 -0
  88. package/templates/verifier/verifier-output.md +43 -0
  89. package/templates/walkthrough/Closeout-SSoT.md +43 -0
  90. package/templates/walkthrough/walkthrough-template.md +63 -0
  91. package/templates-zh-CN/AGENTS.md.template +92 -0
  92. package/templates-zh-CN/CLAUDE.md.template +12 -0
  93. package/templates-zh-CN/dashboard/assets/app.css +399 -0
  94. package/templates-zh-CN/dashboard/assets/app.js +435 -0
  95. package/templates-zh-CN/dashboard/assets/i18n.js +47 -0
  96. package/templates-zh-CN/dashboard/assets/markdown-reader.js +116 -0
  97. package/templates-zh-CN/dashboard/assets/mermaid-renderer.js +59 -0
  98. package/templates-zh-CN/dashboard/index.html +18 -0
  99. package/templates-zh-CN/ledger/Harness-Ledger.md +50 -0
  100. package/templates-zh-CN/lessons/lesson-arch-process-change.md +47 -0
  101. package/templates-zh-CN/lessons/lesson-new-doc.md +49 -0
  102. package/templates-zh-CN/lessons/lesson-ref-change.md +59 -0
  103. package/templates-zh-CN/planning/execution_strategy.md +37 -0
  104. package/templates-zh-CN/planning/findings.md +24 -0
  105. package/templates-zh-CN/planning/long-running-task-contract.md +118 -0
  106. package/templates-zh-CN/planning/module_plan.md +43 -0
  107. package/templates-zh-CN/planning/module_session_prompt.md +70 -0
  108. package/templates-zh-CN/planning/optional/artifacts/INDEX.md +13 -0
  109. package/templates-zh-CN/planning/optional/references/INDEX.md +13 -0
  110. package/templates-zh-CN/planning/optional/slices/_slice-template/brief.md +35 -0
  111. package/templates-zh-CN/planning/optional/slices/_slice-template/evidence.md +12 -0
  112. package/templates-zh-CN/planning/optional/slices/_slice-template/review.md +37 -0
  113. package/templates-zh-CN/planning/progress.md +29 -0
  114. package/templates-zh-CN/planning/review.md +69 -0
  115. package/templates-zh-CN/planning/task_plan.md +116 -0
  116. package/templates-zh-CN/planning/visual_roadmap.md +24 -0
  117. package/templates-zh-CN/reference/adversarial-review-standard.md +89 -0
  118. package/templates-zh-CN/reference/ci-cd-standard.md +72 -0
  119. package/templates-zh-CN/reference/delivery-operating-model-standard.md +79 -0
  120. package/templates-zh-CN/reference/docs-library-standard.md +59 -0
  121. package/templates-zh-CN/reference/engineering-standard.md +80 -0
  122. package/templates-zh-CN/reference/execution-workflow-standard.md +81 -0
  123. package/templates-zh-CN/reference/harness-ledger-standard.md +91 -0
  124. package/templates-zh-CN/reference/long-running-task-standard.md +156 -0
  125. package/templates-zh-CN/reference/regression-ssot-governance.md +82 -0
  126. package/templates-zh-CN/reference/repo-governance-standard.md +84 -0
  127. package/templates-zh-CN/reference/review-routing-standard.md +82 -0
  128. package/templates-zh-CN/reference/testing-standard.md +72 -0
  129. package/templates-zh-CN/reference/walkthrough-standard.md +83 -0
  130. package/templates-zh-CN/reference/worktree-standard.md +116 -0
  131. package/templates-zh-CN/regression/Cadence-Ledger.md +48 -0
  132. package/templates-zh-CN/ssot/Delivery-SSoT.md +60 -0
  133. package/templates-zh-CN/ssot/Feature-SSoT.md +49 -0
  134. package/templates-zh-CN/ssot/Lessons-SSoT.md +49 -0
  135. package/templates-zh-CN/ssot/Module-Registry.md +48 -0
  136. package/templates-zh-CN/ssot/Regression-SSoT.md +51 -0
  137. package/templates-zh-CN/verifier/verifier-output.md +38 -0
  138. package/templates-zh-CN/walkthrough/Closeout-SSoT.md +42 -0
  139. package/templates-zh-CN/walkthrough/walkthrough-template.md +62 -0
@@ -0,0 +1,28 @@
1
+ # [Task Name] - Visual Roadmap
2
+
3
+ ## Phase Graph
4
+
5
+ ```mermaid
6
+ flowchart LR
7
+ PH01["PH-01 Plan"] --> PH02["PH-02 Implement"]
8
+ PH02 --> PH03["PH-03 Verify"]
9
+ PH03 --> PH04["PH-04 Review and Closeout"]
10
+ ```
11
+
12
+ ## Phase Table
13
+
14
+ | Phase ID | Depends On | State | Completion | Output | Required Evidence | Evidence Status | Blocking Risk | Owner / Handoff |
15
+ | --- | --- | --- | ---: | --- | --- | --- | --- | --- |
16
+ | PH-01 | none | planned | 0 | Approved task plan and execution strategy | `task_plan.md`, `execution_strategy.md` | missing | none | coordinator |
17
+ | PH-02 | PH-01 | planned | 0 | Scoped implementation or document update | diff, worker handoff, or artifact path | missing | [risk] | [owner] |
18
+ | PH-03 | PH-02 | planned | 0 | Verification evidence | commands, logs, screenshots, or runtime proof | missing | [risk] | [owner] |
19
+ | PH-04 | PH-03 | planned | 0 | Review disposition and closeout updates | `review.md`, progress update, ledger updates | missing | [risk] | coordinator |
20
+
21
+ Allowed Evidence Status: missing, partial, present, waived.
22
+
23
+ ## Roadmap Notes
24
+
25
+ - Use `missing` when no evidence has been checked.
26
+ - Use `partial` when some evidence exists but required checks remain.
27
+ - Use `present` when the phase has sufficient evidence for its current claim.
28
+ - Use `waived` only when the reason and owner are recorded in `progress.md`.
@@ -0,0 +1,28 @@
1
+ # Adversarial Review Standard
2
+
3
+ ## Purpose
4
+
5
+ Define how plans, code changes, evidence, and closeout claims are challenged before work is accepted.
6
+
7
+ ## Rules
8
+
9
+ 1. Use adversarial review for high-risk changes, cross-cutting architecture, data migration, security-sensitive work, release blockers, and long-running tasks.
10
+ 2. Reviewers must act from an explicit `Reviewer Identity`, such as product risk reviewer, architecture reviewer, security reviewer, testing reviewer, or operator reviewer.
11
+ 3. Every review must include a `Confidence Challenge`: what assumption could be wrong, what evidence would disprove the claim, and what failure mode remains plausible.
12
+ 4. Findings must be classified as material or non-material. Material findings block closeout until closed with evidence, mitigated, classified as accepted-risk with owner rationale, or routed to a scoped follow-up.
13
+ 5. A reviewer may not accept a claim based only on implementation narration. The review must cite `Evidence Checked`.
14
+ 6. The owner must respond to each material finding with fix evidence, explicit rejection rationale, or a scoped follow-up.
15
+ 7. Closeout must include `Final Confidence Basis`, not just "review passed".
16
+
17
+ ## Required Artifacts
18
+
19
+ - Review record with `Reviewer Identity`, review scope, and date.
20
+ - `Confidence Challenge` section.
21
+ - Findings table with severity, materiality, file or artifact reference, owner response, and status.
22
+ - `Evidence Checked` list containing commands, test runs, screenshots, logs, PR links, or document paths.
23
+ - Residual risk section for anything intentionally left open.
24
+ - Final reviewer disposition: closed, closed-with-residual, or blocked.
25
+
26
+ ## Closeout Expectations
27
+
28
+ Adversarial review is complete only when material findings are resolved or explicitly carried as residuals, the checked evidence is reproducible, and the closeout record explains why the final confidence is adequate for the delivery risk.
@@ -0,0 +1,28 @@
1
+ # CI/CD Standard
2
+
3
+ ## Purpose
4
+
5
+ Define the continuous integration and deployment expectations that protect the repository from unverified changes and unsafe releases.
6
+
7
+ ## Rules
8
+
9
+ 1. Required checks must cover the project's real risk surface: build, lint, type checks, unit tests, integration tests, smoke tests, security scans, packaging, and deployment validation where applicable.
10
+ 2. CI configuration is product code. Changes to workflows, secrets, permissions, runners, release scripts, or deployment targets require review and evidence.
11
+ 3. A failing required check blocks merge unless the owner records an approved exception with scope, reason, expiry, and residual risk.
12
+ 4. Secrets must be referenced through the repository's approved secret store. Do not commit credentials, tokens, private keys, or generated environment dumps.
13
+ 5. Deployment jobs must identify the target environment, artifact version, rollback path, and post-deploy verification.
14
+ 6. Flaky checks must be tracked as defects. Re-running CI is not a substitute for diagnosis when the same failure pattern repeats.
15
+ 7. CI evidence used for closeout must be fresh enough for the submitted change set.
16
+
17
+ ## Required Checklist
18
+
19
+ - Required checks are named and mapped to the risks they cover.
20
+ - Branch protection or merge policy is documented.
21
+ - Secrets, permissions, and deployment environments have owners.
22
+ - Release artifacts are traceable to commit SHA or version.
23
+ - Rollback or remediation path is known before production deployment.
24
+ - CI failure exceptions include owner, expiry, evidence, and residual.
25
+
26
+ ## Closeout Expectations
27
+
28
+ Closeout must list the required checks that passed, any checks not run, the reason for each omission, and the residual risk. Deployment closeout must include post-deploy evidence from the target environment.
@@ -0,0 +1,28 @@
1
+ # Delivery Operating Model Standard
2
+
3
+ ## Purpose
4
+
5
+ Define how work is organized across owners, agents, branches, reviews, and release gates before implementation starts.
6
+
7
+ ## Rules
8
+
9
+ 1. Select the operating model before coding: solo owner, coordinator plus workers, review-only workers, or release steward model.
10
+ 2. Work must have a named coordinator when multiple agents or humans touch related surfaces.
11
+ 3. Shared files, global styles, build configuration, schemas, and release scripts require coordinator ownership. Workers must not make unplanned edits to shared surfaces.
12
+ 4. Parallel work must be split by low-conflict boundaries such as module, route, package, document area, or test surface.
13
+ 5. Each worker must have a scope statement, allowed paths, forbidden paths, expected artifacts, and handoff format.
14
+ 6. The coordinator owns final merge, conflict resolution, evidence consolidation, and residual risk summary.
15
+ 7. The operating model must identify which decisions can be made by workers and which require coordinator approval.
16
+
17
+ ## Required Artifacts
18
+
19
+ - Delivery model statement in the task plan.
20
+ - Scope map for each owner or worker.
21
+ - Shared-surface ownership list.
22
+ - Handoff requirements for code, tests, review notes, and evidence.
23
+ - Merge and release gate checklist.
24
+ - Residual risk owner for unresolved items.
25
+
26
+ ## Closeout Expectations
27
+
28
+ Closeout must show that all worker handoffs were reviewed, shared-surface changes were reconciled by the coordinator, required checks were run from the integration branch, and remaining residuals have owners.
@@ -0,0 +1,28 @@
1
+ # Docs Library Standard
2
+
3
+ ## Purpose
4
+
5
+ Define how the project documentation library is organized so agents can find current standards, plans, evidence, and historical context without relying on chat history.
6
+
7
+ ## Rules
8
+
9
+ 1. Keep `AGENTS.md` as the routing and charter entry point. Store durable policy in reference documents, not in scattered prompts.
10
+ 2. Keep active task plans under the planning area and stable operating standards under the reference area.
11
+ 3. Each durable document must state its purpose, owner or maintenance rule, and when an agent should read it.
12
+ 4. Link to source artifacts instead of copying long logs or duplicating facts across files.
13
+ 5. Archive stale records instead of deleting them when they explain historical decisions.
14
+ 6. Do not mix private runtime state, credentials, personal notes, or generated caches into the public docs library.
15
+ 7. Documentation updates that change process or behavior must be reflected in the relevant index or routing file.
16
+
17
+ ## Required Checklist
18
+
19
+ - Entry points identify current reference standards, planning templates, SSoT files, walkthroughs, and ledgers.
20
+ - Active documents have clear names and stable paths.
21
+ - Archive boundaries are documented.
22
+ - Generated or private artifacts are excluded or explicitly separated.
23
+ - Cross-links point to the source of truth for each subject.
24
+ - New standards include closeout and evidence expectations.
25
+
26
+ ## Closeout Expectations
27
+
28
+ Documentation closeout must list changed docs, state whether routing indexes were updated, identify any obsolete docs archived or left in place, and record residual documentation gaps.
@@ -0,0 +1,29 @@
1
+ # Engineering Standard
2
+
3
+ ## Purpose
4
+
5
+ Define baseline engineering expectations for code, configuration, tests, and maintainability in this repository.
6
+
7
+ ## Rules
8
+
9
+ 1. Prefer the repository's existing architecture, language, framework, and helper patterns over new abstractions.
10
+ 2. Keep changes scoped to the task. Do not refactor unrelated code or clean up unrelated files during feature work.
11
+ 3. Design changes around clear ownership boundaries: module, package, API, data contract, UI surface, or operational script.
12
+ 4. Treat configuration, migrations, generated artifacts, and scripts as first-class engineering surfaces with review and tests where risk warrants it.
13
+ 5. Make behavior explicit through typed contracts, structured data, schema validation, or tests rather than fragile string conventions.
14
+ 6. Avoid hidden global state, broad side effects, and undocumented environment assumptions.
15
+ 7. Include observability or diagnostics when a failure would otherwise be hard to explain.
16
+
17
+ ## Required Checklist
18
+
19
+ - Scope and ownership boundary are clear.
20
+ - Existing local patterns were followed or the departure is justified.
21
+ - User-facing or API-facing behavior has tests or documented verification.
22
+ - Error handling covers expected failure modes.
23
+ - Configuration and environment assumptions are documented.
24
+ - Security, privacy, and data-retention implications were considered when relevant.
25
+ - Residual technical debt is recorded with owner and reason.
26
+
27
+ ## Closeout Expectations
28
+
29
+ Engineering closeout must name the changed surfaces, summarize the behavioral impact, list verification evidence, and identify any residual risk or follow-up that should not be hidden inside implementation notes.
@@ -0,0 +1,29 @@
1
+ # Execution Workflow Standard
2
+
3
+ ## Purpose
4
+
5
+ Define the standard lifecycle for non-trivial work from intake through planning, implementation, verification, review, and closeout.
6
+
7
+ ## Rules
8
+
9
+ 1. Start by identifying goal, scope, constraints, allowed paths, forbidden paths, acceptance criteria, and expected evidence.
10
+ 2. Create or update a task plan before implementation when the work spans multiple files, multiple agents, external systems, or user-facing behavior.
11
+ 3. Record important discoveries in the task artifacts instead of relying on transient chat context.
12
+ 4. Implement in small reviewable slices and keep the plan current when scope changes.
13
+ 5. Run checks that match the risk surface before claiming completion.
14
+ 6. Route material findings through review and do not bury unresolved issues in summaries.
15
+ 7. Close the loop by updating walkthrough, SSoT, regression, ledger, or docs artifacts when the work changes durable project knowledge.
16
+
17
+ ## Required Checklist
18
+
19
+ - Goal, scope, acceptance criteria, and constraints are written down.
20
+ - Current repo state and ownership boundaries were checked.
21
+ - Implementation notes identify changed surfaces.
22
+ - Required checks and evidence are captured.
23
+ - Review status and material findings are recorded.
24
+ - Residuals are explicit and assigned.
25
+ - Closeout artifacts are updated when required.
26
+
27
+ ## Closeout Expectations
28
+
29
+ Closeout must provide a concise change summary, evidence checked, checks not run with reasons, review outcome, residual risk, and any durable docs or ledger updates made during the task.
@@ -0,0 +1,26 @@
1
+ # Harness Ledger Standard
2
+
3
+ ## Purpose
4
+
5
+ Define when and how the Harness Ledger records durable changes to the agent operating system for this project.
6
+
7
+ ## Rules
8
+
9
+ 1. Update the Harness Ledger when a task changes standards, routing, planning workflow, review workflow, regression gates, ownership boundaries, or reusable lessons.
10
+ 2. The ledger is not a daily diary. It records durable operating context that future agents need in order to avoid repeating discovery work.
11
+ 3. Each ledger entry must identify the task, date, changed harness surface, evidence, and follow-up owner if any.
12
+ 4. Keep entries short and link to task plans, walkthroughs, pull requests, review records, or evidence files.
13
+ 5. Do not store secrets, personal data, large logs, or raw generated output in the ledger.
14
+ 6. If a lesson changes a reference standard, record both the lesson and the reference update.
15
+ 7. If no ledger update is needed, closeout should say why.
16
+
17
+ ## Required Artifacts
18
+
19
+ - Ledger entry for durable harness changes.
20
+ - Links to changed standards, SSoT files, walkthroughs, or PRs.
21
+ - Evidence reference for the change.
22
+ - Residual or follow-up owner when the harness change is partial.
23
+
24
+ ## Closeout Expectations
25
+
26
+ Task closeout must state whether the Harness Ledger was updated. When updated, cite the entry. When not updated, explain that the task did not change durable harness behavior.
@@ -0,0 +1,28 @@
1
+ # Long-Running Task Standard
2
+
3
+ ## Purpose
4
+
5
+ Define the contract required before an agent performs extended autonomous work across multiple steps, files, checks, or reviews.
6
+
7
+ ## Rules
8
+
9
+ 1. A long-running task requires an explicit contract before execution begins.
10
+ 2. The contract must define goal, scope, allowed paths, forbidden paths, acceptance criteria, expected evidence, review cadence, pause conditions, and stop conditions.
11
+ 3. The agent must keep progress in task artifacts, not only in chat messages.
12
+ 4. Material scope changes require contract update or user confirmation before continuing.
13
+ 5. The agent must preserve unrelated user or worker changes and must not revert files outside its scope.
14
+ 6. Review checkpoints must challenge direction, evidence quality, and residual risk before final closeout.
15
+ 7. Completion requires verification evidence and a closeout record, not just implementation completion.
16
+
17
+ ## Required Artifacts
18
+
19
+ - Long-running task contract.
20
+ - Task plan with current state, active slice, and acceptance criteria.
21
+ - Progress log or checklist.
22
+ - Findings or review record with material findings.
23
+ - Evidence list with commands, test results, screenshots, logs, or affected paths.
24
+ - Residual risk and follow-up section.
25
+
26
+ ## Closeout Expectations
27
+
28
+ Closeout must confirm the contract scope was honored, list evidence checked, identify checks not run, resolve or record material findings, and state the final residual risk. If the task stopped early, closeout must explain the stop condition and next safe action.
@@ -0,0 +1,28 @@
1
+ # Regression SSoT Governance
2
+
3
+ ## Purpose
4
+
5
+ Define how regression knowledge is added, maintained, retired, and used as release evidence.
6
+
7
+ ## Rules
8
+
9
+ 1. The Regression SSoT is the source of truth for critical surfaces, required checks, cadence, owners, and known gaps.
10
+ 2. Add or update regression entries when a bug escapes, a user-facing workflow changes, a contract changes, or a new critical surface appears.
11
+ 3. Each regression entry must name the risk it protects, the check that covers it, the cadence, and the evidence expected from a passing run.
12
+ 4. Retire regression entries only when the protected behavior is removed or replaced by stronger coverage.
13
+ 5. Do not mark a surface covered when the check only exercises a mock path that cannot catch the real failure.
14
+ 6. Flaky, skipped, or manual-only coverage must be visible as residual risk.
15
+ 7. Release closeout must use the current Regression SSoT rather than an ad hoc checklist.
16
+
17
+ ## Required Checklist
18
+
19
+ - Critical surfaces are listed with owners.
20
+ - Required checks are mapped to surfaces and risk.
21
+ - Cadence is defined for local, PR, release, and post-deploy verification where relevant.
22
+ - Manual checks include exact steps and evidence format.
23
+ - Known gaps, flaky checks, and disabled checks are recorded as residuals.
24
+ - Changes to regression policy are reflected in the Harness Ledger when durable.
25
+
26
+ ## Closeout Expectations
27
+
28
+ Regression closeout must cite the SSoT entries used, show fresh evidence for required checks, explain skipped checks, and record any new or changed residual risk.
@@ -0,0 +1,29 @@
1
+ # Repository Governance Standard
2
+
3
+ ## Purpose
4
+
5
+ Define repository-level rules for branches, commits, pull requests, ownership, generated files, and merge safety.
6
+
7
+ ## Rules
8
+
9
+ 1. Respect the current worktree state. Do not revert or overwrite unrelated changes from other people or agents.
10
+ 2. Use task-scoped branches and worktrees for non-trivial changes, especially when multiple workers are active.
11
+ 3. Keep commits focused on the requested scope and avoid mixing unrelated cleanup with feature work.
12
+ 4. Generated files, caches, build output, local runtime state, and secrets must be ignored or stored in the approved location.
13
+ 5. Pull requests must describe intent, changed surfaces, checks run, checks not run, review status, and residual risk.
14
+ 6. Required checks and material review findings block merge unless an approved exception is recorded.
15
+ 7. Merge or release ownership must be explicit when several branches or workers contribute to the same outcome.
16
+
17
+ ## Required Checklist
18
+
19
+ - Branch and worktree ownership are clear.
20
+ - Allowed and forbidden paths are respected.
21
+ - Dirty worktree state was checked before edits.
22
+ - Generated and private files are not accidentally staged.
23
+ - PR summary includes evidence and residuals.
24
+ - Review findings are resolved or explicitly accepted.
25
+ - Merge strategy and rollback or revert path are understood.
26
+
27
+ ## Closeout Expectations
28
+
29
+ Repository closeout must list changed paths, confirm scope boundaries were honored, report git status relevant to the task, summarize checks, and identify unrelated dirty files left untouched.
@@ -0,0 +1,29 @@
1
+ # Review Routing Standard
2
+
3
+ ## Purpose
4
+
5
+ Define when work needs review, which reviewer identity is appropriate, and how review results are routed back into implementation and closeout.
6
+
7
+ ## Rules
8
+
9
+ 1. Route review based on risk, not habit. Architecture, security, data, release, UX, and test-risk changes need different reviewer identities.
10
+ 2. Every routed review must name `Reviewer Identity`, review scope, expected evidence, and decision authority.
11
+ 3. Use adversarial review when a normal pass/fail review would not sufficiently challenge assumptions.
12
+ 4. Material findings must be routed to an owner and tracked until closed with evidence, mitigated, classified as accepted-risk, or moved to a follow-up with approval.
13
+ 5. Reviewers must list `Evidence Checked`; unverified claims are questions, not conclusions.
14
+ 6. The implementation owner is responsible for reconciling conflicting reviewer feedback.
15
+ 7. Closeout must include the final review disposition and `Final Confidence Basis`.
16
+
17
+ ## Required Checklist
18
+
19
+ - Review trigger and reviewer identity are documented.
20
+ - Scope and files or artifacts under review are listed.
21
+ - Required evidence is available to the reviewer.
22
+ - Material findings are labeled and owner-routed.
23
+ - Non-material suggestions are separated from blockers.
24
+ - Residuals have rationale and owner.
25
+ - Final disposition is recorded.
26
+
27
+ ## Closeout Expectations
28
+
29
+ Review routing is complete when all required reviewers have responded or an explicit residual explains the missing review, material findings are resolved or accepted, and final confidence is grounded in checked evidence.
@@ -0,0 +1,28 @@
1
+ # Testing Standard
2
+
3
+ ## Purpose
4
+
5
+ Define the minimum verification required before an agent claims that a change is complete.
6
+
7
+ ## Rules
8
+
9
+ 1. Tests must match the change risk. Use unit tests for isolated logic, integration tests for contracts, end-to-end or smoke tests for user workflows, and manual verification for surfaces automation cannot cover.
10
+ 2. Do not claim success from tests that did not exercise the changed behavior.
11
+ 3. A skipped, flaky, or unavailable test is residual risk and must be recorded with a reason.
12
+ 4. When fixing a bug, add or update coverage that would have caught the failure unless the cost is clearly unjustified and documented.
13
+ 5. For UI changes, verify realistic viewport and interaction states when layout, navigation, or user workflow changed.
14
+ 6. For data, migration, security, or deployment changes, include evidence from the real contract or environment where feasible.
15
+ 7. Final summaries must distinguish checks run, checks not run, and evidence inspected.
16
+
17
+ ## Required Checklist
18
+
19
+ - Changed behavior is mapped to verification method.
20
+ - Required checks were run from the correct branch or worktree.
21
+ - Test output, logs, screenshots, or command results are captured.
22
+ - Manual checks include exact path and expected result.
23
+ - Known gaps and residual risk are recorded.
24
+ - Regression SSoT is updated when the change adds or changes a protected surface.
25
+
26
+ ## Closeout Expectations
27
+
28
+ Testing closeout must list commands or manual checks, summarize results, identify untested risk, and explain why the evidence is sufficient for the requested acceptance criteria.
@@ -0,0 +1,28 @@
1
+ # Walkthrough Standard
2
+
3
+ ## Purpose
4
+
5
+ Define the closeout walkthrough that converts implementation work into durable project memory and reviewable evidence.
6
+
7
+ ## Rules
8
+
9
+ 1. Write a walkthrough for non-trivial tasks, long-running tasks, releases, cross-cutting changes, or work that future agents will need to understand.
10
+ 2. A walkthrough must explain what changed, why it changed, how it was verified, what review found, and what residual risk remains.
11
+ 3. Do not paste large raw logs. Link to evidence files, commands, PRs, screenshots, or CI runs.
12
+ 4. Material findings and their resolution must be visible.
13
+ 5. Lessons that change future behavior must be routed to the appropriate SSoT, reference standard, or Harness Ledger.
14
+ 6. Walkthroughs must be written from the final integrated state, not from a single worker's partial view.
15
+ 7. If work is incomplete, the walkthrough must identify the next safe action and stop reason.
16
+
17
+ ## Required Artifacts
18
+
19
+ - Walkthrough record with date, owner, task, changed surfaces, and links.
20
+ - Evidence summary with checks run and checks not run.
21
+ - Review summary with material findings and disposition.
22
+ - Residual risk section.
23
+ - Lesson or follow-up section.
24
+ - Links to updated SSoT, Regression SSoT, or Harness Ledger entries when applicable.
25
+
26
+ ## Closeout Expectations
27
+
28
+ Walkthrough closeout is complete when a future agent can understand the delivery state, reproduce the important evidence trail, and know which residuals or lessons still matter.
@@ -0,0 +1,28 @@
1
+ # Worktree Standard
2
+
3
+ ## Purpose
4
+
5
+ Define how git worktrees are used to isolate implementation, support parallel agents, and protect unrelated work.
6
+
7
+ ## Rules
8
+
9
+ 1. Use a separate worktree for non-trivial feature work when the main checkout is dirty, multiple workers are active, or the task needs isolated verification.
10
+ 2. Name branches and worktrees with task intent, not vague labels.
11
+ 3. Before editing, record the current branch, worktree path, git status, allowed paths, and forbidden paths.
12
+ 4. Workers must not edit outside their assigned scope unless the coordinator updates the plan.
13
+ 5. Shared files must be owned by the coordinator or merged through an explicit integration pass.
14
+ 6. Run verification from the worktree that contains the final integrated changes.
15
+ 7. Clean up merged worktrees only after the branch state, commits, and any needed artifacts are confirmed.
16
+
17
+ ## Required Checklist
18
+
19
+ - Worktree path and branch are recorded.
20
+ - Scope boundaries are documented.
21
+ - Dirty state and unrelated changes are noted before work.
22
+ - Dependencies are installed or verified in the worktree when needed.
23
+ - Handoff includes changed paths, checks, review notes, and residuals.
24
+ - Integration branch is verified after merging worker output.
25
+
26
+ ## Closeout Expectations
27
+
28
+ Worktree closeout must identify the branch and worktree used, list changed paths, confirm unrelated changes were preserved, report verification from the final state, and state whether the worktree was retained or cleaned up.
@@ -0,0 +1,41 @@
1
+ # Cadence Ledger
2
+
3
+ ## Purpose
4
+
5
+ Map change scopes to required regression gates and recurring check cadence. This file turns Regression SSoT gates into an operating schedule.
6
+
7
+ ## Status Legend
8
+
9
+ | Status | Meaning | Required Next Step |
10
+ | --- | --- | --- |
11
+ | active | Cadence rule is enforced. | Run when triggered and record evidence. |
12
+ | paused | Rule is temporarily disabled. | Record approver, reason, and resume date. |
13
+ | failing | Latest scheduled run failed. | Assign fix owner and block affected closeout. |
14
+ | replaced | Rule has a newer owner or gate. | Link replacement. |
15
+ | archived | Rule is historical. | Preserve final evidence and replacement pointer. |
16
+
17
+ ## Cadence Rules
18
+
19
+ | ID | Change Scope or Trigger | Required Gates | Minimum Evidence Depth | Frequency | Owner | Status | Latest Run | Next Run or Trigger | Notes |
20
+ | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
21
+ | C-000 | paths, modules, labels, release, or schedule | RG-000, RG-001 | E2 | per PR / daily / release | owner | active | YYYY-MM-DD evidence path | next trigger | none |
22
+
23
+ ## Run Log
24
+
25
+ | Run ID | Date | Trigger | Gates Run | Result | Evidence | Follow-up |
26
+ | --- | --- | --- | --- | --- | --- | --- |
27
+ | CR-YYYY-MM-DD-001 | YYYY-MM-DD | PR, release, schedule, or manual | RG-000 | pass / fail / waived | path, CI run, log, or screenshot | none |
28
+
29
+ ## Routing Rules
30
+
31
+ 1. Every active Regression SSoT gate that must run repeatedly should have a cadence rule.
32
+ 2. Path-based triggers must be specific enough for agents to choose the right checks without guessing.
33
+ 3. Failed cadence runs remain visible until a passing replacement run or documented waiver exists.
34
+ 4. Waived runs must link the corresponding Regression SSoT waiver.
35
+ 5. Release closeout must cite the latest run log entries for release-blocking gates.
36
+
37
+ ## Archive Rules
38
+
39
+ - Keep the current release cycle and any failing runs in this file.
40
+ - Archive older passing runs after their release or milestone is closed.
41
+ - Preserve run ID, trigger, result, and evidence link in archived records.
@@ -0,0 +1,43 @@
1
+ # Delivery SSoT
2
+
3
+ ## Purpose
4
+
5
+ Coordinate cross-role, cross-repository, or multi-module delivery work. This file is the active contract for who is moving which slice, what must synchronize, and what blocks release.
6
+
7
+ ## Status Legend
8
+
9
+ | Status | Meaning | Required Next Step |
10
+ | --- | --- | --- |
11
+ | shaping | Delivery scope is being split or sequenced. | Define slices, owners, and integration points. |
12
+ | ready | Delivery plan is accepted. | Open worktrees, branches, or tickets as needed. |
13
+ | active | One or more slices are in progress. | Update sync points and blockers. |
14
+ | integration | Slices are being merged or reconciled. | Run integration checks and resolve conflicts. |
15
+ | blocked | Delivery cannot proceed. | Record blocker owner and unblock condition. |
16
+ | released | Delivery is complete and closeout exists. | Keep links until the release is no longer current. |
17
+ | archived | Delivery is historical. | Keep archive pointer and release evidence. |
18
+
19
+ ## Active Deliveries
20
+
21
+ | ID | Delivery | Scope | Coordinator | Status | Slices | Integration Point | Release Gate | Closeout | Residual | Updated |
22
+ | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
23
+ | D-000 | Short delivery title | repo, module, or release scope | owner | ready | M-000, M-001 | branch, PR, or merge window | RG-000 or release checklist | pending | none | YYYY-MM-DD |
24
+
25
+ ## Sync Points
26
+
27
+ | ID | When | Participants | Required Input | Decision or Output | Owner |
28
+ | --- | --- | --- | --- | --- | --- |
29
+ | SYNC-000 | YYYY-MM-DD or trigger | owners | plans, diffs, evidence, or blockers | merge decision, split decision, or release decision | coordinator |
30
+
31
+ ## Routing Rules
32
+
33
+ 1. Use Delivery SSoT when work spans more than one owner, module, repository, or release gate.
34
+ 2. Keep module ownership in Module Registry and link module IDs from delivery rows.
35
+ 3. A delivery cannot move to `released` while any release-blocking slice remains unresolved.
36
+ 4. Integration conflicts, shared-file edits, and `accepted-risk` decisions must be visible here even if detailed elsewhere.
37
+ 5. The coordinator owns this file; individual workers own their slice plans and evidence.
38
+
39
+ ## Archive Rules
40
+
41
+ - Archive released deliveries after their release evidence is stable and no active slice depends on them.
42
+ - Keep an archive pointer in the active table for recently released work if follow-up is expected.
43
+ - Preserve blocker history when archiving failed, canceled, or deferred deliveries.
@@ -0,0 +1,43 @@
1
+ # Feature SSoT
2
+
3
+ ## Purpose
4
+
5
+ Maintain the authoritative feature queue for agent-executed work. This file answers what is planned, who owns it, what evidence is required, and whether the work is safe to close.
6
+
7
+ ## Status Legend
8
+
9
+ | Status | Meaning | Required Next Step |
10
+ | --- | --- | --- |
11
+ | intake | Candidate feature is captured but not shaped. | Clarify goal, owner, and acceptance evidence. |
12
+ | ready | Scope and acceptance criteria are clear. | Create or link the task plan. |
13
+ | active | Implementation or review is in progress. | Keep plan, evidence, and residuals current. |
14
+ | blocked | Feature cannot proceed. | Record blocker owner and unblock condition. |
15
+ | verify | Work is implemented and waiting for evidence. | Run required checks and update Regression SSoT. |
16
+ | shipped | Feature is delivered and walkthrough is complete. | Keep row until no longer operationally relevant. |
17
+ | archived | Feature is historical. | Keep archive pointer and final evidence link. |
18
+
19
+ ## Active Features
20
+
21
+ | ID | Feature | User Outcome | Owner | Status | Priority | Task Plan | Acceptance Evidence | Regression Gate | Walkthrough | Residual | Updated |
22
+ | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
23
+ | F-000 | Short feature title | Observable user or operator result | owner | ready | P1 | docs/09-PLANNING/TASKS/.../task_plan.md | command, test, screenshot, or review path | RG-000 | pending | none | YYYY-MM-DD |
24
+
25
+ ## Intake Queue
26
+
27
+ | Candidate | Source | Decision Needed | Owner | Due |
28
+ | --- | --- | --- | --- | --- |
29
+ | Short request title | issue, roadmap, user request, or review | accept, split, defer, or reject | owner | YYYY-MM-DD |
30
+
31
+ ## Routing Rules
32
+
33
+ 1. Add a feature row before implementation starts unless the task is a documented emergency fix.
34
+ 2. Use one row per deliverable outcome, not one row per commit.
35
+ 3. Link the task plan before moving a feature to `active`.
36
+ 4. Link regression evidence before moving a feature to `shipped`.
37
+ 5. Record `accepted-risk` explicitly; `none` means no known residual risk after verification.
38
+
39
+ ## Archive Rules
40
+
41
+ - Keep shipped rows visible through the next release or verification cycle.
42
+ - Move older shipped rows to the project archive with their final walkthrough and regression evidence.
43
+ - Do not archive blocked rows until the blocker is resolved, accepted, or explicitly abandoned.
@@ -0,0 +1,44 @@
1
+ # Lessons SSoT
2
+
3
+ ## Purpose
4
+
5
+ Track reusable lessons discovered during closeout and route them into standards, templates, checkers, or explicit no-action decisions.
6
+
7
+ ## Status Legend
8
+
9
+ | Status | Meaning | Required Next Step |
10
+ | --- | --- | --- |
11
+ | candidate | Lesson was proposed during review or walkthrough. | Decide whether it is reusable. |
12
+ | accepted | Lesson is valid and needs a durable change. | Assign implementation target and owner. |
13
+ | applied | Durable change has landed. | Link changed file, checker, or template. |
14
+ | rejected | Lesson is not reusable or not worth adopting. | Record reason. |
15
+ | superseded | A newer lesson replaces this one. | Link replacement. |
16
+ | archived | Lesson is historical. | Keep detail doc and final disposition. |
17
+
18
+ ## Active Lessons
19
+
20
+ | ID | Lesson | Source | Type | Owner | Status | Target Change | Detail Doc | Evidence | Updated |
21
+ | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
22
+ | L-YYYY-MM-DD-001 | Short lesson title | walkthrough, review, incident, or verifier | ref-change / new-doc / arch-process-change | owner | candidate | file, checker, template, or no-action | docs/01-GOVERNANCE/lessons/...md | source link | YYYY-MM-DD |
23
+
24
+ ## Type Routing
25
+
26
+ | Type | Use When | Required Artifact |
27
+ | --- | --- | --- |
28
+ | ref-change | Existing standard, template, or checker needs an update. | `templates/lessons/lesson-ref-change.md` detail doc. |
29
+ | new-doc | A missing durable reference document is needed. | `templates/lessons/lesson-new-doc.md` detail doc. |
30
+ | arch-process-change | Operating model, phase gate, ownership, or architecture process needs to change. | `templates/lessons/lesson-arch-process-change.md` detail doc. |
31
+
32
+ ## Routing Rules
33
+
34
+ 1. Walkthrough closeout must record whether a lessons check was performed.
35
+ 2. Do not create a lesson for one-off trivia; create one only when a future agent could repeat the failure or benefit from the rule.
36
+ 3. Accepted lessons must name the durable target: reference doc, template, checker, workflow, or operating model.
37
+ 4. `applied` requires evidence of the durable change, not just agreement in chat.
38
+ 5. Rejected lessons must explain why no durable change is needed.
39
+
40
+ ## Archive Rules
41
+
42
+ - Keep candidate and accepted lessons in this file until resolved.
43
+ - Archive applied, rejected, or superseded lessons after the next closeout cycle.
44
+ - Preserve the detail doc and source walkthrough link for every archived lesson.