opencode-agent-orchestration-kit 1.0.27

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 (236) hide show
  1. package/.github/CODEOWNERS +1 -0
  2. package/.github/ISSUE_TEMPLATE/bug_report.yml +65 -0
  3. package/.github/ISSUE_TEMPLATE/config.yml +11 -0
  4. package/.github/ISSUE_TEMPLATE/documentation.yml +22 -0
  5. package/.github/ISSUE_TEMPLATE/feature_request.yml +43 -0
  6. package/.github/PULL_REQUEST_TEMPLATE.md +25 -0
  7. package/.github/workflows/check.yml +47 -0
  8. package/CODE_OF_CONDUCT.md +24 -0
  9. package/CONTRIBUTING.md +52 -0
  10. package/LICENSE +201 -0
  11. package/NOTICE.md +23 -0
  12. package/README.md +806 -0
  13. package/SECURITY.md +17 -0
  14. package/docker/open-design/.env.example +6 -0
  15. package/docker/open-design/Dockerfile +50 -0
  16. package/docker/open-design/docker-compose.yml +18 -0
  17. package/docker/open-design/opencode-od/agents/od-worker.md +22 -0
  18. package/docker/open-design/opencode-od/opencode.json +24 -0
  19. package/docs/agents.md +21 -0
  20. package/docs/commands.md +16 -0
  21. package/docs/configuration.md +30 -0
  22. package/docs/docker-open-design.md +42 -0
  23. package/docs/impeccable.md +18 -0
  24. package/docs/installation.md +176 -0
  25. package/docs/models.md +17 -0
  26. package/docs/open-design.md +25 -0
  27. package/docs/quickstart.md +74 -0
  28. package/docs/releases/v1.0.10.md +46 -0
  29. package/docs/releases/v1.0.14.md +39 -0
  30. package/docs/releases/v1.0.27.md +66 -0
  31. package/docs/security.md +8 -0
  32. package/docs/superpowers/plans/2026-07-20-safe-installation-lifecycle.md +779 -0
  33. package/docs/superpowers/plans/2026-07-20-version-identity-and-releases.md +590 -0
  34. package/docs/superpowers/specs/2026-07-20-safe-installation-lifecycle-design.md +1350 -0
  35. package/docs/superpowers/specs/2026-07-20-version-identity-and-releases-design.md +557 -0
  36. package/docs/superpowers.md +34 -0
  37. package/docs/synology.md +30 -0
  38. package/docs/troubleshooting.md +54 -0
  39. package/docs/workflows.md +44 -0
  40. package/doctor.sh +5 -0
  41. package/env.example +15 -0
  42. package/install.sh +5 -0
  43. package/opencode/AGENTS.md +104 -0
  44. package/opencode/agents/debugger.md +41 -0
  45. package/opencode/agents/designer.md +93 -0
  46. package/opencode/agents/developer.md +180 -0
  47. package/opencode/agents/evaluator.md +35 -0
  48. package/opencode/agents/evolver.md +31 -0
  49. package/opencode/agents/lead.md +251 -0
  50. package/opencode/agents/researcher.md +76 -0
  51. package/opencode/agents/review_api.md +34 -0
  52. package/opencode/agents/review_coordinator.md +111 -0
  53. package/opencode/agents/review_quality.md +35 -0
  54. package/opencode/agents/review_security.md +35 -0
  55. package/opencode/agents/review_tests.md +37 -0
  56. package/opencode/agents/reviewer.md +116 -0
  57. package/opencode/agents/scoper.md +75 -0
  58. package/opencode/agents/specifier.md +116 -0
  59. package/opencode/commands/code-simplify.md +36 -0
  60. package/opencode/commands/design.md +27 -0
  61. package/opencode/commands/evolve.md +165 -0
  62. package/opencode/commands/feature.md +67 -0
  63. package/opencode/commands/implement.md +11 -0
  64. package/opencode/commands/init.md +34 -0
  65. package/opencode/commands/loop.md +145 -0
  66. package/opencode/commands/mvp-spec.md +20 -0
  67. package/opencode/commands/plan.md +74 -0
  68. package/opencode/commands/research.md +12 -0
  69. package/opencode/commands/review-orchestrated.md +47 -0
  70. package/opencode/commands/review-preflight.md +26 -0
  71. package/opencode/commands/review.md +18 -0
  72. package/opencode/commands/scope.md +36 -0
  73. package/opencode/commands/spec.md +12 -0
  74. package/opencode/commands/test.md +40 -0
  75. package/opencode/docs/ai/evolution/README.md +135 -0
  76. package/opencode/docs/ai/evolution/benchmarks/manual-scenarios.md +123 -0
  77. package/opencode/docs/ai/evolution/benchmarks/router-scenarios.jsonl +8 -0
  78. package/opencode/docs/ai/evolution/evolution_history.md +83 -0
  79. package/opencode/docs/ai/evolution/mechanisms.jsonl +7 -0
  80. package/opencode/docs/ai/evolution/rejected_mechanisms.jsonl +2 -0
  81. package/opencode/docs/ai/evolution/runs/README.md +15 -0
  82. package/opencode/docs/ai/evolution/runs/iteration-001-sidecar/analysis/overview.md +12 -0
  83. package/opencode/docs/ai/evolution/runs/iteration-001-sidecar/change_evaluation.json +108 -0
  84. package/opencode/docs/ai/evolution/runs/iteration-001-sidecar/change_manifest.json +52 -0
  85. package/opencode/docs/ai/evolution/runs/iteration-001-sidecar/evaluation.md +19 -0
  86. package/opencode/docs/ai/evolution/runs/iteration-001-sidecar/post_evaluation.md +12 -0
  87. package/opencode/docs/ai/evolution/runs/iteration-002-feature-flow-fix/analysis/overview.md +7 -0
  88. package/opencode/docs/ai/evolution/runs/iteration-002-feature-flow-fix/change_evaluation.json +31 -0
  89. package/opencode/docs/ai/evolution/runs/iteration-002-feature-flow-fix/evaluation.md +19 -0
  90. package/opencode/docs/ai/evolution/runs/iteration-003-agent-readable-harness/analysis/overview.md +13 -0
  91. package/opencode/docs/ai/evolution/runs/iteration-003-agent-readable-harness/change_evaluation.json +66 -0
  92. package/opencode/docs/ai/evolution/runs/iteration-003-agent-readable-harness/change_manifest.json +82 -0
  93. package/opencode/docs/ai/evolution/runs/iteration-003-agent-readable-harness/evaluation.md +20 -0
  94. package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/detail/ahe-run-lifecycle-validator.md +40 -0
  95. package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/detail/evolve-evaluation-only-contract.md +15 -0
  96. package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/detail/open-design-tool-contract.md +14 -0
  97. package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/detail/slash-command-contract-coverage.md +40 -0
  98. package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/overview.md +17 -0
  99. package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/pre_apply_approval.md +15 -0
  100. package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/change_evaluation.json +252 -0
  101. package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/change_manifest.json +210 -0
  102. package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/evaluation.md +25 -0
  103. package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/post_apply_evaluation.md +15 -0
  104. package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/post_manifest_evaluation.md +14 -0
  105. package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/pre_apply_evaluation.md +15 -0
  106. package/opencode/docs/ai/evolution/runs/iteration-005-harness-orchestration-audit/analysis/overview.md +13 -0
  107. package/opencode/docs/ai/evolution/runs/iteration-005-harness-orchestration-audit/change_evaluation.json +14 -0
  108. package/opencode/docs/ai/evolution/runs/iteration-005-harness-orchestration-audit/change_manifest.json +30 -0
  109. package/opencode/docs/ai/evolution/runs/iteration-005-harness-orchestration-audit/evaluation.md +25 -0
  110. package/opencode/docs/ai/evolution/runs/iteration-006-lead-delegation-audit/analysis/overview.md +13 -0
  111. package/opencode/docs/ai/evolution/runs/iteration-006-lead-delegation-audit/change_evaluation.json +14 -0
  112. package/opencode/docs/ai/evolution/runs/iteration-006-lead-delegation-audit/change_manifest.json +29 -0
  113. package/opencode/docs/ai/evolution/runs/iteration-006-lead-delegation-audit/evaluation.md +18 -0
  114. package/opencode/docs/ai/evolution/runs/iteration-007-agent-skills-integration/analysis/overview.md +13 -0
  115. package/opencode/docs/ai/evolution/runs/iteration-007-agent-skills-integration/change_evaluation.json +14 -0
  116. package/opencode/docs/ai/evolution/runs/iteration-007-agent-skills-integration/change_manifest.json +34 -0
  117. package/opencode/docs/ai/evolution/runs/iteration-007-agent-skills-integration/evaluation.md +17 -0
  118. package/opencode/docs/ai/evolution/runs/iteration-008-lead-readonly-shell-permissions/analysis/overview.md +13 -0
  119. package/opencode/docs/ai/evolution/runs/iteration-008-lead-readonly-shell-permissions/change_evaluation.json +12 -0
  120. package/opencode/docs/ai/evolution/runs/iteration-008-lead-readonly-shell-permissions/change_manifest.json +28 -0
  121. package/opencode/docs/ai/evolution/runs/iteration-008-lead-readonly-shell-permissions/evaluation.md +17 -0
  122. package/opencode/docs/ai/evolution/runs/iteration-009-lead-developer-ownership-loop/analysis/overview.md +9 -0
  123. package/opencode/docs/ai/evolution/runs/iteration-009-lead-developer-ownership-loop/change_evaluation.json +14 -0
  124. package/opencode/docs/ai/evolution/runs/iteration-009-lead-developer-ownership-loop/change_manifest.json +31 -0
  125. package/opencode/docs/ai/evolution/runs/iteration-009-lead-developer-ownership-loop/evaluation.md +18 -0
  126. package/opencode/docs/ai/evolution/runs/iteration-010-token-plugin-sidebar-content/analysis/overview.md +12 -0
  127. package/opencode/docs/ai/evolution/runs/iteration-010-token-plugin-sidebar-content/change_evaluation.json +14 -0
  128. package/opencode/docs/ai/evolution/runs/iteration-010-token-plugin-sidebar-content/change_manifest.json +31 -0
  129. package/opencode/docs/ai/evolution/runs/iteration-010-token-plugin-sidebar-content/evaluation.md +17 -0
  130. package/opencode/docs/ai/evolution/runs/iteration-011-lead-cd-which-permissions/analysis/overview.md +10 -0
  131. package/opencode/docs/ai/evolution/runs/iteration-011-lead-cd-which-permissions/change_evaluation.json +14 -0
  132. package/opencode/docs/ai/evolution/runs/iteration-011-lead-cd-which-permissions/change_manifest.json +30 -0
  133. package/opencode/docs/ai/evolution/runs/iteration-011-lead-cd-which-permissions/evaluation.md +17 -0
  134. package/opencode/docs/ai/evolution/runs/iteration-012-lead-shell-allowlist-boundaries/analysis/overview.md +25 -0
  135. package/opencode/docs/ai/evolution/runs/iteration-012-lead-shell-allowlist-boundaries/change_evaluation.json +28 -0
  136. package/opencode/docs/ai/evolution/runs/iteration-012-lead-shell-allowlist-boundaries/change_manifest.json +31 -0
  137. package/opencode/docs/ai/evolution/runs/iteration-012-lead-shell-allowlist-boundaries/evaluation.md +22 -0
  138. package/opencode/docs/ai/evolution/runs/iteration-013-doc-gardening-mechanical-checks/analysis/overview.md +27 -0
  139. package/opencode/docs/ai/evolution/runs/iteration-013-doc-gardening-mechanical-checks/change_evaluation.json +32 -0
  140. package/opencode/docs/ai/evolution/runs/iteration-013-doc-gardening-mechanical-checks/change_manifest.json +49 -0
  141. package/opencode/docs/ai/evolution/runs/iteration-013-doc-gardening-mechanical-checks/evaluation.md +92 -0
  142. package/opencode/docs/ai/evolution/runs/iteration-014-harness-baseline/analysis/detail/token-vs-semantic.md +31 -0
  143. package/opencode/docs/ai/evolution/runs/iteration-014-harness-baseline/analysis/overview.md +14 -0
  144. package/opencode/docs/ai/evolution/runs/iteration-014-harness-baseline/evaluation.md +36 -0
  145. package/opencode/docs/ai/evolution/runs/iteration-015-semantic-checker/analysis/overview.md +13 -0
  146. package/opencode/docs/ai/evolution/runs/iteration-015-semantic-checker/change_evaluation.json +31 -0
  147. package/opencode/docs/ai/evolution/runs/iteration-015-semantic-checker/change_manifest.json +47 -0
  148. package/opencode/docs/ai/evolution/runs/iteration-015-semantic-checker/evaluation.md +27 -0
  149. package/opencode/docs/ai/evolution/runs/iteration-016-contract-prompt-alignment/analysis/overview.md +32 -0
  150. package/opencode/docs/ai/evolution/runs/iteration-016-contract-prompt-alignment/change_evaluation.json +31 -0
  151. package/opencode/docs/ai/evolution/runs/iteration-016-contract-prompt-alignment/change_manifest.json +35 -0
  152. package/opencode/docs/ai/evolution/runs/iteration-016-contract-prompt-alignment/evaluation.md +31 -0
  153. package/opencode/docs/ai/evolution/runs/iteration-017-ahe-cycle/analysis/detail/pattern-1-feature-sidecar-false-positive.md +51 -0
  154. package/opencode/docs/ai/evolution/runs/iteration-017-ahe-cycle/analysis/detail/pattern-2-checker-time-budget.md +52 -0
  155. package/opencode/docs/ai/evolution/runs/iteration-017-ahe-cycle/analysis/overview.md +99 -0
  156. package/opencode/docs/ai/evolution/runs/iteration-017-ahe-cycle/change_evaluation.json +61 -0
  157. package/opencode/docs/ai/evolution/runs/iteration-017-ahe-cycle/change_manifest.json +61 -0
  158. package/opencode/docs/ai/evolution/runs/iteration-017-ahe-cycle/evaluation.md +448 -0
  159. package/opencode/docs/ai/evolution/runs/iteration-018-free-message-routing-audit/analysis/detail/intake-gray-zone.md +65 -0
  160. package/opencode/docs/ai/evolution/runs/iteration-018-free-message-routing-audit/analysis/overview.md +172 -0
  161. package/opencode/docs/ai/evolution/runs/iteration-018-free-message-routing-audit/evaluation.md +226 -0
  162. package/opencode/docs/ai/evolution/runs/iteration-019-handoff-routing-audit/analysis/detail/plan-only-gray-zone.md +62 -0
  163. package/opencode/docs/ai/evolution/runs/iteration-019-handoff-routing-audit/analysis/overview.md +167 -0
  164. package/opencode/docs/ai/evolution/runs/iteration-019-handoff-routing-audit/evaluation.md +163 -0
  165. package/opencode/docs/ai/evolution/runs/iteration-020-loop-engineering-command/analysis/overview.md +42 -0
  166. package/opencode/docs/ai/evolution/runs/iteration-020-loop-engineering-command/change_evaluation.json +46 -0
  167. package/opencode/docs/ai/evolution/runs/iteration-020-loop-engineering-command/change_manifest.json +57 -0
  168. package/opencode/docs/ai/evolution/runs/iteration-020-loop-engineering-command/evaluation.md +48 -0
  169. package/opencode/docs/ai/evolution/runs/iteration-021/analysis/detail/contract-vs-runtime-gap.md +163 -0
  170. package/opencode/docs/ai/evolution/runs/iteration-021/analysis/detail/evidence-collection-blocker.md +134 -0
  171. package/opencode/docs/ai/evolution/runs/iteration-021/analysis/overview.md +111 -0
  172. package/opencode/docs/ai/evolution/runs/iteration-021/change_evaluation.json +52 -0
  173. package/opencode/docs/ai/evolution/runs/iteration-021/change_manifest.json +50 -0
  174. package/opencode/docs/ai/evolution/runs/iteration-021/evaluation.md +46 -0
  175. package/opencode/docs/ai/evolution/runs/iteration-021/manifest-justification.md +48 -0
  176. package/opencode/docs/ai/evolution/session-sources.md +91 -0
  177. package/opencode/docs/ai/harness/README.md +32 -0
  178. package/opencode/docs/ai/harness/agents.md +148 -0
  179. package/opencode/docs/ai/harness/checks.md +119 -0
  180. package/opencode/docs/ai/harness/commands.md +391 -0
  181. package/opencode/docs/ai/harness/evidence.md +85 -0
  182. package/opencode/docs/ai/harness/init-detection-rules.md +160 -0
  183. package/opencode/docs/ai/harness/orchestrated-review.md +131 -0
  184. package/opencode/docs/ai/harness/skill-metadata-schema.md +198 -0
  185. package/opencode/docs/ai/harness/skill-resolution.md +202 -0
  186. package/opencode/docs/ai/harness/skill_registry.json +443 -0
  187. package/opencode/docs/ai/harness/skill_registry.md +43 -0
  188. package/opencode/docs/ai/project-context-template.md +53 -0
  189. package/opencode/opencode.json +38 -0
  190. package/opencode/package-lock.json +1717 -0
  191. package/opencode/package.json +11 -0
  192. package/opencode/plugins/token-tree-usage.tsx +206 -0
  193. package/opencode/references/performance-checklist.md +153 -0
  194. package/opencode/references/security-checklist.md +134 -0
  195. package/opencode/references/testing-patterns.md +236 -0
  196. package/opencode/scripts/check-harness.mjs +1572 -0
  197. package/opencode/scripts/check-harness.test.mjs +820 -0
  198. package/opencode/scripts/collect-session-evidence.mjs +612 -0
  199. package/opencode/scripts/collect-session-evidence.test.mjs +443 -0
  200. package/opencode/scripts/preflight-audit.mjs +497 -0
  201. package/opencode/scripts/preflight-audit.test.mjs +363 -0
  202. package/opencode/scripts/project-capability-snapshot.mjs +407 -0
  203. package/opencode/scripts/project-capability-snapshot.test.mjs +382 -0
  204. package/opencode/scripts/review-orchestrated-prepare.mjs +547 -0
  205. package/opencode/scripts/review-orchestrated-prepare.test.mjs +516 -0
  206. package/opencode/scripts/skill-resolver.mjs +585 -0
  207. package/opencode/scripts/skill-resolver.test.mjs +781 -0
  208. package/opencode/scripts/update-skill-registry.mjs +380 -0
  209. package/opencode/skills/api-and-interface-design/SKILL.md +315 -0
  210. package/opencode/skills/autonomous-loops/SKILL.md +312 -0
  211. package/opencode/skills/code-review-and-quality/SKILL.md +365 -0
  212. package/opencode/skills/code-simplification/SKILL.md +345 -0
  213. package/opencode/skills/context-engineering/SKILL.md +252 -0
  214. package/opencode/skills/debugging-and-error-recovery/SKILL.md +316 -0
  215. package/opencode/skills/documentation-and-adrs/SKILL.md +298 -0
  216. package/opencode/skills/doubt-driven-development/SKILL.md +168 -0
  217. package/opencode/skills/iterative-retrieval/SKILL.md +232 -0
  218. package/opencode/skills/open-design/SKILL.md +123 -0
  219. package/opencode/skills/performance-optimization/SKILL.md +365 -0
  220. package/opencode/skills/security-and-hardening/SKILL.md +369 -0
  221. package/opencode/skills/source-driven-development/SKILL.md +210 -0
  222. package/opencode/skills/test-driven-development/SKILL.md +406 -0
  223. package/opencode/skills/using-agent-skills/SKILL.md +194 -0
  224. package/opencode/skills/verification-loop/SKILL.md +162 -0
  225. package/opencode/tools/open_design.ts +361 -0
  226. package/opencode/tui.json +5 -0
  227. package/package.json +20 -0
  228. package/rollback.sh +5 -0
  229. package/scripts/check.sh +184 -0
  230. package/scripts/install-smoke.sh +111 -0
  231. package/scripts/manage-installation.mjs +1498 -0
  232. package/scripts/manage-installation.test.mjs +1936 -0
  233. package/scripts/version.mjs +197 -0
  234. package/scripts/version.test.mjs +195 -0
  235. package/uninstall.sh +5 -0
  236. package/upgrade.sh +5 -0
