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,123 @@
1
+ # Benchmark Scenarios
2
+
3
+ These scenarios are the initial harness benchmark. They can be executed as a
4
+ manual oracle, but behavior changes should move toward real replay with JSON
5
+ events.
6
+
7
+ ## Base Command
8
+
9
+ Free-form message:
10
+
11
+ ```bash
12
+ opencode run --format json --thinking --dir <repo-path> "<prompt>"
13
+ ```
14
+
15
+ Slash command:
16
+
17
+ ```bash
18
+ opencode run --format json --thinking --command <command> --dir <repo-path> "<prompt>"
19
+ ```
20
+
21
+ ## Evidence Taxonomy
22
+
23
+ - `static_contract`: inspect files, frontmatter, manifests, and declared flows.
24
+ - `transcript_replay`: run `opencode run --format json --thinking`.
25
+ - `live_smoke`: test the real repo, app, browser, or runtime.
26
+ - `manual_oracle`: documented human judgment when automation is not useful.
27
+
28
+ ## Scenarios
29
+
30
+ ## feature-small-no-design
31
+
32
+ Goal: verify that a small feature with no visual impact does not activate design
33
+ unnecessarily.
34
+
35
+ Criteria:
36
+
37
+ - `lead` inspects context.
38
+ - `specifier` produces minimum acceptance criteria when the change is not trivial.
39
+ - `developer` does not act without clear criteria.
40
+ - `reviewer` reviews only after a diff.
41
+
42
+ Minimum evidence: `static_contract`.
43
+ Evidence for routing changes: `transcript_replay`.
44
+
45
+ ## feature-technical-research
46
+
47
+ Goal: verify that technical uncertainty goes through research before spec.
48
+
49
+ Criteria:
50
+
51
+ - `researcher` reads internal sources before external ones.
52
+ - `specifier` waits for research handoff.
53
+ - Risks and assumptions enter the spec.
54
+
55
+ Minimum evidence: `static_contract`.
56
+ Evidence for routing changes: `transcript_replay`.
57
+
58
+ ## feature-design-open-design
59
+
60
+ Goal: verify that visual impact activates designer and Open Design.
61
+
62
+ Criteria:
63
+
64
+ - `designer` looks for `PRODUCT.md` and `DESIGN.md`.
65
+ - If they are missing, designer uses or proposes product/design context.
66
+ - Visual handoff contains observable criteria.
67
+ - `specifier` waits for visual handoff.
68
+
69
+ Minimum evidence: `static_contract`.
70
+ Evidence for visual changes: `live_smoke` or verifiable visual handoff.
71
+
72
+ ## research-to-spec-no-implementation
73
+
74
+ Goal: verify that `scoper` does not implement.
75
+
76
+ Criteria:
77
+
78
+ - Allowed flow: researcher -> optional debugger only with evidence -> specifier.
79
+ - Does not invoke designer, developer, or reviewer.
80
+ - Produces scoped, validatable tasks.
81
+
82
+ Minimum evidence: `static_contract`.
83
+ Evidence for routing changes: `transcript_replay`.
84
+
85
+ ## review-current-diff
86
+
87
+ Goal: verify that `reviewer` reviews the diff against spec/evidence.
88
+
89
+ Criteria:
90
+
91
+ - Uses `git diff` if available.
92
+ - If no git exists, declares the limitation.
93
+ - Findings are ordered by severity.
94
+ - Does not modify files.
95
+
96
+ Minimum evidence: `static_contract`.
97
+
98
+ ## ambiguous-request-clarification
99
+
100
+ Goal: verify that ambiguous requests do not become invented specs.
101
+
102
+ Criteria:
103
+
104
+ - `lead` or `specifier` lists assumptions.
105
+ - If a critical decision is missing, asks for clarification.
106
+ - If a reasonable assumption is enough, marks it.
107
+
108
+ Minimum evidence: `manual_oracle`.
109
+ Evidence for routing changes: `transcript_replay`.
110
+
111
+ ## validation-failure-blocks-close
112
+
113
+ Goal: verify that failed validation blocks closure.
114
+
115
+ Criteria:
116
+
117
+ - `evaluator` records fail when used.
118
+ - `debugger` analyzes root cause if the failure is not obvious.
119
+ - `reviewer` does not approve without a decision about the failure.
120
+ - `lead` closes only with explicit risk or follow-up task.
121
+
122
+ Minimum evidence: `static_contract`.
123
+ Evidence for close/validation changes: `transcript_replay` or `live_smoke`.
@@ -0,0 +1,8 @@
1
+ {"id":"freeform-tiny-direct-fix","prompt":"Change a clear button label and verify the diff.","expected_agent":"developer","command_path":"freeform","allowed_skills":[],"forbidden_sidecars":["evaluator","debugger","evolver"],"required_evidence":["static_contract"]}
2
+ {"id":"freeform-ambiguous-clarify","prompt":"Fix this so it works better.","expected_agent":"lead","command_path":"freeform","allowed_skills":[],"forbidden_sidecars":["developer","evolver"],"required_evidence":["manual_oracle","transcript_replay"]}
3
+ {"id":"feature-technical-research","prompt":"Add an integration with a changing API and decide the current library.","expected_agent":"researcher","command_path":"/feature","allowed_skills":["source-driven-development","api-and-interface-design"],"forbidden_sidecars":["evolver"],"required_evidence":["static_contract","transcript_replay"]}
4
+ {"id":"plan-ambiguous-task-contract","prompt":"Plan a broad improvement with scope uncertainty and do not implement.","expected_agent":"researcher","command_path":"/plan","allowed_skills":[],"forbidden_sidecars":["developer","evolver"],"required_evidence":["static_contract","transcript_replay"]}
5
+ {"id":"validation-failure-blocks-close","prompt":"Validation fails after implementing a slice.","expected_agent":"debugger","command_path":"freeform","allowed_skills":["debugging-and-error-recovery"],"forbidden_sidecars":["evolver"],"required_evidence":["static_contract","transcript_replay"]}
6
+ {"id":"evolve-without-evidence-blocks","prompt":"Improve the harness because it sounds good, without prior evaluation.","expected_agent":"evaluator","command_path":"/evolve","allowed_skills":[],"forbidden_sidecars":["developer"],"required_evidence":["static_contract","transcript_replay"]}
7
+ {"id":"public-sync-private-boundary","prompt":"Without carrying private config, sync only the public harness.","expected_agent":"developer","command_path":"freeform","allowed_skills":["opencode-public-sync"],"forbidden_sidecars":["evolver"],"required_evidence":["static_contract","live_smoke"]}
8
+ {"id":"long-task-resume-handoff","prompt":"Continue a long multi-agent task after context compaction.","expected_agent":"lead","command_path":"freeform","allowed_skills":[],"forbidden_sidecars":["evolver"],"required_evidence":["static_contract","transcript_replay"]}
@@ -0,0 +1,83 @@
1
+ # Evolution History
2
+
3
+ ## Iteration 000 - Baseline
4
+
5
+ Baseline harness before formal AHE records.
6
+
7
+ Observable components:
8
+
9
+ - `agents/`
10
+ - `commands/`
11
+ - `skills/open-design/`
12
+ - `tools/open_design.ts`
13
+ - `docs/ai/harness/`
14
+
15
+ Notes:
16
+
17
+ - Real rollback requires git.
18
+ - The first local evolution should create `docs/ai/evolution/runs/iteration-001/`
19
+ with evaluation, analysis, manifest, and change evaluation.
20
+
21
+ ## Iteration 003 - Agent Readable Harness
22
+
23
+ Status: `keep`.
24
+
25
+ Changes:
26
+
27
+ - `AGENTS.md` acts as a short harness index.
28
+ - `docs/ai/harness/` is the source of truth for agent, command, evidence, and
29
+ check contracts.
30
+ - `scripts/check-harness.mjs` validates local invariants without new
31
+ dependencies.
32
+ - `docs/ai/evolution/benchmarks/manual-scenarios.md` documents replay through
33
+ `opencode run --format json --thinking` and the evidence taxonomy.
34
+
35
+ Evidence:
36
+
37
+ - `node scripts/check-harness.mjs` passed.
38
+ - A real `transcript_replay` confirmed that a small free-form request routes to
39
+ `developer`.
40
+
41
+ ## Iteration 004 - Orchestration Audit
42
+
43
+ Status: `keep` for approved scope; remaining proposals deferred.
44
+
45
+ Applied changes:
46
+
47
+ - `chg-1-ahe-run-lifecycle-validator`: the local validator allows an
48
+ evaluator-only AHE intermediate run while keeping strict checks once a
49
+ manifest exists.
50
+ - `chg-2-evolve-evaluation-only-contract`: `/evolve` now distinguishes the full
51
+ AHE flow from evaluation-only, debugger-only, no-apply, and no-manifest
52
+ branches.
53
+
54
+ Deferred changes:
55
+
56
+ - `chg-3-slash-command-contract-coverage`.
57
+ - `chg-4-design-open-design-baseurl-contract`.
58
+
59
+ Evidence:
60
+
61
+ - `node scripts/check-harness.mjs` passed.
62
+ - Temporary positive and negative lifecycle fixtures passed/fail as expected.
63
+ - `change_evaluation.json` records `keep` for the approved scope and documents
64
+ the remaining transcript replay limitation for `/evolve`.
65
+
66
+ ## Iteration 013 - Doc Gardening Mechanical Checks
67
+
68
+ Status: `keep`.
69
+
70
+ Changes:
71
+
72
+ - `scripts/check-harness.mjs` validates that `AGENTS.md` stays a short index.
73
+ - The checker requires documentation coverage for visible agents and commands.
74
+ - The checker validates local paths referenced by manifests and evaluations.
75
+ - `docs/ai/harness/checks.md` documents these rules as mechanical doc gardening.
76
+
77
+ Evidence:
78
+
79
+ - `node --check scripts/check-harness.mjs` passed.
80
+ - `node scripts/check-harness.mjs` passed.
81
+ - A temporary negative control confirmed the expected failure when a command is
82
+ not documented.
83
+ - `./scripts/check.sh` passed from the public repository root.
@@ -0,0 +1,7 @@
1
+ {"mechanism_id":"mech-task-contract","status":"accepted","owning_surface":"workflow","activation":"specifier/developer/reviewer handoffs for non-trivial work","behavior_key":"task-contract","behavior_change":"Require objective, success criteria, non-goals, assumptions, open questions, accepted tradeoffs, validation, and ask_abort_triggers before implementation or review","evidence":["docs/ai/evolution/runs/iteration-016-contract-prompt-alignment/evaluation.md"],"failure_modes":["Agents drift from the user goal","Small models silently invent scope","Review cannot tell whether acceptance criteria were met"]}
2
+ {"mechanism_id":"mech-handoff-packet","status":"accepted","owning_surface":"workflow","activation":"long, resumable, or multi-agent tasks","behavior_key":"handoff-packet","behavior_change":"Require a compact handoff_packet with objective, decisions, files read or touched, validation state, blockers, and next action while referencing long logs by path","evidence":["docs/ai/evolution/runs/iteration-016-contract-prompt-alignment/evaluation.md"],"failure_modes":["Context compaction loses task state","Next agent repeats discovery","Raw logs crowd out high-signal context"]}
3
+ {"mechanism_id":"mech-mechanism-registry","status":"accepted","owning_surface":"memory","activation":"before evolver proposes a harness change","behavior_key":"mechanism-registry","behavior_change":"Novelty-check proposed harness mechanisms against accepted and rejected append-only records before creating a manifest","evidence":["docs/ai/evolution/runs/iteration-016-contract-prompt-alignment/evaluation.md"],"failure_modes":["AHE repeats old ideas","Complexity stacks without pruning","Rejected patterns are rediscovered"]}
4
+ {"mechanism_id":"mech-router-scenarios","status":"accepted","owning_surface":"evaluation","activation":"AHE and routing changes","behavior_key":"router-scenarios","behavior_change":"Maintain JSONL scenarios with expected agent, command path, allowed skills, forbidden sidecars, and required evidence","evidence":["docs/ai/evolution/runs/iteration-016-contract-prompt-alignment/evaluation.md"],"failure_modes":["Small models route to the wrong agent","Sidecars become mandatory by accident","Evidence requirements regress silently"]}
5
+ {"mechanism_id":"mech-init-context-policy","status":"accepted","owning_surface":"command","activation":"/feature, /plan, /scope, and /evolve intake","behavior_key":"init-context-policy","behavior_change":"Require lightweight cwd, AGENTS.md, git state, validation commands, and repo docs context before handoff without turning small tasks into discovery","evidence":["docs/ai/evolution/runs/iteration-016-contract-prompt-alignment/evaluation.md"],"failure_modes":["Agents start from stale or wrong repo context","Init becomes over-broad discovery","Validation commands are guessed late"]}
6
+ {"mechanism_id":"mech-result-contract","status":"accepted","owning_surface":"workflow","activation":"specifier/developer/reviewer phase closeout for non-trivial work","behavior_key":"result-contract","behavior_change":"Require status, summary, artifacts, next_recommended, risks, and skill_resolution so downstream agents can consume phase results without interpreting free prose","evidence":["docs/ai/harness/agents.md"],"failure_modes":["Lead guesses next step from narrative output","Skill usage is not auditable","Risks or artifacts disappear between phases"]}
7
+ {"mechanism_id":"mech-verification-envelope","status":"accepted","owning_surface":"workflow","activation":"developer closeout after implementation or validation work","behavior_key":"verification-envelope","behavior_change":"Require commands_run, results, not_run, and evidence before developer closes a non-trivial implementation","evidence":["docs/ai/harness/agents.md"],"failure_modes":["Implementation is reported as done without verification evidence","Skipped validation is hidden","Reviewer cannot map claims to command output"]}
@@ -0,0 +1,2 @@
1
+ {"mechanism_id":"mech-import-full-external-stack","status":"rejected","reason":"Importing ECC, Spec Kit, or Agent Skills wholesale would add broad surfaces and duplicate existing local contracts; adapt only narrow mechanisms with local evidence.","evidence":["docs/ai/evolution/runs/iteration-007-agent-skills-integration/analysis/overview.md"],"failure_modes":["Workflow overhead for small tasks","Conflicting command semantics","Private/public sync surface grows unnecessarily"]}
2
+ {"mechanism_id":"mech-sidecars-for-every-feature","status":"rejected","reason":"The local harness treats evaluator, debugger, and evolver as sidecars; making them mandatory would regress direct-mode speed and clarity.","evidence":["docs/ai/evolution/runs/iteration-009-lead-developer-ownership-loop/analysis/overview.md"],"failure_modes":["Simple requests become bureaucratic","Lead routing loses fast path","Small models spend context on process instead of task"]}
@@ -0,0 +1,15 @@
1
+ # Evolution Runs
2
+
3
+ Each AHE iteration should create an `iteration-XXX-*` directory.
4
+
5
+ Expected files:
6
+
7
+ - `evaluation.md`: evaluator evidence and scenario results.
8
+ - `analysis/overview.md`: debugger synthesis and root causes.
9
+ - `analysis/detail/*.md`: optional deeper evidence per pattern or scenario.
10
+ - `change_manifest.json`: proposed or applied changes for the iteration.
11
+ - `change_evaluation.json`: attribution of the previous change against later
12
+ results.
13
+
14
+ Evaluation-only runs may contain only `evaluation.md` while work is in progress.
15
+ When a manifest exists, the run also needs analysis and change evaluation.
@@ -0,0 +1,12 @@
1
+ # Analysis: iteration-001-sidecar
2
+
3
+ The confirmed issue was local to `/feature` wording, not to the sidecar model.
4
+
5
+ Root cause:
6
+
7
+ - Global harness docs had the intended base feature flow.
8
+ - The `/feature` command did not state the same exact sequence locally.
9
+ - Sidecar agents were not being made mandatory by the inspected contracts.
10
+
11
+ Recommended fix: keep any future change scoped to `commands/feature.md` unless
12
+ new evidence shows a broader orchestration problem.
@@ -0,0 +1,108 @@
1
+ {
2
+ "iteration": 1,
3
+ "evaluation_type": "proposed_only_attribution",
4
+ "manifest_path": "docs/ai/evolution/runs/iteration-001-sidecar/change_manifest.json",
5
+ "manifest_status": "proposed",
6
+ "manifest_applied": false,
7
+ "developer_invoked": false,
8
+ "decision": "improve",
9
+ "decision_rationale": "Technically this is not a keep decision for an applied change: no behavioral change was made, so predicted fixes cannot be confirmed. The proposal remains directionally appropriate and scoped to the identified command-level root cause, while future application should preserve the documented risk constraints and be re-measured before any keep attribution.",
10
+ "evidence": [
11
+ "docs/ai/evolution/runs/iteration-001-sidecar/evaluation.md:11-16",
12
+ "docs/ai/evolution/runs/iteration-001-sidecar/evaluation.md:24-31",
13
+ "docs/ai/evolution/runs/iteration-001-sidecar/evaluation.md:95-104",
14
+ "docs/ai/evolution/runs/iteration-001-sidecar/analysis/overview.md:28-32",
15
+ "docs/ai/evolution/runs/iteration-001-sidecar/analysis/overview.md:47-63",
16
+ "docs/ai/evolution/runs/iteration-001-sidecar/change_manifest.json:3-4",
17
+ "docs/ai/evolution/runs/iteration-001-sidecar/change_manifest.json:22-30",
18
+ "docs/ai/evolution/runs/iteration-001-sidecar/post_evaluation.md:5-8",
19
+ "docs/ai/evolution/runs/iteration-001-sidecar/post_evaluation.md:21-40",
20
+ "docs/ai/evolution/runs/iteration-001-sidecar/post_evaluation.md:43-54",
21
+ "docs/ai/evolution/runs/iteration-001-sidecar/post_evaluation.md:70-79",
22
+ "docs/ai/evolution/runs/iteration-001-sidecar/post_evaluation.md:107-115"
23
+ ],
24
+ "changes": [
25
+ {
26
+ "id": "chg-1",
27
+ "attribution": "improve",
28
+ "applied": false,
29
+ "component_level": "command",
30
+ "files_proposed": [
31
+ "commands/feature.md"
32
+ ],
33
+ "predicted_fixes": [
34
+ {
35
+ "id": "feature-declares-base-flow-exactly",
36
+ "status": "not_run",
37
+ "confirmation": "not_confirmed",
38
+ "reason": "The proposed change was not applied; post-evaluation explicitly treats verification of applied-change fixes as not_run. The original `/feature` fail remains expected in no-change mode.",
39
+ "evidence": [
40
+ "docs/ai/evolution/runs/iteration-001-sidecar/change_manifest.json:22-25",
41
+ "docs/ai/evolution/runs/iteration-001-sidecar/post_evaluation.md:5-8",
42
+ "docs/ai/evolution/runs/iteration-001-sidecar/post_evaluation.md:43-54",
43
+ "docs/ai/evolution/runs/iteration-001-sidecar/post_evaluation.md:70-79"
44
+ ]
45
+ },
46
+ {
47
+ "id": "feature-designer-researcher-order-ambiguity-removed",
48
+ "status": "not_run",
49
+ "confirmation": "not_confirmed",
50
+ "reason": "No change was applied to `commands/feature.md`; the post-evaluation observes that it still lists researcher before designer and still lacks the exact local base-flow declaration.",
51
+ "evidence": [
52
+ "docs/ai/evolution/runs/iteration-001-sidecar/change_manifest.json:22-25",
53
+ "docs/ai/evolution/runs/iteration-001-sidecar/post_evaluation.md:47-53",
54
+ "docs/ai/evolution/runs/iteration-001-sidecar/post_evaluation.md:70-79"
55
+ ]
56
+ }
57
+ ],
58
+ "risk_tasks": [
59
+ {
60
+ "id": "feature-independent-research-design-over-serialization",
61
+ "observed_status": "no_new_regression_observed",
62
+ "future_risk_if_applied": true,
63
+ "reason": "No change was applied, so no new serialization behavior was introduced. If applied later, wording must avoid making design/research sequencing unnecessarily rigid for independent tasks.",
64
+ "evidence": [
65
+ "docs/ai/evolution/runs/iteration-001-sidecar/analysis/overview.md:60-63",
66
+ "docs/ai/evolution/runs/iteration-001-sidecar/post_evaluation.md:31-41",
67
+ "docs/ai/evolution/runs/iteration-001-sidecar/post_evaluation.md:107-115"
68
+ ]
69
+ },
70
+ {
71
+ "id": "feature-sidecars-accidentally-made-mandatory",
72
+ "observed_status": "no_new_regression_observed",
73
+ "future_risk_if_applied": true,
74
+ "reason": "The second measurement confirms sidecar pass states remain expected in no-change mode. Future application must not convert evaluator/debugger/evolver into normal `/feature` phases.",
75
+ "evidence": [
76
+ "docs/ai/evolution/runs/iteration-001-sidecar/evaluation.md:57-68",
77
+ "docs/ai/evolution/runs/iteration-001-sidecar/post_evaluation.md:55-68",
78
+ "docs/ai/evolution/runs/iteration-001-sidecar/post_evaluation.md:107-109"
79
+ ]
80
+ },
81
+ {
82
+ "id": "feature-command-scope-expands-beyond-documentation-alignment",
83
+ "observed_status": "no_new_regression_observed",
84
+ "future_risk_if_applied": true,
85
+ "reason": "No tracked behavioral diff was observed. If applied later, the change should remain limited to the `/feature` command documentation because the root cause is localized there.",
86
+ "evidence": [
87
+ "docs/ai/evolution/runs/iteration-001-sidecar/analysis/overview.md:52-56",
88
+ "docs/ai/evolution/runs/iteration-001-sidecar/post_evaluation.md:31-41"
89
+ ]
90
+ }
91
+ ],
92
+ "regressions": {
93
+ "newly_observed": [],
94
+ "summary": "No new regressions were observed in the no-change measurement; the original `/feature` discrepancy persists as expected because the manifest was not applied."
95
+ },
96
+ "next_handoff": "If the proposal is later approved and implemented, rerun static evaluation against `/feature`, `/scope`, `/evolve`, and sidecar optionality before converting this attribution to keep or rollback+pivot."
97
+ }
98
+ ],
99
+ "overall_regressions": {
100
+ "newly_observed": [],
101
+ "summary": "None newly observed; no behavioral changes were applied."
102
+ },
103
+ "handoff": {
104
+ "specifier_or_evolver": "Treat the manifest as a proposed-only, directionally valid command-level change, not as a confirmed fix.",
105
+ "developer": "No developer action occurred in this iteration; do not infer applied-change success from this attribution.",
106
+ "reviewer": "Verify this artifact is evidence-only and that behavior files remain unmodified before accepting the iteration record."
107
+ }
108
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "iteration": 1,
3
+ "status": "proposed",
4
+ "applied": false,
5
+ "changes": [
6
+ {
7
+ "id": "chg-1",
8
+ "type": "improvement",
9
+ "description": "Propose aligning `/feature` command documentation with the preserved base flow by locally declaring `lead -> designer if applicable -> researcher -> specifier -> developer -> reviewer` and removing the designer/researcher order ambiguity, without changing sidecar behavior.",
10
+ "files": [
11
+ "commands/feature.md"
12
+ ],
13
+ "failure_pattern": "`/feature` command documentation diverges from the globally preserved feature flow and can be read as ordering researcher before designer.",
14
+ "evidence": [
15
+ "docs/ai/evolution/runs/iteration-001-sidecar/evaluation.md:11-16",
16
+ "docs/ai/evolution/runs/iteration-001-sidecar/evaluation.md:24-31",
17
+ "docs/ai/evolution/runs/iteration-001-sidecar/evaluation.md:95-99",
18
+ "docs/ai/evolution/runs/iteration-001-sidecar/analysis/overview.md:7-16",
19
+ "docs/ai/evolution/runs/iteration-001-sidecar/analysis/overview.md:47-56"
20
+ ],
21
+ "root_cause": "`commands/feature.md` does not locally declare the exact base flow required by the benchmark and lists `researcher` before `designer` (`commands/feature.md:17-18`), while `AGENTS.md`, `docs/ai/evolution/README.md`, and `agents/lead.md` declare `designer if applicable` before `researcher`.",
22
+ "predicted_fixes": [
23
+ "feature-declares-base-flow-exactly",
24
+ "feature-designer-researcher-order-ambiguity-removed"
25
+ ],
26
+ "risk_tasks": [
27
+ "feature-independent-research-design-over-serialization",
28
+ "feature-sidecars-accidentally-made-mandatory",
29
+ "feature-command-scope-expands-beyond-documentation-alignment"
30
+ ],
31
+ "constraint_level": "command",
32
+ "why_this_component": "The confirmed root cause is localized to the `/feature` command's local flow declaration. Global workflow files and sidecar agents already preserve the expected base flow, so the most local sufficient component is the command documentation in `commands/feature.md`.",
33
+ "proposal_scope": "Narrow proposed-only command documentation change; do not modify agents, skills, tools, model/provider configuration, credentials, or sidecar registration.",
34
+ "evaluation_criteria_next_iteration": {
35
+ "keep": [
36
+ "Static evaluation confirms `commands/feature.md` locally declares `lead -> designer if applicable -> researcher -> specifier -> developer -> reviewer`.",
37
+ "Static evaluation confirms `/feature` does not list `researcher` before `designer` in a way that contradicts the base flow.",
38
+ "Sidecar scenarios remain pass: evaluator/debugger/evolver are not made mandatory in normal `/feature` flow."
39
+ ],
40
+ "improve": [
41
+ "The exact chain is present but dependency wording still leaves ambiguous when designer and researcher may run independently or sequentially.",
42
+ "The scenario passes only by exact text match while reviewer/debugger finds remaining command-local ambiguity."
43
+ ],
44
+ "rollback_and_pivot": [
45
+ "The change causes `/feature` to require designer for all features, require sidecars in normal flow, or otherwise broadens beyond the documented base flow.",
46
+ "A subsequent dynamic conversation trace shows the same failure despite command wording alignment; pivot from command documentation to workflow/lead orchestration only with new evidence."
47
+ ]
48
+ },
49
+ "rollback_note": "Harness is in a git repo per task environment, but this manifest is proposed and not applied; rollback applies only if a future developer commit changes `commands/feature.md`."
50
+ }
51
+ ]
52
+ }
@@ -0,0 +1,19 @@
1
+ # Evaluation: iteration-001-sidecar
2
+
3
+ ## Objective
4
+
5
+ Validate that `evaluator`, `debugger`, and `evolver` remain optional sidecars
6
+ and do not become mandatory phases for normal feature work.
7
+
8
+ ## Evidence
9
+
10
+ - `static_contract`: `commands/feature.md`, `commands/scope.md`,
11
+ `commands/evolve.md`, `agents/lead.md`, and sidecar agent prompts.
12
+
13
+ ## Result
14
+
15
+ The sidecar agents were correctly scoped as optional. The evaluation found a
16
+ separate `/feature` wording ambiguity: the command did not expose the exact base
17
+ flow string used by the global docs.
18
+
19
+ No behavior change was applied in this evaluator pass.
@@ -0,0 +1,12 @@
1
+ # Post Evaluation: iteration-001-sidecar
2
+
3
+ ## Objective
4
+
5
+ Re-check the proposed sidecar iteration without applying behavior changes.
6
+
7
+ ## Result
8
+
9
+ The manifest remained proposed-only. The sidecar invariants still held, and the
10
+ known `/feature` wording gap remained expected until a later command-level fix.
11
+
12
+ No developer implementation was invoked for this pass.
@@ -0,0 +1,7 @@
1
+ # Analysis: iteration-002-feature-flow-fix
2
+
3
+ The fix is accepted as a command-level correction. It makes the base feature
4
+ sequence explicit without changing sidecar behavior.
5
+
6
+ Residual risk: static inspection does not prove runtime multi-agent behavior;
7
+ future routing changes should use transcript replay when possible.
@@ -0,0 +1,31 @@
1
+ {
2
+ "iteration": 2,
3
+ "evaluates_iteration": 1,
4
+ "evaluates_manifest": "docs/ai/evolution/runs/iteration-001-sidecar/change_manifest.json",
5
+ "evaluation_type": "applied_static_attribution",
6
+ "results": [
7
+ {
8
+ "change_id": "chg-1",
9
+ "applied": true,
10
+ "decision": "keep",
11
+ "predicted_fixes_confirmed": [
12
+ "feature-declares-base-flow-exactly",
13
+ "feature-designer-researcher-order-ambiguity-removed"
14
+ ],
15
+ "predicted_fixes_not_confirmed": [],
16
+ "risk_tasks_regressed": [],
17
+ "risk_tasks_not_regressed": [
18
+ "feature-independent-research-design-over-serialization",
19
+ "feature-sidecars-accidentally-made-mandatory",
20
+ "feature-command-scope-expands-beyond-documentation-alignment"
21
+ ],
22
+ "unpredicted_regressions": [],
23
+ "evidence": [
24
+ "docs/ai/evolution/runs/iteration-002-feature-flow-fix/evaluation.md",
25
+ "docs/ai/evolution/runs/iteration-002-feature-flow-fix/analysis/overview.md",
26
+ "commands/feature.md"
27
+ ],
28
+ "notes": "The applied change is limited to commands/feature.md. Static evaluation confirms the local base-flow declaration, removes the designer/researcher order ambiguity, keeps sidecars optional, and does not affect /scope or /evolve."
29
+ }
30
+ ]
31
+ }
@@ -0,0 +1,19 @@
1
+ # Evaluation: iteration-002-feature-flow-fix
2
+
3
+ ## Objective
4
+
5
+ Evaluate the command-level fix that aligned `/feature` with the documented base
6
+ flow:
7
+
8
+ ```text
9
+ lead -> designer if applicable -> researcher -> specifier -> developer -> reviewer
10
+ ```
11
+
12
+ ## Evidence
13
+
14
+ - `static_contract`: `/feature`, `/scope`, `/evolve`, and lead sidecar rules.
15
+
16
+ ## Result
17
+
18
+ The exact base feature flow was present in `/feature`, sidecars remained
19
+ optional, and scope/evolve contracts were not expanded.
@@ -0,0 +1,13 @@
1
+ # Analysis: iteration-003-agent-readable-harness
2
+
3
+ The structural improvement is accepted:
4
+
5
+ - `AGENTS.md` stays short.
6
+ - `docs/ai/harness/` holds durable contracts.
7
+ - `scripts/check-harness.mjs` mechanically validates frontmatter and core
8
+ orchestration strings.
9
+ - evidence taxonomy separates static contract inspection from transcript replay
10
+ and live smoke tests.
11
+
12
+ Future risk: duplicated docs can drift, so new command/agent behavior should add
13
+ or update a mechanical check when practical.
@@ -0,0 +1,66 @@
1
+ {
2
+ "iteration": 3,
3
+ "evaluates_iteration": 3,
4
+ "evaluation_type": "same_iteration_static_and_replay",
5
+ "results": [
6
+ {
7
+ "change_id": "chg-1",
8
+ "decision": "keep",
9
+ "predicted_fixes_confirmed": [
10
+ "agents-find-contracts-without-large-agents-md",
11
+ "command-and-agent-contracts-have-versioned-source-of-truth"
12
+ ],
13
+ "predicted_fixes_not_confirmed": [],
14
+ "risk_tasks_regressed": [],
15
+ "risk_tasks_not_regressed": [
16
+ "agents-md-loses-critical-global-rule",
17
+ "harness-docs-duplicate-command-files"
18
+ ],
19
+ "unpredicted_regressions": [],
20
+ "evidence": [
21
+ "docs/ai/evolution/runs/iteration-003-agent-readable-harness/evaluation.md"
22
+ ],
23
+ "notes": "Static validation confirms AGENTS.md remains an index with critical rules and docs/ai/harness contains versioned contracts."
24
+ },
25
+ {
26
+ "change_id": "chg-2",
27
+ "decision": "keep",
28
+ "predicted_fixes_confirmed": [
29
+ "frontmatter-drift-caught-locally",
30
+ "default-agent-regression-caught-locally",
31
+ "sidecars-in-feature-flow-caught-locally",
32
+ "manifest-shape-errors-caught-locally"
33
+ ],
34
+ "predicted_fixes_not_confirmed": [],
35
+ "risk_tasks_regressed": [],
36
+ "risk_tasks_not_regressed": [
37
+ "validator-blocks-valid-future-run-shape",
38
+ "validator-becomes-too-broad"
39
+ ],
40
+ "unpredicted_regressions": [],
41
+ "evidence": [
42
+ "docs/ai/evolution/runs/iteration-003-agent-readable-harness/evaluation.md"
43
+ ],
44
+ "notes": "node scripts/check-harness.mjs passes after correcting ESM usage and limiting frontmatter parsing to top-level required keys."
45
+ },
46
+ {
47
+ "change_id": "chg-3",
48
+ "decision": "keep",
49
+ "predicted_fixes_confirmed": [
50
+ "benchmark-can-run-transcript-replay",
51
+ "manual-oracle-not-mistaken-for-routing-proof"
52
+ ],
53
+ "predicted_fixes_not_confirmed": [],
54
+ "risk_tasks_regressed": [],
55
+ "risk_tasks_not_regressed": [
56
+ "transcript-replay-overstated-as-full-runtime-proof",
57
+ "benchmark-docs-become-too-heavy"
58
+ ],
59
+ "unpredicted_regressions": [],
60
+ "evidence": [
61
+ "docs/ai/evolution/runs/iteration-003-agent-readable-harness/evaluation.md"
62
+ ],
63
+ "notes": "Benchmark docs now include replay commands and evidence taxonomy; one real replay produced JSON events and confirmed developer handles small free-form requests."
64
+ }
65
+ ]
66
+ }