@wefter/opencode 0.1.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 (65) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/LICENSE +21 -0
  3. package/README.md +112 -0
  4. package/bin/wefter.js +8 -0
  5. package/docs/ARCHITECTURE.md +79 -0
  6. package/docs/INSTALLATION.md +46 -0
  7. package/docs/SAFETY_MODEL.md +17 -0
  8. package/docs/WORKFLOWS.md +13 -0
  9. package/package.json +45 -0
  10. package/schemas/documentation-audit-profile.schema.json +47 -0
  11. package/schemas/run-manifest.schema.json +14 -0
  12. package/schemas/wefter.config.schema.json +31 -0
  13. package/schemas/work-unit-config.schema.json +44 -0
  14. package/schemas/work-unit-profile.schema.json +38 -0
  15. package/schemas/work-unit-review-result.schema.json +13 -0
  16. package/schemas/workflow-manifest.schema.json +21 -0
  17. package/src/cli/main.js +1858 -0
  18. package/src/workflows/documentation-audit/README.md +37 -0
  19. package/src/workflows/documentation-audit/templates/README.md.tmpl +47 -0
  20. package/src/workflows/documentation-audit/templates/opencode/agent/wefter-doc-audit-consolidator.md.tmpl +27 -0
  21. package/src/workflows/documentation-audit/templates/opencode/agent/wefter-doc-audit-orchestrator.md.tmpl +65 -0
  22. package/src/workflows/documentation-audit/templates/opencode/agent/wefter-doc-audit-profile-builder.md.tmpl +58 -0
  23. package/src/workflows/documentation-audit/templates/opencode/agent/wefter-doc-audit-validator.md.tmpl +26 -0
  24. package/src/workflows/documentation-audit/templates/opencode/agent/wefter-doc-auditor.md.tmpl +28 -0
  25. package/src/workflows/documentation-audit/templates/opencode/skills/documentation-audit/SKILL.md.tmpl +38 -0
  26. package/src/workflows/documentation-audit/templates/prompts/auditor-prompt.md +97 -0
  27. package/src/workflows/documentation-audit/templates/prompts/consolidator-prompt.md +84 -0
  28. package/src/workflows/documentation-audit/templates/prompts/validator-prompt.md +92 -0
  29. package/src/workflows/documentation-audit/workflow.json +24 -0
  30. package/src/workflows/documentation-repair/README.md +11 -0
  31. package/src/workflows/documentation-repair/templates/opencode/agent/wefter-doc-repair-orchestrator.md.tmpl +33 -0
  32. package/src/workflows/documentation-repair/templates/opencode/agent/wefter-doc-repair-planner.md.tmpl +17 -0
  33. package/src/workflows/documentation-repair/templates/opencode/agent/wefter-doc-repair-reviewer.md.tmpl +17 -0
  34. package/src/workflows/documentation-repair/templates/opencode/agent/wefter-doc-repairer.md.tmpl +14 -0
  35. package/src/workflows/documentation-repair/templates/opencode/skills/documentation-repair/SKILL.md.tmpl +17 -0
  36. package/src/workflows/documentation-repair/templates/prompts/repair-apply-prompt.md +43 -0
  37. package/src/workflows/documentation-repair/templates/prompts/repair-plan-prompt.md +73 -0
  38. package/src/workflows/documentation-repair/templates/prompts/repair-review-prompt.md +47 -0
  39. package/src/workflows/documentation-repair/workflow.json +10 -0
  40. package/src/workflows/product-shaping/README.md +7 -0
  41. package/src/workflows/product-shaping/workflow.json +10 -0
  42. package/src/workflows/technical-shaping/README.md +5 -0
  43. package/src/workflows/technical-shaping/workflow.json +10 -0
  44. package/src/workflows/work-unit-implementation/README.md +71 -0
  45. package/src/workflows/work-unit-implementation/templates/default-config.json +46 -0
  46. package/src/workflows/work-unit-implementation/templates/default-profile.json +57 -0
  47. package/src/workflows/work-unit-implementation/templates/opencode/agent/wefter-work-unit-orchestrator.md.tmpl +62 -0
  48. package/src/workflows/work-unit-implementation/templates/opencode/agent/wefter-work-unit-plan-auditor.md.tmpl +26 -0
  49. package/src/workflows/work-unit-implementation/templates/opencode/agent/wefter-work-unit-plan-consolidator.md.tmpl +26 -0
  50. package/src/workflows/work-unit-implementation/templates/opencode/agent/wefter-work-unit-plan-repairer.md.tmpl +25 -0
  51. package/src/workflows/work-unit-implementation/templates/opencode/agent/wefter-work-unit-plan-validator.md.tmpl +25 -0
  52. package/src/workflows/work-unit-implementation/templates/opencode/agent/wefter-work-unit-planner.md.tmpl +27 -0
  53. package/src/workflows/work-unit-implementation/templates/opencode/agent/wefter-work-unit-task-implementer.md.tmpl +30 -0
  54. package/src/workflows/work-unit-implementation/templates/opencode/agent/wefter-work-unit-task-reviewer.md.tmpl +28 -0
  55. package/src/workflows/work-unit-implementation/templates/opencode/agent/wefter-work-unit-validator.md.tmpl +26 -0
  56. package/src/workflows/work-unit-implementation/templates/opencode/skills/work-unit-implementation/SKILL.md.tmpl +25 -0
  57. package/src/workflows/work-unit-implementation/templates/prompts/plan-auditor-prompt.md +89 -0
  58. package/src/workflows/work-unit-implementation/templates/prompts/plan-consolidator-prompt.md +64 -0
  59. package/src/workflows/work-unit-implementation/templates/prompts/plan-repairer-prompt.md +42 -0
  60. package/src/workflows/work-unit-implementation/templates/prompts/plan-validator-prompt.md +84 -0
  61. package/src/workflows/work-unit-implementation/templates/prompts/planner-prompt.md +150 -0
  62. package/src/workflows/work-unit-implementation/templates/prompts/task-implementation-prompt.md +57 -0
  63. package/src/workflows/work-unit-implementation/templates/prompts/task-review-prompt.md +69 -0
  64. package/src/workflows/work-unit-implementation/templates/prompts/work-unit-validator-prompt.md +50 -0
  65. package/src/workflows/work-unit-implementation/workflow.json +14 -0
