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
package/opencode/docs/ai/evolution/runs/iteration-018-free-message-routing-audit/evaluation.md
ADDED
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
# Evaluation — iteration-018-free-message-routing-audit
|
|
2
|
+
|
|
3
|
+
## 1. Objetivo evaluado
|
|
4
|
+
|
|
5
|
+
Evaluar el comportamiento de OpenCode en mensaje libre sin `/comando`, centrado en cómo `lead` enruta:
|
|
6
|
+
|
|
7
|
+
- requests pequeños/claros/de bajo riesgo,
|
|
8
|
+
- requests con incertidumbre técnica real,
|
|
9
|
+
- requests de plan/spec sin implementación,
|
|
10
|
+
- árboles con varias delegaciones,
|
|
11
|
+
- y si aparecen sidecars fuera de `/evolve` o fallos reales.
|
|
12
|
+
|
|
13
|
+
No se modificó código/config del harness. Esta evaluación usa `execution-trees.jsonl` como corpus primario y replays naturales solo para cubrir huecos del corpus staged.
|
|
14
|
+
|
|
15
|
+
## 2. Escenarios ejecutados
|
|
16
|
+
|
|
17
|
+
| Escenario | Evidencia principal | Resultado |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| 1. Free-message small, clear, low-risk | replay `ses_187e1aa61ffeMK45edC9BUcADi` | pass |
|
|
20
|
+
| 2. Free-message technical uncertainty | histórico `ses_18807423fffey1ToAgBg9YtyaI` + replay `ses_187e12da9ffeyRjc2fNrgNb7Y7` | pass |
|
|
21
|
+
| 3. Free-message plan/spec sin implementación | replay `ses_187e0a2d6ffe40q84bHbdIiEWW` | pass |
|
|
22
|
+
| 4. Free-message complex request with multiple delegations | replay tree root `ses_187dfda06ffeY8Q50Sii1mVjuH` | pass |
|
|
23
|
+
| 5. Negative control: no sidecars in normal flow | replays `ses_187e1aa61ffeMK45edC9BUcADi`, `ses_187e12da9ffeyRjc2fNrgNb7Y7`, `ses_187e0a2d6ffe40q84bHbdIiEWW`, `ses_187dfda06ffeY8Q50Sii1mVjuH` | pass |
|
|
24
|
+
|
|
25
|
+
## 3. Resultados por escenario
|
|
26
|
+
|
|
27
|
+
### 3.1 Histórico: corpus staged por árbol completo
|
|
28
|
+
|
|
29
|
+
**Trees evaluadas:** `3`
|
|
30
|
+
|
|
31
|
+
- `ses_18807423fffey1ToAgBg9YtyaI`
|
|
32
|
+
- `ses_1880e3155ffeS87I6VQB6W9YHZ`
|
|
33
|
+
- `ses_187e87c10ffeX7D3RJDZhOktUz`
|
|
34
|
+
|
|
35
|
+
**Cursor start/end**
|
|
36
|
+
|
|
37
|
+
- `cursor_start.time_updated_max`: `1780128847905`
|
|
38
|
+
- `cursor_start.root_session_id`: `ses_1880e3155ffeS87I6VQB6W9YHZ`
|
|
39
|
+
- `cursor_end.time_updated_max`: `1780131310220`
|
|
40
|
+
- `cursor_end.root_session_id`: `ses_187e87c10ffeX7D3RJDZhOktUz`
|
|
41
|
+
|
|
42
|
+
**Roots nuevas o actualizadas revisadas:** `3`
|
|
43
|
+
|
|
44
|
+
**Hallazgo principal del corpus:** el staged corpus es demasiado pequeño para baseline histórico robusto. Solo `1` árbol staged es free-message sin slash y además es **sintético/coercitivo**, no baseline natural.
|
|
45
|
+
|
|
46
|
+
#### Tree `ses_18807423fffey1ToAgBg9YtyaI`
|
|
47
|
+
|
|
48
|
+
- Tipo: free-message **sintético/coercitivo**.
|
|
49
|
+
- Root agent: `lead`.
|
|
50
|
+
- Child sessions: `1`.
|
|
51
|
+
- Participating agents: `lead`, `researcher`.
|
|
52
|
+
- Evidencia: `docs/ai/evolution/runs/iteration-018-free-message-routing-audit/raw/execution-trees.jsonl`, `normalized-sessions.jsonl:3-4`.
|
|
53
|
+
- Observación: el prompt ordena explícitamente “feature técnica con incertidumbre de API” y “detente tras el primer handoff útil”; `lead` delega a `researcher` primero. Esto **sí** confirma que el routing a `researcher` existe, pero **no** sirve por sí solo como baseline natural.
|
|
54
|
+
|
|
55
|
+
#### Tree `ses_1880e3155ffeS87I6VQB6W9YHZ`
|
|
56
|
+
|
|
57
|
+
- Tipo: `/evolve` explícito.
|
|
58
|
+
- Participating agents: `lead`, `evaluator`, `debugger`, `evolver`, `developer`, `reviewer`.
|
|
59
|
+
- Observación: no cuenta como flujo normal libre; sí confirma que los sidecars aparecen cuando el comando AHE lo pide.
|
|
60
|
+
|
|
61
|
+
#### Tree `ses_187e87c10ffeX7D3RJDZhOktUz`
|
|
62
|
+
|
|
63
|
+
- Tipo: `/evolve` explícito.
|
|
64
|
+
- Observación: irrelevante como baseline de free-message normal.
|
|
65
|
+
|
|
66
|
+
### 3.2 Replay actual: prompts naturales y breves
|
|
67
|
+
|
|
68
|
+
#### Escenario 1 — small / clear / low-risk
|
|
69
|
+
|
|
70
|
+
- Session: `ses_187e1aa61ffeMK45edC9BUcADi`
|
|
71
|
+
- Prompt exacto: `I need a small, low-risk change in this repo: rename the helper getCwd to getCurrentWorkingDirectory consistently and run the relevant checks. Before making any changes, tell me what you would do first.`
|
|
72
|
+
- Resultado observado: `lead` clasifica el trabajo como “cambio pequeño, localizado y de bajo riesgo” y declara que, tras una inspección ligera de referencias, lo enrutaría a `developer`.
|
|
73
|
+
- Evidencia: replay output; SQLite local `~/.local/share/opencode/opencode.db` root session `ses_187e1aa61ffeMK45edC9BUcADi`.
|
|
74
|
+
- Veredicto: **pass** para criterio de routing. No hubo child session porque el prompt pidió explícitamente “tell me what you would do first”, así que observamos intención de handoff, no handoff ejecutado.
|
|
75
|
+
|
|
76
|
+
#### Escenario 2 — technical uncertainty
|
|
77
|
+
|
|
78
|
+
- Replay session: `ses_187e12da9ffeyRjc2fNrgNb7Y7`
|
|
79
|
+
- Prompt exacto: `I want to add session-source filtering by execution-tree root in this repo, but I'm not sure which existing data contracts already support it. Before making changes, tell me what you'd do first.`
|
|
80
|
+
- Resultado observado: `lead` declara explícitamente `researcher primero, no developer` y formula el objetivo de discovery.
|
|
81
|
+
- Evidencia: replay output; SQLite local root session `ses_187e12da9ffeyRjc2fNrgNb7Y7`.
|
|
82
|
+
- Veredicto: **pass**.
|
|
83
|
+
|
|
84
|
+
#### Escenario 3 — plan/spec sin implementación
|
|
85
|
+
|
|
86
|
+
- Session: `ses_187e0a2d6ffe40q84bHbdIiEWW`
|
|
87
|
+
- Prompt exacto: `I need a plan for tightening free-message routing around small requests in this repo. Don't implement anything yet; before making changes, tell me what you'd do first.`
|
|
88
|
+
- Resultado observado: `lead` dice `I would not implement first`, hace una revisión ligera de contexto y propone `researcher` discovery antes de proponer cambios.
|
|
89
|
+
- Evidencia: replay output; SQLite local root session `ses_187e0a2d6ffe40q84bHbdIiEWW`.
|
|
90
|
+
- Veredicto: **pass** para “sin implementación prematura”.
|
|
91
|
+
- Nota: aquí `lead` sí hizo lectura ligera de docs antes del handoff; eso parece permitido por contrato, pero es el patrón más cercano a posible ambigüedad intake-vs-research.
|
|
92
|
+
|
|
93
|
+
#### Escenario 4 — complex request with multiple delegations
|
|
94
|
+
|
|
95
|
+
- Root session: `ses_187dfda06ffeY8Q50Sii1mVjuH`
|
|
96
|
+
- Prompt exacto: `I want to tighten free-message routing for small requests in this repo. Please do the normal multi-agent process needed to get me to an implementation-ready plan with acceptance criteria, but do not edit any files yet.`
|
|
97
|
+
- Child sessions observadas por árbol completo:
|
|
98
|
+
- `ses_187df49b6ffeJcXh1P6Utj6jMg` — `researcher`
|
|
99
|
+
- `ses_187dca489ffevGugk2VeHlStq8` — `specifier`
|
|
100
|
+
- Secuencia observada: `lead -> researcher -> specifier`.
|
|
101
|
+
- Evidencia: SQLite local `session.parent_id` tree inspection; researcher prompt y specifier prompt confirman handoffs autocontenidos.
|
|
102
|
+
- Veredicto: **pass**.
|
|
103
|
+
- Observación: secuencia coherente para request complejo de plan; no se observaron `developer`, `reviewer` ni sidecars, consistente con “no edits yet”.
|
|
104
|
+
|
|
105
|
+
#### Escenario 5 — negative control: no sidecars in normal flow
|
|
106
|
+
|
|
107
|
+
- Replays observados:
|
|
108
|
+
- `ses_187e1aa61ffeMK45edC9BUcADi` → agents: `lead`
|
|
109
|
+
- `ses_187e12da9ffeyRjc2fNrgNb7Y7` → agents: `lead`
|
|
110
|
+
- `ses_187e0a2d6ffe40q84bHbdIiEWW` → agents: `lead`
|
|
111
|
+
- `ses_187dfda06ffeY8Q50Sii1mVjuH` → agents: `lead`, `researcher`, `specifier`
|
|
112
|
+
- Resultado observado: ningún replay natural activó `evaluator`, `debugger` ni `evolver`.
|
|
113
|
+
- Veredicto: **pass**.
|
|
114
|
+
|
|
115
|
+
## 4. Comandos o pasos usados
|
|
116
|
+
|
|
117
|
+
### Lectura de artefactos staged
|
|
118
|
+
|
|
119
|
+
- `read docs/ai/evolution/runs/iteration-018-free-message-routing-audit/raw/`
|
|
120
|
+
- `read .../session-sources.summary.json`
|
|
121
|
+
- `read .../cursor.json`
|
|
122
|
+
- `read .../execution-trees.jsonl`
|
|
123
|
+
- consultas Python/SQLite locales contra `docs/ai/evolution/runs/iteration-018-free-message-routing-audit/raw/*.jsonl`
|
|
124
|
+
|
|
125
|
+
### Replays ejecutados
|
|
126
|
+
|
|
127
|
+
- `opencode run --format json --thinking --dir <harness-repo> "I need a small, low-risk change in this repo: rename the helper getCwd to getCurrentWorkingDirectory consistently and run the relevant checks. Before making any changes, tell me what you would do first."`
|
|
128
|
+
- `opencode run --format json --thinking --dir <harness-repo> "I want to add session-source filtering by execution-tree root in this repo, but I'm not sure which existing data contracts already support it. Before making changes, tell me what you'd do first."`
|
|
129
|
+
- `opencode run --format json --thinking --dir <harness-repo> "I need a plan for tightening free-message routing around small requests in this repo. Don't implement anything yet; before making changes, tell me what you'd do first."`
|
|
130
|
+
- `opencode run --format json --thinking --dir <harness-repo> "I want to tighten free-message routing for small requests in this repo. Please do the normal multi-agent process needed to get me to an implementation-ready plan with acceptance criteria, but do not edit any files yet."`
|
|
131
|
+
|
|
132
|
+
### Soporte diagnóstico de replay
|
|
133
|
+
|
|
134
|
+
- consultas SQLite sobre `~/.local/share/opencode/opencode.db` para reconstruir árboles completos por `parent_id` y confirmar agentes participantes.
|
|
135
|
+
|
|
136
|
+
## 5. Evidencia y rutas relevantes
|
|
137
|
+
|
|
138
|
+
- Staged corpus:
|
|
139
|
+
- `docs/ai/evolution/runs/iteration-018-free-message-routing-audit/raw/execution-trees.jsonl`
|
|
140
|
+
- `docs/ai/evolution/runs/iteration-018-free-message-routing-audit/raw/normalized-sessions.jsonl`
|
|
141
|
+
- `docs/ai/evolution/runs/iteration-018-free-message-routing-audit/raw/session-sources.summary.json`
|
|
142
|
+
- `docs/ai/evolution/runs/iteration-018-free-message-routing-audit/raw/cursor.json`
|
|
143
|
+
- Replay/diagnóstico local:
|
|
144
|
+
- `~/.local/share/opencode/opencode.db`
|
|
145
|
+
|
|
146
|
+
## 6. Hallazgos separados por nivel de certeza
|
|
147
|
+
|
|
148
|
+
### Observado en corpus histórico staged
|
|
149
|
+
|
|
150
|
+
- El corpus staged de esta iteración **no** basta por sí solo para juzgar baseline histórico de free-message normal.
|
|
151
|
+
- El único árbol free-message staged relevante (`ses_18807423fffey1ToAgBg9YtyaI`) es sintético/coercitivo y muestra `researcher` primero.
|
|
152
|
+
- Los sidecars observados en staged pertenecen a `/evolve`, no a flujo libre normal.
|
|
153
|
+
|
|
154
|
+
### Confirmado por replay actual
|
|
155
|
+
|
|
156
|
+
- En small/clear/low-risk, `lead` mantiene el fast-path conceptual hacia `developer`.
|
|
157
|
+
- En incertidumbre técnica real, `lead` elige `researcher` primero.
|
|
158
|
+
- En plan/spec sin implementación, `lead` evita implementación prematura y favorece discovery/spec flow.
|
|
159
|
+
- En un request complejo de plan, el árbol completo observado fue coherente: `lead -> researcher -> specifier`.
|
|
160
|
+
- En flujo libre normal no aparecieron `evaluator`, `debugger` ni `evolver`.
|
|
161
|
+
|
|
162
|
+
### Hipótesis / punto no resuelto todavía
|
|
163
|
+
|
|
164
|
+
- Hay una posible zona gris en el umbral entre **inspección ligera permitida** y **research que ya debería delegarse**. Esto aparece en los replays de plan-only/complex y además ya tenía antecedente documental en `docs/ai/evolution/runs/iteration-006-lead-delegation-audit/evaluation.md`, pero esta iteración no aporta corpus histórico natural suficiente para declararlo regresión por sí solo.
|
|
165
|
+
|
|
166
|
+
## 7. Regresiones observadas
|
|
167
|
+
|
|
168
|
+
- **Regresión confirmada:** ninguna.
|
|
169
|
+
- **Patrón a atribuir si se continúa a debugger:** `lead` tiende a hacer una capa de intake/document reading propia antes del primer handoff en prompts de planificación, incluso cuando luego enruta correctamente. Esto puede ser correcto según contrato actual, o puede indicar que el límite “light intake vs substantive research” sigue subespecificado.
|
|
170
|
+
|
|
171
|
+
## 8. Limitaciones
|
|
172
|
+
|
|
173
|
+
- `execution-trees.jsonl` staged solo contiene `3` árboles aceptados por cursor; solo `1` es free-message sin slash y no es natural.
|
|
174
|
+
- Los replays fueron necesarios para cubrir escenarios obligatorios; por tanto, los hallazgos de baseline descansan más en replay actual que en corpus histórico.
|
|
175
|
+
- Los prompts de replay usaron la forma natural “Before making changes, tell me what you would do first”, lo que reduce el riesgo de edición pero también hace más frecuente observar **intención de handoff** en vez de subagente ya invocado.
|
|
176
|
+
- El replay complejo excedió el timeout shell de `240000ms`; la reconstrucción completa del árbol se hizo luego vía SQLite local. El árbol sí mostró `researcher` y `specifier`.
|
|
177
|
+
|
|
178
|
+
## 9. Fuentes staged (`session_sources`)
|
|
179
|
+
|
|
180
|
+
### `local-opencode-db`
|
|
181
|
+
|
|
182
|
+
- discovered: `385`
|
|
183
|
+
- accepted: `385`
|
|
184
|
+
- skipped: `0`
|
|
185
|
+
- skip_reasons: `{}`
|
|
186
|
+
|
|
187
|
+
### `external-opencode-raw`
|
|
188
|
+
|
|
189
|
+
- discovered: `416`
|
|
190
|
+
- accepted: `171`
|
|
191
|
+
- skipped: `245`
|
|
192
|
+
- skip_reasons: `{ "empty_array": 245 }`
|
|
193
|
+
|
|
194
|
+
## 10. Handoff para debugger / reviewer
|
|
195
|
+
|
|
196
|
+
### Para debugger
|
|
197
|
+
|
|
198
|
+
La evidencia **sí es suficiente** para una fase **debugger-only** acotada, pero **no** para saltar a manifest/apply.
|
|
199
|
+
|
|
200
|
+
Foco recomendado:
|
|
201
|
+
|
|
202
|
+
1. Atribuir si el patrón observado es realmente un problema o solo refleja el contrato actual:
|
|
203
|
+
- `agents/lead.md`
|
|
204
|
+
- `docs/ai/harness/commands.md`
|
|
205
|
+
- `docs/ai/harness/agents.md`
|
|
206
|
+
2. Resolver si free-message plan-only debe:
|
|
207
|
+
- ir siempre `researcher -> specifier`, o
|
|
208
|
+
- permitir `specifier` directo cuando ya hay contexto suficiente.
|
|
209
|
+
3. Precisar el umbral observable entre:
|
|
210
|
+
- intake ligero permitido,
|
|
211
|
+
- versus discovery que ya debería pertenecer a `researcher`.
|
|
212
|
+
|
|
213
|
+
### Para reviewer
|
|
214
|
+
|
|
215
|
+
- No hay diff del harness en esta tarea; no procede review de cambios.
|
|
216
|
+
- Sí hay evidencia suficiente para revisar la **calidad del diagnóstico** si el lead decide abrir debugger-only.
|
|
217
|
+
|
|
218
|
+
## 11. Decisión recomendada para la rama
|
|
219
|
+
|
|
220
|
+
**Continuar solo a `debugger-only`**, no a `evolver` ni `developer`.
|
|
221
|
+
|
|
222
|
+
Motivo:
|
|
223
|
+
|
|
224
|
+
- el audit ya confirma que el baseline actual **no** muestra sidecar overreach en flujo libre normal;
|
|
225
|
+
- también confirma que el routing principal (`developer` para small, `researcher` para uncertainty, `research/spec` para plan-only) funciona;
|
|
226
|
+
- el único punto con señal suficiente para atribución es la ambigüedad **intake ligero vs primer handoff**, no una regresión cerrada.
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Detail: plan-only free-message gray zone
|
|
2
|
+
|
|
3
|
+
## Question
|
|
4
|
+
|
|
5
|
+
Does the plan-only free-message evidence show a routing defect, or only a contract-compatible clarification gate?
|
|
6
|
+
|
|
7
|
+
## Evidence
|
|
8
|
+
|
|
9
|
+
### Contracts
|
|
10
|
+
|
|
11
|
+
- `agents/lead.md` routes technical uncertainty to `researcher`, routes already-sufficient context to `specifier`, and tells `lead` to ask the user when ambiguity changes the correct flow.
|
|
12
|
+
- `docs/ai/harness/commands.md` uses the same split for normal free-message routing.
|
|
13
|
+
|
|
14
|
+
### Historical real tree
|
|
15
|
+
|
|
16
|
+
#### Tree 6 — `ses_187dfda06ffeY8Q50Sii1mVjuH`
|
|
17
|
+
|
|
18
|
+
- Prompt explicitly asks for the normal multi-agent process to reach an implementation-ready plan without editing files.
|
|
19
|
+
- Complete observed sequence: `lead -> researcher -> specifier`.
|
|
20
|
+
- This proves the harness can advance beyond research in a free-message planning request when the routing path is sufficiently resolved.
|
|
21
|
+
|
|
22
|
+
### Natural replay tree
|
|
23
|
+
|
|
24
|
+
#### Tree 11 — `ses_187853007ffe2CO4PSgvPBZBlJ`
|
|
25
|
+
|
|
26
|
+
- Prompt asks for an implementation-ready plan with acceptance criteria, no file edits yet.
|
|
27
|
+
- Complete observed sequence: `lead -> researcher`, then clarification from `lead`.
|
|
28
|
+
- The clarification is about whether free-message plan/spec requests should always be treated as planning flow rather than direct implementation flow.
|
|
29
|
+
- No `developer` handoff occurred.
|
|
30
|
+
- No sidecars appeared.
|
|
31
|
+
|
|
32
|
+
## What is proven
|
|
33
|
+
|
|
34
|
+
### Facts
|
|
35
|
+
|
|
36
|
+
- Free-message plan/spec requests can produce real `researcher -> specifier` continuation.
|
|
37
|
+
- Free-message plan/spec requests can also stop after `researcher` when `lead` judges a routing-defining ambiguity still open.
|
|
38
|
+
- The natural replay did not show premature implementation or phase inversion.
|
|
39
|
+
|
|
40
|
+
### Inference
|
|
41
|
+
|
|
42
|
+
- Tree 11 is better attributed as a clarification gate inside an otherwise coherent planning path, not as a confirmed routing failure.
|
|
43
|
+
|
|
44
|
+
## What is not proven
|
|
45
|
+
|
|
46
|
+
- Not proven that `specifier` should always have been invoked in tree 11.
|
|
47
|
+
- Not proven that the clarification itself is harmful behavior.
|
|
48
|
+
- Not proven that the difference between trees 6 and 11 is a regression rather than prompt-level ambiguity.
|
|
49
|
+
|
|
50
|
+
## Why this matters
|
|
51
|
+
|
|
52
|
+
This is the only remaining gray zone that could tempt an unnecessary evolver cycle. The evidence supports documenting it, but not escalating it into a defect.
|
|
53
|
+
|
|
54
|
+
## Falsification criteria
|
|
55
|
+
|
|
56
|
+
Escalate beyond audit only if future complete-tree evidence shows one of these:
|
|
57
|
+
|
|
58
|
+
1. repeated natural plan-only trees stall at `researcher + clarification` even when the routing policy is already explicit;
|
|
59
|
+
2. materially similar plan-only prompts alternate between `specifier` and non-`specifier` outcomes without an observable ambiguity difference;
|
|
60
|
+
3. plan-only requests route to `developer` or skip needed research-sensitive steps.
|
|
61
|
+
|
|
62
|
+
Current best attribution: **audit gray zone, not confirmed routing regression**.
|
package/opencode/docs/ai/evolution/runs/iteration-019-handoff-routing-audit/analysis/overview.md
ADDED
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
# Debugger Overview — iteration-019-handoff-routing-audit
|
|
2
|
+
|
|
3
|
+
## 1. Evidencia analizada
|
|
4
|
+
|
|
5
|
+
- `evaluation.md`
|
|
6
|
+
- staged tree artifacts under `raw/`:
|
|
7
|
+
- `execution-trees.jsonl`
|
|
8
|
+
- `normalized-sessions.jsonl`
|
|
9
|
+
- `session-sources.summary.json`
|
|
10
|
+
- `cursor.json`
|
|
11
|
+
- repo contracts used for attribution:
|
|
12
|
+
- `agents/lead.md`
|
|
13
|
+
- `docs/ai/harness/commands.md`
|
|
14
|
+
- `docs/ai/harness/agents.md`
|
|
15
|
+
|
|
16
|
+
Method note: attribution is based on complete trees first. Child-session inspection was only used to confirm the observed tree order and the handoff type.
|
|
17
|
+
|
|
18
|
+
Source note: the staged source summary includes `local-opencode-db` and supplemental `external-opencode-raw`, but the accepted execution trees used for attribution here are labeled `local-opencode-db`. No source-to-source interpretation split was required for the conclusions below.
|
|
19
|
+
|
|
20
|
+
## 2. Estado
|
|
21
|
+
|
|
22
|
+
**Estado:** listo para cerrar como audit; **no listo para evolver**.
|
|
23
|
+
|
|
24
|
+
Reason: this iteration closes the routing audit with real-handoff evidence, but it does **not** produce a confirmed routing defect or harmful regression that would justify opening an evolver phase.
|
|
25
|
+
|
|
26
|
+
## 3. Patrones de fallo
|
|
27
|
+
|
|
28
|
+
### A. Small / clear / low-risk free message
|
|
29
|
+
|
|
30
|
+
- **Historical corpus behavior:** declared intent only.
|
|
31
|
+
- Trees 1-3 show `lead` describing a direct implementation path, but with no child session.
|
|
32
|
+
- **Replay-confirmed behavior:** real handoff observed.
|
|
33
|
+
- Tree 9 (`ses_18789c0caffelJSfGS4vk1i5JK`) shows first real child `developer` (`ses_18789753fffeUApXwoki4kr2jc`).
|
|
34
|
+
- **Pattern result:** no wrong-first-handoff confirmed.
|
|
35
|
+
- **Method caveat:** the replay used to force a real low-risk handoff edited the iteration's own `evaluation.md`. That is acceptable as a one-off confirmation of `lead -> developer`, but it is not the clean benchmark shape to reuse in future audits.
|
|
36
|
+
|
|
37
|
+
### B. Technical-uncertainty free message
|
|
38
|
+
|
|
39
|
+
- **Historical corpus behavior:** declared intent only.
|
|
40
|
+
- Tree 4 declares `researcher` first, but has no child session.
|
|
41
|
+
- **Replay-confirmed behavior:** real handoff observed.
|
|
42
|
+
- Tree 10 (`ses_18787a760ffe1U82oRHHZIL3Me`) shows first real child `researcher` (`ses_1878740fbffePUjEBuO5dlm5qi`).
|
|
43
|
+
- **Pattern result:** no wrong-first-handoff confirmed.
|
|
44
|
+
|
|
45
|
+
### C. Plan/spec free message without implementation
|
|
46
|
+
|
|
47
|
+
- **Historical corpus behavior:** both intent and real handoff exist.
|
|
48
|
+
- Tree 5 shows plan-oriented declared intent only.
|
|
49
|
+
- Tree 6 (`ses_187dfda06ffeY8Q50Sii1mVjuH`) shows real sequence `lead -> researcher -> specifier`.
|
|
50
|
+
- **Replay-confirmed behavior:** partial real handoff observed.
|
|
51
|
+
- Tree 11 (`ses_187853007ffe2CO4PSgvPBZBlJ`) shows real `lead -> researcher`, then an explicit clarification gate before `specifier`.
|
|
52
|
+
- **Pattern result:** no premature `developer`, no phase inversion, but one gray zone remains: a natural plan-only replay stopped at `researcher + clarification` instead of advancing to `specifier` within the same tree.
|
|
53
|
+
- **Confidence note:** this is best read as `no confirmed regression` rather than a strong replay-level confirmation that the full `researcher -> specifier` path always closes in natural plan-only prompts.
|
|
54
|
+
|
|
55
|
+
### D. Sidecar overreach in normal free-message trees
|
|
56
|
+
|
|
57
|
+
- **Historical corpus behavior:** none confirmed in normal free-message trees.
|
|
58
|
+
- **Replay-confirmed behavior:** none.
|
|
59
|
+
- Trees 1-11 do not invoke `evaluator`, `debugger`, or `evolver`.
|
|
60
|
+
- Sidecars appear only in tree 12, an explicit `/evolve` tree.
|
|
61
|
+
- **Pattern result:** no sidecar overreach confirmed.
|
|
62
|
+
|
|
63
|
+
## 4. Root causes
|
|
64
|
+
|
|
65
|
+
### RC0 — No confirmed routing failure in the audited scenarios
|
|
66
|
+
|
|
67
|
+
**Facts**
|
|
68
|
+
- Real-handoff evidence now exists for the two scenarios that were previously only intent-backed: small/direct and technical-uncertain.
|
|
69
|
+
- The historical corpus already contained one real planning tree (`lead -> researcher -> specifier`).
|
|
70
|
+
- The natural plan-only replay did not invoke `developer` and did not invert the expected order.
|
|
71
|
+
- No normal free-message tree in the audited set invoked sidecars.
|
|
72
|
+
|
|
73
|
+
**Inference**
|
|
74
|
+
- The observed routing behavior matches the declared contract strongly enough to close the audit.
|
|
75
|
+
|
|
76
|
+
**Impact**
|
|
77
|
+
- There is no evidence-backed defect to hand to `evolver`.
|
|
78
|
+
|
|
79
|
+
### RC1 — Remaining issue is a contract gray zone, not a confirmed regression
|
|
80
|
+
|
|
81
|
+
**Facts**
|
|
82
|
+
- `agents/lead.md` says free-message routing may ask the user when ambiguity changes the correct flow, routes technical uncertainty to `researcher`, and uses `specifier` when context is already sufficient.
|
|
83
|
+
- `docs/ai/harness/commands.md` says free-message routing should go to `specifier` when enough context already exists, and to `researcher` when uncertainty exists.
|
|
84
|
+
- Tree 6 proves that a plan/spec free message can legitimately continue `researcher -> specifier`.
|
|
85
|
+
- Tree 11 proves that a natural plan/spec free message can also pause after `researcher` when `lead` finds a routing-defining ambiguity and asks for clarification.
|
|
86
|
+
|
|
87
|
+
**Inference**
|
|
88
|
+
- The unresolved issue is not “wrong routing happened”, but “the plan-only free-message class still allows two contract-compatible outcomes depending on whether ambiguity is judged material.”
|
|
89
|
+
|
|
90
|
+
**Impact**
|
|
91
|
+
- This is sufficient to document an auditability gray zone.
|
|
92
|
+
- It is **not** sufficient to claim a regression or to open an evolver cycle.
|
|
93
|
+
|
|
94
|
+
See `analysis/detail/plan-only-gray-zone.md`.
|
|
95
|
+
|
|
96
|
+
## 5. Fixes candidatos por nivel de componente
|
|
97
|
+
|
|
98
|
+
No evidence-backed harness fix is recommended from this debugger pass.
|
|
99
|
+
|
|
100
|
+
If a future iteration falsifies the current conclusion, the likely component levels would be:
|
|
101
|
+
- `lead` routing contract / prompt, if natural complete trees show inconsistent first-handoff within the same prompt class;
|
|
102
|
+
- `evaluation benchmark design`, if the real issue is auditability rather than routing behavior.
|
|
103
|
+
|
|
104
|
+
For this iteration, proposing an actual harness change would outrun the evidence.
|
|
105
|
+
|
|
106
|
+
## 6. Riesgos y regresiones
|
|
107
|
+
|
|
108
|
+
### Confirmed regressions
|
|
109
|
+
|
|
110
|
+
- None.
|
|
111
|
+
|
|
112
|
+
### Open risks
|
|
113
|
+
|
|
114
|
+
- **Plan-only classification drift:** auditors may over-interpret the tree-11 clarification gate as a routing miss even though tree-level evidence still fits the current contract.
|
|
115
|
+
- **Sample-shape risk:** the strongest plan-only confirmation is split across one historical real tree and one fresh natural replay rather than repeated natural trees of the same class.
|
|
116
|
+
|
|
117
|
+
### Not supported by evidence
|
|
118
|
+
|
|
119
|
+
- claiming small/direct free messages no longer fast-path to `developer`
|
|
120
|
+
- claiming technical-uncertainty free messages route first to the wrong agent
|
|
121
|
+
- claiming normal free-message traffic triggers sidecars
|
|
122
|
+
- claiming plan-only free messages prematurely implement
|
|
123
|
+
- claiming a new sequencing regression from the tree-11 clarification alone
|
|
124
|
+
|
|
125
|
+
## 7. Atribución de cambios previos
|
|
126
|
+
|
|
127
|
+
No `change_manifest.json` exists for this iteration, and the user explicitly requested debugger-only attribution without manifest work.
|
|
128
|
+
|
|
129
|
+
Therefore there is no prior change set to score as `keep`, `improve`, or `rollback+pivot` in this iteration.
|
|
130
|
+
|
|
131
|
+
## 8. Handoff para lead / evolver / reviewer
|
|
132
|
+
|
|
133
|
+
### Concise pattern summary
|
|
134
|
+
|
|
135
|
+
- Small/direct free message: **intent + real handoff now aligned** (`lead -> developer`).
|
|
136
|
+
- Technical uncertainty free message: **intent + real handoff now aligned** (`lead -> researcher`).
|
|
137
|
+
- Plan/spec free message: **historical real tree confirms `lead -> researcher -> specifier`; natural replay confirms `lead -> researcher` with clarification gate and no premature `developer`**.
|
|
138
|
+
- Negative control: **no sidecars in normal free-message trees**.
|
|
139
|
+
|
|
140
|
+
### Attributed root causes or absence thereof
|
|
141
|
+
|
|
142
|
+
- Primary attribution: **absence of confirmed routing defect**.
|
|
143
|
+
- Secondary attribution: **remaining plan-only ambiguity is a contract gray zone about when clarification stops progression to `specifier`, not a confirmed regression**.
|
|
144
|
+
|
|
145
|
+
### Confidence
|
|
146
|
+
|
|
147
|
+
- **High** that scenarios 1, 2, and the sidecar negative control are audit-closed for this iteration.
|
|
148
|
+
- **Medium** that plan-only free-message routing is acceptable as-is, because the evidence supports coherence but still leaves a real clarification gray zone.
|
|
149
|
+
|
|
150
|
+
### Evidence gaps / falsification criteria
|
|
151
|
+
|
|
152
|
+
Reconsider the stop/go recommendation only if future complete-tree evidence shows at least one of these under natural or stable replay conditions:
|
|
153
|
+
|
|
154
|
+
1. small/clear/low-risk free messages route first to `researcher` or `specifier` without concrete blocking ambiguity;
|
|
155
|
+
2. technical-uncertainty free messages route first to `developer`;
|
|
156
|
+
3. plan-only free messages route to `developer` or skip necessary research-sensitive steps;
|
|
157
|
+
4. repeated natural plan-only trees show contradictory first-handoff behavior with no material ambiguity difference;
|
|
158
|
+
5. normal free-message trees invoke `evaluator`, `debugger`, or `evolver` without `/evolve` or concrete failure-analysis need.
|
|
159
|
+
|
|
160
|
+
### Recommendation
|
|
161
|
+
|
|
162
|
+
**Stop at audit. Do not proceed to evolver.**
|
|
163
|
+
|
|
164
|
+
Why:
|
|
165
|
+
- the audit goal was to close handoff attribution with real tree evidence, and that goal is met;
|
|
166
|
+
- no confirmed wrong-first-handoff, sidecar overreach, or incoherent sequencing was found;
|
|
167
|
+
- the only remaining issue is an under-falsified plan-only gray zone, which is not strong enough to justify a harness-change search.
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
# Evaluación Iteración 019 — handoff routing audit
|
|
2
|
+
|
|
3
|
+
Fecha: 2026-05-30
|
|
4
|
+
Iteración: `iteration-019-handoff-routing-audit`
|
|
5
|
+
Estado: audit-only / sin cambios de harness
|
|
6
|
+
|
|
7
|
+
## 1. Objetivo evaluado
|
|
8
|
+
|
|
9
|
+
Cerrar la auditoría de routing en mensaje libre con evidencia de **handoff real** por árbol completo, priorizando `raw/execution-trees.jsonl` y sesiones hijas reales sobre intención declarada.
|
|
10
|
+
|
|
11
|
+
## 2. Escenarios ejecutados
|
|
12
|
+
|
|
13
|
+
1. Revisión del corpus staged refrescado (`12` árboles aceptados).
|
|
14
|
+
2. Replay libre pequeño/claro/bajo riesgo.
|
|
15
|
+
3. Replay libre con incertidumbre técnica.
|
|
16
|
+
4. Replay libre plan/spec sin implementación.
|
|
17
|
+
5. Control negativo de sidecars en flujo libre normal.
|
|
18
|
+
|
|
19
|
+
## 3. Resultados por escenario
|
|
20
|
+
|
|
21
|
+
| Escenario | Resultado | Intento declarado | Handoff real observado | Evidencia principal |
|
|
22
|
+
| --- | --- | --- | --- | --- |
|
|
23
|
+
| Libre pequeño / claro / low-risk | pass | Sí, en árboles históricos 1-3 | Sí, `lead -> developer` en árbol 9 | `raw/execution-trees.jsonl` root `ses_18789c0caffelJSfGS4vk1i5JK` |
|
|
24
|
+
| Libre con incertidumbre técnica | pass | Sí, en árbol histórico 4 | Sí, `lead -> researcher` en árbol 10 | `raw/execution-trees.jsonl` root `ses_18787a760ffe1U82oRHHZIL3Me` |
|
|
25
|
+
| Libre plan/spec sin implementación | pass provisional / no regresión confirmada | Sí, en árbol histórico 5 | Sí: histórico `lead -> researcher -> specifier` en árbol 6; replay natural `lead -> researcher` + clarificación en árbol 11 | `raw/execution-trees.jsonl` roots `ses_187dfda06ffeY8Q50Sii1mVjuH`, `ses_187853007ffe2CO4PSgvPBZBlJ` |
|
|
26
|
+
| Control negativo sidecars | pass | n/a | Sí: no sidecars en árboles libres 1-11; sidecars solo en `/evolve` árbol 12 | `raw/execution-trees.jsonl` |
|
|
27
|
+
|
|
28
|
+
### Escenario 1 — libre pequeño / claro / low-risk
|
|
29
|
+
|
|
30
|
+
- **Histórico staged**
|
|
31
|
+
- Árboles 1-3: prompts pequeños y claros.
|
|
32
|
+
- `lead` declara fast-path hacia `developer`, pero **no hay child session**.
|
|
33
|
+
- Clasificación: **declared intent only**.
|
|
34
|
+
- **Replay natural con handoff real**
|
|
35
|
+
- Prompt: `Please add a short "Working draft" note at the top of docs/ai/evolution/runs/iteration-019-handoff-routing-audit/evaluation.md and run the cheapest relevant check.`
|
|
36
|
+
- Árbol 9 (`ses_18789c0caffelJSfGS4vk1i5JK`): primer child real `developer` (`ses_18789753fffeUApXwoki4kr2jc`).
|
|
37
|
+
- Clasificación: **real handoff observed**.
|
|
38
|
+
- Nota metodológica: este replay editó el propio artefacto de evaluación de la iteración. Sirve para confirmar `lead -> developer`, pero no es una forma ideal de benchmark y no debería repetirse así en futuros audits.
|
|
39
|
+
- **Veredicto**
|
|
40
|
+
- No hay regresión confirmada de wrong-first-handoff.
|
|
41
|
+
- El primer handoff real observado para este escenario es `developer`, coherente con contrato.
|
|
42
|
+
|
|
43
|
+
### Escenario 2 — libre con incertidumbre técnica
|
|
44
|
+
|
|
45
|
+
- **Histórico staged**
|
|
46
|
+
- Árbol 4: `lead` declara `researcher` primero, pero **sin child session**.
|
|
47
|
+
- Clasificación: **declared intent only**.
|
|
48
|
+
- **Replay natural con handoff real**
|
|
49
|
+
- Prompt: `I want to add session-source filtering by execution-tree root in this repo, but I am not sure which existing data contracts already support it. Can you investigate the current support and recommend the smallest path forward?`
|
|
50
|
+
- Árbol 10 (`ses_18787a760ffe1U82oRHHZIL3Me`): primer child real `researcher` (`ses_1878740fbffePUjEBuO5dlm5qi`).
|
|
51
|
+
- Clasificación: **real handoff observed**.
|
|
52
|
+
- **Veredicto**
|
|
53
|
+
- No hay regresión confirmada.
|
|
54
|
+
- El primer handoff real observado para incertidumbre técnica es `researcher`, coherente con contrato.
|
|
55
|
+
|
|
56
|
+
### Escenario 3 — libre plan/spec sin implementación
|
|
57
|
+
|
|
58
|
+
- **Histórico staged**
|
|
59
|
+
- Árbol 5: intención declarada de ir por research; sin child session.
|
|
60
|
+
- Árbol 6 (`ses_187dfda06ffeY8Q50Sii1mVjuH`): handoff real `lead -> researcher -> specifier`.
|
|
61
|
+
- Clasificación: **both** (hay intención declarada y handoff real en corpus).
|
|
62
|
+
- **Replay natural**
|
|
63
|
+
- Prompt: `I want to tighten free-message routing for small requests in this repo. Please give me an implementation-ready plan with acceptance criteria, but do not edit files yet.`
|
|
64
|
+
- Árbol 11 (`ses_187853007ffe2CO4PSgvPBZBlJ`): primer child real `researcher` (`ses_18784d61effe5F21BNPh4S7jCx`), sin `developer`; el árbol se detiene en una clarificación explícita sobre la política de plan-only.
|
|
65
|
+
- Clasificación: **real handoff observed**, pero **specifier no confirmado en este replay** por gate de clarificación.
|
|
66
|
+
- **Veredicto**
|
|
67
|
+
- Secuencia observada es **coherente** con contrato: no hay implementación prematura ni desvío a `developer`.
|
|
68
|
+
- El corpus ya contiene evidencia real suficiente de `researcher -> specifier`; el replay natural añade evidencia de que ante ambigüedad real el flujo puede detenerse en clarificación tras `researcher` sin constituir regresión.
|
|
69
|
+
- Este escenario queda como **pass provisional / no regresión confirmada**, no como cierre fuerte del path `researcher -> specifier` en replay natural actual.
|
|
70
|
+
|
|
71
|
+
### Escenario 4 — control negativo sidecars
|
|
72
|
+
|
|
73
|
+
- Árboles libres normales revisados: 1-11.
|
|
74
|
+
- En esos árboles no aparecen `evaluator`, `debugger` ni `evolver`.
|
|
75
|
+
- Los sidecars aparecen solo en el árbol 12, cuyo prompt contiene `/evolve` de forma explícita.
|
|
76
|
+
- **Veredicto:** no se observa sidecar overreach en flujo libre normal.
|
|
77
|
+
|
|
78
|
+
## 4. Comandos o pasos usados
|
|
79
|
+
|
|
80
|
+
### Recolección / refresco de evidencia
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
node scripts/collect-session-evidence.mjs --iteration iteration-019-handoff-routing-audit
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### Replays usados como evidencia principal
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
opencode run --format json --thinking --dir <harness-repo> 'Please add a short "Working draft" note at the top of docs/ai/evolution/runs/iteration-019-handoff-routing-audit/evaluation.md and run the cheapest relevant check.'
|
|
90
|
+
|
|
91
|
+
opencode run --format json --thinking --dir <harness-repo> 'I want to add session-source filtering by execution-tree root in this repo, but I am not sure which existing data contracts already support it. Can you investigate the current support and recommend the smallest path forward?'
|
|
92
|
+
|
|
93
|
+
opencode run --format json --thinking --dir <harness-repo> 'I want to tighten free-message routing for small requests in this repo. Please give me an implementation-ready plan with acceptance criteria, but do not edit files yet.'
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Exploratorios no usados como evidencia primaria
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
opencode run --format json --thinking --dir <harness-repo> "Can you take a quick pass on renaming getCwd to getCurrentWorkingDirectory in this repo and tell me the exact files and checks it would touch before you change anything?"
|
|
100
|
+
|
|
101
|
+
opencode run --format json --thinking --dir <harness-repo> "Can you take care of a small mechanical rename in this repo: ..."
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Estos dos árboles (7-8) no aportaron child session real útil para los criterios y quedaron como evidencia secundaria/inconclusa.
|
|
105
|
+
|
|
106
|
+
### Validaciones explícitamente no ejecutadas
|
|
107
|
+
|
|
108
|
+
- `node scripts/check-harness.mjs` — **not_run**; no fue necesario para sostener claims de routing porque no hubo edición de harness.
|
|
109
|
+
- `node --test scripts/check-harness.test.mjs` — **not_run**; mismo motivo.
|
|
110
|
+
|
|
111
|
+
## 5. Evidencia y rutas relevantes
|
|
112
|
+
|
|
113
|
+
- Artefacto primario: `docs/ai/evolution/runs/iteration-019-handoff-routing-audit/raw/execution-trees.jsonl`
|
|
114
|
+
- Soporte: `docs/ai/evolution/runs/iteration-019-handoff-routing-audit/raw/normalized-sessions.jsonl`
|
|
115
|
+
- Cursor: `docs/ai/evolution/runs/iteration-019-handoff-routing-audit/raw/cursor.json`
|
|
116
|
+
- Fuentes: `docs/ai/evolution/runs/iteration-019-handoff-routing-audit/raw/session-sources.summary.json`
|
|
117
|
+
|
|
118
|
+
Árboles clave:
|
|
119
|
+
|
|
120
|
+
- 6: `ses_187dfda06ffeY8Q50Sii1mVjuH` — histórico real `lead -> researcher -> specifier`
|
|
121
|
+
- 9: `ses_18789c0caffelJSfGS4vk1i5JK` — replay pequeño real `lead -> developer`
|
|
122
|
+
- 10: `ses_18787a760ffe1U82oRHHZIL3Me` — replay incertidumbre real `lead -> researcher`
|
|
123
|
+
- 11: `ses_187853007ffe2CO4PSgvPBZBlJ` — replay plan-only real `lead -> researcher`, luego clarificación
|
|
124
|
+
- 12: `ses_187e87c10ffeX7D3RJDZhOktUz` — `/evolve`, usado solo como contraste para sidecars justificados
|
|
125
|
+
|
|
126
|
+
## 6. Regresiones observadas
|
|
127
|
+
|
|
128
|
+
- **Ninguna regresión confirmada** bajo el umbral pedido.
|
|
129
|
+
- No hay evidencia de:
|
|
130
|
+
- wrong-first-handoff real en los escenarios auditados;
|
|
131
|
+
- sidecar overreach en mensaje libre normal;
|
|
132
|
+
- secuencia incoherente en árbol natural completo.
|
|
133
|
+
|
|
134
|
+
## 7. Limitaciones
|
|
135
|
+
|
|
136
|
+
- El corpus staged original era insuficiente para cerrar los escenarios 1 y 2 con handoff real; por eso se añadieron replays.
|
|
137
|
+
- Dos replays útiles para escenarios 1 y 2 terminaron por timeout del comando CLI antes de imprimir cierre completo, pero el collector posterior confirmó los child sessions reales en `execution-trees.jsonl`.
|
|
138
|
+
- El replay natural de plan-only (árbol 11) no llegó a `specifier`; se detuvo en una clarificación real. La cobertura de `researcher -> specifier` queda sostenida por el árbol histórico 6.
|
|
139
|
+
- Los prompts de replay son naturales pero siguen siendo prompts de auditoría deliberadamente escogidos; no sustituyen una muestra amplia de tráfico real de usuarios.
|
|
140
|
+
- El replay small/low-risk editó `evaluation.md` de la propia iteración; se acepta aquí solo como prueba de handoff real `lead -> developer`, pero futuros benchmarks deberían usar archivos neutrales para no mezclar benchmark y artefacto auditado.
|
|
141
|
+
|
|
142
|
+
## 8. Handoff para debugger / reviewer
|
|
143
|
+
|
|
144
|
+
- Estado recomendado: **stop at audit** salvo que se quiera atribución más fina sobre el gate de clarificación en plan-only libre.
|
|
145
|
+
- Si `debugger` continúa, el único foco razonable es:
|
|
146
|
+
- explicar por qué el replay plan-only natural se quedó en `researcher + clarificación` mientras el corpus ya contiene un árbol real `researcher -> specifier`.
|
|
147
|
+
- No hay base suficiente para abrir defecto de routing.
|
|
148
|
+
|
|
149
|
+
## session_sources
|
|
150
|
+
|
|
151
|
+
| source | discovered | accepted | skipped | skip_reasons |
|
|
152
|
+
| --- | ---: | ---: | ---: | --- |
|
|
153
|
+
| `local-opencode-db` | 404 | 404 | 0 | `{}` |
|
|
154
|
+
| `external-opencode-raw` | 438 | 183 | 255 | `{"empty_array":255}` |
|
|
155
|
+
|
|
156
|
+
## execution trees
|
|
157
|
+
|
|
158
|
+
- trees evaluadas: `12`
|
|
159
|
+
- cursor start: `time_updated_max=1780131310220`, `root_session_id=ses_187e87c10ffeX7D3RJDZhOktUz`
|
|
160
|
+
- cursor end: `time_updated_max=1780137866103`, `root_session_id=ses_187e87c10ffeX7D3RJDZhOktUz`
|
|
161
|
+
- roots nuevas o actualizadas revisadas: `6`
|
|
162
|
+
- nuevas: árboles 7-11
|
|
163
|
+
- actualizada: árbol 12 (`/evolve`)
|
package/opencode/docs/ai/evolution/runs/iteration-020-loop-engineering-command/analysis/overview.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Debugger Overview — iteration-020-loop-engineering-command
|
|
2
|
+
|
|
3
|
+
## Evidencia analizada
|
|
4
|
+
|
|
5
|
+
- Petición y plan aprobado para adaptar Loop Engineering como comando manual.
|
|
6
|
+
- Contratos existentes de `/feature`, `/plan`, `lead`, `developer` y `reviewer`.
|
|
7
|
+
- Skills existentes `autonomous-loops` y `verification-loop`.
|
|
8
|
+
- RED/GREEN de las pruebas negativas de `check-harness`.
|
|
9
|
+
- `preflight-audit.json`, capturado después del RED/GREEN inicial.
|
|
10
|
+
|
|
11
|
+
## Root cause
|
|
12
|
+
|
|
13
|
+
El harness ya tenía las piezas necesarias para ejecutar un maker/checker, pero no
|
|
14
|
+
una entrada que las compusiera como loop manual, acotado, reanudable y con estado
|
|
15
|
+
durable. Usar `/feature` repetidamente dejaba el límite, el gate y la continuidad
|
|
16
|
+
entre invocaciones como convenciones implícitas.
|
|
17
|
+
|
|
18
|
+
La solución pertenece al nivel `command`: un prompt fino puede componer agentes y
|
|
19
|
+
skills existentes. Crear un agente, una skill o un motor nuevo duplicaría
|
|
20
|
+
responsabilidades y aumentaría el coste de orquestación.
|
|
21
|
+
|
|
22
|
+
## Fix previsto
|
|
23
|
+
|
|
24
|
+
- Añadir `/loop` con aprobación explícita antes de escrituras.
|
|
25
|
+
- Limitar cada invocación a tres iteraciones.
|
|
26
|
+
- Persistir el contrato y la evidencia en `.opencode/loops/<slug>.md`.
|
|
27
|
+
- Reservar la aprobación a `reviewer` y mantener `developer` como único escritor.
|
|
28
|
+
- Hacer worktrees opt-in y excluir automatización, auto-merge y conectores de
|
|
29
|
+
escritura de la primera versión.
|
|
30
|
+
|
|
31
|
+
## Riesgos
|
|
32
|
+
|
|
33
|
+
- Un contrato largo puede añadir overhead a tareas demasiado pequeñas.
|
|
34
|
+
- Un checker basado en marcadores puede validar presencia sin demostrar conducta
|
|
35
|
+
runtime.
|
|
36
|
+
- El checkout actual requiere proteger cambios locales y parar ante solapamientos.
|
|
37
|
+
|
|
38
|
+
## Atribución
|
|
39
|
+
|
|
40
|
+
El cambio es nuevo y aislado. No altera los contratos base de `/feature`, `/plan`
|
|
41
|
+
ni el routing por defecto; añade una entrada explícita para quien solicita este
|
|
42
|
+
tipo de loop.
|