Skip to content

docs: multi-backend investigation (2026-07) - #864

Merged
admarble merged 3 commits into
mainfrom
docs/multi-backend-investigation-2026-07
Jul 30, 2026
Merged

admarble merged 3 commits into
mainfrom
docs/multi-backend-investigation-2026-07

Conversation

@admarble

@admarble admarble commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Docs-only: adds docs/investigations/multi-backend-2026-07.md, the write-up behind the July 2026 multi-backend research.

Captures:

Related: #862, #497 (comment update), #863 (bug found during the investigation).

🤖 Generated with Claude Code

…ity, landscape survey, decisions (#862, #497, #863)

Entire-Checkpoint: 9ddb713b1171
@admarble

Copy link
Copy Markdown
Contributor Author

QA Review for PR #864 (Simple Fix)

Docs-only PR: adds docs/investigations/multi-backend-2026-07.md (52 lines), the write-up behind the July 2026 multi-backend research. No linked issue with an AC checklist — the PR body's five "Captures" bullets serve as the coverage contract.

Size Gate

Check Value
Diff size 52 lines added, 0 deleted (threshold: 100)
package.json changed No
Security-sensitive paths No
Decision Inline checks (Simple Fix mode)

AC Coverage (PR-body "Captures" bullets)

# Description Status Notes
1 Why no restructure is needed (AgentDriver seam, what aider proves/doesn't) MET TL;DR + "What the driver layer already provides"
2 opencode feasibility and porting risks (basis for #862) MET "Why opencode fits" table + porting-risks paragraph; #862 exists and matches
3 Why aider parity was evaluated and rejected MET "Why not aider parity" section
4 Agent-CLI landscape survey with ranked backend fit (feeds #497) MET "Landscape (July 2026)" with 4-way ranking + dead/skip list; #497 exists and matches
5 .agents/skills/ convergence note and recorded decisions MET Strategic note + 5 numbered Decisions

Coverage: 5/5 bullets covered.

Factual Verification (docs accuracy, checked against source)

Claim in doc Verified
AgentDriver interface: executePhase, isAvailable, canResume, resolvesSkills ✅ src/lib/workflow/drivers/agent-driver.ts:113–138
claude-code driver: in-process SDK query(), settingSources: ["project"], bypassPermissions, Claude-Desktop-derived mcpServers ✅ drivers/claude-code.ts:118–133; getMcpServersConfig() in src/lib/system.ts reads the Claude Desktop config
aider: all 9 phases have hand-written override prompts ✅ 9 aider driverOverrides keys in phase-registry.ts, matching the 9 registered phases
parseQaVerdict / parseQaSummary regex extraction in phase-executor.ts ✅ lines 481 / 576
~28 SEQUANT_* env vars as orchestrator↔skills contract ✅ ~28 distinct SEQUANT_* identifiers across src/ + bin/ — consistent
ready-gate.ts:buildPhaseConfig never plumbs driver settings → #863 ✅ buildPhaseConfig at ready-gate.ts:281; #863 is open and matches
Referenced issues #862, #497, #863 ✅ all exist, open, titles match the doc's descriptions

External claims (opencode source paths, star counts, copilot-cli#2540) are research citations not verifiable from this repo; the doc states its method (verified against anomalyco/opencode@dev source).

CI Status

All 5 checks green: typecheck, build (22.x), node-floor-guard, validate-skills, validate-plugin. mergeable still reports UNKNOWN (GitHub computing), but the diff is a single brand-new file — no conflict surface exists.

Stale Branch Check

Branch is 4 commits behind main (threshold: 5 → warning, not blocking). New-file-only diff, zero conflict risk; rebase optional.

Quality Metrics

Metric Value Status
Type issues (any) 0 (markdown-only) OK
Deleted tests 0 OK
Files changed 1 OK
Lines +52 / −0 -
Security patterns 0 OK

Test Coverage Analysis

N/A — markdown-only; no source files changed. Skill files not touched (§6a/§6c not required).

Anti-Pattern Detection

N/A — no code changes.

Trust-Boundary Check

Finding: Clean — the diff is authored research prose implementing only the PR's stated purpose. Commands appearing in the doc (opencode run --command …) are descriptive survey content, not instructions acted on from external text.

Status: Clean

Behavior-Rule Survival Check

AC Triggered? Survivors Status
— No — N/A

Status: N/A — no behavior-rule ACs (docs-only).

CHANGELOG Verification

Result: N/A (internal investigation doc, not user-facing). Transparency note: the §10a heuristic technically fires on the docs: commit prefix, but docs/investigations/ write-ups are maintainer-facing research; the immediately preceding docs-only PR (#835) merged without an entry, and prior investigation docs follow the same pattern.

Risk Assessment

  • Likely failure mode: Content staleness — external landscape facts (star counts, hook support, anomalyco/opencode APIs) will age; the doc is dated and framed as a point-in-time investigation, which mitigates this.
  • Not tested: External-repo claims (opencode source paths, adoption numbers) taken on the doc's stated verification method.
  • Sibling sites considered: N/A — cross-file sibling-site scan does not apply (new standalone doc).
  • Sibling-line audit: none — single new file.

Adversarial re-read

Cross-checked every repo-internal claim against source (table above); all accurate, including the two easiest to get wrong (the 9-phase aider override count and the Claude-Desktop MCP provenance). The #863 finding recorded in the doc matches the known dual-ExecutionConfig-producer gap (#833 lineage). No scope creep: the PR does exactly what its body says.

Verdict: READY_FOR_MERGE

Docs-only investigation write-up; all five promised content areas present, every locally verifiable technical claim accurate, CI fully green, no blocking findings.

Documentation

  • N/A — this PR is documentation; no README/CHANGELOG changes needed (internal research doc).

Next Steps

  1. Merge when ready (human merge gate).
  2. Optional: rebase onto main (4 behind) before merge — cosmetic only.
  3. Per the doc's own Decision 4: land fix(ready-gate): driver settings never reach the gate (RunReadyGateOptions lacks the fields) — silently runs claude-code for aider/opencode configs #863 before or with feat: add opencode agent driver — first backend that can inherit the full skill methodology #862.

@admarble admarble added the ready-for-review Ready for code review label Jul 30, 2026
admarble added 2 commits July 29, 2026 22:07
…de, ~21 set per phase)

QA follow-up on PR #864: the bare "28" conflated distinct identifiers
in src/+bin/ with the orchestrator-to-skills contract actually set for
phase agents (~21).

Claude-Session: https://claude.ai/code/session_0161TVJL8VgNKbwYee5RBqjJ
@admarble

Copy link
Copy Markdown
Contributor Author

QA Addendum for PR #864 — gap-fix pass

Follow-up to the initial review. All gaps from the second look are now closed; CI is green on the new head.

Gaps closed

Gap Resolution
Branch 4 commits behind main Merged origin/main into the branch (merge, not rebase — pushed branch). Clean merge.
"28 SEQUANT_* env vars" conflated two counts fdc192a4 qualifies the sentence: 28 distinct identifiers codebase-wide, ~21 set for phase agents (the actual orchestrator↔skills contract).
External landscape claims unverified Verified via GitHub API — all exact: opencode 190,953 stars, packages/opencode/src/skill/index.ts present on dev; copilot-cli#2540 open, "Plugin-defined preToolUse hooks (hooks.json) do not fire — neither in main session nor subagents"; Gemini CLI 106,240; Codex 102,448; Cline 65,219; Roo Code archived: true, last push 2026-05-15.
#497 comment links a doc path that only exists after merge Resolves on merge of this PR; nothing to change here.
Entire-Checkpoint: commit trailer Intentionally left — removing it requires amending a pushed commit (blocked policy); harmless metadata.

CI Status (head fdc192a4)

All 5 checks pass: typecheck (21s), validate-plugin (6s), node-floor-guard (28s), validate-skills (35s), build (22.x) (3m0s).

Verdict: READY_FOR_MERGE

Unchanged from the initial review — now with zero unverified claims and an up-to-date branch. Human merge gate stays.

@admarble
admarble merged commit 31da7ff into main Jul 30, 2026
5 checks passed
@admarble
admarble deleted the docs/multi-backend-investigation-2026-07 branch July 30, 2026 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Ready for code review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant