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.
- package/.github/CODEOWNERS +1 -0
- package/.github/ISSUE_TEMPLATE/bug_report.yml +65 -0
- package/.github/ISSUE_TEMPLATE/config.yml +11 -0
- package/.github/ISSUE_TEMPLATE/documentation.yml +22 -0
- package/.github/ISSUE_TEMPLATE/feature_request.yml +43 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +25 -0
- package/.github/workflows/check.yml +47 -0
- package/CODE_OF_CONDUCT.md +24 -0
- package/CONTRIBUTING.md +52 -0
- package/LICENSE +201 -0
- package/NOTICE.md +23 -0
- package/README.md +806 -0
- package/SECURITY.md +17 -0
- package/docker/open-design/.env.example +6 -0
- package/docker/open-design/Dockerfile +50 -0
- package/docker/open-design/docker-compose.yml +18 -0
- package/docker/open-design/opencode-od/agents/od-worker.md +22 -0
- package/docker/open-design/opencode-od/opencode.json +24 -0
- package/docs/agents.md +21 -0
- package/docs/commands.md +16 -0
- package/docs/configuration.md +30 -0
- package/docs/docker-open-design.md +42 -0
- package/docs/impeccable.md +18 -0
- package/docs/installation.md +176 -0
- package/docs/models.md +17 -0
- package/docs/open-design.md +25 -0
- package/docs/quickstart.md +74 -0
- package/docs/releases/v1.0.10.md +46 -0
- package/docs/releases/v1.0.14.md +39 -0
- package/docs/releases/v1.0.27.md +66 -0
- package/docs/security.md +8 -0
- package/docs/superpowers/plans/2026-07-20-safe-installation-lifecycle.md +779 -0
- package/docs/superpowers/plans/2026-07-20-version-identity-and-releases.md +590 -0
- package/docs/superpowers/specs/2026-07-20-safe-installation-lifecycle-design.md +1350 -0
- package/docs/superpowers/specs/2026-07-20-version-identity-and-releases-design.md +557 -0
- package/docs/superpowers.md +34 -0
- package/docs/synology.md +30 -0
- package/docs/troubleshooting.md +54 -0
- package/docs/workflows.md +44 -0
- package/doctor.sh +5 -0
- package/env.example +15 -0
- package/install.sh +5 -0
- package/opencode/AGENTS.md +104 -0
- package/opencode/agents/debugger.md +41 -0
- package/opencode/agents/designer.md +93 -0
- package/opencode/agents/developer.md +180 -0
- package/opencode/agents/evaluator.md +35 -0
- package/opencode/agents/evolver.md +31 -0
- package/opencode/agents/lead.md +251 -0
- package/opencode/agents/researcher.md +76 -0
- package/opencode/agents/review_api.md +34 -0
- package/opencode/agents/review_coordinator.md +111 -0
- package/opencode/agents/review_quality.md +35 -0
- package/opencode/agents/review_security.md +35 -0
- package/opencode/agents/review_tests.md +37 -0
- package/opencode/agents/reviewer.md +116 -0
- package/opencode/agents/scoper.md +75 -0
- package/opencode/agents/specifier.md +116 -0
- package/opencode/commands/code-simplify.md +36 -0
- package/opencode/commands/design.md +27 -0
- package/opencode/commands/evolve.md +165 -0
- package/opencode/commands/feature.md +67 -0
- package/opencode/commands/implement.md +11 -0
- package/opencode/commands/init.md +34 -0
- package/opencode/commands/loop.md +145 -0
- package/opencode/commands/mvp-spec.md +20 -0
- package/opencode/commands/plan.md +74 -0
- package/opencode/commands/research.md +12 -0
- package/opencode/commands/review-orchestrated.md +47 -0
- package/opencode/commands/review-preflight.md +26 -0
- package/opencode/commands/review.md +18 -0
- package/opencode/commands/scope.md +36 -0
- package/opencode/commands/spec.md +12 -0
- package/opencode/commands/test.md +40 -0
- package/opencode/docs/ai/evolution/README.md +135 -0
- package/opencode/docs/ai/evolution/benchmarks/manual-scenarios.md +123 -0
- package/opencode/docs/ai/evolution/benchmarks/router-scenarios.jsonl +8 -0
- package/opencode/docs/ai/evolution/evolution_history.md +83 -0
- package/opencode/docs/ai/evolution/mechanisms.jsonl +7 -0
- package/opencode/docs/ai/evolution/rejected_mechanisms.jsonl +2 -0
- package/opencode/docs/ai/evolution/runs/README.md +15 -0
- package/opencode/docs/ai/evolution/runs/iteration-001-sidecar/analysis/overview.md +12 -0
- package/opencode/docs/ai/evolution/runs/iteration-001-sidecar/change_evaluation.json +108 -0
- package/opencode/docs/ai/evolution/runs/iteration-001-sidecar/change_manifest.json +52 -0
- package/opencode/docs/ai/evolution/runs/iteration-001-sidecar/evaluation.md +19 -0
- package/opencode/docs/ai/evolution/runs/iteration-001-sidecar/post_evaluation.md +12 -0
- package/opencode/docs/ai/evolution/runs/iteration-002-feature-flow-fix/analysis/overview.md +7 -0
- package/opencode/docs/ai/evolution/runs/iteration-002-feature-flow-fix/change_evaluation.json +31 -0
- package/opencode/docs/ai/evolution/runs/iteration-002-feature-flow-fix/evaluation.md +19 -0
- package/opencode/docs/ai/evolution/runs/iteration-003-agent-readable-harness/analysis/overview.md +13 -0
- package/opencode/docs/ai/evolution/runs/iteration-003-agent-readable-harness/change_evaluation.json +66 -0
- package/opencode/docs/ai/evolution/runs/iteration-003-agent-readable-harness/change_manifest.json +82 -0
- package/opencode/docs/ai/evolution/runs/iteration-003-agent-readable-harness/evaluation.md +20 -0
- package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/detail/ahe-run-lifecycle-validator.md +40 -0
- package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/detail/evolve-evaluation-only-contract.md +15 -0
- package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/detail/open-design-tool-contract.md +14 -0
- package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/detail/slash-command-contract-coverage.md +40 -0
- package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/overview.md +17 -0
- package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/analysis/pre_apply_approval.md +15 -0
- package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/change_evaluation.json +252 -0
- package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/change_manifest.json +210 -0
- package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/evaluation.md +25 -0
- package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/post_apply_evaluation.md +15 -0
- package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/post_manifest_evaluation.md +14 -0
- package/opencode/docs/ai/evolution/runs/iteration-004-orchestration-audit/pre_apply_evaluation.md +15 -0
- package/opencode/docs/ai/evolution/runs/iteration-005-harness-orchestration-audit/analysis/overview.md +13 -0
- package/opencode/docs/ai/evolution/runs/iteration-005-harness-orchestration-audit/change_evaluation.json +14 -0
- package/opencode/docs/ai/evolution/runs/iteration-005-harness-orchestration-audit/change_manifest.json +30 -0
- package/opencode/docs/ai/evolution/runs/iteration-005-harness-orchestration-audit/evaluation.md +25 -0
- package/opencode/docs/ai/evolution/runs/iteration-006-lead-delegation-audit/analysis/overview.md +13 -0
- package/opencode/docs/ai/evolution/runs/iteration-006-lead-delegation-audit/change_evaluation.json +14 -0
- package/opencode/docs/ai/evolution/runs/iteration-006-lead-delegation-audit/change_manifest.json +29 -0
- package/opencode/docs/ai/evolution/runs/iteration-006-lead-delegation-audit/evaluation.md +18 -0
- package/opencode/docs/ai/evolution/runs/iteration-007-agent-skills-integration/analysis/overview.md +13 -0
- package/opencode/docs/ai/evolution/runs/iteration-007-agent-skills-integration/change_evaluation.json +14 -0
- package/opencode/docs/ai/evolution/runs/iteration-007-agent-skills-integration/change_manifest.json +34 -0
- package/opencode/docs/ai/evolution/runs/iteration-007-agent-skills-integration/evaluation.md +17 -0
- package/opencode/docs/ai/evolution/runs/iteration-008-lead-readonly-shell-permissions/analysis/overview.md +13 -0
- package/opencode/docs/ai/evolution/runs/iteration-008-lead-readonly-shell-permissions/change_evaluation.json +12 -0
- package/opencode/docs/ai/evolution/runs/iteration-008-lead-readonly-shell-permissions/change_manifest.json +28 -0
- package/opencode/docs/ai/evolution/runs/iteration-008-lead-readonly-shell-permissions/evaluation.md +17 -0
- package/opencode/docs/ai/evolution/runs/iteration-009-lead-developer-ownership-loop/analysis/overview.md +9 -0
- package/opencode/docs/ai/evolution/runs/iteration-009-lead-developer-ownership-loop/change_evaluation.json +14 -0
- package/opencode/docs/ai/evolution/runs/iteration-009-lead-developer-ownership-loop/change_manifest.json +31 -0
- package/opencode/docs/ai/evolution/runs/iteration-009-lead-developer-ownership-loop/evaluation.md +18 -0
- package/opencode/docs/ai/evolution/runs/iteration-010-token-plugin-sidebar-content/analysis/overview.md +12 -0
- package/opencode/docs/ai/evolution/runs/iteration-010-token-plugin-sidebar-content/change_evaluation.json +14 -0
- package/opencode/docs/ai/evolution/runs/iteration-010-token-plugin-sidebar-content/change_manifest.json +31 -0
- package/opencode/docs/ai/evolution/runs/iteration-010-token-plugin-sidebar-content/evaluation.md +17 -0
- package/opencode/docs/ai/evolution/runs/iteration-011-lead-cd-which-permissions/analysis/overview.md +10 -0
- package/opencode/docs/ai/evolution/runs/iteration-011-lead-cd-which-permissions/change_evaluation.json +14 -0
- package/opencode/docs/ai/evolution/runs/iteration-011-lead-cd-which-permissions/change_manifest.json +30 -0
- package/opencode/docs/ai/evolution/runs/iteration-011-lead-cd-which-permissions/evaluation.md +17 -0
- package/opencode/docs/ai/evolution/runs/iteration-012-lead-shell-allowlist-boundaries/analysis/overview.md +25 -0
- package/opencode/docs/ai/evolution/runs/iteration-012-lead-shell-allowlist-boundaries/change_evaluation.json +28 -0
- package/opencode/docs/ai/evolution/runs/iteration-012-lead-shell-allowlist-boundaries/change_manifest.json +31 -0
- package/opencode/docs/ai/evolution/runs/iteration-012-lead-shell-allowlist-boundaries/evaluation.md +22 -0
- package/opencode/docs/ai/evolution/runs/iteration-013-doc-gardening-mechanical-checks/analysis/overview.md +27 -0
- package/opencode/docs/ai/evolution/runs/iteration-013-doc-gardening-mechanical-checks/change_evaluation.json +32 -0
- package/opencode/docs/ai/evolution/runs/iteration-013-doc-gardening-mechanical-checks/change_manifest.json +49 -0
- package/opencode/docs/ai/evolution/runs/iteration-013-doc-gardening-mechanical-checks/evaluation.md +92 -0
- package/opencode/docs/ai/evolution/runs/iteration-014-harness-baseline/analysis/detail/token-vs-semantic.md +31 -0
- package/opencode/docs/ai/evolution/runs/iteration-014-harness-baseline/analysis/overview.md +14 -0
- package/opencode/docs/ai/evolution/runs/iteration-014-harness-baseline/evaluation.md +36 -0
- package/opencode/docs/ai/evolution/runs/iteration-015-semantic-checker/analysis/overview.md +13 -0
- package/opencode/docs/ai/evolution/runs/iteration-015-semantic-checker/change_evaluation.json +31 -0
- package/opencode/docs/ai/evolution/runs/iteration-015-semantic-checker/change_manifest.json +47 -0
- package/opencode/docs/ai/evolution/runs/iteration-015-semantic-checker/evaluation.md +27 -0
- package/opencode/docs/ai/evolution/runs/iteration-016-contract-prompt-alignment/analysis/overview.md +32 -0
- package/opencode/docs/ai/evolution/runs/iteration-016-contract-prompt-alignment/change_evaluation.json +31 -0
- package/opencode/docs/ai/evolution/runs/iteration-016-contract-prompt-alignment/change_manifest.json +35 -0
- package/opencode/docs/ai/evolution/runs/iteration-016-contract-prompt-alignment/evaluation.md +31 -0
- package/opencode/docs/ai/evolution/runs/iteration-017-ahe-cycle/analysis/detail/pattern-1-feature-sidecar-false-positive.md +51 -0
- package/opencode/docs/ai/evolution/runs/iteration-017-ahe-cycle/analysis/detail/pattern-2-checker-time-budget.md +52 -0
- package/opencode/docs/ai/evolution/runs/iteration-017-ahe-cycle/analysis/overview.md +99 -0
- package/opencode/docs/ai/evolution/runs/iteration-017-ahe-cycle/change_evaluation.json +61 -0
- package/opencode/docs/ai/evolution/runs/iteration-017-ahe-cycle/change_manifest.json +61 -0
- package/opencode/docs/ai/evolution/runs/iteration-017-ahe-cycle/evaluation.md +448 -0
- package/opencode/docs/ai/evolution/runs/iteration-018-free-message-routing-audit/analysis/detail/intake-gray-zone.md +65 -0
- package/opencode/docs/ai/evolution/runs/iteration-018-free-message-routing-audit/analysis/overview.md +172 -0
- package/opencode/docs/ai/evolution/runs/iteration-018-free-message-routing-audit/evaluation.md +226 -0
- package/opencode/docs/ai/evolution/runs/iteration-019-handoff-routing-audit/analysis/detail/plan-only-gray-zone.md +62 -0
- package/opencode/docs/ai/evolution/runs/iteration-019-handoff-routing-audit/analysis/overview.md +167 -0
- package/opencode/docs/ai/evolution/runs/iteration-019-handoff-routing-audit/evaluation.md +163 -0
- package/opencode/docs/ai/evolution/runs/iteration-020-loop-engineering-command/analysis/overview.md +42 -0
- package/opencode/docs/ai/evolution/runs/iteration-020-loop-engineering-command/change_evaluation.json +46 -0
- package/opencode/docs/ai/evolution/runs/iteration-020-loop-engineering-command/change_manifest.json +57 -0
- package/opencode/docs/ai/evolution/runs/iteration-020-loop-engineering-command/evaluation.md +48 -0
- package/opencode/docs/ai/evolution/runs/iteration-021/analysis/detail/contract-vs-runtime-gap.md +163 -0
- package/opencode/docs/ai/evolution/runs/iteration-021/analysis/detail/evidence-collection-blocker.md +134 -0
- package/opencode/docs/ai/evolution/runs/iteration-021/analysis/overview.md +111 -0
- package/opencode/docs/ai/evolution/runs/iteration-021/change_evaluation.json +52 -0
- package/opencode/docs/ai/evolution/runs/iteration-021/change_manifest.json +50 -0
- package/opencode/docs/ai/evolution/runs/iteration-021/evaluation.md +46 -0
- package/opencode/docs/ai/evolution/runs/iteration-021/manifest-justification.md +48 -0
- package/opencode/docs/ai/evolution/session-sources.md +91 -0
- package/opencode/docs/ai/harness/README.md +32 -0
- package/opencode/docs/ai/harness/agents.md +148 -0
- package/opencode/docs/ai/harness/checks.md +119 -0
- package/opencode/docs/ai/harness/commands.md +391 -0
- package/opencode/docs/ai/harness/evidence.md +85 -0
- package/opencode/docs/ai/harness/init-detection-rules.md +160 -0
- package/opencode/docs/ai/harness/orchestrated-review.md +131 -0
- package/opencode/docs/ai/harness/skill-metadata-schema.md +198 -0
- package/opencode/docs/ai/harness/skill-resolution.md +202 -0
- package/opencode/docs/ai/harness/skill_registry.json +443 -0
- package/opencode/docs/ai/harness/skill_registry.md +43 -0
- package/opencode/docs/ai/project-context-template.md +53 -0
- package/opencode/opencode.json +38 -0
- package/opencode/package-lock.json +1717 -0
- package/opencode/package.json +11 -0
- package/opencode/plugins/token-tree-usage.tsx +206 -0
- package/opencode/references/performance-checklist.md +153 -0
- package/opencode/references/security-checklist.md +134 -0
- package/opencode/references/testing-patterns.md +236 -0
- package/opencode/scripts/check-harness.mjs +1572 -0
- package/opencode/scripts/check-harness.test.mjs +820 -0
- package/opencode/scripts/collect-session-evidence.mjs +612 -0
- package/opencode/scripts/collect-session-evidence.test.mjs +443 -0
- package/opencode/scripts/preflight-audit.mjs +497 -0
- package/opencode/scripts/preflight-audit.test.mjs +363 -0
- package/opencode/scripts/project-capability-snapshot.mjs +407 -0
- package/opencode/scripts/project-capability-snapshot.test.mjs +382 -0
- package/opencode/scripts/review-orchestrated-prepare.mjs +547 -0
- package/opencode/scripts/review-orchestrated-prepare.test.mjs +516 -0
- package/opencode/scripts/skill-resolver.mjs +585 -0
- package/opencode/scripts/skill-resolver.test.mjs +781 -0
- package/opencode/scripts/update-skill-registry.mjs +380 -0
- package/opencode/skills/api-and-interface-design/SKILL.md +315 -0
- package/opencode/skills/autonomous-loops/SKILL.md +312 -0
- package/opencode/skills/code-review-and-quality/SKILL.md +365 -0
- package/opencode/skills/code-simplification/SKILL.md +345 -0
- package/opencode/skills/context-engineering/SKILL.md +252 -0
- package/opencode/skills/debugging-and-error-recovery/SKILL.md +316 -0
- package/opencode/skills/documentation-and-adrs/SKILL.md +298 -0
- package/opencode/skills/doubt-driven-development/SKILL.md +168 -0
- package/opencode/skills/iterative-retrieval/SKILL.md +232 -0
- package/opencode/skills/open-design/SKILL.md +123 -0
- package/opencode/skills/performance-optimization/SKILL.md +365 -0
- package/opencode/skills/security-and-hardening/SKILL.md +369 -0
- package/opencode/skills/source-driven-development/SKILL.md +210 -0
- package/opencode/skills/test-driven-development/SKILL.md +406 -0
- package/opencode/skills/using-agent-skills/SKILL.md +194 -0
- package/opencode/skills/verification-loop/SKILL.md +162 -0
- package/opencode/tools/open_design.ts +361 -0
- package/opencode/tui.json +5 -0
- package/package.json +20 -0
- package/rollback.sh +5 -0
- package/scripts/check.sh +184 -0
- package/scripts/install-smoke.sh +111 -0
- package/scripts/manage-installation.mjs +1498 -0
- package/scripts/manage-installation.test.mjs +1936 -0
- package/scripts/version.mjs +197 -0
- package/scripts/version.test.mjs +195 -0
- package/uninstall.sh +5 -0
- package/upgrade.sh +5 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"iteration": 9,
|
|
3
|
+
"changes": [
|
|
4
|
+
{
|
|
5
|
+
"id": "chg-1-lead-no-implementation-edits",
|
|
6
|
+
"type": "update",
|
|
7
|
+
"description": "Prevent lead from editing implementation work and route follow-up corrections back to developer.",
|
|
8
|
+
"files": [
|
|
9
|
+
"agents/lead.md",
|
|
10
|
+
"docs/ai/harness/agents.md",
|
|
11
|
+
"scripts/check-harness.mjs",
|
|
12
|
+
"AGENTS.md"
|
|
13
|
+
],
|
|
14
|
+
"failure_pattern": "After delegation, lead could make the next implementation adjustment itself instead of delegating back to developer.",
|
|
15
|
+
"evidence": [
|
|
16
|
+
"docs/ai/evolution/runs/iteration-009-lead-developer-ownership-loop/evaluation.md",
|
|
17
|
+
"docs/ai/evolution/runs/iteration-009-lead-developer-ownership-loop/analysis/overview.md"
|
|
18
|
+
],
|
|
19
|
+
"predicted_fixes": [
|
|
20
|
+
"lead-edit-permission-denied",
|
|
21
|
+
"follow-up-implementation-goes-to-developer"
|
|
22
|
+
],
|
|
23
|
+
"risk_tasks": [
|
|
24
|
+
"do-not-block-lead-from-inspection",
|
|
25
|
+
"preserve-routing-for-ambiguity"
|
|
26
|
+
],
|
|
27
|
+
"constraint_level": "agent",
|
|
28
|
+
"why_this_component": "The behavior is controlled by lead's agent contract and permissions."
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
package/opencode/docs/ai/evolution/runs/iteration-009-lead-developer-ownership-loop/evaluation.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Evaluation: iteration-009-lead-developer-ownership-loop
|
|
2
|
+
|
|
3
|
+
## Objective
|
|
4
|
+
|
|
5
|
+
Address cases where `lead` delegated implementation to `developer`, reviewed the
|
|
6
|
+
result, and then made follow-up code edits itself.
|
|
7
|
+
|
|
8
|
+
## Evidence
|
|
9
|
+
|
|
10
|
+
- `manual_oracle`: this happened during generic free-form development requests,
|
|
11
|
+
outside explicit slash commands.
|
|
12
|
+
- `static_contract`: lead's role is routing and coordination.
|
|
13
|
+
|
|
14
|
+
## Result
|
|
15
|
+
|
|
16
|
+
Make the implementation ownership loop explicit: once `developer` owns a task,
|
|
17
|
+
follow-up implementation corrections for the same request go back to
|
|
18
|
+
`developer`.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Analysis: iteration-010-token-plugin-sidebar-content
|
|
2
|
+
|
|
3
|
+
The plugin sums assistant message token usage for the current session and each
|
|
4
|
+
child session reachable through `session.children`. It renders:
|
|
5
|
+
|
|
6
|
+
- lead/root token usage;
|
|
7
|
+
- total token usage including child sessions;
|
|
8
|
+
- child-session count;
|
|
9
|
+
- partial-total state when a child session cannot be read.
|
|
10
|
+
|
|
11
|
+
For the public kit the registration must be relative and portable, with no
|
|
12
|
+
absolute local paths.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"iteration": 10,
|
|
3
|
+
"status": "accepted",
|
|
4
|
+
"checks": [
|
|
5
|
+
{
|
|
6
|
+
"name": "typecheck",
|
|
7
|
+
"status": "passed",
|
|
8
|
+
"notes": "The plugin is typechecked by the repository validation command."
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"residual_risks": [
|
|
12
|
+
"Exact runtime rendering depends on the installed OpenCode TUI plugin API."
|
|
13
|
+
]
|
|
14
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"iteration": 10,
|
|
3
|
+
"changes": [
|
|
4
|
+
{
|
|
5
|
+
"id": "chg-1-token-tree-usage-plugin",
|
|
6
|
+
"type": "addition",
|
|
7
|
+
"description": "Add a TUI plugin that displays lead and total token usage across child/subagent sessions.",
|
|
8
|
+
"files": [
|
|
9
|
+
"plugins/token-tree-usage.tsx",
|
|
10
|
+
"tui.json",
|
|
11
|
+
"package.json",
|
|
12
|
+
"package-lock.json"
|
|
13
|
+
],
|
|
14
|
+
"failure_pattern": "The TUI showed lead/root session usage but not total usage including delegated subagent work.",
|
|
15
|
+
"evidence": [
|
|
16
|
+
"docs/ai/evolution/runs/iteration-010-token-plugin-sidebar-content/evaluation.md",
|
|
17
|
+
"docs/ai/evolution/runs/iteration-010-token-plugin-sidebar-content/analysis/overview.md"
|
|
18
|
+
],
|
|
19
|
+
"predicted_fixes": [
|
|
20
|
+
"lead-token-usage-visible",
|
|
21
|
+
"total-token-usage-includes-child-sessions"
|
|
22
|
+
],
|
|
23
|
+
"risk_tasks": [
|
|
24
|
+
"do-not-use-absolute-local-plugin-paths",
|
|
25
|
+
"render-partial-state-when-child-reads-fail"
|
|
26
|
+
],
|
|
27
|
+
"constraint_level": "tool",
|
|
28
|
+
"why_this_component": "The missing metric is a TUI display concern, so a plugin is narrower than changing OpenCode core."
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
package/opencode/docs/ai/evolution/runs/iteration-010-token-plugin-sidebar-content/evaluation.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Evaluation: iteration-010-token-plugin-sidebar-content
|
|
2
|
+
|
|
3
|
+
## Objective
|
|
4
|
+
|
|
5
|
+
Expose token usage for the lead session and total usage across child/subagent
|
|
6
|
+
sessions in the OpenCode TUI.
|
|
7
|
+
|
|
8
|
+
## Evidence
|
|
9
|
+
|
|
10
|
+
- `manual_oracle`: OpenCode's built-in sidebar showed context for the lead/root
|
|
11
|
+
session only, not total subagent token usage.
|
|
12
|
+
- `static_contract`: the plugin could query session messages and children via
|
|
13
|
+
the TUI plugin API.
|
|
14
|
+
|
|
15
|
+
## Result
|
|
16
|
+
|
|
17
|
+
Add a portable TUI plugin and register it in `tui.json`.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"iteration": 11,
|
|
3
|
+
"status": "accepted",
|
|
4
|
+
"checks": [
|
|
5
|
+
{
|
|
6
|
+
"name": "static_contract",
|
|
7
|
+
"status": "passed",
|
|
8
|
+
"notes": "Lead keeps edit: deny and bash \"*\": ask while explicitly allowing cd and which."
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"residual_risks": [
|
|
12
|
+
"Runtime confirmation in a fresh TUI session is recommended after install."
|
|
13
|
+
]
|
|
14
|
+
}
|
package/opencode/docs/ai/evolution/runs/iteration-011-lead-cd-which-permissions/change_manifest.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"iteration": 11,
|
|
3
|
+
"changes": [
|
|
4
|
+
{
|
|
5
|
+
"id": "chg-1-lead-cd-which-allowlist",
|
|
6
|
+
"type": "update",
|
|
7
|
+
"description": "Allow lead to run cd and which without approval prompts.",
|
|
8
|
+
"files": [
|
|
9
|
+
"agents/lead.md",
|
|
10
|
+
"scripts/check-harness.mjs"
|
|
11
|
+
],
|
|
12
|
+
"failure_pattern": "Lead prompts for harmless navigation and command-discovery shell commands during normal repo inspection.",
|
|
13
|
+
"evidence": [
|
|
14
|
+
"docs/ai/evolution/runs/iteration-011-lead-cd-which-permissions/evaluation.md",
|
|
15
|
+
"docs/ai/evolution/runs/iteration-011-lead-cd-which-permissions/analysis/overview.md"
|
|
16
|
+
],
|
|
17
|
+
"predicted_fixes": [
|
|
18
|
+
"lead-can-run-cd-without-prompt",
|
|
19
|
+
"lead-can-run-which-without-prompt",
|
|
20
|
+
"unknown-bash-commands-still-ask"
|
|
21
|
+
],
|
|
22
|
+
"risk_tasks": [
|
|
23
|
+
"avoid-over-broad-bash-patterns",
|
|
24
|
+
"preserve-lead-edit-deny"
|
|
25
|
+
],
|
|
26
|
+
"constraint_level": "tool",
|
|
27
|
+
"why_this_component": "OpenCode bash prompts are controlled by agent permission frontmatter."
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Evaluation: iteration-011-lead-cd-which-permissions
|
|
2
|
+
|
|
3
|
+
## Objective
|
|
4
|
+
|
|
5
|
+
Allow `lead` to run routine `cd` and `which` commands without repeated approval
|
|
6
|
+
prompts.
|
|
7
|
+
|
|
8
|
+
## Evidence
|
|
9
|
+
|
|
10
|
+
- `manual_oracle`: a fresh OpenCode TUI session still prompted for these simple
|
|
11
|
+
navigation and command-discovery commands.
|
|
12
|
+
- `static_contract`: `lead` already had a narrow read-only shell allowlist with
|
|
13
|
+
`bash "*": ask` as fallback.
|
|
14
|
+
|
|
15
|
+
## Result
|
|
16
|
+
|
|
17
|
+
Add exact and argumented allowlist entries for `cd` and `which`.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Analysis: iteration-012-lead-shell-allowlist-boundaries
|
|
2
|
+
|
|
3
|
+
The remaining issue after iteration 011 was not a missing shell permission.
|
|
4
|
+
Exact allowlisted commands worked, and unallowlisted commands still asked for
|
|
5
|
+
permission as designed.
|
|
6
|
+
|
|
7
|
+
The failure pattern was agent-level command selection drift:
|
|
8
|
+
|
|
9
|
+
- exact `which node` passed;
|
|
10
|
+
- exact `cd .` passed;
|
|
11
|
+
- exact `pwd` stayed blocked by `bash "*": ask`;
|
|
12
|
+
- a natural inspection prompt that already named `cd` and `which node` drifted
|
|
13
|
+
to a nearby composed form instead of using the named allowlisted primitives.
|
|
14
|
+
|
|
15
|
+
The fix belongs in `lead` guidance rather than the tool layer:
|
|
16
|
+
|
|
17
|
+
- prefer exact allowlisted primitives already named by the user;
|
|
18
|
+
- avoid nearby substitutes such as `pwd` when an allowlisted primitive already
|
|
19
|
+
satisfies the check;
|
|
20
|
+
- avoid compound shell calls when separate exact calls preserve the boundary;
|
|
21
|
+
- keep `bash "*": ask` unchanged.
|
|
22
|
+
|
|
23
|
+
The post-change replay confirmed the targeted behavior: the natural inspection
|
|
24
|
+
case used separate allowlisted calls and no permission request, while `pwd`
|
|
25
|
+
remained outside the allowlist.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"iteration": 12,
|
|
3
|
+
"evaluates_iteration": 12,
|
|
4
|
+
"results": [
|
|
5
|
+
{
|
|
6
|
+
"change_id": "chg-1-lead-allowlisted-shell-preference",
|
|
7
|
+
"predicted_fixes_confirmed": [
|
|
8
|
+
"lead-reuses-user-named-allowlisted-shell-primitives",
|
|
9
|
+
"lead-avoids-unneeded-compound-shell-inspection",
|
|
10
|
+
"unknown-bash-commands-still-ask"
|
|
11
|
+
],
|
|
12
|
+
"predicted_fixes_not_confirmed": [],
|
|
13
|
+
"risk_tasks_regressed": [],
|
|
14
|
+
"risk_tasks_not_regressed": [
|
|
15
|
+
"do-not-broaden-bash-allowlist",
|
|
16
|
+
"preserve-lead-edit-deny"
|
|
17
|
+
],
|
|
18
|
+
"unpredicted_regressions": [],
|
|
19
|
+
"decision": "keep",
|
|
20
|
+
"evidence": [
|
|
21
|
+
"docs/ai/evolution/runs/iteration-012-lead-shell-allowlist-boundaries/evaluation.md",
|
|
22
|
+
"docs/ai/evolution/runs/iteration-012-lead-shell-allowlist-boundaries/analysis/overview.md",
|
|
23
|
+
"docs/ai/evolution/runs/iteration-011-lead-cd-which-permissions/change_evaluation.json"
|
|
24
|
+
],
|
|
25
|
+
"notes": "The public record keeps the behavior summary and omits raw transcripts with machine-local paths. The change remains scoped to lead guidance; permissions and provider configuration are unchanged."
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"iteration": 12,
|
|
3
|
+
"changes": [
|
|
4
|
+
{
|
|
5
|
+
"id": "chg-1-lead-allowlisted-shell-preference",
|
|
6
|
+
"type": "improvement",
|
|
7
|
+
"description": "Tighten the lead agent contract so natural lightweight inspection prefers exact allowlisted shell primitives already named by the user and avoids adjacent substitutes or compound shell composition when one allowlisted command is sufficient.",
|
|
8
|
+
"files": [
|
|
9
|
+
"agents/lead.md",
|
|
10
|
+
"docs/ai/harness/agents.md"
|
|
11
|
+
],
|
|
12
|
+
"failure_pattern": "Natural inspection prompts that fit the narrow shell allowlist can still drift to adjacent or compound shell forms, causing avoidable permission requests.",
|
|
13
|
+
"evidence": [
|
|
14
|
+
"docs/ai/evolution/runs/iteration-012-lead-shell-allowlist-boundaries/evaluation.md",
|
|
15
|
+
"docs/ai/evolution/runs/iteration-012-lead-shell-allowlist-boundaries/analysis/overview.md"
|
|
16
|
+
],
|
|
17
|
+
"predicted_fixes": [
|
|
18
|
+
"lead-reuses-user-named-allowlisted-shell-primitives",
|
|
19
|
+
"lead-avoids-unneeded-compound-shell-inspection",
|
|
20
|
+
"unknown-bash-commands-still-ask"
|
|
21
|
+
],
|
|
22
|
+
"risk_tasks": [
|
|
23
|
+
"do-not-broaden-bash-allowlist",
|
|
24
|
+
"preserve-lead-edit-deny",
|
|
25
|
+
"avoid-benchmark-specific-wording"
|
|
26
|
+
],
|
|
27
|
+
"constraint_level": "agent",
|
|
28
|
+
"why_this_component": "The tool layer already allows exact cd and which commands and still blocks unknown bash commands. The observed failure happens earlier, in lead command selection."
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
package/opencode/docs/ai/evolution/runs/iteration-012-lead-shell-allowlist-boundaries/evaluation.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Evaluation: iteration-012-lead-shell-allowlist-boundaries
|
|
2
|
+
|
|
3
|
+
## Objective
|
|
4
|
+
|
|
5
|
+
Reduce approval drift after iteration 011 by guiding `lead` to reuse exact
|
|
6
|
+
allowlisted shell primitives during lightweight repo inspection.
|
|
7
|
+
|
|
8
|
+
## Evidence
|
|
9
|
+
|
|
10
|
+
- `transcript_replay`: exact `which node` and `cd .` runs succeeded without a
|
|
11
|
+
permission request.
|
|
12
|
+
- `transcript_replay`: exact `pwd` still requested permission, preserving the
|
|
13
|
+
fallback boundary.
|
|
14
|
+
- `transcript_replay`: a natural inspection prompt that named `cd` and
|
|
15
|
+
`which node` originally drifted to a nearby compound command form, causing an
|
|
16
|
+
avoidable permission request.
|
|
17
|
+
|
|
18
|
+
## Result
|
|
19
|
+
|
|
20
|
+
Keep the tool allowlist unchanged and tighten the `lead` contract at the agent
|
|
21
|
+
level. The intended behavior is selection discipline, not broader shell
|
|
22
|
+
authority.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Iteration 013 Analysis
|
|
2
|
+
|
|
3
|
+
## Evidence reviewed
|
|
4
|
+
|
|
5
|
+
- `scripts/check-harness.mjs`
|
|
6
|
+
- `docs/ai/harness/checks.md`
|
|
7
|
+
- `docs/ai/evolution/runs/iteration-013-doc-gardening-mechanical-checks/evaluation.md`
|
|
8
|
+
|
|
9
|
+
## Root cause
|
|
10
|
+
|
|
11
|
+
The harness already documented doc gardening as a practice, but several cheap
|
|
12
|
+
rules were still manual: keeping `AGENTS.md` short, documenting all visible
|
|
13
|
+
agents and commands, and avoiding broken local evidence paths in AHE JSON.
|
|
14
|
+
|
|
15
|
+
## Chosen component
|
|
16
|
+
|
|
17
|
+
The narrowest fix is tooling plus docs:
|
|
18
|
+
|
|
19
|
+
- `scripts/check-harness.mjs` enforces the rules locally.
|
|
20
|
+
- `docs/ai/harness/checks.md` declares the rules as mechanical doc gardening.
|
|
21
|
+
|
|
22
|
+
No agent contract, command flow, provider, model, or permission change is needed.
|
|
23
|
+
|
|
24
|
+
## Attribution expectation
|
|
25
|
+
|
|
26
|
+
Future harness edits should fail earlier when they add agents, commands, or AHE
|
|
27
|
+
evidence without updating the local knowledge map.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"iteration": 13,
|
|
3
|
+
"evaluates_iteration": 13,
|
|
4
|
+
"results": [
|
|
5
|
+
{
|
|
6
|
+
"change_id": "chg-1-mechanical-doc-gardening-checks",
|
|
7
|
+
"predicted_fixes_confirmed": [
|
|
8
|
+
"The packaged checker now validates AGENTS.md as a short index with references to docs/ai/harness/ and docs/ai/evolution/.",
|
|
9
|
+
"The packaged checker now validates coverage for agents/*.md in docs/ai/harness/agents.md.",
|
|
10
|
+
"The packaged checker now validates coverage for commands/*.md in docs/ai/harness/commands.md.",
|
|
11
|
+
"The packaged checker now validates files and evidence paths in AHE JSON without treating arbitrary prose as a path."
|
|
12
|
+
],
|
|
13
|
+
"predicted_fixes_not_confirmed": [],
|
|
14
|
+
"risk_tasks_regressed": [],
|
|
15
|
+
"risk_tasks_not_regressed": [
|
|
16
|
+
"No workflow phase was added for normal feature work.",
|
|
17
|
+
"No routing, permission, model, provider, or agent behavior changed.",
|
|
18
|
+
"The path parser is limited to files and evidence fields so prose is not treated as a path."
|
|
19
|
+
],
|
|
20
|
+
"unpredicted_regressions": [],
|
|
21
|
+
"decision": "keep",
|
|
22
|
+
"evidence": [
|
|
23
|
+
"docs/ai/evolution/runs/iteration-013-doc-gardening-mechanical-checks/evaluation.md",
|
|
24
|
+
"docs/ai/evolution/runs/iteration-013-doc-gardening-mechanical-checks/analysis/overview.md",
|
|
25
|
+
"docs/ai/evolution/runs/iteration-013-doc-gardening-mechanical-checks/change_manifest.json",
|
|
26
|
+
"scripts/check-harness.mjs",
|
|
27
|
+
"docs/ai/harness/checks.md"
|
|
28
|
+
],
|
|
29
|
+
"notes": "This is a static-contract/tooling iteration. Transcript replay is intentionally not required because the change does not modify routing or runtime agent behavior."
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"iteration": 13,
|
|
3
|
+
"changes": [
|
|
4
|
+
{
|
|
5
|
+
"id": "chg-1-mechanical-doc-gardening-checks",
|
|
6
|
+
"type": "improvement",
|
|
7
|
+
"description": "Extend the packaged harness checker so cheap doc-gardening rules are enforced mechanically instead of staying only as manual review guidance.",
|
|
8
|
+
"files": [
|
|
9
|
+
"scripts/check-harness.mjs",
|
|
10
|
+
"docs/ai/harness/checks.md"
|
|
11
|
+
],
|
|
12
|
+
"failure_pattern": "Harness documentation can drift when AGENTS.md stops acting as a short index, new agents or commands are not reflected in docs, or AHE JSON references local artifacts that no longer exist.",
|
|
13
|
+
"evidence": [
|
|
14
|
+
"docs/ai/evolution/runs/iteration-013-doc-gardening-mechanical-checks/evaluation.md",
|
|
15
|
+
"docs/ai/evolution/runs/iteration-013-doc-gardening-mechanical-checks/analysis/overview.md",
|
|
16
|
+
"docs/ai/harness/checks.md",
|
|
17
|
+
"scripts/check-harness.mjs"
|
|
18
|
+
],
|
|
19
|
+
"root_cause": "Doc gardening was documented as a lightweight practice, but the checker only validated a subset of the rules, leaving avoidable drift to manual review.",
|
|
20
|
+
"component_touched": "tooling",
|
|
21
|
+
"predicted_fixes": [
|
|
22
|
+
"The checker fails when AGENTS.md no longer references the harness and evolution docs or grows beyond the short-index threshold.",
|
|
23
|
+
"The checker fails when an agent markdown file is not documented in docs/ai/harness/agents.md.",
|
|
24
|
+
"The checker fails when a command markdown file is not documented in docs/ai/harness/commands.md.",
|
|
25
|
+
"The checker fails when files or evidence fields in AHE JSON reference missing local repo paths."
|
|
26
|
+
],
|
|
27
|
+
"risk_tasks": [
|
|
28
|
+
"Do not add new mandatory workflow phases for normal feature work.",
|
|
29
|
+
"Do not change routing, permissions, models, providers, or agent behavior.",
|
|
30
|
+
"Avoid an over-broad path parser that treats prose as a missing local path.",
|
|
31
|
+
"Keep error messages specific enough for agent remediation."
|
|
32
|
+
],
|
|
33
|
+
"constraint_level": "tool",
|
|
34
|
+
"why_this_component": "The failure pattern is repository drift in local docs and AHE artifacts, so a local checker is the smallest enforceable boundary. Agent prompts would be weaker and runtime replays are unnecessary because no routing behavior changes.",
|
|
35
|
+
"post_change_validation": [
|
|
36
|
+
"Run `node --check scripts/check-harness.mjs`.",
|
|
37
|
+
"Run `node scripts/check-harness.mjs` and require `Harness check passed.`",
|
|
38
|
+
"Run a temporary negative control that removes one command documentation marker and require a missing documented command failure.",
|
|
39
|
+
"Run `./scripts/check.sh` from the public repository root.",
|
|
40
|
+
"Run `git diff --check`."
|
|
41
|
+
],
|
|
42
|
+
"decision_criteria": {
|
|
43
|
+
"keep": "All static checks pass and the negative control fails with a clear doc coverage message.",
|
|
44
|
+
"improve": "The main check passes but the negative control message is unclear or too broad.",
|
|
45
|
+
"rollback+pivot": "The checker rejects valid historical artifacts or requires behavioral/routing changes to pass."
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
package/opencode/docs/ai/evolution/runs/iteration-013-doc-gardening-mechanical-checks/evaluation.md
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# Iteration 013 - Doc Gardening Mechanical Checks
|
|
2
|
+
|
|
3
|
+
## Objective evaluated
|
|
4
|
+
|
|
5
|
+
Convert cheap doc-gardening rules into local mechanical checks without changing
|
|
6
|
+
agent routing, permissions, models, providers, or workflow behavior.
|
|
7
|
+
|
|
8
|
+
## Scenarios executed
|
|
9
|
+
|
|
10
|
+
### Scenario 1 - Script syntax
|
|
11
|
+
|
|
12
|
+
- Evidence type: `static_contract`
|
|
13
|
+
- Command:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
node --check scripts/check-harness.mjs
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
- Expected: syntax check exits successfully.
|
|
20
|
+
- Result: pass.
|
|
21
|
+
|
|
22
|
+
### Scenario 2 - Harness contract check
|
|
23
|
+
|
|
24
|
+
- Evidence type: `static_contract`
|
|
25
|
+
- Command:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
node scripts/check-harness.mjs
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
- Expected: checker accepts the packaged harness and reports
|
|
32
|
+
`Harness check passed.`
|
|
33
|
+
- Result: pass.
|
|
34
|
+
|
|
35
|
+
### Scenario 3 - Negative doc coverage control
|
|
36
|
+
|
|
37
|
+
- Evidence type: `static_contract`
|
|
38
|
+
- Command:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
tmpdir="$(mktemp -d)"
|
|
42
|
+
cp -R . "$tmpdir/opencode"
|
|
43
|
+
python3 - "$tmpdir/opencode/docs/ai/harness/commands.md" <<'PY'
|
|
44
|
+
from pathlib import Path
|
|
45
|
+
path = Path(__import__("sys").argv[1])
|
|
46
|
+
text = path.read_text()
|
|
47
|
+
path.write_text(text.replace("### `/test`", "### `test`", 1))
|
|
48
|
+
PY
|
|
49
|
+
(cd "$tmpdir/opencode" && node scripts/check-harness.mjs)
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
- Expected: checker fails with a clear missing documented command message.
|
|
53
|
+
- Result: pass.
|
|
54
|
+
|
|
55
|
+
### Scenario 4 - Public repository check
|
|
56
|
+
|
|
57
|
+
- Evidence type: `static_contract`
|
|
58
|
+
- Command from repository root:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
./scripts/check.sh
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
- Expected: required files, packaged harness checks, and private-data scan pass.
|
|
65
|
+
- Result: pass.
|
|
66
|
+
|
|
67
|
+
### Scenario 5 - Whitespace safety
|
|
68
|
+
|
|
69
|
+
- Evidence type: `static_contract`
|
|
70
|
+
- Command from repository root:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
git diff --check
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
- Expected: no whitespace errors.
|
|
77
|
+
- Result: pass.
|
|
78
|
+
|
|
79
|
+
## Results summary
|
|
80
|
+
|
|
81
|
+
| Scenario | Type | Status |
|
|
82
|
+
| --- | --- | --- |
|
|
83
|
+
| Script syntax | static_contract | pass |
|
|
84
|
+
| Harness contract check | static_contract | pass |
|
|
85
|
+
| Negative doc coverage control | static_contract | pass |
|
|
86
|
+
| Public repository check | static_contract | pass |
|
|
87
|
+
| Whitespace safety | static_contract | pass |
|
|
88
|
+
|
|
89
|
+
## Residual risk
|
|
90
|
+
|
|
91
|
+
This iteration proves the checker catches local documentation drift. It does not
|
|
92
|
+
prove any runtime routing change, and none was intended.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Token vs Semantics
|
|
2
|
+
|
|
3
|
+
## Structural Tokens
|
|
4
|
+
|
|
5
|
+
These remain exact literals:
|
|
6
|
+
|
|
7
|
+
- `edit: deny`
|
|
8
|
+
- `"cd": allow`
|
|
9
|
+
- `"cd *": allow`
|
|
10
|
+
- `"which": allow`
|
|
11
|
+
- `"which *": allow`
|
|
12
|
+
- agent identifiers such as `developer`, `researcher`, `designer`, and
|
|
13
|
+
`specifier`
|
|
14
|
+
|
|
15
|
+
## Semantic Tokens
|
|
16
|
+
|
|
17
|
+
These are prompt-contract concepts and can be verified with bounded regexes:
|
|
18
|
+
|
|
19
|
+
- fast router behavior;
|
|
20
|
+
- asking the user when real ambiguity changes routing;
|
|
21
|
+
- lead must not edit code;
|
|
22
|
+
- lead must not develop or deeply investigate code;
|
|
23
|
+
- implementation corrections return to `developer`;
|
|
24
|
+
- handoffs are self-contained;
|
|
25
|
+
- diff review belongs to `reviewer`;
|
|
26
|
+
- discovery is delegated to `researcher`.
|
|
27
|
+
|
|
28
|
+
## Acceptance Bar
|
|
29
|
+
|
|
30
|
+
The semantic checker is acceptable only if it passes equivalent rewrites while
|
|
31
|
+
still failing real omissions and structural permission changes.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Analysis: iteration-014-harness-baseline
|
|
2
|
+
|
|
3
|
+
The useful root cause was checker brittleness, not agent behavior. The checker
|
|
4
|
+
was using exact `String.includes()` checks for rules that are semantic prompt
|
|
5
|
+
contracts, such as "Do not edit code" and "delegate to `researcher`".
|
|
6
|
+
|
|
7
|
+
The recommended change was narrow:
|
|
8
|
+
|
|
9
|
+
- keep YAML permissions and agent names as exact literals;
|
|
10
|
+
- replace semantic phrase tokens with bounded regex checks;
|
|
11
|
+
- keep literal fallbacks for the most critical prohibition rules;
|
|
12
|
+
- do not change routing, providers, models, permissions, or agent behavior.
|
|
13
|
+
|
|
14
|
+
No public raw transcripts or machine-local paths are required for this evidence.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Iteration 014 - Harness Baseline
|
|
2
|
+
|
|
3
|
+
## Status
|
|
4
|
+
|
|
5
|
+
- Checker baseline: `node scripts/check-harness.mjs` passed before the semantic-checker change.
|
|
6
|
+
- Evidence type: `static_contract`.
|
|
7
|
+
- Scope: inspect prior AHE runs and identify low-risk harness improvement opportunities.
|
|
8
|
+
|
|
9
|
+
## Findings
|
|
10
|
+
|
|
11
|
+
1. Runtime replay coverage is still limited across older AHE iterations.
|
|
12
|
+
2. `check-harness.mjs` used literal phrase checks for semantic lead-router rules.
|
|
13
|
+
3. Manual benchmark scenarios exist, but not all are executed systematically.
|
|
14
|
+
4. `evolution_history.md` is not a complete iteration index.
|
|
15
|
+
|
|
16
|
+
## Selected Opportunity
|
|
17
|
+
|
|
18
|
+
Only finding 2 justified an immediate harness change. Literal phrase checks made
|
|
19
|
+
the checker brittle when prompt text was rewritten with equivalent meaning. The
|
|
20
|
+
narrowest improvement was to keep structural tokens exact while replacing
|
|
21
|
+
semantic phrase checks with flexible regex patterns.
|
|
22
|
+
|
|
23
|
+
## Deferred Opportunities
|
|
24
|
+
|
|
25
|
+
- Execute more `transcript_replay` scenarios before changing routing behavior.
|
|
26
|
+
- Complete the evolution history/index in a separate documentation pass.
|
|
27
|
+
- Improve regex coverage only when a concrete false negative is found.
|
|
28
|
+
|
|
29
|
+
## Validation Recommendation
|
|
30
|
+
|
|
31
|
+
The next iteration should verify that:
|
|
32
|
+
|
|
33
|
+
- current documents still pass the checker;
|
|
34
|
+
- equivalent wording rewrites pass;
|
|
35
|
+
- real omissions still fail;
|
|
36
|
+
- structural permissions and agent identifiers remain exact.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Analysis: iteration-015-semantic-checker
|
|
2
|
+
|
|
3
|
+
Post-change validation confirms the checker improvement should be kept.
|
|
4
|
+
|
|
5
|
+
The main review risk was false confidence: semantic regexes can become too broad
|
|
6
|
+
or too narrow. The public implementation mitigates this by:
|
|
7
|
+
|
|
8
|
+
- keeping structural permissions and agent identifiers as exact literals;
|
|
9
|
+
- keeping literal fallbacks for critical lead prohibition checks;
|
|
10
|
+
- adding rewrite and omission smoke tests during validation;
|
|
11
|
+
- keeping the change scoped to `scripts/check-harness.mjs`.
|
|
12
|
+
|
|
13
|
+
No routing, model, provider, MCP, permission, or agent behavior changed.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"iteration": 15,
|
|
3
|
+
"evaluates_iteration": 15,
|
|
4
|
+
"results": [
|
|
5
|
+
{
|
|
6
|
+
"change_id": "chg-1-semantic-checker",
|
|
7
|
+
"predicted_fixes_confirmed": [
|
|
8
|
+
"Equivalent wording rewrites pass the checker.",
|
|
9
|
+
"Real rule omissions still fail the checker.",
|
|
10
|
+
"Structural permission and agent identifier checks remain exact.",
|
|
11
|
+
"No routing, provider, model, MCP, credential, or agent behavior is changed."
|
|
12
|
+
],
|
|
13
|
+
"predicted_fixes_not_confirmed": [],
|
|
14
|
+
"risk_tasks_regressed": [],
|
|
15
|
+
"risk_tasks_not_regressed": [
|
|
16
|
+
"Do not make regex patterns broad enough to pass unrelated text.",
|
|
17
|
+
"Keep literal fallbacks for the most critical lead prohibition checks.",
|
|
18
|
+
"Keep permissions and agent identifiers as exact literals.",
|
|
19
|
+
"Do not include private providers, MCPs, credentials, local paths, or raw transcripts."
|
|
20
|
+
],
|
|
21
|
+
"unpredicted_regressions": [],
|
|
22
|
+
"decision": "keep",
|
|
23
|
+
"evidence": [
|
|
24
|
+
"docs/ai/evolution/runs/iteration-015-semantic-checker/evaluation.md",
|
|
25
|
+
"docs/ai/evolution/runs/iteration-015-semantic-checker/change_manifest.json",
|
|
26
|
+
"scripts/check-harness.mjs"
|
|
27
|
+
],
|
|
28
|
+
"notes": "The public sync ports the local semantic-checker improvement to the English packaged harness and includes only sanitized summary evidence."
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|