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
package/SECURITY.md ADDED
@@ -0,0 +1,17 @@
1
+ # Security Policy
2
+
3
+ This kit configures coding agents and an optional Open Design workbench. Treat both as powerful developer tools.
4
+
5
+ ## Supported use
6
+
7
+ - Use Open Design on localhost, a trusted LAN, VPN, Tailscale, WireGuard, or behind an authenticated reverse proxy.
8
+ - Do not expose Open Design directly to the public Internet without authentication and network controls.
9
+ - Keep OpenCode auth files, provider credentials, sessions, logs, and `.env` files out of git.
10
+
11
+ ## Report a vulnerability
12
+
13
+ Open an issue with a minimal reproduction and no secrets. If the report contains sensitive information, contact the maintainer privately before publishing details.
14
+
15
+ ## Local risks
16
+
17
+ Open Design can run agent CLIs that read and write files in the project workspace. Review prompts and target directories before running generation on private repositories.
@@ -0,0 +1,6 @@
1
+ OD_HOST=0.0.0.0
2
+ OD_PUBLIC_HOST=http://192.168.1.50:7456
3
+ OD_PORT=7456
4
+ OPENCODE_CONFIG_DIR=/home/opencode/.config/opencode
5
+ OPENCODE_MODEL=openai/gpt-5.5
6
+ OPENCODE_SMALL_MODEL=openai/gpt-5.5
@@ -0,0 +1,50 @@
1
+ FROM node:24-bookworm-slim
2
+
3
+ RUN apt-get update \
4
+ && apt-get install -y --no-install-recommends git curl ca-certificates python3 make g++ \
5
+ && rm -rf /var/lib/apt/lists/*
6
+
7
+ RUN useradd -m -s /bin/bash opencode
8
+ WORKDIR /app
9
+
10
+ ARG OPEN_DESIGN_REF=1592beb96134f9d49b8a90dc6a359b94a69af57e
11
+ ARG OPENCODE_AI_VERSION=1.14.31
12
+
13
+ RUN git clone https://github.com/nexu-io/open-design.git /app/open-design \
14
+ && cd /app/open-design \
15
+ && git checkout "$OPEN_DESIGN_REF"
16
+ WORKDIR /app/open-design
17
+
18
+ RUN corepack enable \
19
+ && corepack prepare pnpm@10.33.2 --activate \
20
+ && pnpm install --frozen-lockfile=false \
21
+ && npm install -g "opencode-ai@$OPENCODE_AI_VERSION"
22
+
23
+ # Make the daemon listen on OD_HOST when upstream exposes host/port constants.
24
+ # This is intentionally best-effort because upstream may change file layout.
25
+ RUN node - <<'NODE'
26
+ const fs = require('fs')
27
+ const candidates = ['apps/daemon/cli.js', 'apps/daemon/server.js', 'daemon/cli.js', 'daemon/server.js']
28
+ for (const file of candidates) {
29
+ if (!fs.existsSync(file)) continue
30
+ let text = fs.readFileSync(file, 'utf8')
31
+ text = text.replace(/127\.0\.0\.1/g, "process.env.OD_HOST || '0.0.0.0'")
32
+ text = text.replace(/localhost/g, "process.env.OD_HOST || '0.0.0.0'")
33
+ fs.writeFileSync(file, text)
34
+ }
35
+ NODE
36
+
37
+ RUN pnpm --filter @open-design/daemon build \
38
+ && (pnpm build || pnpm -r build)
39
+
40
+ ENV OD_HOST=0.0.0.0
41
+ ENV OD_PORT=7456
42
+ ENV OPENCODE_CONFIG_DIR=/home/opencode/.config/opencode
43
+
44
+ RUN mkdir -p /home/opencode/.config/opencode /home/opencode/.local/share/opencode /app/open-design/.od \
45
+ && chown -R opencode:opencode /home/opencode /app/open-design
46
+
47
+ USER opencode
48
+ EXPOSE 7456
49
+
50
+ CMD ["sh", "-lc", "node apps/daemon/dist/cli.js --port ${OD_PORT:-7456} --no-open"]
@@ -0,0 +1,18 @@
1
+ services:
2
+ open-design:
3
+ build: .
4
+ container_name: open-design
5
+ ports:
6
+ - "7456:7456"
7
+ environment:
8
+ OD_HOST: ${OD_HOST:-0.0.0.0}
9
+ OD_PUBLIC_HOST: ${OD_PUBLIC_HOST:-http://192.168.1.50:7456}
10
+ OD_PORT: ${OD_PORT:-7456}
11
+ OPENCODE_CONFIG_DIR: ${OPENCODE_CONFIG_DIR:-/home/opencode/.config/opencode}
12
+ OPENCODE_MODEL: ${OPENCODE_MODEL:-openai/gpt-5.5}
13
+ OPENCODE_SMALL_MODEL: ${OPENCODE_SMALL_MODEL:-openai/gpt-5.5}
14
+ volumes:
15
+ - ./data:/app/open-design/.od
16
+ - ./opencode-od:/home/opencode/.config/opencode:ro
17
+ - ./opencode-auth:/home/opencode/.local/share/opencode
18
+ restart: unless-stopped
@@ -0,0 +1,22 @@
1
+ ---
2
+ description: Isolated Open Design worker for generating design artifacts inside Open Design project workspaces.
3
+ mode: primary
4
+ permission:
5
+ read: allow
6
+ glob: allow
7
+ grep: allow
8
+ list: allow
9
+ edit: allow
10
+ bash: ask
11
+ webfetch: ask
12
+ websearch: ask
13
+ external_directory: deny
14
+ skill:
15
+ "*": deny
16
+ task:
17
+ "*": deny
18
+ ---
19
+
20
+ You are the isolated Open Design worker.
21
+
22
+ Generate design artifacts only inside the current Open Design project workspace. Follow the system prompt, selected Open Design skill, selected design system, and user prompt. Do not invoke other agents or skills. Do not access secrets or external directories.
@@ -0,0 +1,24 @@
1
+ {
2
+ "$schema": "https://opencode.ai/config.json",
3
+ "model": "{env:OPENCODE_MODEL}",
4
+ "small_model": "{env:OPENCODE_SMALL_MODEL}",
5
+ "default_agent": "od-worker",
6
+ "share": "disabled",
7
+ "permission": {
8
+ "read": "allow",
9
+ "glob": "allow",
10
+ "grep": "allow",
11
+ "list": "allow",
12
+ "edit": "allow",
13
+ "bash": "ask",
14
+ "webfetch": "ask",
15
+ "websearch": "ask",
16
+ "external_directory": "deny"
17
+ },
18
+ "agent": {
19
+ "od-worker": {
20
+ "model": "{env:OPENCODE_MODEL}",
21
+ "temperature": 0.4
22
+ }
23
+ }
24
+ }
package/docs/agents.md ADDED
@@ -0,0 +1,21 @@
1
+ # Agents
2
+
3
+ ## Core agents
4
+
5
+ - `lead`: default free-form router, feature orchestrator, and phase-barrier owner.
6
+ - `scoper`: lightweight research -> spec orchestrator.
7
+ - `designer`: uses PRODUCT.md/DESIGN.md, optional Impeccable, and Open Design.
8
+ - `researcher`: verifies code, docs, APIs, alternatives, and risks.
9
+ - `specifier`: produces specs, tasks, acceptance criteria, and validation plans.
10
+ - `developer`: implements approved tasks, including direct-mode work delegated by lead, and validates changes.
11
+ - `reviewer`: reviews diffs against spec and returns verdicts.
12
+
13
+ ## Optional AHE sidecars
14
+
15
+ - `evaluator`: captures benchmark/smoke evidence.
16
+ - `debugger`: turns results and traces into root causes.
17
+ - `evolver`: proposes harness changes only with evidence.
18
+
19
+ Sidecars are not part of the normal feature flow.
20
+
21
+ Detailed agent contracts live in `opencode/docs/ai/harness/agents.md`.
@@ -0,0 +1,16 @@
1
+ # Commands
2
+
3
+ - `/feature`: full feature orchestration.
4
+ - `/plan`: research, implementation-ready spec, and reviewer pass with no implementation.
5
+ - `/scope`: research plus scoped spec, no implementation.
6
+ - `/mvp-spec`: strict MVP spec with small tasks and clear out of scope.
7
+ - `/design`: design via PRODUCT.md/DESIGN.md, optional Impeccable, and Open Design.
8
+ - `/research`: direct researcher task.
9
+ - `/spec`: direct specifier task.
10
+ - `/implement`: direct developer task for approved work.
11
+ - `/test`: focused validation or test-driven bug reproduction through `developer`.
12
+ - `/code-simplify`: bounded behavior-preserving simplification through `developer`.
13
+ - `/review`: direct reviewer task for current diff.
14
+ - `/evolve`: optional AHE harness evolution flow.
15
+
16
+ Detailed command contracts live in `opencode/docs/ai/harness/commands.md`.
@@ -0,0 +1,30 @@
1
+ # Configuration
2
+
3
+ The kit is organized as an OpenCode config directory:
4
+
5
+ - `AGENTS.md`: global behavior rules.
6
+ - `opencode.json`: models, permissions, plugin registration, default agent.
7
+ - `tui.json`: TUI plugin registration.
8
+ - `agents/`: role prompts.
9
+ - `commands/`: slash commands.
10
+ - `docs/ai/harness/`: agent-readable contracts for agents, commands, evidence, and checks.
11
+ - `docs/ai/evolution/`: AHE benchmark and evolution records.
12
+ - `plugins/`: bundled OpenCode/TUI plugins.
13
+ - `references/`: reusable checklists that local skills may cite.
14
+ - `skills/`: local skills, including `open-design`.
15
+ - `scripts/check-harness.mjs`: local harness validator.
16
+ - `tools/`: custom TypeScript tools.
17
+
18
+ The default permissions are conservative: reads are allowed, edits and bash ask by default, and external directories are denied.
19
+
20
+ The default agent is `lead`, acting as a bounded router for free-form messages. For small, clear, low-risk work, lead delegates direct mode to `developer`; for technical uncertainty it delegates to `researcher`; for visual or interaction work it delegates to `designer`; and for planning gaps it delegates to `specifier`. Slash commands still route to their explicit agents, for example `/feature` and `/plan` to `lead`, `/scope` to `scoper`, and `/design` to `designer`.
21
+
22
+ Run `node scripts/check-harness.mjs` from an installed OpenCode config directory
23
+ to validate the core harness contracts. In this repository,
24
+ `npm run check:quick` runs the contract path against `opencode/`, while
25
+ `npm run check` also runs every bundled `node:test` suite. Use
26
+ `npm run check:release` for the complete release-readiness path.
27
+
28
+ The bundled TUI token plugin is registered in `tui.json`. It shows lead token
29
+ usage and total usage across child/subagent sessions when OpenCode exposes that
30
+ session tree through the TUI plugin API.
@@ -0,0 +1,42 @@
1
+ # Docker Open Design
2
+
3
+ ```bash
4
+ cd docker/open-design
5
+ cp .env.example .env
6
+ docker compose up -d --build
7
+ ```
8
+
9
+ The Docker image pins upstream build inputs by default:
10
+
11
+ - `OPEN_DESIGN_REF=1592beb96134f9d49b8a90dc6a359b94a69af57e`
12
+ - `OPENCODE_AI_VERSION=1.14.31`
13
+
14
+ Update them intentionally when you want a newer Open Design or OpenCode CLI build:
15
+
16
+ ```bash
17
+ docker compose build \
18
+ --build-arg OPEN_DESIGN_REF=<commit-sha> \
19
+ --build-arg OPENCODE_AI_VERSION=<version>
20
+ docker compose up -d
21
+ ```
22
+
23
+ Authenticate OpenCode inside the container:
24
+
25
+ ```bash
26
+ docker exec -it open-design bash
27
+ opencode auth login
28
+ opencode models openai --refresh
29
+ exit
30
+ ```
31
+
32
+ The compose file mounts:
33
+
34
+ - `./data` for Open Design runtime data;
35
+ - `./opencode-od` for isolated OpenCode config;
36
+ - `./opencode-auth` for container-local OpenCode auth.
37
+
38
+ Do not commit `data` or `opencode-auth`.
39
+
40
+ ## HTTP LAN and crypto.randomUUID
41
+
42
+ Some browser APIs require a secure context. If Open Design frontend code calls `crypto.randomUUID` and your browser blocks it over HTTP LAN, prefer HTTPS. Only patch upstream frontend code as a local operational workaround.
@@ -0,0 +1,18 @@
1
+ # Impeccable
2
+
3
+ Impeccable is optional and is not included in this repository.
4
+
5
+ The designer is allowed to load an `impeccable` skill if the user has installed it separately. It uses Impeccable only when product or design context is missing.
6
+
7
+ Use it to create or propose:
8
+
9
+ - `PRODUCT.md`
10
+ - `DESIGN.md`
11
+
12
+ Install it from upstream according to Impeccable's documentation:
13
+
14
+ ```text
15
+ https://github.com/pbakaus/impeccable
16
+ ```
17
+
18
+ If Impeccable is not installed, designer should report the missing skill and propose the documents manually instead of pretending it ran.
@@ -0,0 +1,176 @@
1
+ # Installation lifecycle
2
+
3
+ ## Test without a global install
4
+
5
+ ```bash
6
+ git clone https://github.com/<owner>/opencode-agent-orchestration-kit.git
7
+ cd opencode-agent-orchestration-kit
8
+ export OPENCODE_CONFIG_DIR="$PWD/opencode"
9
+ source env.example
10
+ (cd opencode && npm install)
11
+ opencode
12
+ ```
13
+
14
+ ## Target selection
15
+
16
+ Every lifecycle command resolves its target in the same order:
17
+
18
+ 1. `--target PATH`;
19
+ 2. a non-empty `OPENCODE_CONFIG_DIR`;
20
+ 3. `$HOME/.config/opencode`.
21
+
22
+ An explicitly empty configured value or missing required `HOME` is invalid. Argument values are literal, so `~` is not shell-expanded by the manager.
23
+
24
+ ## Commands
25
+
26
+ ```text
27
+ ./install.sh [--dry-run] [--force] [--target PATH]
28
+ ./upgrade.sh [--dry-run] [--target PATH]
29
+ ./doctor.sh [--accept-preserved PATH] [--target PATH]
30
+ ./uninstall.sh [--dry-run] [--yes] [--target PATH]
31
+ ./rollback.sh [--dry-run] [--target PATH]
32
+ ```
33
+
34
+ Each wrapper also accepts `--version` by itself. It prints the same identity as
35
+ `node scripts/version.mjs`; combining `--version` with another argument is an
36
+ invalid invocation.
37
+
38
+ Start mutating workflows with the corresponding `--dry-run`. A preview computes the complete plan and performs zero writes: it creates no target, `.oak`, lock, manifest, journal, or backup. Apply recomputes the plan after acquiring the lock; a changed fingerprint aborts.
39
+
40
+ ## Ownership and protected files
41
+
42
+ Managed state is stored under `TARGET/.oak/`. `manifest.json` lists only kit-owned files and source-overlapping files deliberately preserved as user-owned. Arbitrary target files and `node_modules` are never claimed.
43
+
44
+ These pre-existing root files remain user-owned by default when they differ:
45
+
46
+ ```text
47
+ AGENTS.md
48
+ opencode.json
49
+ tui.json
50
+ package.json
51
+ package-lock.json
52
+ ```
53
+
54
+ An exact initial match may be adopted without rewriting. A differing protected file is preserved with source and user baselines so `doctor` can report later changes. A legacy install with no manifest is treated as an initial install.
55
+
56
+ Initial `install --force` is narrow overwrite authorization for colliding regular files. It first stores exact bytes and modes in the rollback point. It cannot replace directories or symlinks, traverse unsafe paths, overwrite `.oak`, bypass locks/corrupt state, force an upgrade, or delete a user-modified file.
57
+
58
+ ## Version identity
59
+
60
+ The root `package.json` is the only editable kit-version source. `kit_version`
61
+ in a manifest identifies the kit release whose payload and ownership state it
62
+ describes. `schema_version` identifies the manifest format; the two values are
63
+ independent. Every complete previous or next manifest snapshot records a
64
+ canonical stable `kit_version`.
65
+
66
+ Use these read-only checks from the repository root:
67
+
68
+ ```bash
69
+ node scripts/version.mjs
70
+ npm run check:version
71
+ node scripts/version.mjs --check-tag v1.0.27
72
+ ```
73
+
74
+ The tag check validates only the supplied value. It does not inspect the
75
+ network, create a tag, or publish a release.
76
+
77
+ ## Upgrade and conflicts
78
+
79
+ `upgrade` requires a valid manifest. It may add new files, update unchanged owned files, remove unchanged obsolete owned files, and remove obsolete preserved metadata without touching user bytes.
80
+
81
+ The complete upgrade aborts before mutation for:
82
+
83
+ - modified or missing owned files;
84
+ - modified obsolete owned files;
85
+ - unowned collisions;
86
+ - unsafe paths, symlinks, or file/directory collisions;
87
+ - invalid manifest, journal, lock, or rollback state;
88
+ - a post-lock fingerprint change.
89
+
90
+ Version comparison is an additional pre-lock gate:
91
+
92
+ - source greater than installed: normal upgrade planning continues, including
93
+ a manifest-only version transition when the payload is unchanged;
94
+ - equal version and equal payload: no-op;
95
+ - equal version and different payload: the complete upgrade is blocked with
96
+ `same-version-different-payload`;
97
+ - source lower than installed: the complete upgrade is blocked with
98
+ `source-older`; arbitrary downgrade is unsupported.
99
+
100
+ Preserved user changes and pending protected-file merges are warnings, not authorization to overwrite those paths.
101
+
102
+ ## Doctor and preserved merge acknowledgement
103
+
104
+ Ordinary `doctor` is lock-free and read-only. Exit codes are:
105
+
106
+ - `0`: healthy managed installation; stable preservation and user-only preserved evolution are allowed;
107
+ - `1`: actionable state such as owned drift, a pending merge, obsolete preserved metadata, stale lock, interrupted transaction, rollback conflict, or cleanup residue;
108
+ - `2`: invalid invocation, corrupt/unknown state, unsafe path/symlink, structural collision, or a filesystem error that prevents safe analysis.
109
+
110
+ Its structured report adds `sourceVersion`, `installedVersion`, and
111
+ `versionState`. The state is exactly one of:
112
+
113
+ - `not-installed`: manifest absent;
114
+ - `current`: version and payload match;
115
+ - `upgrade-available`: the local source checkout is newer;
116
+ - `source-older`: the local source checkout is older;
117
+ - `same-version-different-payload`: release identity contradicts payload;
118
+ - `invalid-version-state`: a present manifest or canonical source version is
119
+ invalid.
120
+
121
+ `sourceVersion` is null only when the source identity is invalid.
122
+ `installedVersion` is null when the manifest is absent or cannot supply a valid
123
+ version. A present invalid manifest is never reported as `not-installed`.
124
+ Version state does not hide ownership drift, preserved-file warnings, locks,
125
+ transactions, rollback conflicts, or cleanup residue.
126
+
127
+ To record that one preserved file has been manually merged:
128
+
129
+ ```bash
130
+ ./doctor.sh --accept-preserved opencode.json
131
+ ```
132
+
133
+ The command displays:
134
+
135
+ ```text
136
+ ACK-PRESERVED <path> <target-sha256> <target-mode> <source-sha256> <source-mode>
137
+ ```
138
+
139
+ Paste that exact line to stdin. Hashes are full lowercase SHA-256 values; modes are four octal digits. `yes`, the path alone, partial values, EOF, or any stale tuple cancels without persistent mutation. A valid acknowledgement updates only manifest baselines and acknowledgement metadata; it never changes file bytes, mode, ownership, or preservation reason. It is rollbackable.
140
+
141
+ ## Uninstall
142
+
143
+ `uninstall` plans before prompting. It removes only `owned-unchanged` files and proven-empty directories. Modified, missing, preserved, and unrelated user files survive. `--yes` skips the confirmation only; it changes no ownership rule. The active manifest is removed after the planned file removals commit, while `.oak/rollback/` remains for one rollback.
144
+
145
+ ## Rollback and interrupted recovery
146
+
147
+ `rollback` validates the current manifest presence/digest and every operation after-state before inverse writes. It restores exact previous bytes and modes, or only manifest ownership metadata for adoption, preservation, acknowledgement, and obsolete-preserved cleanup. A later user edit blocks rollback.
148
+
149
+ When `.oak/transaction.json` records an interrupted forward operation or rollback, `rollback` resumes its deterministic recovery instead of selecting another point. Backups for interrupted forward recovery are resolved only below `rollback.next/`; committed rollback uses only `rollback/`. A stale lock is replaced only when it matches the recoverable journal and its PID is no longer alive.
150
+
151
+ The manager retains one committed rollback generation. Post-commit `rollback.next/` or `rollback.previous/` directories are cleanup residue, never additional rollback choices.
152
+
153
+ Do not delete or edit `.oak` manually. Rollback backups may contain exact prior configuration bytes, including sensitive values, and are created with restrictive permissions.
154
+
155
+ An unpublished experimental manifest with `schema_version: 1` but no
156
+ `kit_version` has no automatic migration: `doctor` reports invalid state and
157
+ mutations fail closed. A developer repairing that experimental state must first
158
+ back up the complete target, inspect the exact `.oak` path and its recovery
159
+ artifacts, and only then explicitly remove that experimental `.oak` state and
160
+ reinstall. Never authorize broad deletion or invent a version for an invalid
161
+ manifest.
162
+
163
+ An older installation with no ownership manifest follows the normal initial
164
+ install path: run `install --dry-run`, review every collision, back up the
165
+ target, and use `install --force` only for exact regular-file replacements that
166
+ you intentionally want the kit to own.
167
+
168
+ ## After installation
169
+
170
+ ```bash
171
+ (cd "${OPENCODE_CONFIG_DIR:-$HOME/.config/opencode}" && npm install)
172
+ opencode auth login
173
+ opencode models openai --refresh
174
+ ```
175
+
176
+ If a protected `opencode.json` or `tui.json` was preserved, merge the relevant plugin entries manually and use `doctor --accept-preserved` only after reviewing the complete tuple.
package/docs/models.md ADDED
@@ -0,0 +1,17 @@
1
+ # Models
2
+
3
+ Configure models through environment variables:
4
+
5
+ ```bash
6
+ export OPENCODE_MODEL="openai/gpt-5.5"
7
+ export OPENCODE_SMALL_MODEL="$OPENCODE_MODEL"
8
+ ```
9
+
10
+ Each role can be overridden independently:
11
+
12
+ ```bash
13
+ export OPENCODE_RESEARCHER_MODEL="openai/gpt-5.5"
14
+ export OPENCODE_REVIEWER_MODEL="openai/gpt-5.5"
15
+ ```
16
+
17
+ Keep provider credentials in your shell, password manager, or OpenCode auth flow. Do not commit credentials.
@@ -0,0 +1,25 @@
1
+ # Open Design
2
+
3
+ Open Design is an optional workbench for editable design projects and generated visual artifacts.
4
+
5
+ This kit integrates through `opencode/tools/open_design.ts` and `opencode/skills/open-design/SKILL.md`.
6
+
7
+ ## OPEN_DESIGN_URL
8
+
9
+ Use the base URL:
10
+
11
+ - `https://open-design.example.com`
12
+ - `http://192.168.1.50:7456`
13
+
14
+ Do not use project or file URLs.
15
+
16
+ ## Deployment options
17
+
18
+ - localhost
19
+ - Docker local
20
+ - Docker on a NAS
21
+ - HTTPS reverse proxy
22
+
23
+ ## Security
24
+
25
+ Do not expose Open Design directly to the Internet without authentication, VPN, Tailscale, WireGuard, or a secure reverse proxy.
@@ -0,0 +1,74 @@
1
+ # Quickstart
2
+
3
+ ## 1. Configure models
4
+
5
+ ```bash
6
+ cp env.example .env
7
+ source .env
8
+ (cd opencode && npm install)
9
+ ```
10
+
11
+ ## 2. Configure Open Design
12
+
13
+ ```bash
14
+ export OPEN_DESIGN_URL="https://open-design.example.com"
15
+ ```
16
+
17
+ Use the base URL only.
18
+
19
+ ## 3. Try scope
20
+
21
+ ```text
22
+ /scope Research whether this repo should use Stripe Checkout or Payment Element and produce an MVP spec
23
+ ```
24
+
25
+ Expected flow: researcher -> scoper synthesis -> specifier.
26
+
27
+ ## 4. Try plan
28
+
29
+ ```text
30
+ /plan Add a dry-run flag to the harness check without implementing it yet
31
+ ```
32
+
33
+ Expected flow: lead -> researcher -> specifier -> reviewer, with no implementation.
34
+
35
+ ## 5. Try bounded direct routing
36
+
37
+ ```text
38
+ Change the Settings heading to Account settings and run the smallest relevant validation.
39
+ ```
40
+
41
+ Expected flow: lead chooses the direct path and delegates the small change to developer. No full feature orchestration.
42
+
43
+ ## 6. Try design
44
+
45
+ ```text
46
+ /design Read PRODUCT.md and DESIGN.md, create an editable Open Design project for onboarding, and return the URL
47
+ ```
48
+
49
+ Expected flow: designer checks docs, optionally uses Impeccable, then uses Open Design.
50
+
51
+ ## 7. Try feature
52
+
53
+ ```text
54
+ /feature Add a small settings page with a saved theme preference
55
+ ```
56
+
57
+ Expected flow: lead decides research/design needs, then specifier -> developer -> reviewer.
58
+
59
+ ## 8. Validate the harness
60
+
61
+ ```bash
62
+ node scripts/version.mjs
63
+ npm run check:version
64
+ npm run check
65
+ ```
66
+
67
+ The check validates the contracts and runs every bundled `node:test` suite. Use
68
+ `npm run check:quick` for the contract-only path or `npm run check:release` for
69
+ the dependency install, typecheck, audit, and installation smoke used for
70
+ release readiness.
71
+
72
+ For an explicitly planned release tag, validate it locally with
73
+ `node scripts/version.mjs --check-tag v1.0.27`. This check does not create,
74
+ push, or publish the tag or a hosted release.
@@ -0,0 +1,46 @@
1
+ # v1.0.10 - Portable orchestration skills and TUI token totals
2
+
3
+ This release publishes the latest orchestration improvements from the local
4
+ OpenCode harness into the public starter kit, while keeping local providers,
5
+ private MCP configuration, credentials, and machine-specific paths out of the
6
+ repository.
7
+
8
+ ## Highlights
9
+
10
+ - Added a portable TUI plugin that shows both lead/root token usage and total
11
+ token usage across child/subagent sessions.
12
+ - Added generic local process skills for source-driven development, testing,
13
+ debugging, review, simplification, security, performance, API/interface
14
+ design, and documentation/ADRs.
15
+ - Added `/test` and `/code-simplify` as focused auxiliary commands routed
16
+ through `developer`.
17
+ - Hardened `lead` so it coordinates and delegates implementation changes instead
18
+ of editing files itself.
19
+ - Expanded `lead`'s narrow shell allowlist for routine inspection/navigation:
20
+ `ls`, `find`, `grep`, `rg`, `tail`, `wc`, `cd`, and `which`.
21
+ - Clarified `/feature` intake so technical or product uncertainty is delegated
22
+ before broad lead-side discovery.
23
+ - Converted AHE evolution records to public-safe English summaries and added
24
+ iterations 005-011 for the newly published harness changes.
25
+
26
+ ## Public-safety notes
27
+
28
+ - No local provider blocks are included.
29
+ - No local MCP configuration is included.
30
+ - No credentials, auth files, or private environment variables are included.
31
+ - No machine-specific absolute paths are included in `opencode/docs/ai/evolution`.
32
+ - The TUI plugin is registered with a relative path in `opencode/tui.json`.
33
+
34
+ ## Validation
35
+
36
+ Validated locally with:
37
+
38
+ ```bash
39
+ npm run check
40
+ git diff --check
41
+ npm audit --omit=dev --audit-level=moderate
42
+ npx tsc --noEmit --jsx preserve --jsxImportSource @opentui/solid --module NodeNext --moduleResolution NodeNext --target ES2022 --strict --skipLibCheck plugins/token-tree-usage.tsx
43
+ ```
44
+
45
+ Additional scans were run to confirm the public evolution docs do not contain
46
+ local paths, local provider names, local MCP names, or private project markers.
@@ -0,0 +1,39 @@
1
+ # v1.0.14 - Semantic harness checker
2
+
3
+ This release publishes the latest AHE improvement from the local OpenCode
4
+ harness into the public starter kit, while keeping local providers, private MCP
5
+ configuration, credentials, raw transcripts, and machine-specific paths out of
6
+ the repository.
7
+
8
+ ## Highlights
9
+
10
+ - Replaced brittle literal prompt-text checks in `opencode/scripts/check-harness.mjs`
11
+ with bounded semantic regex checks for lead-router contract prose.
12
+ - Kept structural checks exact for security-sensitive permissions and agent
13
+ identifiers, including `edit: deny`, shell allowlist entries, and agent names.
14
+ - Added literal fallbacks for the most critical lead prohibition checks so the
15
+ checker remains conservative where it matters.
16
+ - Added public-safe AHE summaries for iterations 014 and 015, covering the
17
+ baseline diagnosis, manifest, validation, and keep decision.
18
+
19
+ ## Public-safety notes
20
+
21
+ - No local provider blocks are included.
22
+ - No local MCP configuration is included.
23
+ - No credentials, auth files, or private environment variables are included.
24
+ - No raw transcripts are included.
25
+ - No machine-specific absolute paths are included in the new public AHE records.
26
+
27
+ ## Validation
28
+
29
+ Validated locally with:
30
+
31
+ ```bash
32
+ node --check opencode/scripts/check-harness.mjs
33
+ node scripts/check-harness.mjs
34
+ ./scripts/check.sh
35
+ git diff --check
36
+ ```
37
+
38
+ Additional targeted smokes verified that equivalent wording rewrites pass while
39
+ real omissions and `edit: deny` permission changes still fail.