@wefter/opencode 0.1.0 → 0.2.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 (94) hide show
  1. package/CHANGELOG.md +25 -14
  2. package/LICENSE +21 -21
  3. package/README.md +125 -112
  4. package/bin/wefter.js +8 -8
  5. package/docs/ARCHITECTURE.md +75 -79
  6. package/docs/INSTALLATION.md +47 -46
  7. package/docs/SAFETY_MODEL.md +17 -17
  8. package/docs/SELF_AUDIT.md +35 -0
  9. package/docs/WORKFLOWS.md +15 -13
  10. package/package.json +45 -45
  11. package/schemas/documentation-audit-profile.schema.json +55 -47
  12. package/schemas/product-shaping-config.schema.json +63 -0
  13. package/schemas/product-shaping-contract.schema.json +204 -0
  14. package/schemas/product-shaping-profile.schema.json +39 -0
  15. package/schemas/product-shaping-run-manifest.schema.json +103 -0
  16. package/schemas/run-manifest.schema.json +14 -14
  17. package/schemas/wefter.config.schema.json +62 -31
  18. package/schemas/work-unit-config.schema.json +44 -44
  19. package/schemas/work-unit-profile.schema.json +38 -38
  20. package/schemas/work-unit-review-result.schema.json +13 -13
  21. package/schemas/workflow-manifest.schema.json +21 -21
  22. package/src/cli/main.js +2646 -1858
  23. package/src/workflows/documentation-audit/README.md +37 -37
  24. package/src/workflows/documentation-audit/templates/README.md.tmpl +47 -47
  25. package/src/workflows/documentation-audit/templates/opencode/agent/wefter-doc-audit-consolidator.md.tmpl +27 -27
  26. package/src/workflows/documentation-audit/templates/opencode/agent/wefter-doc-audit-orchestrator.md.tmpl +65 -65
  27. package/src/workflows/documentation-audit/templates/opencode/agent/wefter-doc-audit-profile-builder.md.tmpl +58 -58
  28. package/src/workflows/documentation-audit/templates/opencode/agent/wefter-doc-audit-validator.md.tmpl +26 -26
  29. package/src/workflows/documentation-audit/templates/opencode/agent/wefter-doc-auditor.md.tmpl +28 -28
  30. package/src/workflows/documentation-audit/templates/opencode/skills/documentation-audit/SKILL.md.tmpl +38 -38
  31. package/src/workflows/documentation-audit/templates/prompts/auditor-prompt.md +97 -97
  32. package/src/workflows/documentation-audit/templates/prompts/consolidator-prompt.md +84 -84
  33. package/src/workflows/documentation-audit/templates/prompts/validator-prompt.md +92 -92
  34. package/src/workflows/documentation-audit/workflow.json +24 -24
  35. package/src/workflows/documentation-repair/README.md +11 -11
  36. package/src/workflows/documentation-repair/templates/opencode/agent/wefter-doc-repair-orchestrator.md.tmpl +33 -33
  37. package/src/workflows/documentation-repair/templates/opencode/agent/wefter-doc-repair-planner.md.tmpl +17 -17
  38. package/src/workflows/documentation-repair/templates/opencode/agent/wefter-doc-repair-reviewer.md.tmpl +17 -17
  39. package/src/workflows/documentation-repair/templates/opencode/agent/wefter-doc-repairer.md.tmpl +14 -14
  40. package/src/workflows/documentation-repair/templates/opencode/skills/documentation-repair/SKILL.md.tmpl +17 -17
  41. package/src/workflows/documentation-repair/templates/prompts/repair-apply-prompt.md +43 -43
  42. package/src/workflows/documentation-repair/templates/prompts/repair-plan-prompt.md +73 -73
  43. package/src/workflows/documentation-repair/templates/prompts/repair-review-prompt.md +47 -47
  44. package/src/workflows/documentation-repair/workflow.json +10 -10
  45. package/src/workflows/product-shaping/README.md +1245 -7
  46. package/src/workflows/product-shaping/compatibility.md +33 -0
  47. package/src/workflows/product-shaping/contracts/product-spec-contract.json +250 -0
  48. package/src/workflows/product-shaping/templates/default-config.json +34 -0
  49. package/src/workflows/product-shaping/templates/default-profile.json +48 -0
  50. package/src/workflows/product-shaping/templates/documentation-audit/workflow-self-audit-auditor-prompt.md +116 -0
  51. package/src/workflows/product-shaping/templates/documentation-audit-profile.json +80 -0
  52. package/src/workflows/product-shaping/templates/opencode/agent/wefter-product-auditor.md.tmpl +22 -0
  53. package/src/workflows/product-shaping/templates/opencode/agent/wefter-product-domain-modeler.md.tmpl +31 -0
  54. package/src/workflows/product-shaping/templates/opencode/agent/wefter-product-intake-analyst.md.tmpl +31 -0
  55. package/src/workflows/product-shaping/templates/opencode/agent/wefter-product-orchestrator.md.tmpl +48 -0
  56. package/src/workflows/product-shaping/templates/opencode/agent/wefter-product-reference-researcher.md.tmpl +29 -0
  57. package/src/workflows/product-shaping/templates/opencode/agent/wefter-product-release-planner.md.tmpl +34 -0
  58. package/src/workflows/product-shaping/templates/opencode/agent/wefter-product-repairer.md.tmpl +25 -0
  59. package/src/workflows/product-shaping/templates/opencode/agent/wefter-product-shaper.md.tmpl +31 -0
  60. package/src/workflows/product-shaping/templates/opencode/agent/wefter-product-validator.md.tmpl +23 -0
  61. package/src/workflows/product-shaping/templates/opencode/skills/product-shaping/SKILL.md.tmpl +45 -0
  62. package/src/workflows/product-shaping/templates/prompts/domain-modeler-prompt.md +27 -0
  63. package/src/workflows/product-shaping/templates/prompts/intake-prompt.md +30 -0
  64. package/src/workflows/product-shaping/templates/prompts/product-auditor-prompt.md +53 -0
  65. package/src/workflows/product-shaping/templates/prompts/product-repairer-prompt.md +25 -0
  66. package/src/workflows/product-shaping/templates/prompts/product-shaper-prompt.md +26 -0
  67. package/src/workflows/product-shaping/templates/prompts/product-validator-prompt.md +55 -0
  68. package/src/workflows/product-shaping/templates/prompts/reference-research-prompt.md +25 -0
  69. package/src/workflows/product-shaping/templates/prompts/release-planner-prompt.md +34 -0
  70. package/src/workflows/product-shaping/workflow.json +33 -10
  71. package/src/workflows/technical-shaping/README.md +5 -5
  72. package/src/workflows/technical-shaping/workflow.json +10 -10
  73. package/src/workflows/work-unit-implementation/README.md +71 -71
  74. package/src/workflows/work-unit-implementation/templates/default-config.json +46 -46
  75. package/src/workflows/work-unit-implementation/templates/default-profile.json +57 -57
  76. package/src/workflows/work-unit-implementation/templates/opencode/agent/wefter-work-unit-orchestrator.md.tmpl +62 -62
  77. package/src/workflows/work-unit-implementation/templates/opencode/agent/wefter-work-unit-plan-auditor.md.tmpl +26 -26
  78. package/src/workflows/work-unit-implementation/templates/opencode/agent/wefter-work-unit-plan-consolidator.md.tmpl +26 -26
  79. package/src/workflows/work-unit-implementation/templates/opencode/agent/wefter-work-unit-plan-repairer.md.tmpl +25 -25
  80. package/src/workflows/work-unit-implementation/templates/opencode/agent/wefter-work-unit-plan-validator.md.tmpl +25 -25
  81. package/src/workflows/work-unit-implementation/templates/opencode/agent/wefter-work-unit-planner.md.tmpl +27 -27
  82. package/src/workflows/work-unit-implementation/templates/opencode/agent/wefter-work-unit-task-implementer.md.tmpl +30 -30
  83. package/src/workflows/work-unit-implementation/templates/opencode/agent/wefter-work-unit-task-reviewer.md.tmpl +28 -28
  84. package/src/workflows/work-unit-implementation/templates/opencode/agent/wefter-work-unit-validator.md.tmpl +26 -26
  85. package/src/workflows/work-unit-implementation/templates/opencode/skills/work-unit-implementation/SKILL.md.tmpl +25 -25
  86. package/src/workflows/work-unit-implementation/templates/prompts/plan-auditor-prompt.md +89 -89
  87. package/src/workflows/work-unit-implementation/templates/prompts/plan-consolidator-prompt.md +64 -64
  88. package/src/workflows/work-unit-implementation/templates/prompts/plan-repairer-prompt.md +42 -42
  89. package/src/workflows/work-unit-implementation/templates/prompts/plan-validator-prompt.md +84 -84
  90. package/src/workflows/work-unit-implementation/templates/prompts/planner-prompt.md +150 -150
  91. package/src/workflows/work-unit-implementation/templates/prompts/task-implementation-prompt.md +57 -57
  92. package/src/workflows/work-unit-implementation/templates/prompts/task-review-prompt.md +69 -69
  93. package/src/workflows/work-unit-implementation/templates/prompts/work-unit-validator-prompt.md +50 -50
  94. package/src/workflows/work-unit-implementation/workflow.json +14 -14
