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,210 @@
1
+ {
2
+ "iteration": 4,
3
+ "iteration_id": "iteration-004-orchestration-audit",
4
+ "status": "approved_scope_applied",
5
+ "applied": true,
6
+ "application_status": "applied_approved_scope",
7
+ "scope": "OpenCode harness orchestration only; user approved and developer applied only chg-1 and chg-2; chg-3 and chg-4 remain deferred and unapplied.",
8
+ "approval_context": {
9
+ "approved_by_user": true,
10
+ "approval_scope": "Apply only chg-1-ahe-run-lifecycle-validator and chg-2-evolve-evaluation-only-contract in this pass.",
11
+ "implementation_completed": true,
12
+ "evidence": [
13
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/pre_apply_evaluation.md:1-15",
14
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/pre_apply_evaluation.md:222-235",
15
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/pre_apply_approval.md:17-21",
16
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/pre_apply_approval.md:100-116"
17
+ ]
18
+ },
19
+ "approved_changes": [
20
+ "chg-1-ahe-run-lifecycle-validator",
21
+ "chg-2-evolve-evaluation-only-contract"
22
+ ],
23
+ "not_approved_changes": [
24
+ {
25
+ "id": "chg-3-slash-command-contract-coverage",
26
+ "status": "deferred_not_approved",
27
+ "reason": "Explicitly out of scope for this apply pass by user approval and pre-apply debugger handoff. Do not apply in this pass."
28
+ },
29
+ {
30
+ "id": "chg-4-design-open-design-baseurl-contract",
31
+ "status": "deferred_not_approved",
32
+ "reason": "Explicitly out of scope for this apply pass by user approval and pre-apply debugger handoff. Do not apply in this pass."
33
+ }
34
+ ],
35
+ "developer_scope": {
36
+ "allowed_change_ids": [
37
+ "chg-1-ahe-run-lifecycle-validator",
38
+ "chg-2-evolve-evaluation-only-contract"
39
+ ],
40
+ "allowed_files": [
41
+ "scripts/check-harness.mjs",
42
+ "docs/ai/harness/checks.md",
43
+ "commands/evolve.md",
44
+ "docs/ai/harness/commands.md"
45
+ ],
46
+ "forbidden_change_ids_this_pass": [
47
+ "chg-3-slash-command-contract-coverage",
48
+ "chg-4-design-open-design-baseurl-contract"
49
+ ],
50
+ "notes": "In docs/ai/harness/commands.md, limit edits to chg-2 /evolve wording; do not implement chg-3 coverage changes or chg-4 /design Open Design baseUrl changes."
51
+ },
52
+ "changes": [
53
+ {
54
+ "id": "chg-1-ahe-run-lifecycle-validator",
55
+ "type": "improvement",
56
+ "status": "implemented_applied",
57
+ "description": "Propose teaching the local harness validator to distinguish valid AHE intermediate states from invalid completed runs, so an evaluator-created `evaluation.md` is not rejected before debugger creates `analysis/overview.md`.",
58
+ "files": [
59
+ "scripts/check-harness.mjs",
60
+ "docs/ai/harness/checks.md"
61
+ ],
62
+ "failure_pattern": "`node scripts/check-harness.mjs` treats an AHE run with `evaluation.md` but no `analysis/overview.md` as failed even though that is a legitimate evaluator-to-debugger intermediate state.",
63
+ "evidence": [
64
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/evaluation.md:46-96",
65
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/evaluation.md:310-314",
66
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/overview.md:23-24",
67
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/overview.md:34-35",
68
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/detail/ahe-run-lifecycle-validator.md:3-18",
69
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/detail/ahe-run-lifecycle-validator.md:38-40"
70
+ ],
71
+ "root_cause": "`scripts/check-harness.mjs` models every directory under `docs/ai/evolution/runs/` as an all-or-nothing complete run and always requires `analysis/overview.md`, while the documented AHE workflow assigns `evaluation.md` to evaluator and `analysis/overview.md` to debugger in a later step.",
72
+ "predicted_fixes": [
73
+ "check-harness-allows-evaluator-only-ahe-run-state",
74
+ "check-harness-still-fails-manifest-without-debugger-analysis",
75
+ "ahe-step-1-and-step-2-validation-no-longer-blocked-by-premature-complete-run-shape"
76
+ ],
77
+ "risk_tasks": [
78
+ "validator-accepts-abandoned-incomplete-runs-too-broadly",
79
+ "manifest-shape-errors-hidden-by-lifecycle-exception",
80
+ "check-harness-lifecycle-rules-become-hard-to-understand"
81
+ ],
82
+ "constraint_level": "tool",
83
+ "why_this_component": "The failure is produced by the validator's structural rule, not by agent behavior. A local tool change plus check documentation is the smallest component that resolves the confirmed root cause without changing AHE agent responsibilities.",
84
+ "validation_plan": [
85
+ "Run `node scripts/check-harness.mjs` against a run directory containing only `evaluation.md` and confirm it passes or reports an explicit in-progress state rather than missing `analysis/overview.md`.",
86
+ "Run `node scripts/check-harness.mjs` against existing complete runs and confirm valid manifests remain parsed and required fields are still enforced.",
87
+ "Add or document a negative fixture/condition where a manifest exists without debugger analysis and confirm the check still fails."
88
+ ],
89
+ "rollback_plan": "If the validator becomes too permissive or hides invalid manifests, revert only the lifecycle changes in `scripts/check-harness.mjs` and the matching `docs/ai/harness/checks.md` note; because this repo is git-backed, a future applied commit can be rolled back by file/commit, but this manifest itself applies no implementation change."
90
+ },
91
+ {
92
+ "id": "chg-2-evolve-evaluation-only-contract",
93
+ "type": "improvement",
94
+ "status": "implemented_applied",
95
+ "description": "Propose clarifying `/evolve` so audit/evaluation-only and debugger-only passes have explicit stop conditions, and manifest creation is conditional on evidence, phase, and user approval rather than an unconditional expected output.",
96
+ "files": [
97
+ "commands/evolve.md",
98
+ "docs/ai/harness/commands.md"
99
+ ],
100
+ "failure_pattern": "`/evolve` gates evolver on sufficient evidence but also lists `Manifest creado o actualizado` as an expected result, creating pressure to produce a manifest during evaluation-only/no-apply audits.",
101
+ "evidence": [
102
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/evaluation.md:123-155",
103
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/evaluation.md:322-336",
104
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/overview.md:25-26",
105
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/overview.md:35-36",
106
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/detail/evolve-evaluation-only-contract.md:3-18",
107
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/detail/evolve-evaluation-only-contract.md:38-40"
108
+ ],
109
+ "root_cause": "`commands/evolve.md` describes the full happy-path AHE closure as the default required outcome but does not encode an explicit evaluation-only/debugger-only branch for user requests that prohibit manifest creation or implementation.",
110
+ "predicted_fixes": [
111
+ "evolve-audit-only-stops-after-evaluator-or-debugger-when-requested",
112
+ "evolve-manifest-created-only-when-evolver-has-sufficient-evidence-and-user-scope-allows-it",
113
+ "evolve-no-apply-requests-do-not-pressure-developer-implementation"
114
+ ],
115
+ "risk_tasks": [
116
+ "evolve-skips-required-manifest-after-actual-harness-change",
117
+ "evolve-command-wording-becomes-too-branchy-for-agents",
118
+ "ahe-full-flow-less-obvious-to-users"
119
+ ],
120
+ "constraint_level": "command",
121
+ "why_this_component": "The contradiction is in the slash command contract and its expected outputs. Changing the command wording and the versioned command map is more local than altering AHE agents, which already contain the evidence gate.",
122
+ "validation_plan": [
123
+ "Static check confirms `/evolve` documents full evolution and evaluation-only/debugger-only branches separately.",
124
+ "Run a transcript replay with `opencode run --command evolve` asking for no edits and no manifest; verify it stops with evaluator/debugger handoff and says manifest belongs to evolver only if scope/evidence permit.",
125
+ "Run or inspect a full-flow prompt where debugger confirms evidence and user allows manifest; verify manifest remains required before implementation."
126
+ ],
127
+ "rollback_plan": "If `/evolve` starts omitting manifests for real harness changes, revert the evaluation-only wording in `commands/evolve.md` and `docs/ai/harness/commands.md`, then pivot from command-level clarification to workflow-level phase barrier evidence. This proposal has not applied those edits."
128
+ },
129
+ {
130
+ "id": "chg-3-slash-command-contract-coverage",
131
+ "type": "improvement",
132
+ "status": "deferred_not_approved",
133
+ "description": "Propose updating the versioned command contract map to cover `/research`, `/spec`, and `/implement` or explicitly classify them as auxiliary commands with inherited barriers, with optional future drift detection.",
134
+ "files": [
135
+ "docs/ai/harness/commands.md",
136
+ "scripts/check-harness.mjs"
137
+ ],
138
+ "failure_pattern": "The declared source of truth for slash command contracts omits existing command files, including `/spec`, even though other harness docs route users toward `/spec` under uncertainty.",
139
+ "evidence": [
140
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/evaluation.md:157-183",
141
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/evaluation.md:324-326",
142
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/overview.md:27-28",
143
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/overview.md:36-37",
144
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/detail/slash-command-contract-coverage.md:3-18",
145
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/detail/slash-command-contract-coverage.md:38-40"
146
+ ],
147
+ "root_cause": "The harness introduced `docs/ai/harness/commands.md` as a persistent source of truth but did not add a coverage invariant tying it to all `commands/*.md` files or documenting which commands are auxiliary/subtask commands.",
148
+ "predicted_fixes": [
149
+ "commands-md-documents-or-classifies-all-visible-slash-commands",
150
+ "spec-command-cannot-be-read-as-bypassing-required-research-or-design",
151
+ "research-and-implement-commands-have-evaluable-routing-contracts"
152
+ ],
153
+ "risk_tasks": [
154
+ "auxiliary-command-policy-accidentally-promotes-subtasks-to-top-level-flows",
155
+ "spec-command-overconstrained-for-simple-direct-spec-requests",
156
+ "command-coverage-check-creates-maintenance-noise-for intentionally hidden commands"
157
+ ],
158
+ "constraint_level": "memory",
159
+ "why_this_component": "The confirmed failure is a coverage gap in the versioned contract map. Updating persistent harness documentation is the smallest sufficient fix; a validator extension is secondary and should only enforce the documented policy after it exists.",
160
+ "validation_plan": [
161
+ "Static inspection confirms `docs/ai/harness/commands.md` has explicit entries or auxiliary policy coverage for `/research`, `/spec`, and `/implement`.",
162
+ "Static inspection confirms `/spec` inherits blocker rules for missing research/design and `/implement` requires approved task/spec or clear direct scope.",
163
+ "If `check-harness` is extended, create/verify a coverage check that fails for undocumented non-allowlisted `commands/*.md` while allowing documented auxiliary commands."
164
+ ],
165
+ "rollback_plan": "If documenting auxiliary commands changes routing semantics or increases command overhead, revert the added command-map sections first and keep only a minimal auxiliary policy; if a coverage check is added and noisy, rollback that tool extension independently. This proposal does not apply either change."
166
+ },
167
+ {
168
+ "id": "chg-4-design-open-design-baseurl-contract",
169
+ "type": "improvement",
170
+ "status": "deferred_not_approved",
171
+ "description": "Propose correcting `/design` Open Design instructions so required `baseUrl` handling matches the currently exposed tool schemas, either by loading the `open-design` skill for the configured URL or by passing an explicitly approved base URL.",
172
+ "files": [
173
+ "commands/design.md",
174
+ "docs/ai/harness/commands.md"
175
+ ],
176
+ "failure_pattern": "`/design` instructs Open Design tools to be called without arguments and forbids `baseUrl`, while the available Open Design tool schemas require `baseUrl`.",
177
+ "evidence": [
178
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/evaluation.md:185-213",
179
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/evaluation.md:332-334",
180
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/overview.md:29-30",
181
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/overview.md:37-38",
182
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/detail/open-design-tool-contract.md:3-17",
183
+ "docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/detail/open-design-tool-contract.md:37-39"
184
+ ],
185
+ "root_cause": "`commands/design.md` embeds stale or environment-assumptive tool-call instructions that contradict the current Open Design tool interface exposed in this harness session; it forbids the parameter the tools require.",
186
+ "predicted_fixes": [
187
+ "design-command-no-longer-instructs-impossible-open-design-tool-calls",
188
+ "design-health-and-list-tools-have-clear-baseurl-source",
189
+ "feature-visual-flow-less-likely-to-block-before-specifier-due-to-tool-schema-mismatch"
190
+ ],
191
+ "risk_tasks": [
192
+ "design-command-hardcodes-environment-specific-baseurl",
193
+ "open-design-smoke-still-fails-if-skill-config-source-is-unclear",
194
+ "design-command-starts-running-artifact-creating-tools-during-audit"
195
+ ],
196
+ "constraint_level": "command",
197
+ "why_this_component": "The available tool schema appears internally consistent; the local contradiction is in the `/design` command text. Updating the command/tool contract is more local than changing tool implementation or global design workflow.",
198
+ "validation_plan": [
199
+ "Static inspection confirms `/design` no longer says to call Open Design health/list tools without required arguments or forbids `baseUrl` unconditionally.",
200
+ "Run a non-mutating Open Design smoke after approval: health plus list agents/design systems/skills with the configured base URL, without creating design artifacts.",
201
+ "Run or review a `/design` transcript to confirm the command loads/delegates to `open-design` skill and does not hardcode secrets or provider configuration."
202
+ ],
203
+ "rollback_plan": "If the corrected command still fails runtime smoke or leaks environment-specific assumptions, revert `commands/design.md` and `docs/ai/harness/commands.md` edits and pivot to the `open-design` skill/tool interface as the component under test. This proposal makes no implementation edit."
204
+ }
205
+ ],
206
+ "deferred_changes": [
207
+ "chg-3-slash-command-contract-coverage",
208
+ "chg-4-design-open-design-baseurl-contract"
209
+ ]
210
+ }
@@ -0,0 +1,25 @@
1
+ # Evaluation: iteration-004-orchestration-audit
2
+
3
+ ## Objective
4
+
5
+ Audit the harness after the agent-readable documentation change and identify
6
+ contract drift that could block future AHE runs.
7
+
8
+ ## Evidence
9
+
10
+ - `static_contract`: harness docs, slash commands, AHE run files, and Open
11
+ Design command/skill contracts.
12
+ - local validator: `node scripts/check-harness.mjs`.
13
+
14
+ ## Findings
15
+
16
+ - AHE lifecycle validation was too strict for in-progress evaluator/debugger
17
+ states.
18
+ - `/evolve` needed explicit evaluation-only and debugger-only branches.
19
+ - Command coverage had gaps for visible auxiliary commands.
20
+ - Open Design instructions had drifted from the exposed tool contract.
21
+
22
+ ## Result
23
+
24
+ The first two fixes were applied in this iteration. Later iterations handled the
25
+ remaining command coverage and Open Design contract details.
@@ -0,0 +1,15 @@
1
+ # Post-apply Evaluation: iteration-004-orchestration-audit
2
+
3
+ ## Objective
4
+
5
+ Re-evaluate the lifecycle validator and `/evolve` contract after applying the
6
+ iteration-004 changes.
7
+
8
+ ## Result
9
+
10
+ The validator accepted evaluator-only in-progress runs and continued to reject
11
+ manifest states missing required analysis/evaluation artifacts. `/evolve`
12
+ documented evaluation-only and debugger-only branches without making sidecars
13
+ mandatory for normal feature work.
14
+
15
+ No local provider, model, credential, or MCP configuration was touched.
@@ -0,0 +1,14 @@
1
+ # Post-manifest Evaluation: iteration-004-orchestration-audit
2
+
3
+ ## Objective
4
+
5
+ Check the iteration-004 manifest before implementation.
6
+
7
+ ## Result
8
+
9
+ The approved manifest was scoped to AHE lifecycle validation and `/evolve`
10
+ non-apply branch wording. Deferred findings for command coverage and Open Design
11
+ were left for later iterations.
12
+
13
+ The manifest did not authorize provider, model, credential, MCP, or application
14
+ feature changes.
@@ -0,0 +1,15 @@
1
+ # Pre-apply Evaluation: iteration-004-orchestration-audit
2
+
3
+ ## Objective
4
+
5
+ Validate the approved iteration-004 changes before implementation.
6
+
7
+ ## Result
8
+
9
+ Static fixtures confirmed that evaluator-only runs should be allowed while
10
+ manifest-without-analysis should remain invalid. `/evolve` also needed explicit
11
+ non-apply branches so evaluation-only work would not be forced into manifest or
12
+ implementation.
13
+
14
+ No provider, model, credential, command unrelated to `/evolve`, or application
15
+ implementation files were in scope.
@@ -0,0 +1,13 @@
1
+ # Analysis: iteration-005-harness-orchestration-audit
2
+
3
+ The root causes were source-of-truth drift in command documentation and drift
4
+ between Open Design instructions and the exposed tool schema.
5
+
6
+ The chosen fix stayed local to command/skill contracts:
7
+
8
+ - classify `/research` and `/implement` as visible auxiliary/subtask commands;
9
+ - keep sidecars out of normal app-feature flows;
10
+ - require Open Design `baseUrl` to come from approved configuration/context;
11
+ - avoid hardcoded local URLs, providers, credentials, or model settings.
12
+
13
+ The analysis did not justify changes to model/provider configuration.
@@ -0,0 +1,14 @@
1
+ {
2
+ "iteration": 5,
3
+ "status": "accepted",
4
+ "checks": [
5
+ {
6
+ "name": "static_contract",
7
+ "status": "passed",
8
+ "notes": "Auxiliary command coverage and Open Design baseUrl policy are documented."
9
+ }
10
+ ],
11
+ "residual_risks": [
12
+ "No live Open Design smoke is claimed by this iteration."
13
+ ]
14
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "iteration": 5,
3
+ "changes": [
4
+ {
5
+ "id": "chg-1-command-contract-coverage",
6
+ "type": "improvement",
7
+ "description": "Classify visible auxiliary commands and align Open Design baseUrl instructions with the tool contract.",
8
+ "files": [
9
+ "docs/ai/harness/commands.md",
10
+ "commands/design.md",
11
+ "skills/open-design/SKILL.md"
12
+ ],
13
+ "failure_pattern": "Visible commands and Open Design tool requirements were not fully represented in the persistent command contract.",
14
+ "evidence": [
15
+ "docs/ai/evolution/runs/iteration-005-harness-orchestration-audit/evaluation.md",
16
+ "docs/ai/evolution/runs/iteration-005-harness-orchestration-audit/analysis/overview.md"
17
+ ],
18
+ "predicted_fixes": [
19
+ "visible-auxiliary-commands-classified",
20
+ "open-design-baseurl-policy-explicit"
21
+ ],
22
+ "risk_tasks": [
23
+ "do-not-add-mandatory-sidecars",
24
+ "do-not-hardcode-local-open-design-url"
25
+ ],
26
+ "constraint_level": "command|skill|memory",
27
+ "why_this_component": "The failures were persistent contract drift, not runtime provider or MCP configuration."
28
+ }
29
+ ]
30
+ }
@@ -0,0 +1,25 @@
1
+ # Evaluation: iteration-005-harness-orchestration-audit
2
+
3
+ ## Objective
4
+
5
+ Audit the visible slash-command contract and Open Design command/skill contract
6
+ after the earlier harness-readable documentation work.
7
+
8
+ ## Evidence
9
+
10
+ - `static_contract`: `commands/*.md`, `docs/ai/harness/commands.md`,
11
+ `commands/design.md`, and `skills/open-design/SKILL.md`.
12
+ - `manual_oracle`: `/research` and `/implement` were visible commands but needed
13
+ explicit classification as auxiliary/subtask commands.
14
+
15
+ ## Findings
16
+
17
+ - `/research` and `/implement` needed to be documented in the command source of
18
+ truth without promoting them to heavier top-level flows.
19
+ - `/design` and `open-design` needed a non-guessed `baseUrl` policy aligned with
20
+ the Open Design tool schema.
21
+
22
+ ## Result
23
+
24
+ Static evidence was sufficient for a bounded documentation/contract change. No
25
+ runtime Open Design smoke was claimed.
@@ -0,0 +1,13 @@
1
+ # Analysis: iteration-006-lead-delegation-audit
2
+
3
+ The root cause was an unclear boundary between lightweight `/feature` intake and
4
+ substantive discovery. When technical/API uncertainty was present, `lead` needed
5
+ to build a handoff instead of researching the answer directly.
6
+
7
+ The fix clarified that:
8
+
9
+ - initial `lead` analysis is only for scope, uncertainty, and handoff routing;
10
+ - technical/product/API/library/risk/architecture uncertainty goes to
11
+ `researcher` before substantive discovery;
12
+ - UX/UI/brand/layout uncertainty goes to `designer` before visual discovery;
13
+ - `researcher` is not universal for simple, clear features.
@@ -0,0 +1,14 @@
1
+ {
2
+ "iteration": 6,
3
+ "status": "accepted",
4
+ "checks": [
5
+ {
6
+ "name": "static_contract",
7
+ "status": "passed",
8
+ "notes": "/feature now states the intake boundary and preserves fast routing for simple features."
9
+ }
10
+ ],
11
+ "residual_risks": [
12
+ "Full runtime replay through implementation and review is not claimed here."
13
+ ]
14
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "iteration": 6,
3
+ "changes": [
4
+ {
5
+ "id": "chg-1-feature-intake-research-boundary",
6
+ "type": "improvement",
7
+ "description": "Clarify that lead intake in /feature is classification and handoff construction, not broad technical discovery.",
8
+ "files": [
9
+ "commands/feature.md",
10
+ "docs/ai/harness/commands.md"
11
+ ],
12
+ "failure_pattern": "With declared technical uncertainty, lead could inspect broadly before delegating to researcher.",
13
+ "evidence": [
14
+ "docs/ai/evolution/runs/iteration-006-lead-delegation-audit/evaluation.md",
15
+ "docs/ai/evolution/runs/iteration-006-lead-delegation-audit/analysis/overview.md"
16
+ ],
17
+ "predicted_fixes": [
18
+ "researcher-gets-first-substantive-technical-discovery",
19
+ "lead-handoff-includes-objective-uncertainty-constraints-evidence"
20
+ ],
21
+ "risk_tasks": [
22
+ "do-not-make-researcher-universal",
23
+ "preserve-minimal-lead-routing-context"
24
+ ],
25
+ "constraint_level": "command",
26
+ "why_this_component": "The causal wording lived in the /feature command and its documented command contract."
27
+ }
28
+ ]
29
+ }
@@ -0,0 +1,18 @@
1
+ # Evaluation: iteration-006-lead-delegation-audit
2
+
3
+ ## Objective
4
+
5
+ Investigate reports that `/feature` allowed `lead` to perform too much direct
6
+ technical discovery before delegating uncertainty to `researcher`.
7
+
8
+ ## Evidence
9
+
10
+ - `static_contract`: `commands/feature.md`, `agents/lead.md`, and
11
+ `docs/ai/harness/commands.md`.
12
+ - `transcript_replay`: prior local replay evidence showed `lead` could delegate
13
+ to `researcher`, but `/feature` intake wording encouraged broad direct
14
+ inspection first.
15
+
16
+ ## Result
17
+
18
+ The issue was traced to command wording, not to provider, model, or MCP setup.
@@ -0,0 +1,13 @@
1
+ # Analysis: iteration-007-agent-skills-integration
2
+
3
+ The useful unit of change is local skills plus bounded agent permissions:
4
+
5
+ - `developer` can use implementation-adjacent process skills;
6
+ - `researcher` can use source/security/performance/API/documentation checklists;
7
+ - `specifier` can use contract, security, documentation, and testing checklists;
8
+ - `reviewer` can use review, testing, debugging, security, and performance
9
+ checklists;
10
+ - `lead` continues to route instead of doing implementation work.
11
+
12
+ The public kit must keep skills generic and free of local providers, MCPs, or
13
+ private URLs.
@@ -0,0 +1,14 @@
1
+ {
2
+ "iteration": 7,
3
+ "status": "accepted",
4
+ "checks": [
5
+ {
6
+ "name": "static_contract",
7
+ "status": "passed",
8
+ "notes": "Skills are generic, English, and wired through bounded agent allowlists."
9
+ }
10
+ ],
11
+ "residual_risks": [
12
+ "Runtime quality depends on whether the active OpenCode version supports local skill permissions as configured."
13
+ ]
14
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "iteration": 7,
3
+ "changes": [
4
+ {
5
+ "id": "chg-1-local-process-skills",
6
+ "type": "addition",
7
+ "description": "Add generic local process skills and wire them into relevant agents as optional checklists.",
8
+ "files": [
9
+ "skills/",
10
+ "references/",
11
+ "agents/developer.md",
12
+ "agents/researcher.md",
13
+ "agents/specifier.md",
14
+ "agents/reviewer.md",
15
+ "AGENTS.md"
16
+ ],
17
+ "failure_pattern": "Agents lacked reusable process checklists for recurring testing, review, API, security, performance, and documentation work.",
18
+ "evidence": [
19
+ "docs/ai/evolution/runs/iteration-007-agent-skills-integration/evaluation.md",
20
+ "docs/ai/evolution/runs/iteration-007-agent-skills-integration/analysis/overview.md"
21
+ ],
22
+ "predicted_fixes": [
23
+ "agents-use-generic-local-skills-when-relevant",
24
+ "simple-tasks-do-not-gain-mandatory-phases"
25
+ ],
26
+ "risk_tasks": [
27
+ "avoid-local-provider-or-mcp-content",
28
+ "avoid-heavy-flow-for-small-changes"
29
+ ],
30
+ "constraint_level": "agent|skill",
31
+ "why_this_component": "The desired behavior is process guidance for existing agents, not model/provider configuration."
32
+ }
33
+ ]
34
+ }
@@ -0,0 +1,17 @@
1
+ # Evaluation: iteration-007-agent-skills-integration
2
+
3
+ ## Objective
4
+
5
+ Evaluate whether the local harness should integrate process skills inspired by
6
+ agent-skills without turning every task into a heavier flow.
7
+
8
+ ## Evidence
9
+
10
+ - `static_contract`: existing agents, commands, and skill directory shape.
11
+ - `manual_oracle`: local usage needed checklists for testing, source-driven
12
+ development, review, security, performance, simplification, and ADRs.
13
+
14
+ ## Result
15
+
16
+ The integration should be agent-level skill allowlists plus optional checklist
17
+ language, not a new mandatory orchestration layer.
@@ -0,0 +1,13 @@
1
+ # Analysis: iteration-008-lead-readonly-shell-permissions
2
+
3
+ The root cause was an allowlist gap, not an orchestration bug. The fix adds
4
+ specific read-only commands for lightweight repository inspection:
5
+
6
+ - `ls*`
7
+ - `find *`
8
+ - `grep *`
9
+ - `rg *`
10
+ - `tail *`
11
+ - `wc *`
12
+
13
+ The fallback remains `bash "*": ask`.
@@ -0,0 +1,12 @@
1
+ {
2
+ "iteration": 8,
3
+ "status": "accepted",
4
+ "checks": [
5
+ {
6
+ "name": "static_contract",
7
+ "status": "passed",
8
+ "notes": "Lead retains bash fallback ask while specific read-only inspection commands are allowlisted."
9
+ }
10
+ ],
11
+ "residual_risks": []
12
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "iteration": 8,
3
+ "changes": [
4
+ {
5
+ "id": "chg-1-lead-readonly-shell-allowlist",
6
+ "type": "update",
7
+ "description": "Allow lead to run narrowly scoped read-only shell inspection commands without prompts.",
8
+ "files": [
9
+ "agents/lead.md"
10
+ ],
11
+ "failure_pattern": "Lead asks for approval on routine read-only inspection commands during routing.",
12
+ "evidence": [
13
+ "docs/ai/evolution/runs/iteration-008-lead-readonly-shell-permissions/evaluation.md",
14
+ "docs/ai/evolution/runs/iteration-008-lead-readonly-shell-permissions/analysis/overview.md"
15
+ ],
16
+ "predicted_fixes": [
17
+ "lead-can-inspect-with-common-readonly-shell-commands",
18
+ "unknown-bash-still-asks"
19
+ ],
20
+ "risk_tasks": [
21
+ "do-not-allow-broad-shell-patterns",
22
+ "do-not-grant-editing-authority"
23
+ ],
24
+ "constraint_level": "tool",
25
+ "why_this_component": "OpenCode shell prompts are controlled by agent permission frontmatter."
26
+ }
27
+ ]
28
+ }
@@ -0,0 +1,17 @@
1
+ # Evaluation: iteration-008-lead-readonly-shell-permissions
2
+
3
+ ## Objective
4
+
5
+ Reduce approval prompts for harmless read-only shell inspection by `lead`.
6
+
7
+ ## Evidence
8
+
9
+ - `manual_oracle`: repeated prompts for `ls`, `grep`, `tail`, `find`, and `wc`
10
+ slowed normal routing inspection.
11
+ - `static_contract`: `lead` still had `bash "*": ask`, so additions could stay
12
+ narrow.
13
+
14
+ ## Result
15
+
16
+ Allow only common read-only inspection commands while keeping all other bash
17
+ commands gated by approval.
@@ -0,0 +1,9 @@
1
+ # Analysis: iteration-009-lead-developer-ownership-loop
2
+
3
+ The root cause was missing loop ownership language. The fix:
4
+
5
+ - denies file editing to `lead`;
6
+ - states that `lead` may inspect, synthesize, decide, and delegate;
7
+ - routes implementation corrections back to `developer`;
8
+ - mirrors the invariant in agent-readable harness docs;
9
+ - adds mechanical checks to preserve the contract.
@@ -0,0 +1,14 @@
1
+ {
2
+ "iteration": 9,
3
+ "status": "accepted",
4
+ "checks": [
5
+ {
6
+ "name": "static_contract",
7
+ "status": "passed",
8
+ "notes": "Lead edit permission is denied and ownership-loop wording is present."
9
+ }
10
+ ],
11
+ "residual_risks": [
12
+ "Fresh runtime behavior should still be observed in real OpenCode sessions."
13
+ ]
14
+ }