@@ -0,0 +1,50 @@
1
+ # Final Work-Unit Validation
2
+
3
+ Run: `{{RUN_ID}}`
4
+ Work unit: `{{WORK_UNIT_KEY}}`
5
+ Output: `{{WORK_UNIT_VALIDATION_OUTPUT}}`
6
+
7
+ ## Role
8
+
9
+ You are the final validator for the work unit. Validate the complete result against the approved plan, task specs, acceptance criteria and source documentation.
10
+
11
+ ## Inputs
12
+
13
+ - Approved plan: `{{VERSIONED_WORK_UNIT_PLAN}}`
14
+ - Approved task specs: `{{VERSIONED_TASK_SPECS_DIR}}`
15
+ - Approved traceability matrix: `{{VERSIONED_TRACEABILITY_MATRIX}}`
16
+ - Verification plan: `{{VERSIONED_VERIFICATION_PLAN}}`
17
+ - Decision log: `{{VERSIONED_DECISION_LOG}}`
18
+ - Task logs: `{{TASK_LOG_DIR}}`
19
+ - Task reviews: `{{TASK_REVIEW_DIR}}`
20
+
21
+ ## Tasks
22
+
23
+ - Before validating, confirm the deterministic guard `ReadyForFinalValidation` was executed successfully for this run.
24
+ - Verify that all tasks were executed or explicitly cancelled with reason.
25
+ - Verify that all task reviews passed or have documented correction.
26
+ - Verify work-unit acceptance criteria.
27
+ - Verify tests and commands run.
28
+ - Verify documentation and decision log.
29
+ - List blocking and non-blocking pending items.
30
+
31
+ ## Output
32
+
33
+ Write `{{WORK_UNIT_VALIDATION_OUTPUT}}`:
34
+
35
+ ```md
36
+ # {{WORK_UNIT_KEY}} Final Validation
37
+
38
+ ## Result
39
+
40
+ Passed | Passed With Follow Ups | Blocked
41
+
42
+ ## Scope Validation
43
+ ## Acceptance Criteria Validation
44
+ ## Task Review Summary
45
+ ## Tests And Commands
46
+ ## Documentation Validation
47
+ ## Decision Log Validation
48
+ ## Blockers
49
+ ## Follow Ups
50
+ ```
@@ -0,0 +1,14 @@
1
+ {
2
+ "id": "work-unit-implementation",
3
+ "status": "available",
4
+ "title": "Work Unit Implementation",
5
+ "summary": "Plans, audits, repairs, gates, implements, reviews and validates one release work unit at a time using task-level TDD and deterministic guards.",
6
+ "commands": {
7
+ "cli": [
8
+ "wefter work-unit run",
9
+ "wefter work-unit guard"
10
+ ],
11
+ "opencode": ["/wefter-run-work-unit"]
12
+ },
13
+ "source": "Ported from the reference implementation-slice workflow semantics. The standalone Wefter terminology is work unit."
14
+ }