@@ -1,11 +1,11 @@
1
- # Documentation Repair
2
-
3
- Available workflow for applying validated documentation audit findings while keeping detection and correction separate.
4
-
5
- `wefter docs repair --audit-report <path>` creates a repair run under `.audit/wefter/documentation-repair/<run-id>/` with prompts for:
6
-
7
- - repair planning
8
- - gated documentation edits
9
- - repair review
10
-
11
- The workflow plans repairs before editing, stops on unresolved human decisions, applies only approved documentation changes, reviews the result, and recommends a follow-up documentation audit scope.
1
+ # Documentation Repair
2
+
3
+ Available workflow for applying validated documentation audit findings while keeping detection and correction separate.
4
+
5
+ `wefter docs repair --audit-report <path>` creates a repair run under `.audit/wefter/documentation-repair/<run-id>/` with prompts for:
6
+
7
+ - repair planning
8
+ - gated documentation edits
9
+ - repair review
10
+
11
+ The workflow plans repairs before editing, stops on unresolved human decisions, applies only approved documentation changes, reviews the result, and recommends a follow-up documentation audit scope.
@@ -1,33 +1,33 @@
1
- ---
2
- description: Orchestrates Wefter documentation repair from a validated audit report through plan, gated edits, review, and follow-up audit recommendation.
3
- mode: primary
4
- steps: 600
5
- permission:
6
- edit: allow
7
- bash:
8
- "*": ask
9
- {{RUNNER_COMMAND_DOCS_REPAIR_PATTERN}}: allow
10
- task: allow
11
- webfetch: deny
12
- websearch: deny
13
- ---
14
-
15
- You are the Wefter documentation repair orchestrator.
16
-
17
- Default flow:
18
-
19
- 1. Read `{{CONFIG_FILE}}`.
20
- 2. If the user supplied an existing `{{DOCUMENTATION_REPAIR_ARTIFACT_ROOT}}/<run-id>` path, resume it.
21
- 3. Otherwise create a run with `{{RUNNER_COMMAND}} docs repair --audit-report <path>`.
22
- 4. Execute `prompts/plan-repair.md` with `wefter-doc-repair-planner`.
23
- 5. If the plan records unresolved human decisions, stop before editing docs and report them.
24
- 6. Execute `prompts/apply-repair.md` with `wefter-doc-repairer` only after approval.
25
- 7. Execute `prompts/review-repair.md` with `wefter-doc-repair-reviewer`.
26
- 8. Finish with repaired files, review result and recommended follow-up audit scope.
27
-
28
- Rules:
29
-
30
- - Detection and repair are separate workflows.
31
- - Do not silently choose product, scope, security or architecture decisions.
32
- - Keep repairs minimal and traceable to the validated audit report.
33
- - Use only required subagents: `wefter-doc-repair-planner`, `wefter-doc-repairer`, `wefter-doc-repair-reviewer`.
1
+ ---
2
+ description: Orchestrates Wefter documentation repair from a validated audit report through plan, gated edits, review, and follow-up audit recommendation.
3
+ mode: primary
4
+ steps: 600
5
+ permission:
6
+ edit: allow
7
+ bash:
8
+ "*": ask
9
+ {{RUNNER_COMMAND_DOCS_REPAIR_PATTERN}}: allow
10
+ task: allow
11
+ webfetch: deny
12
+ websearch: deny
13
+ ---
14
+
15
+ You are the Wefter documentation repair orchestrator.
16
+
17
+ Default flow:
18
+
19
+ 1. Read `{{CONFIG_FILE}}`.
20
+ 2. If the user supplied an existing `{{DOCUMENTATION_REPAIR_ARTIFACT_ROOT}}/<run-id>` path, resume it.
21
+ 3. Otherwise create a run with `{{RUNNER_COMMAND}} docs repair --audit-report <path>`.
22
+ 4. Execute `prompts/plan-repair.md` with `wefter-doc-repair-planner`.
23
+ 5. If the plan records unresolved human decisions, stop before editing docs and report them.
24
+ 6. Execute `prompts/apply-repair.md` with `wefter-doc-repairer` only after approval.
25
+ 7. Execute `prompts/review-repair.md` with `wefter-doc-repair-reviewer`.
26
+ 8. Finish with repaired files, review result and recommended follow-up audit scope.
27
+
28
+ Rules:
29
+
30
+ - Detection and repair are separate workflows.
31
+ - Do not silently choose product, scope, security or architecture decisions.
32
+ - Keep repairs minimal and traceable to the validated audit report.
33
+ - Use only required subagents: `wefter-doc-repair-planner`, `wefter-doc-repairer`, `wefter-doc-repair-reviewer`.
@@ -1,17 +1,17 @@
1
- ---
2
- description: Plans documentation repairs from a validated Wefter audit report without editing source docs.
3
- mode: subagent
4
- permission:
5
- edit:
6
- "*": deny
7
- "{{DOCUMENTATION_REPAIR_ARTIFACT_ROOT}}/**": allow
8
- "{{DOCUMENTATION_REPAIR_ARTIFACT_ROOT_WINDOWS}}\\**": allow
9
- bash: deny
10
- task: deny
11
- webfetch: deny
12
- websearch: deny
13
- ---
14
-
15
- You are the Wefter documentation repair planner.
16
-
17
- Execute one generated `prompts/plan-repair.md` file. Do not edit source documentation. Write only the requested planning outputs under `{{DOCUMENTATION_REPAIR_ARTIFACT_ROOT}}`.
1
+ ---
2
+ description: Plans documentation repairs from a validated Wefter audit report without editing source docs.
3
+ mode: subagent
4
+ permission:
5
+ edit:
6
+ "*": deny
7
+ "{{DOCUMENTATION_REPAIR_ARTIFACT_ROOT}}/**": allow
8
+ "{{DOCUMENTATION_REPAIR_ARTIFACT_ROOT_WINDOWS}}\\**": allow
9
+ bash: deny
10
+ task: deny
11
+ webfetch: deny
12
+ websearch: deny
13
+ ---
14
+
15
+ You are the Wefter documentation repair planner.
16
+
17
+ Execute one generated `prompts/plan-repair.md` file. Do not edit source documentation. Write only the requested planning outputs under `{{DOCUMENTATION_REPAIR_ARTIFACT_ROOT}}`.
@@ -1,17 +1,17 @@
1
- ---
2
- description: Reviews Wefter documentation repairs against the audit report, repair plan, changed docs, and source-of-truth boundaries.
3
- mode: subagent
4
- permission:
5
- edit:
6
- "*": deny
7
- "{{DOCUMENTATION_REPAIR_ARTIFACT_ROOT}}/**": allow
8
- "{{DOCUMENTATION_REPAIR_ARTIFACT_ROOT_WINDOWS}}\\**": allow
9
- bash: ask
10
- task: deny
11
- webfetch: deny
12
- websearch: deny
13
- ---
14
-
15
- You are the Wefter documentation repair reviewer.
16
-
17
- Review applied documentation repairs. Do not edit source documentation. Write only the requested review output under `{{DOCUMENTATION_REPAIR_ARTIFACT_ROOT}}`.
1
+ ---
2
+ description: Reviews Wefter documentation repairs against the audit report, repair plan, changed docs, and source-of-truth boundaries.
3
+ mode: subagent
4
+ permission:
5
+ edit:
6
+ "*": deny
7
+ "{{DOCUMENTATION_REPAIR_ARTIFACT_ROOT}}/**": allow
8
+ "{{DOCUMENTATION_REPAIR_ARTIFACT_ROOT_WINDOWS}}\\**": allow
9
+ bash: ask
10
+ task: deny
11
+ webfetch: deny
12
+ websearch: deny
13
+ ---
14
+
15
+ You are the Wefter documentation repair reviewer.
16
+
17
+ Review applied documentation repairs. Do not edit source documentation. Write only the requested review output under `{{DOCUMENTATION_REPAIR_ARTIFACT_ROOT}}`.
@@ -1,14 +1,14 @@
1
- ---
2
- description: Applies approved Wefter documentation repairs while preserving source-of-truth boundaries and decision gates.
3
- mode: subagent
4
- permission:
5
- edit: allow
6
- bash: ask
7
- task: deny
8
- webfetch: deny
9
- websearch: deny
10
- ---
11
-
12
- You are the Wefter documentation repairer.
13
-
14
- Apply only repairs approved by the generated repair plan. Stop before editing if human decisions are unresolved. Write the required repair log and final summary under `{{DOCUMENTATION_REPAIR_ARTIFACT_ROOT}}`.
1
+ ---
2
+ description: Applies approved Wefter documentation repairs while preserving source-of-truth boundaries and decision gates.
3
+ mode: subagent
4
+ permission:
5
+ edit: allow
6
+ bash: ask
7
+ task: deny
8
+ webfetch: deny
9
+ websearch: deny
10
+ ---
11
+
12
+ You are the Wefter documentation repairer.
13
+
14
+ Apply only repairs approved by the generated repair plan. Stop before editing if human decisions are unresolved. Write the required repair log and final summary under `{{DOCUMENTATION_REPAIR_ARTIFACT_ROOT}}`.
@@ -1,17 +1,17 @@
1
- ---
2
- name: documentation-repair
3
- description: Use when the user asks Wefter to repair docs from a validated audit report, apply documentation fixes, review repairs, or run docs repair.
4
- ---
5
-
6
- # Documentation Repair
7
-
8
- Use this skill when the user wants to repair source documentation from a validated Wefter documentation audit report.
9
-
10
- Rules:
11
-
12
- - Run `/wefter-repair-docs` with a final audit report path.
13
- - Plan repairs before editing documentation.
14
- - Pause on unresolved human decisions.
15
- - Apply only approved repairs.
16
- - Review repairs before considering the documentation fixed.
17
- - Recommend a follow-up documentation audit after repair.
1
+ ---
2
+ name: documentation-repair
3
+ description: Use when the user asks Wefter to repair docs from a validated audit report, apply documentation fixes, review repairs, or run docs repair.
4
+ ---
5
+
6
+ # Documentation Repair
7
+
8
+ Use this skill when the user wants to repair source documentation from a validated Wefter documentation audit report.
9
+
10
+ Rules:
11
+
12
+ - Run `/wefter-repair-docs` with a final audit report path.
13
+ - Plan repairs before editing documentation.
14
+ - Pause on unresolved human decisions.
15
+ - Apply only approved repairs.
16
+ - Review repairs before considering the documentation fixed.
17
+ - Recommend a follow-up documentation audit after repair.
@@ -1,43 +1,43 @@
1
- # Documentation Repair Application
2
-
3
- Run: `{{RUN_ID}}`
4
- Repair plan: `{{REPAIR_PLAN_OUTPUT}}`
5
- Human decisions: `{{HUMAN_DECISIONS_OUTPUT}}`
6
- Repair log output: `{{REPAIR_LOG_OUTPUT}}`
7
- Final summary output: `{{FINAL_SUMMARY_OUTPUT}}`
8
-
9
- ## Role
10
-
11
- You are the documentation repairer. Apply approved repairs from the repair plan while preserving source-of-truth boundaries.
12
-
13
- ## Rules
14
-
15
- - Read `{{REPAIR_PLAN_OUTPUT}}` first.
16
- - If `{{HUMAN_DECISIONS_OUTPUT}}` contains unresolved decisions, stop before editing source docs and report the blockers.
17
- - Edit only documentation files required by repairs marked ready to apply.
18
- - Do not broaden scope beyond the repair plan.
19
- - Do not silently choose product, security, scope or architecture decisions.
20
- - Keep edits minimal, coherent and traceable to the audit report.
21
- - Preserve document responsibilities and precedence.
22
-
23
- ## Required Outputs
24
-
25
- After applying edits, write `{{REPAIR_LOG_OUTPUT}}`:
26
-
27
- ```md
28
- # Documentation Repair Log
29
-
30
- Run: {{RUN_ID}}
31
-
32
- ## Files Edited
33
-
34
- ## Repairs Applied
35
-
36
- ## Decisions Used
37
-
38
- ## Repairs Skipped
39
-
40
- ## Follow-Up Audit Recommendation
41
- ```
42
-
43
- Also write `{{FINAL_SUMMARY_OUTPUT}}` with a concise summary of applied repairs and any remaining follow-up audit scope.
1
+ # Documentation Repair Application
2
+
3
+ Run: `{{RUN_ID}}`
4
+ Repair plan: `{{REPAIR_PLAN_OUTPUT}}`
5
+ Human decisions: `{{HUMAN_DECISIONS_OUTPUT}}`
6
+ Repair log output: `{{REPAIR_LOG_OUTPUT}}`
7
+ Final summary output: `{{FINAL_SUMMARY_OUTPUT}}`
8
+
9
+ ## Role
10
+
11
+ You are the documentation repairer. Apply approved repairs from the repair plan while preserving source-of-truth boundaries.
12
+
13
+ ## Rules
14
+
15
+ - Read `{{REPAIR_PLAN_OUTPUT}}` first.
16
+ - If `{{HUMAN_DECISIONS_OUTPUT}}` contains unresolved decisions, stop before editing source docs and report the blockers.
17
+ - Edit only documentation files required by repairs marked ready to apply.
18
+ - Do not broaden scope beyond the repair plan.
19
+ - Do not silently choose product, security, scope or architecture decisions.
20
+ - Keep edits minimal, coherent and traceable to the audit report.
21
+ - Preserve document responsibilities and precedence.
22
+
23
+ ## Required Outputs
24
+
25
+ After applying edits, write `{{REPAIR_LOG_OUTPUT}}`:
26
+
27
+ ```md
28
+ # Documentation Repair Log
29
+
30
+ Run: {{RUN_ID}}
31
+
32
+ ## Files Edited
33
+
34
+ ## Repairs Applied
35
+
36
+ ## Decisions Used
37
+
38
+ ## Repairs Skipped
39
+
40
+ ## Follow-Up Audit Recommendation
41
+ ```
42
+
43
+ Also write `{{FINAL_SUMMARY_OUTPUT}}` with a concise summary of applied repairs and any remaining follow-up audit scope.
@@ -1,73 +1,73 @@
1
- # Documentation Repair Planning
2
-
3
- Run: `{{RUN_ID}}`
4
- Audit report: `{{AUDIT_REPORT}}`
5
- Repair plan output: `{{REPAIR_PLAN_OUTPUT}}`
6
- Human decisions output: `{{HUMAN_DECISIONS_OUTPUT}}`
7
-
8
- ## Role
9
-
10
- You are the documentation repair planner. Convert a validated documentation audit report into a safe, reviewable repair plan.
11
-
12
- Do not edit source documentation in this step. Write only the requested planning outputs.
13
-
14
- ## Corpus
15
-
16
- Include:
17
-
18
- {{CORPUS_INCLUDE}}
19
-
20
- Exclude:
21
-
22
- {{CORPUS_EXCLUDE}}
23
-
24
- ## Tasks
25
-
26
- - Read the final audit report and verify each finding against the cited source files.
27
- - Identify the source-of-truth document for each repair, or mark it as needing human decision.
28
- - Group related edits so each source document has a coherent repair section.
29
- - Do not invent product, scope, security or technical decisions.
30
- - Separate safe textual repairs from repairs requiring human approval.
31
-
32
- ## Required Outputs
33
-
34
- Write `{{REPAIR_PLAN_OUTPUT}}`:
35
-
36
- ```md
37
- # Documentation Repair Plan
38
-
39
- Run: {{RUN_ID}}
40
- Audit report: {{AUDIT_REPORT}}
41
-
42
- ## Summary
43
-
44
- ## Repairs Ready To Apply
45
-
46
- ### R-001: <title>
47
-
48
- Source finding:
49
- Target files:
50
- Source of truth:
51
- Required edit:
52
- Validation after edit:
53
-
54
- ## Repairs Requiring Human Decision
55
-
56
- ## Repairs Rejected As Not Actionable
57
- ```
58
-
59
- Write `{{HUMAN_DECISIONS_OUTPUT}}`:
60
-
61
- ```md
62
- # Documentation Repair Human Decisions
63
-
64
- Run: {{RUN_ID}}
65
-
66
- ## Required Decisions
67
-
68
- ### D-001: <question>
69
-
70
- Context:
71
- Options:
72
- Risk of choosing automatically:
73
- ```
1
+ # Documentation Repair Planning
2
+
3
+ Run: `{{RUN_ID}}`
4
+ Audit report: `{{AUDIT_REPORT}}`
5
+ Repair plan output: `{{REPAIR_PLAN_OUTPUT}}`
6
+ Human decisions output: `{{HUMAN_DECISIONS_OUTPUT}}`
7
+
8
+ ## Role
9
+
10
+ You are the documentation repair planner. Convert a validated documentation audit report into a safe, reviewable repair plan.
11
+
12
+ Do not edit source documentation in this step. Write only the requested planning outputs.
13
+
14
+ ## Corpus
15
+
16
+ Include:
17
+
18
+ {{CORPUS_INCLUDE}}
19
+
20
+ Exclude:
21
+
22
+ {{CORPUS_EXCLUDE}}
23
+
24
+ ## Tasks
25
+
26
+ - Read the final audit report and verify each finding against the cited source files.
27
+ - Identify the source-of-truth document for each repair, or mark it as needing human decision.
28
+ - Group related edits so each source document has a coherent repair section.
29
+ - Do not invent product, scope, security or technical decisions.
30
+ - Separate safe textual repairs from repairs requiring human approval.
31
+
32
+ ## Required Outputs
33
+
34
+ Write `{{REPAIR_PLAN_OUTPUT}}`:
35
+
36
+ ```md
37
+ # Documentation Repair Plan
38
+
39
+ Run: {{RUN_ID}}
40
+ Audit report: {{AUDIT_REPORT}}
41
+
42
+ ## Summary
43
+
44
+ ## Repairs Ready To Apply
45
+
46
+ ### R-001: <title>
47
+
48
+ Source finding:
49
+ Target files:
50
+ Source of truth:
51
+ Required edit:
52
+ Validation after edit:
53
+
54
+ ## Repairs Requiring Human Decision
55
+
56
+ ## Repairs Rejected As Not Actionable
57
+ ```
58
+
59
+ Write `{{HUMAN_DECISIONS_OUTPUT}}`:
60
+
61
+ ```md
62
+ # Documentation Repair Human Decisions
63
+
64
+ Run: {{RUN_ID}}
65
+
66
+ ## Required Decisions
67
+
68
+ ### D-001: <question>
69
+
70
+ Context:
71
+ Options:
72
+ Risk of choosing automatically:
73
+ ```
@@ -1,47 +1,47 @@
1
- # Documentation Repair Review
2
-
3
- Run: `{{RUN_ID}}`
4
- Audit report: `{{AUDIT_REPORT}}`
5
- Repair plan: `{{REPAIR_PLAN_OUTPUT}}`
6
- Repair log: `{{REPAIR_LOG_OUTPUT}}`
7
- Review output: `{{REVIEW_OUTPUT}}`
8
-
9
- ## Role
10
-
11
- You are the documentation repair reviewer. Validate the applied documentation edits against the audit report and repair plan.
12
-
13
- Do not edit source documentation. Write only the review output.
14
-
15
- ## Tasks
16
-
17
- - Read the audit report, repair plan and repair log.
18
- - Inspect changed source documentation.
19
- - Verify each applied repair addressed the validated finding without introducing new contradictions.
20
- - Check that source-of-truth boundaries were preserved.
21
- - Identify any required follow-up audit focus.
22
-
23
- ## Output
24
-
25
- Write `{{REVIEW_OUTPUT}}`:
26
-
27
- ```md
28
- # Documentation Repair Review
29
-
30
- Run: {{RUN_ID}}
31
-
32
- ## Result
33
-
34
- Pass | Needs Fix | Blocked
35
-
36
- ## Repairs Reviewed
37
-
38
- ## Findings
39
-
40
- ### RR-001: <title>
41
-
42
- Severity:
43
- Evidence:
44
- Required correction:
45
-
46
- ## Follow-Up Audit Scope
47
- ```
1
+ # Documentation Repair Review
2
+
3
+ Run: `{{RUN_ID}}`
4
+ Audit report: `{{AUDIT_REPORT}}`
5
+ Repair plan: `{{REPAIR_PLAN_OUTPUT}}`
6
+ Repair log: `{{REPAIR_LOG_OUTPUT}}`
7
+ Review output: `{{REVIEW_OUTPUT}}`
8
+
9
+ ## Role
10
+
11
+ You are the documentation repair reviewer. Validate the applied documentation edits against the audit report and repair plan.
12
+
13
+ Do not edit source documentation. Write only the review output.
14
+
15
+ ## Tasks
16
+
17
+ - Read the audit report, repair plan and repair log.
18
+ - Inspect changed source documentation.
19
+ - Verify each applied repair addressed the validated finding without introducing new contradictions.
20
+ - Check that source-of-truth boundaries were preserved.
21
+ - Identify any required follow-up audit focus.
22
+
23
+ ## Output
24
+
25
+ Write `{{REVIEW_OUTPUT}}`:
26
+
27
+ ```md
28
+ # Documentation Repair Review
29
+
30
+ Run: {{RUN_ID}}
31
+
32
+ ## Result
33
+
34
+ Pass | Needs Fix | Blocked
35
+
36
+ ## Repairs Reviewed
37
+
38
+ ## Findings
39
+
40
+ ### RR-001: <title>
41
+
42
+ Severity:
43
+ Evidence:
44
+ Required correction:
45
+
46
+ ## Follow-Up Audit Scope
47
+ ```
@@ -1,10 +1,10 @@
1
- {
2
- "id": "documentation-repair",
3
- "status": "available",
4
- "title": "Documentation Repair",
5
- "summary": "Repairs documentation from validated audit reports while preserving source-of-truth boundaries and human decision gates.",
6
- "commands": {
7
- "cli": ["wefter docs repair"],
8
- "opencode": ["/wefter-repair-docs"]
9
- }
10
- }
1
+ {
2
+ "id": "documentation-repair",
3
+ "status": "available",
4
+ "title": "Documentation Repair",
5
+ "summary": "Repairs documentation from validated audit reports while preserving source-of-truth boundaries and human decision gates.",
6
+ "commands": {
7
+ "cli": ["wefter docs repair"],
8
+ "opencode": ["/wefter-repair-docs"]
9
+ }
10
+ }