@@ -0,0 +1,82 @@
1
+ {
2
+ "iteration": 3,
3
+ "changes": [
4
+ {
5
+ "id": "chg-1",
6
+ "type": "improvement",
7
+ "description": "Convert AGENTS.md into a shorter harness index and move detailed agent, command, evidence, and check contracts into docs/ai/harness.",
8
+ "files": [
9
+ "AGENTS.md",
10
+ "docs/ai/harness/README.md",
11
+ "docs/ai/harness/agents.md",
12
+ "docs/ai/harness/commands.md",
13
+ "docs/ai/harness/evidence.md",
14
+ "docs/ai/harness/checks.md"
15
+ ],
16
+ "failure_pattern": "Harness knowledge was spread across global instructions, commands, agents, and evolution docs without a dedicated agent-readable map.",
17
+ "evidence": [
18
+ "docs/ai/evolution/runs/iteration-003-agent-readable-harness/evaluation.md",
19
+ "docs/ai/evolution/runs/iteration-003-agent-readable-harness/analysis/overview.md"
20
+ ],
21
+ "predicted_fixes": [
22
+ "agents-find-contracts-without-large-agents-md",
23
+ "command-and-agent-contracts-have-versioned-source-of-truth"
24
+ ],
25
+ "risk_tasks": [
26
+ "agents-md-loses-critical-global-rule",
27
+ "harness-docs-duplicate-command-files"
28
+ ],
29
+ "constraint_level": "memory",
30
+ "why_this_component": "The root issue is harness knowledge layout and agent readability, so the smallest sufficient change is documentation structure rather than command or agent behavior."
31
+ },
32
+ {
33
+ "id": "chg-2",
34
+ "type": "new",
35
+ "description": "Add a no-dependency local harness validator for config, frontmatter, feature flow, harness docs, benchmark evidence terms, and AHE manifests.",
36
+ "files": [
37
+ "scripts/check-harness.mjs",
38
+ "docs/ai/harness/checks.md"
39
+ ],
40
+ "failure_pattern": "Important harness invariants were documented but not mechanically checked.",
41
+ "evidence": [
42
+ "docs/ai/evolution/runs/iteration-003-agent-readable-harness/evaluation.md"
43
+ ],
44
+ "predicted_fixes": [
45
+ "frontmatter-drift-caught-locally",
46
+ "default-agent-regression-caught-locally",
47
+ "sidecars-in-feature-flow-caught-locally",
48
+ "manifest-shape-errors-caught-locally"
49
+ ],
50
+ "risk_tasks": [
51
+ "validator-blocks-valid-future-run-shape",
52
+ "validator-becomes-too-broad"
53
+ ],
54
+ "constraint_level": "tool",
55
+ "why_this_component": "The invariant failures are structural and cheap to detect locally, so a small repository script is more reliable than another prose rule."
56
+ },
57
+ {
58
+ "id": "chg-3",
59
+ "type": "improvement",
60
+ "description": "Extend benchmark documentation with executable OpenCode replay commands and an explicit evidence taxonomy.",
61
+ "files": [
62
+ "docs/ai/evolution/benchmarks/manual-scenarios.md",
63
+ "docs/ai/harness/evidence.md",
64
+ "docs/ai/evolution/runs/iteration-003-agent-readable-harness/evaluation.md"
65
+ ],
66
+ "failure_pattern": "Baseline scenarios relied on manual-oracle evidence and did not define when transcript replay or live smoke evidence is required.",
67
+ "evidence": [
68
+ "docs/ai/evolution/runs/iteration-003-agent-readable-harness/evaluation.md"
69
+ ],
70
+ "predicted_fixes": [
71
+ "benchmark-can-run-transcript-replay",
72
+ "manual-oracle-not-mistaken-for-routing-proof"
73
+ ],
74
+ "risk_tasks": [
75
+ "transcript-replay-overstated-as-full-runtime-proof",
76
+ "benchmark-docs-become-too-heavy"
77
+ ],
78
+ "constraint_level": "workflow",
79
+ "why_this_component": "The failure is in evaluation workflow and evidence standards, so the change belongs in benchmark and evidence docs."
80
+ }
81
+ ]
82
+ }
@@ -0,0 +1,20 @@
1
+ # Evaluation: iteration-003-agent-readable-harness
2
+
3
+ ## Objective
4
+
5
+ Make the harness easier for agents to inspect by moving stable contracts out of
6
+ the short `AGENTS.md` file and into versioned docs under `docs/ai/harness/`.
7
+
8
+ ## Evidence
9
+
10
+ - `static_contract`: short global map plus dedicated agent, command, evidence,
11
+ and check docs.
12
+ - local validator: `node scripts/check-harness.mjs`.
13
+ - transcript replay: one small free-form request confirmed the intended direct
14
+ routing contract at the time.
15
+
16
+ ## Result
17
+
18
+ The harness docs became agent-readable and the validator caught real formatting
19
+ issues during development. The change did not modify models, providers, or
20
+ credentials.
@@ -0,0 +1,40 @@
1
+ # Pattern: AHE run lifecycle validator rejects valid intermediate state
2
+
3
+ ## Observed evidence
4
+
5
+ - `evaluation.md` S1 records `node scripts/check-harness.mjs` passing before the evaluator artifact existed and failing after `evaluation.md` was created.
6
+ - Failure text: `docs/ai/evolution/runs/iteration-004-orchestration-audit: missing analysis/overview.md`.
7
+ - `scripts/check-harness.mjs:153-159` iterates every run directory and always requires both `evaluation.md` and `analysis/overview.md`.
8
+ - `agents/evaluator.md:63-69` says evaluator creates `evaluation.md` and leaves `analysis/` for debugger.
9
+ - `agents/debugger.md:33` says debugger produces `analysis/overview.md` for AHE.
10
+
11
+ ## Expected behavior
12
+
13
+ The local harness check should distinguish a valid AHE run in progress from an invalid completed run. A state with `evaluation.md` but no `analysis/overview.md` is valid between evaluator and debugger, especially when the current task is step 2 to create analysis.
14
+
15
+ ## Root cause
16
+
17
+ The validator models AHE runs as an all-or-nothing final shape. It has no lifecycle/stage rule and therefore treats a legitimate evaluator-only intermediate state as structurally broken.
18
+
19
+ ## Affected component level
20
+
21
+ `tool` primarily (`scripts/check-harness.mjs`), with `workflow` implications for AHE validation timing.
22
+
23
+ ## Candidate remediation
24
+
25
+ - Teach the check an explicit AHE lifecycle: e.g. `evaluation.md` alone is allowed for an in-progress evaluator stage; `analysis/overview.md` is required before manifest or closure; manifests still require shape validation and follow-up evaluation rules.
26
+ - Keep safeguards for abandoned/incoherent runs, such as flagging manifest without analysis or invalid JSON.
27
+ - Document the accepted intermediate states in `docs/ai/harness/checks.md`.
28
+
29
+ ## Confidence
30
+
31
+ High. The failing line is explicit in the script, and the agent contracts explicitly assign `analysis/` to debugger.
32
+
33
+ ## Evidence that would falsify it
34
+
35
+ - A harness policy stating `check-harness` must only be run after debugger and never during evaluator phase.
36
+ - A hidden convention requiring evaluator to create a placeholder `analysis/overview.md` before handoff. No such convention was found in inspected docs.
37
+
38
+ ## Evidence sufficiency for evolver
39
+
40
+ Sufficient for a manifest proposing a validator/tool change. Post-change validation should include running `node scripts/check-harness.mjs` in both an evaluator-only run state and a complete run state.
@@ -0,0 +1,15 @@
1
+ # Detail: evolve evaluation-only contract
2
+
3
+ Problem:
4
+
5
+ `/evolve` needed to support audit/evaluation requests that intentionally stop
6
+ after evaluator or debugger output.
7
+
8
+ Fix direction:
9
+
10
+ - document `evaluation-only`;
11
+ - document `debugger-only` / `no-apply` branches;
12
+ - keep manifest and developer work conditional on evidence, user scope, and
13
+ approval.
14
+
15
+ The change must not imply rollback without git.
@@ -0,0 +1,14 @@
1
+ # Detail: Open Design tool contract
2
+
3
+ Problem:
4
+
5
+ The Open Design command and skill instructions had drifted from the exposed tool
6
+ schema. They implied health/list calls could omit `baseUrl`, while the available
7
+ tool contract required a resolved base URL.
8
+
9
+ Fix direction:
10
+
11
+ - remove obsolete no-argument guidance;
12
+ - require a non-guessed `baseUrl` from approved configuration or context;
13
+ - stop and ask when no approved base URL is available;
14
+ - avoid mutating Open Design calls during contract-only validation.
@@ -0,0 +1,40 @@
1
+ # Pattern: Versioned slash-command contracts do not cover all command files
2
+
3
+ ## Observed evidence
4
+
5
+ - `docs/ai/harness/README.md:7-13` declares `commands.md` as the source of truth for command contracts.
6
+ - `docs/ai/harness/commands.md` covers free-form messages, `/feature`, `/scope`, `/design`, `/evolve`, and `/review`.
7
+ - Repository command files also include `commands/research.md`, `commands/spec.md`, and `commands/implement.md`.
8
+ - `AGENTS.md:10` and `docs/ai/harness/commands.md:11` mention `/spec` as a possible route, but `commands.md` has no `/spec` section.
9
+ - `commands/spec.md` delegates directly to `specifier`, while `docs/ai/harness/agents.md:11,22` says specifier must wait when research/design is critical.
10
+
11
+ ## Expected behavior
12
+
13
+ Every visible slash command should either have a contract in the versioned source of truth or be explicitly classified as auxiliary/subtask with inherited barriers. This is needed for routing evaluation and check coverage.
14
+
15
+ ## Root cause
16
+
17
+ The harness split command files from versioned contract docs without a coverage invariant. As a result, new or auxiliary commands can exist outside the declared source of truth.
18
+
19
+ ## Affected component level
20
+
21
+ `memory` primarily (`docs/ai/harness/commands.md` as persistent contract map), with possible `command` updates for `/research`, `/spec`, `/implement` if their own files need guardrails.
22
+
23
+ ## Candidate remediation
24
+
25
+ - Add sections or an auxiliary-command policy for `/research`, `/spec`, and `/implement` in `docs/ai/harness/commands.md`.
26
+ - Explicitly state inherited blockers: `/spec` cannot bypass required research/design; `/implement` requires approved task/spec or clear direct scope; `/research` does not implement.
27
+ - Consider extending `check-harness` to detect undocumented `commands/*.md` or require an allowlist of auxiliary commands.
28
+
29
+ ## Confidence
30
+
31
+ High. File coverage mismatch is directly observable.
32
+
33
+ ## Evidence that would falsify it
34
+
35
+ - A documented policy elsewhere saying `docs/ai/harness/commands.md` intentionally covers only top-level commands and excludes `subtask: true` commands.
36
+ - Hidden command discovery behavior that prevents `/research`, `/spec`, and `/implement` from being user-visible slash commands. No such evidence was found.
37
+
38
+ ## Evidence sufficiency for evolver
39
+
40
+ Sufficient for a manifest proposing memory/command documentation and/or a coverage check. Post-change replay is recommended if routing behavior is changed; static check is enough if only the source-of-truth coverage is documented.
@@ -0,0 +1,17 @@
1
+ # Analysis: iteration-004-orchestration-audit
2
+
3
+ Root causes:
4
+
5
+ - The harness validator treated some legitimate AHE in-progress states as
6
+ invalid.
7
+ - `/evolve` implied manifest creation too strongly for evaluation-only or
8
+ debugger-only requests.
9
+ - Some visible commands and Open Design contracts had documentation drift.
10
+
11
+ Applied scope:
12
+
13
+ - relax lifecycle validation only for documented in-progress states;
14
+ - clarify `/evolve` non-apply branches;
15
+ - defer command coverage and Open Design fixes to later iterations.
16
+
17
+ This was a harness-contract change only.
@@ -0,0 +1,15 @@
1
+ # Pre-apply Approval: iteration-004-orchestration-audit
2
+
3
+ Approved scope:
4
+
5
+ - AHE lifecycle validator behavior for in-progress evaluator/debugger states.
6
+ - `/evolve` wording for evaluation-only and debugger-only branches.
7
+
8
+ Excluded scope:
9
+
10
+ - provider/model configuration;
11
+ - credentials or secrets;
12
+ - MCP configuration;
13
+ - Open Design runtime smoke;
14
+ - deferred auxiliary command coverage;
15
+ - application implementation files.
@@ -0,0 +1,252 @@
1
+ {
2
+ "iteration": 4,
3
+ "evaluates_iteration": 4,
4
+ "evaluates_manifest": "docs/ai/evolution/runs/iteration-004-orchestration-audit/change_manifest.json",
5
+ "evaluation_type": "post_apply_attribution",
6
+ "applied_scope": [
7
+ "chg-1-ahe-run-lifecycle-validator",
8
+ "chg-2-evolve-evaluation-only-contract"
9
+ ],
10
+ "deferred_scope": [
11
+ "chg-3-slash-command-contract-coverage",
12
+ "chg-4-design-open-design-baseurl-contract"
13
+ ],
14
+ "overall_decision": "keep",
15
+ "overall_notes": "Developer applied only the approved scope, chg-1 and chg-2. Post-apply evaluation confirms the harness validator behavior operationally for chg-1 and confirms the /evolve contract statically for chg-2. No rollback+pivot signal is present: checks pass, negative control still fails, manifest statuses match approved/deferred scope, and diff/sensitive scan stayed inside allowed files. Residual transcript replay for chg-2 is future evidence, not a blocker for keeping the command-contract clarification because no regression was observed and the applied change is documentation/contract-level.",
16
+ "artifact_note": "Creating or maintaining this change_evaluation.json completes the AHE attribution artifact required by the harness. It is not, by itself, proof that applied changes work; proof is linked through post_apply_evaluation.md and validation commands below.",
17
+ "evidence_artifacts": [
18
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/change_manifest.json",
19
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/post_apply_evaluation.md",
20
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/pre_apply_evaluation.md",
21
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/pre_apply_approval.md"
22
+ ],
23
+ "validation_outputs_referenced": [
24
+ {
25
+ "command": "node scripts/check-harness.mjs",
26
+ "result": "pass",
27
+ "output": "Harness check passed.",
28
+ "evidence": "docs/ai/evolution/runs/iteration-004-orchestration-audit/post_apply_evaluation.md:18-24"
29
+ },
30
+ {
31
+ "command": "node scripts/check-harness.mjs against temporary evaluator-only fixture",
32
+ "result": "pass",
33
+ "output": "Harness check passed.",
34
+ "evidence": "docs/ai/evolution/runs/iteration-004-orchestration-audit/post_apply_evaluation.md:20-22"
35
+ },
36
+ {
37
+ "command": "node scripts/check-harness.mjs against temporary manifest-without-analysis control",
38
+ "result": "expected_fail",
39
+ "output": "missing analysis/overview.md; manifest exists without change_evaluation.json; EXIT_STATUS=1",
40
+ "evidence": "docs/ai/evolution/runs/iteration-004-orchestration-audit/post_apply_evaluation.md:21-24"
41
+ },
42
+ {
43
+ "command": "JSON parse and manifest status checks via local Node scripts",
44
+ "result": "pass",
45
+ "output": "chg-1/chg-2 implemented_applied; chg-3/chg-4 deferred_not_approved; approved_changes only chg-1/chg-2",
46
+ "evidence": "docs/ai/evolution/runs/iteration-004-orchestration-audit/post_apply_evaluation.md:23-24"
47
+ },
48
+ {
49
+ "command": "Static contract check for commands/evolve.md and docs/ai/harness/commands.md",
50
+ "result": "pass",
51
+ "output": "evaluation-only/debugger-only/no-apply branches present; full AHE and manifest-required-for-applied-change preserved",
52
+ "evidence": "docs/ai/evolution/runs/iteration-004-orchestration-audit/post_apply_evaluation.md:24-25"
53
+ },
54
+ {
55
+ "command": "Diff scope and sensitive filename scan",
56
+ "result": "pass",
57
+ "output": "files changed/untracked within allowlist; no provider/model/credential/secret/token/key matches",
58
+ "evidence": "docs/ai/evolution/runs/iteration-004-orchestration-audit/post_apply_evaluation.md:25-26"
59
+ }
60
+ ],
61
+ "results": [
62
+ {
63
+ "change_id": "chg-1-ahe-run-lifecycle-validator",
64
+ "manifest_status": "implemented_applied",
65
+ "applied": true,
66
+ "decision": "keep",
67
+ "decision_notes": "Operationally confirmed. The validator now accepts an evaluator-only AHE intermediate state while preserving strict failure for a run that has a manifest without debugger analysis/closure. No predicted risk task was observed in the post-apply fixtures or harness check.",
68
+ "predicted_fixes": [
69
+ {
70
+ "id": "check-harness-allows-evaluator-only-ahe-run-state",
71
+ "status": "confirmed",
72
+ "evidence": "post_apply_evaluation.md:20-22,85-89"
73
+ },
74
+ {
75
+ "id": "check-harness-still-fails-manifest-without-debugger-analysis",
76
+ "status": "confirmed",
77
+ "evidence": "post_apply_evaluation.md:21-24,47-54,87-89"
78
+ },
79
+ {
80
+ "id": "ahe-step-1-and-step-2-validation-no-longer-blocked-by-premature-complete-run-shape",
81
+ "status": "confirmed",
82
+ "evidence": "post_apply_evaluation.md:20-24,83-90",
83
+ "note": "Confirmed by local harness check plus evaluator-only fixture; no full /evolve transcript replay was run. The missing replay is tracked as residual evidence, not as a blocking contradiction for this tool-level change."
84
+ }
85
+ ],
86
+ "predicted_fixes_confirmed": [
87
+ "check-harness-allows-evaluator-only-ahe-run-state",
88
+ "check-harness-still-fails-manifest-without-debugger-analysis",
89
+ "ahe-step-1-and-step-2-validation-no-longer-blocked-by-premature-complete-run-shape"
90
+ ],
91
+ "predicted_fixes_unconfirmed": [],
92
+ "risk_tasks": [
93
+ {
94
+ "id": "validator-accepts-abandoned-incomplete-runs-too-broadly",
95
+ "status": "not_observed",
96
+ "evidence": "post_apply_evaluation.md:21-24,101-107"
97
+ },
98
+ {
99
+ "id": "manifest-shape-errors-hidden-by-lifecycle-exception",
100
+ "status": "not_observed",
101
+ "evidence": "post_apply_evaluation.md:21-24,101-107"
102
+ },
103
+ {
104
+ "id": "check-harness-lifecycle-rules-become-hard-to-understand",
105
+ "status": "not_observed",
106
+ "evidence": "post_apply_evaluation.md:64-65,101-107"
107
+ }
108
+ ],
109
+ "risk_tasks_observed": [],
110
+ "risk_tasks_not_observed": [
111
+ "validator-accepts-abandoned-incomplete-runs-too-broadly",
112
+ "manifest-shape-errors-hidden-by-lifecycle-exception",
113
+ "check-harness-lifecycle-rules-become-hard-to-understand"
114
+ ],
115
+ "unpredicted_regressions": [],
116
+ "evidence": [
117
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/change_manifest.json:52-90",
118
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/post_apply_evaluation.md:18-24",
119
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/post_apply_evaluation.md:83-90",
120
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/post_apply_evaluation.md:101-107"
121
+ ]
122
+ },
123
+ {
124
+ "change_id": "chg-2-evolve-evaluation-only-contract",
125
+ "manifest_status": "implemented_applied",
126
+ "applied": true,
127
+ "decision": "keep",
128
+ "decision_notes": "Statically confirmed and safe to keep with a documented replay limitation. The applied change targets command wording; post-apply static checks confirm evaluation-only/debugger-only/no-apply branches and preservation of full AHE manifest requirements. No evidence supports rollback+pivot because no regression was observed; improve is not required for this pass unless reviewer makes transcript replay mandatory before acceptance.",
129
+ "residual_evidence_non_blocking": [
130
+ "Transcript replay with opencode run --format json --thinking for evaluation-only/debugger-only/full-flow branches was not run. This remains future evidence for agent behavior, not proof of current regression."
131
+ ],
132
+ "predicted_fixes": [
133
+ {
134
+ "id": "evolve-audit-only-stops-after-evaluator-or-debugger-when-requested",
135
+ "status": "confirmed_static_contract",
136
+ "evidence": "post_apply_evaluation.md:24-25,91-95,117-120"
137
+ },
138
+ {
139
+ "id": "evolve-manifest-created-only-when-evolver-has-sufficient-evidence-and-user-scope-allows-it",
140
+ "status": "confirmed_static_contract",
141
+ "evidence": "post_apply_evaluation.md:24-25,91-95"
142
+ },
143
+ {
144
+ "id": "evolve-no-apply-requests-do-not-pressure-developer-implementation",
145
+ "status": "confirmed_static_contract",
146
+ "evidence": "post_apply_evaluation.md:24-25,91-95"
147
+ }
148
+ ],
149
+ "predicted_fixes_confirmed": [
150
+ "evolve-audit-only-stops-after-evaluator-or-debugger-when-requested",
151
+ "evolve-manifest-created-only-when-evolver-has-sufficient-evidence-and-user-scope-allows-it",
152
+ "evolve-no-apply-requests-do-not-pressure-developer-implementation"
153
+ ],
154
+ "predicted_fixes_unconfirmed": [],
155
+ "risk_tasks": [
156
+ {
157
+ "id": "evolve-skips-required-manifest-after-actual-harness-change",
158
+ "status": "not_observed_static_contract",
159
+ "evidence": "post_apply_evaluation.md:24-25,101-109"
160
+ },
161
+ {
162
+ "id": "evolve-command-wording-becomes-too-branchy-for-agents",
163
+ "status": "not_observed",
164
+ "evidence": "post_apply_evaluation.md:24-25,112-115",
165
+ "note": "No agent replay was run; reviewer semantic diff remains recommended."
166
+ },
167
+ {
168
+ "id": "ahe-full-flow-less-obvious-to-users",
169
+ "status": "not_observed_static_contract",
170
+ "evidence": "post_apply_evaluation.md:24-25,101-109"
171
+ }
172
+ ],
173
+ "risk_tasks_observed": [],
174
+ "risk_tasks_not_observed": [
175
+ "evolve-skips-required-manifest-after-actual-harness-change",
176
+ "evolve-command-wording-becomes-too-branchy-for-agents",
177
+ "ahe-full-flow-less-obvious-to-users"
178
+ ],
179
+ "unpredicted_regressions": [],
180
+ "evidence": [
181
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/change_manifest.json:91-128",
182
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/post_apply_evaluation.md:23-25",
183
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/post_apply_evaluation.md:91-100",
184
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/post_apply_evaluation.md:108-120"
185
+ ]
186
+ },
187
+ {
188
+ "change_id": "chg-3-slash-command-contract-coverage",
189
+ "manifest_status": "deferred_not_approved",
190
+ "applied": false,
191
+ "decision": "not_applied",
192
+ "attribution_status": "deferred_not_approved",
193
+ "decision_notes": "Not evaluated as an applied change. It was explicitly outside the approved developer scope and remains deferred.",
194
+ "predicted_fixes_confirmed": [],
195
+ "predicted_fixes_unconfirmed": [],
196
+ "predicted_fixes_not_applied": [
197
+ "commands-md-documents-or-classifies-all-visible-slash-commands",
198
+ "spec-command-cannot-be-read-as-bypassing-required-research-or-design",
199
+ "research-and-implement-commands-have-evaluable-routing-contracts"
200
+ ],
201
+ "risk_tasks_observed": [],
202
+ "risk_tasks_not_observed": [],
203
+ "risk_tasks_not_applied": [
204
+ "auxiliary-command-policy-accidentally-promotes-subtasks-to-top-level-flows",
205
+ "spec-command-overconstrained-for-simple-direct-spec-requests",
206
+ "command-coverage-check-creates-maintenance-noise-for intentionally hidden commands"
207
+ ],
208
+ "evidence": [
209
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/change_manifest.json:129-166",
210
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/post_apply_evaluation.md:3-15",
211
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/post_apply_evaluation.md:70-81,112-115"
212
+ ]
213
+ },
214
+ {
215
+ "change_id": "chg-4-design-open-design-baseurl-contract",
216
+ "manifest_status": "deferred_not_approved",
217
+ "applied": false,
218
+ "decision": "not_applied",
219
+ "attribution_status": "deferred_not_approved",
220
+ "decision_notes": "Not evaluated as an applied change. It was explicitly outside the approved developer scope and remains deferred.",
221
+ "predicted_fixes_confirmed": [],
222
+ "predicted_fixes_unconfirmed": [],
223
+ "predicted_fixes_not_applied": [
224
+ "design-command-no-longer-instructs-impossible-open-design-tool-calls",
225
+ "design-health-and-list-tools-have-clear-baseurl-source",
226
+ "feature-visual-flow-less-likely-to-block-before-specifier-due-to-tool-schema-mismatch"
227
+ ],
228
+ "risk_tasks_observed": [],
229
+ "risk_tasks_not_observed": [],
230
+ "risk_tasks_not_applied": [
231
+ "design-command-hardcodes-environment-specific-baseurl",
232
+ "open-design-smoke-still-fails-if-skill-config-source-is-unclear",
233
+ "design-command-starts-running-artifact-creating-tools-during-audit"
234
+ ],
235
+ "evidence": [
236
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/change_manifest.json:167-204",
237
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/post_apply_evaluation.md:3-15",
238
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/post_apply_evaluation.md:70-81,112-115"
239
+ ]
240
+ }
241
+ ],
242
+ "handoff": {
243
+ "reviewer_readiness": "ready_for_review",
244
+ "reviewer_focus": [
245
+ "Confirm semantic diff for commands/evolve.md and docs/ai/harness/commands.md does not inadvertently implement chg-3 or chg-4.",
246
+ "Decide whether transcript replay for /evolve is required before merge or can remain future evidence."
247
+ ],
248
+ "future_evidence": [
249
+ "Run opencode run --format json --thinking transcript replay for /evolve evaluation-only/debugger-only/full-flow prompts when a runtime behavior claim is required."
250
+ ]
251
+ }
252
+ }