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,39 @@
1
+ # Harness Ledger
2
+
3
+ ## Purpose
4
+
5
+ Track whether each meaningful task kept the harness contract intact: planning, scope control, SSoT updates, regression evidence, review, walkthrough, lessons, and reference routing.
6
+
7
+ ## Status Legend
8
+
9
+ | Status | Meaning | Required Next Step |
10
+ | --- | --- | --- |
11
+ | proposed | Work is identified but not accepted into active execution. | Assign an owner or reject with a reason. |
12
+ | planned | Scope, owner, and expected evidence are known. | Start execution or update schedule. |
13
+ | active | Work is in progress. | Keep task plan and evidence current. |
14
+ | review | Implementation is complete and waiting for review or verification. | Complete review and regression gates. |
15
+ | blocked | Work cannot proceed without a decision or dependency. | Record blocker owner and unblock condition. |
16
+ | closed | Work is complete and closeout evidence exists. | Archive only when no longer operationally useful. |
17
+ | archived | Entry is historical and no longer part of active coordination. | Keep a pointer to the archive location. |
18
+
19
+ ## Active Ledger
20
+
21
+ | ID | Task or Change | Owner | Status | Plan | Feature or Delivery SSoT | Regression Evidence | Review Evidence | Walkthrough | Lessons Check | Residual | Updated |
22
+ | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
23
+ | HL-YYYY-MM-DD-001 | Short operational title | owner | planned | docs/09-PLANNING/TASKS/.../task_plan.md | F-000 or D-000 | RG-000 or n/a | review.md or n/a | pending | pending | none | YYYY-MM-DD |
24
+
25
+ ## Routing Rules
26
+
27
+ 1. Create or update one ledger row for every non-trivial feature, refactor, release, harness update, or multi-agent handoff.
28
+ 2. Link to durable files and commands. Do not rely on chat history as evidence.
29
+ 3. If a task changes product behavior, route it through Feature SSoT or Delivery SSoT.
30
+ 4. If a task changes regression expectations, route it through Regression SSoT and Cadence Ledger.
31
+ 5. If a task changes agent process, documentation standards, or repeatable checks, route it through Lessons SSoT.
32
+ 6. A row can move to `closed` only when the walkthrough, regression evidence, review disposition, and lessons check are recorded.
33
+
34
+ ## Archive Rules
35
+
36
+ - Keep active, blocked, review, and recently closed rows in this file.
37
+ - Move old closed rows to `docs/01-GOVERNANCE/archive/` or the project archive path when they no longer affect current coordination.
38
+ - Preserve the ledger ID, final status, closeout link, and archive date in any archive entry.
39
+ - Never delete a row to hide skipped verification, `accepted-risk`, or unresolved review feedback.
@@ -0,0 +1,47 @@
1
+ # L-YYYY-MM-DD-001: Short Architecture or Process Lesson
2
+
3
+ ## Lesson Type
4
+
5
+ arch-process-change
6
+
7
+ ## Source
8
+
9
+ | Field | Value |
10
+ | --- | --- |
11
+ | Discovered in | walkthrough, review, incident, verifier, or release |
12
+ | Source link | path or URL |
13
+ | Related task | F-000, D-000, HL-000, or task plan path |
14
+ | Owner | owner |
15
+ | Status | candidate / accepted / applied / rejected / superseded |
16
+
17
+ ## Problem
18
+
19
+ Describe the recurring architecture, ownership, phase-gate, or operating-process problem in one short paragraph.
20
+
21
+ ## Impact
22
+
23
+ | Impact Area | Evidence | Severity |
24
+ | --- | --- | --- |
25
+ | delivery, quality, safety, review load, or agent repeatability | source evidence | low / medium / high |
26
+
27
+ ## Proposed Change
28
+
29
+ | Area | Current Rule | Proposed Rule |
30
+ | --- | --- | --- |
31
+ | operating model, phase gate, ownership, or architecture boundary | current behavior | new behavior |
32
+
33
+ ## Adoption Plan
34
+
35
+ | Step | Owner | Target File or Process | Due | Status |
36
+ | --- | --- | --- | --- | --- |
37
+ | Update standard, template, checker, or workflow | owner | path or process name | YYYY-MM-DD | planned |
38
+
39
+ ## Acceptance Criteria
40
+
41
+ - The new rule has a durable home in a reference, template, checker, or project operating model.
42
+ - The Lessons SSoT row links this detail doc and the applied change.
43
+ - Existing active tasks know whether the new rule applies immediately or only to future work.
44
+
45
+ ## Disposition
46
+
47
+ accepted / rejected / applied / superseded, with reason and evidence link.
@@ -0,0 +1,50 @@
1
+ # L-YYYY-MM-DD-001: Short New-Document Lesson
2
+
3
+ ## Lesson Type
4
+
5
+ new-doc
6
+
7
+ ## Source
8
+
9
+ | Field | Value |
10
+ | --- | --- |
11
+ | Discovered in | walkthrough, review, incident, verifier, or release |
12
+ | Source link | path or URL |
13
+ | Related task | F-000, D-000, HL-000, or task plan path |
14
+ | Owner | owner |
15
+ | Status | candidate / accepted / applied / rejected / superseded |
16
+
17
+ ## Gap
18
+
19
+ Describe the missing reference document, template, checklist, or operating guide that caused ambiguity or repeat work.
20
+
21
+ ## Why Existing Docs Are Not Enough
22
+
23
+ | Existing Doc | Gap |
24
+ | --- | --- |
25
+ | path or none | what it does not cover |
26
+
27
+ ## Proposed Document
28
+
29
+ | Field | Value |
30
+ | --- | --- |
31
+ | Target path | docs/.../document-name.md |
32
+ | Primary reader | agent, reviewer, maintainer, release owner, or operator |
33
+ | Required sections | concise section list |
34
+ | Related standards | paths or none |
35
+
36
+ ## Adoption Plan
37
+
38
+ | Step | Owner | Due | Status |
39
+ | --- | --- | --- | --- |
40
+ | Draft, review, link, and add checker coverage if needed | owner | YYYY-MM-DD | planned |
41
+
42
+ ## Acceptance Criteria
43
+
44
+ - The new document exists at the target path and is linked from the relevant index or entrypoint.
45
+ - The document contains operational rules, not background essay content.
46
+ - The Lessons SSoT row links this detail doc and the new document.
47
+
48
+ ## Disposition
49
+
50
+ accepted / rejected / applied / superseded, with reason and evidence link.
@@ -0,0 +1,45 @@
1
+ # L-YYYY-MM-DD-001: Short Reference-Change Lesson
2
+
3
+ ## Lesson Type
4
+
5
+ ref-change
6
+
7
+ ## Source
8
+
9
+ | Field | Value |
10
+ | --- | --- |
11
+ | Discovered in | walkthrough, review, incident, verifier, or release |
12
+ | Source link | path or URL |
13
+ | Related task | F-000, D-000, HL-000, or task plan path |
14
+ | Owner | owner |
15
+ | Status | candidate / accepted / applied / rejected / superseded |
16
+
17
+ ## Existing Rule
18
+
19
+ | Reference | Current Text or Behavior | Problem |
20
+ | --- | --- | --- |
21
+ | path to standard, template, checker, or entrypoint | short summary | why future agents may fail |
22
+
23
+ ## Proposed Update
24
+
25
+ | Target | Change Required | Reason |
26
+ | --- | --- | --- |
27
+ | path | add, revise, delete, or route rule | operational reason |
28
+
29
+ ## Validation
30
+
31
+ | Check | Evidence |
32
+ | --- | --- |
33
+ | Updated reference or template reviewed | path or pending |
34
+ | Checker update needed? | yes / no, reason |
35
+ | Active tasks impacted? | yes / no, migration note |
36
+
37
+ ## Acceptance Criteria
38
+
39
+ - The target reference, template, or checker is updated.
40
+ - The update is linked from Lessons SSoT.
41
+ - Any active task affected by the rule has a migration or no-impact note.
42
+
43
+ ## Disposition
44
+
45
+ accepted / rejected / applied / superseded, with reason and evidence link.
@@ -0,0 +1,40 @@
1
+ # [Task Name] - Execution Strategy
2
+
3
+ ## Strategy Summary
4
+
5
+ [Describe the execution approach, including why this operating model fits the risk and scope.]
6
+
7
+ ## Operating Model
8
+
9
+ - Model: solo / team / split-repo / program / waterfall / kanban / module-parallel
10
+ - Primary executor: coordinator / worker / human
11
+ - Shared sync owner: coordinator
12
+ - Worktree required: yes / no
13
+ - Review required: yes / no
14
+
15
+ ## Work Allocation
16
+
17
+ | Role | Input Package | Write Scope | Handoff Required | Owner |
18
+ | --- | --- | --- | --- | --- |
19
+ | coordinator | task plan, strategy, roadmap | shared ledgers and integration | yes | [owner] |
20
+ | worker | assigned slice | assigned files only | yes | [owner] |
21
+
22
+ ## Coordination Rules
23
+
24
+ 1. Shared files are coordinator-owned unless a lock is explicitly assigned.
25
+ 2. Workers update only assigned files and route shared-table changes through handoff.
26
+ 3. Parallel work must use non-overlapping write scopes.
27
+ 4. Integration runs final checks after worker commits are merged or applied.
28
+
29
+ ## Verification Strategy
30
+
31
+ | Check | Command or Evidence | Required | Owner |
32
+ | --- | --- | --- | --- |
33
+ | Static check | [command or path] | yes / no | [owner] |
34
+ | Unit test | [command or path] | yes / no | [owner] |
35
+ | Integration or smoke | [command, URL, or log] | yes / no | [owner] |
36
+ | Review | `review.md` / verifier output / n/a | yes / no | [owner] |
37
+
38
+ ## Closeout Rule
39
+
40
+ Do not mark the task complete until required evidence is present, material findings are closed or accepted, and shared updates are either completed or assigned to the coordinator.
@@ -0,0 +1,24 @@
1
+ # [Task Name] - Findings
2
+
3
+ Use this file for defects, risks, unclear requirements, research notes, and review follow-up that may affect delivery.
4
+
5
+ ## Open Findings
6
+
7
+ | ID | Severity | Finding | Evidence | Owner | Required Action | Status |
8
+ | --- | --- | --- | --- | --- | --- | --- |
9
+
10
+ Do not keep sample findings. Add rows only for real findings discovered during the task.
11
+
12
+ ## Resolved Findings
13
+
14
+ | ID | Resolution | Evidence | Date |
15
+ | --- | --- | --- | --- |
16
+
17
+ Add rows only after a real finding is resolved or accepted with owner-routed risk.
18
+
19
+ ## Severity Guide
20
+
21
+ - P0: Blocks release or risks data loss, security exposure, or production outage.
22
+ - P1: Blocks the task goal or a required workflow.
23
+ - P2: Material quality, maintainability, or evidence gap.
24
+ - P3: Follow-up improvement that does not block closeout.
@@ -0,0 +1,69 @@
1
+ # [Task Name] - Long-Running Task Contract
2
+
3
+ ## Goal
4
+
5
+ [State the single main problem this loop must close.]
6
+
7
+ ## Scope
8
+
9
+ ### In Scope
10
+
11
+ - [Allowed directories, modules, or capability surfaces]
12
+
13
+ ### Out of Scope
14
+
15
+ - [Items explicitly excluded from this loop]
16
+
17
+ ### Shared Files and Conflict Risk
18
+
19
+ - [Shared files that may conflict with other work, or none]
20
+
21
+ ## Permission Boundaries
22
+
23
+ - Continuous execution allowed: yes / no
24
+ - Automatic review/fix/test loop allowed: yes / no
25
+ - Reviewer or subagent allowed: yes / no
26
+ - Must pause before: [high-risk actions]
27
+
28
+ ## Required Loop
29
+
30
+ 1. Re-read the goal, scope, and current findings.
31
+ 2. Choose the smallest complete fix for the current finding or phase.
32
+ 3. Implement within the allowed write scope.
33
+ 4. Run required verification.
34
+ 5. Update `progress.md` and `findings.md`.
35
+ 6. Run review when required and update `review.md`.
36
+ 7. Continue, stop, or pause based on the stop and pause conditions below.
37
+
38
+ ## Reviewer / Subagent Contract
39
+
40
+ - Reviewer scope: [files / modules / problem domain]
41
+ - Reviewer output: `review.md`
42
+ - Worker allowed to edit code: yes / no
43
+ - If a worker may edit, handoff must include worktree path, branch, commit SHA, checks, files changed, and residual risks.
44
+
45
+ ## Evidence
46
+
47
+ - [ ] Static checks: [command]
48
+ - [ ] Unit tests: [command]
49
+ - [ ] Integration or smoke tests: [command]
50
+ - [ ] Runtime verification: [URL / command / log]
51
+ - [ ] Review report: `review.md` / n/a
52
+ - [ ] Residual risks recorded: yes / no
53
+
54
+ ## Stop Conditions
55
+
56
+ - [ ] Goal is met.
57
+ - [ ] Scope was not exceeded.
58
+ - [ ] Required tests and regression gates pass or have documented waivers.
59
+ - [ ] Runtime, console, and request errors are clear or classified as accepted-risk with owner rationale.
60
+ - [ ] Review has no open P0/P1 material findings.
61
+ - [ ] Residual risks are routed to an owner and do not block the goal.
62
+
63
+ ## Pause Conditions
64
+
65
+ - [ ] Goal or scope becomes invalid.
66
+ - [ ] High-risk product, architecture, security, or data decision is required.
67
+ - [ ] Unknown uncommitted changes conflict with this work.
68
+ - [ ] Environment, permission, quota, or external dependency blocks progress.
69
+ - [ ] Reviewer finding changes task direction.
@@ -0,0 +1,36 @@
1
+ # [Module Name] - Module Plan
2
+
3
+ ## Module Identity
4
+
5
+ - Module key: [key]
6
+ - Owner: [agent / human]
7
+ - Branch: [branch]
8
+ - Write Scope: [directories or files]
9
+ - Shared files: [files requiring coordinator lock, or none]
10
+
11
+ ## Boundaries
12
+
13
+ - May edit: [paths]
14
+ - Must not edit: [paths or shared surfaces]
15
+ - External dependencies: [services, packages, teams, or none]
16
+
17
+ ## Steps
18
+
19
+ | Step ID | Name | Status | Task Plan | Depends On |
20
+ | --- | --- | --- | --- | --- |
21
+ | MOD-01 | [step name] | planned | [path] | none |
22
+
23
+ ## Verification
24
+
25
+ | Check | Command or Evidence | Required |
26
+ | --- | --- | --- |
27
+ | [check name] | [command or path] | yes / no |
28
+
29
+ ## Handoff
30
+
31
+ - Branch: [branch]
32
+ - Commit SHA: [sha]
33
+ - Checks: [summary]
34
+ - Files changed: [summary]
35
+ - Residual risks: [none / list]
36
+ - Coordinator updates needed: [none / list]
@@ -0,0 +1,39 @@
1
+ # Module Worker Session Prompt
2
+
3
+ ## Context Package
4
+
5
+ - Project: [project]
6
+ - Module key: [module]
7
+ - Task directory: [path]
8
+ - Module plan: [path]
9
+ - Assigned worktree: [path]
10
+ - Assigned branch: [branch]
11
+
12
+ ## Goal
13
+
14
+ [State one concrete module outcome.]
15
+
16
+ ## Write Scope
17
+
18
+ You may edit only:
19
+
20
+ - [path]
21
+
22
+ Do not edit shared SSoT files, coordinator-owned integration files, or unrelated modules unless the coordinator explicitly assigns that scope.
23
+
24
+ ## Required Output
25
+
26
+ - Branch name
27
+ - Commit SHA
28
+ - Files changed
29
+ - Checks run and results
30
+ - Residual risks
31
+ - Coordinator updates needed
32
+
33
+ ## Shared Sync Rule
34
+
35
+ Do not update Module Registry, Harness Ledger, Closeout SSoT, Regression SSoT, or Cadence Ledger from a worker session unless the coordinator assigned the shared lock.
36
+
37
+ ## Stop Rule
38
+
39
+ Pause and report if the requested change requires editing outside the assigned scope, resolving unrelated dirty files, making a product decision, or changing a shared contract.
@@ -0,0 +1,12 @@
1
+ # Artifacts Index
2
+
3
+ Use this index for generated outputs that support the task but are not the source of truth.
4
+
5
+ | Artifact | Purpose | Generated By | Keep? |
6
+ | --- | --- | --- | --- |
7
+ | [file] | [why it exists] | [command, tool, or agent] | yes / no |
8
+
9
+ ## Retention Notes
10
+
11
+ - Keep artifacts that are needed to reproduce evidence or review decisions.
12
+ - Remove or ignore temporary artifacts once their result is captured in `progress.md`.
@@ -0,0 +1,13 @@
1
+ # References Index
2
+
3
+ Use this index for sources the task depends on but does not own.
4
+
5
+ | Reference | Type | Why It Matters | Source |
6
+ | --- | --- | --- | --- |
7
+ | [name] | doc / link / transcript / code | [why this source is relevant] | [path or URL] |
8
+
9
+ ## Source Rules
10
+
11
+ - Prefer canonical project files over summaries.
12
+ - Record external links with enough context for a reviewer to re-check them.
13
+ - Mark stale or uncertain references in `findings.md`.
@@ -0,0 +1,27 @@
1
+ # Slice Brief
2
+
3
+ ## Identity
4
+
5
+ | Parent Phase ID | Depends On | State | Owner / Handoff |
6
+ | --- | --- | --- | --- |
7
+ | PH-01 | none | planned | [owner] |
8
+
9
+ ## Goal
10
+
11
+ [State one concrete slice outcome.]
12
+
13
+ ## Scope
14
+
15
+ - In scope: [items]
16
+ - Out of scope: [items]
17
+ - Write scope: [paths]
18
+
19
+ ## Required Evidence
20
+
21
+ | Evidence | Command / Path | Required |
22
+ | --- | --- | --- |
23
+ | [check] | [command or path] | yes |
24
+
25
+ ## Handoff Requirement
26
+
27
+ The slice owner must report files changed, checks run, residual risks, and any shared updates needed from the coordinator.
@@ -0,0 +1,9 @@
1
+ # Slice Evidence
2
+
3
+ | Evidence ID | Type | Path | Summary | Status |
4
+ | --- | --- | --- | --- | --- |
5
+ | SE-001 | command / file / runtime / review | [command or path] | [what this evidence shows] | missing |
6
+
7
+ ## Status Values
8
+
9
+ Use `missing`, `partial`, `present`, or `waived`. If evidence is waived, record the reason and owner in the parent `progress.md`.
@@ -0,0 +1,31 @@
1
+ # Slice Review
2
+
3
+ ## Reviewer Identity
4
+
5
+ | Reviewer | Type | Scope |
6
+ | --- | --- | --- |
7
+ | [name] | self / subagent / external / human | [slice scope] |
8
+
9
+ ## Confidence Challenge
10
+
11
+ Answer directly: do you have 100% confidence in this slice?
12
+
13
+ - Verdict: yes / no
14
+ - If no, list every plausible gap below and propose fixes.
15
+
16
+ ## Material Findings
17
+
18
+ | ID | Severity | Finding | Evidence Checked | Required Action | Open | Disposition | Blocks Release | Follow-up |
19
+ | --- | --- | --- | --- | --- | --- | --- | --- | --- |
20
+
21
+ Do not keep sample findings. If there are no material findings, leave only the header and complete the Final Confidence Basis.
22
+
23
+ ## Evidence Checked
24
+
25
+ | Evidence ID | Type | Path | Summary |
26
+ | --- | --- | --- | --- |
27
+ | SE-001 | command / file / runtime | [path or command] | [summary] |
28
+
29
+ ## Final Confidence Basis
30
+
31
+ [Explain why this slice is ready to merge, or name the remaining limits.]
@@ -0,0 +1,33 @@
1
+ # [Task Name] - Progress
2
+
3
+ ## Current Status
4
+
5
+ planned
6
+
7
+ ## Log
8
+
9
+ | Time | Actor | Action | Evidence | Next |
10
+ | --- | --- | --- | --- | --- |
11
+ | YYYY-MM-DD HH:MM | coordinator | [action taken] | type:path:summary | [next step] |
12
+
13
+ ## Decisions
14
+
15
+ | Date | Decision | Reason | Owner |
16
+ | --- | --- | --- | --- |
17
+ | YYYY-MM-DD | [decision] | [reason] | [owner] |
18
+
19
+ ## Evidence Ledger
20
+
21
+ | Evidence ID | Type | Path or Command | Result | Used For |
22
+ | --- | --- | --- | --- | --- |
23
+ | E-001 | command / file / runtime / review | [path or command] | pass / fail / observed / waived | [claim supported] |
24
+
25
+ ## Residual
26
+
27
+ none
28
+
29
+ ## Coordinator Handoff
30
+
31
+ - Global sync status: pending-coordinator-pass / synced / n/a
32
+ - Owner: coordinator / n/a
33
+ - Required shared updates: [none]
@@ -0,0 +1,48 @@
1
+ # [Task Name] - Review
2
+
3
+ ## Reviewer Identity
4
+
5
+ | Reviewer | Type | Scope |
6
+ | --- | --- | --- |
7
+ | [name] | self / subagent / external / human | [files, modules, behavior, or release surface] |
8
+
9
+ ## Review Scope
10
+
11
+ - Review type: adversarial / security / regression / architecture / release / other
12
+ - In scope: [files, modules, behavior]
13
+ - Out of scope: [explicit exclusions]
14
+ - Source materials: [task plan, diff, test output, runtime evidence]
15
+
16
+ ## Confidence Challenge
17
+
18
+ Answer directly: do you have 100% confidence in the plan, implementation, and strategy?
19
+
20
+ - Verdict: yes / no
21
+ - If no, list every plausible gap below and propose fixes.
22
+
23
+ ## Material Findings
24
+
25
+ | ID | Severity | Finding | Evidence Checked | Required Action | Open | Disposition | Blocks Release | Follow-up |
26
+ | --- | --- | --- | --- | --- | --- | --- | --- | --- |
27
+
28
+ Do not keep sample findings. If there are no material findings, leave only the header and complete the No-Finding Statement.
29
+
30
+ ## No-Finding Statement
31
+
32
+ [If no material findings remain, state what evidence was checked and why no material finding remains.]
33
+
34
+ ## Evidence Checked
35
+
36
+ | Evidence ID | Type | Path | Summary |
37
+ | --- | --- | --- | --- |
38
+ | E-001 | command / file / runtime | [path or command] | [what was checked and what it showed] |
39
+
40
+ ## Residual Risk
41
+
42
+ | Risk | Owner | Accepted? | Follow-up |
43
+ | --- | --- | --- | --- |
44
+ | [risk] | [owner] | yes / no | [path or next action] |
45
+
46
+ ## Final Confidence Basis
47
+
48
+ [Explain the final confidence basis after fixes and verification. If confidence is limited, name the remaining limits and who owns them.]
@@ -0,0 +1,86 @@
1
+ # [Task Name]
2
+
3
+ ## Goal
4
+
5
+ [State the outcome this task must deliver in one sentence.]
6
+
7
+ ## Scope
8
+
9
+ - In scope: [specific files, modules, behavior, or docs]
10
+ - Out of scope: [explicit exclusions]
11
+
12
+ ## Task Budget
13
+
14
+ | Budget | Use When | Required Structure |
15
+ | --- | --- | --- |
16
+ | simple | One owner, no subagent, L0/L1 evidence | Standard task files only |
17
+ | standard | Normal feature, fix, or documentation change | Plan, strategy, roadmap, progress, findings, and review as needed |
18
+ | long-running | Multi-hour autonomous loop | Add `long-running-task-contract.md` and a review loop |
19
+ | module-parallel | Independent module slices | Add `module_plan.md`, module registry updates, and worker handoff |
20
+
21
+ Selected budget: [simple / standard / long-running / module-parallel]
22
+
23
+ ## Context Packet
24
+
25
+ | ID | Type | Path | Why It Matters | Used By |
26
+ | --- | --- | --- | --- | --- |
27
+ | C-001 | public-doc / private-plan / external / code | PUBLIC:path or PRIVATE:path or TARGET:path or URL:https://example.com | [why this source matters] | coordinator / reviewer / worker |
28
+
29
+ ## Required Files
30
+
31
+ | Contract File | Required | Purpose |
32
+ | --- | --- | --- |
33
+ | `execution_strategy.md` | yes | Operating model, allocation, conflict control, and evidence strategy |
34
+ | `visual_roadmap.md` | yes | Phase graph, completion state, evidence state, and blocking risk |
35
+ | `progress.md` | yes | Execution log, decisions, and handoff |
36
+ | `findings.md` | yes | Findings, research notes, and unresolved risks |
37
+ | `review.md` | if needed | Adversarial or specialist review report |
38
+ | `long-running-task-contract.md` | if needed | Continuous execution permission, loop rules, and stop conditions |
39
+
40
+ ## Steps
41
+
42
+ 1. [First concrete step]
43
+ 2. [Second concrete step]
44
+ 3. [Third concrete step]
45
+
46
+ ## Acceptance Criteria
47
+
48
+ - [ ] [Observable criterion]
49
+ - [ ] [Verification criterion]
50
+ - [ ] [Documentation or handoff criterion]
51
+
52
+ ## Worktree
53
+
54
+ - Path: [worktree path or n/a]
55
+ - Branch: [branch or n/a]
56
+ - Worker owner: coordinator / subagent id / n/a
57
+ - Worker handoff commit required: yes / no / n/a
58
+ - If no worktree, reason: [reason]
59
+
60
+ ## Long-Running Task Decision
61
+
62
+ - Long-running task: yes / no
63
+ - Contract file if yes: `long-running-task-contract.md`
64
+ - Continuous execution permission: granted / not granted / n/a
65
+ - Stop condition summary: [one sentence]
66
+
67
+ ## Review Decision
68
+
69
+ - Adversarial review required: yes / no
70
+ - Report file if yes: `review.md`
71
+ - Reviewer: self / subagent / external / human / n/a
72
+ - No-finding requirement: [requirement or n/a]
73
+
74
+ ## Links
75
+
76
+ - Feature SSoT entry: [reference]
77
+ - Related Regression Gate: [reference]
78
+ - Review Report: [path / n/a]
79
+ - Harness Ledger entry: [complete at closeout]
80
+ - Prerequisite tasks: [reference or none]
81
+
82
+ ## Coordinator Handoff
83
+
84
+ - Global sync owner: coordinator / n/a
85
+ - Global sync status: pending-coordinator-pass / synced / n/a
86
+ - Shared updates needed: [Module Registry / Harness Ledger / Closeout SSoT / Regression SSoT / none]