Skip to content

docs(designs): multi-agent wave plan — honest install, unattended autoplan, queue-aware ship, cheap-first gates - #3113

Merged
capy-ai[bot] merged 2 commits into
mainfrom
capy/multi-agent-wave-plan
Oct 10, 2026
Merged

capy-ai[bot] merged 2 commits into
mainfrom
capy/multi-agent-wave-plan

Conversation

@garrytan

Copy link
Copy Markdown
Owner

Design document only; no product code, no VERSION/CHANGELOG stamp (nothing ships to users).

What this is

docs/designs/MULTI_AGENT_WAVE_2026_10_10.md is the reviewed implementation plan for making gstack work for parent agents running it on ephemeral Capy machines, derived from the 28-thread gbrain feedback (13 of 28 threads never used gstack). It covers:

  • Honest install (PR A): gstack-doctor --check as a one-line, exit-coded verdict a parent can grep; the Capy installer moved into the repo with Bun/Node/jq preflight; durable state root opt-in with a GSTACK_LAUNCH: line.
  • Unattended autoplan (PR B-core, B-runner): a fourth unattended session kind, one versioned artifact contract (run.json, decisions.jsonl, findings.jsonl, tasks.jsonl, timing.json) with a validator, a next/submit state machine for host-dispatched reviewers, a pluggable outside voice (a cross-family subagent counts as a full outside voice, model recorded), spend ledger, gate list that is written but never auto-approved.
  • Queue-aware ship and the pre-gate (PR C-stamp, C-pregate): stamp-at-merge policy with gstack-restamp, tree receipt with per-gate equivalence, portable evidence bundle, gstack-pregate with two timed stages and incident fixtures.
  • Plan rows, sideways review, investigate recipes (PR D) and /eval-plan, coordination tools, owner brief (PR E), tiered behind an adoption gate (P7).

How it was reviewed

Autoplan ran on this Capy machine with no Claude Code harness: CEO, DX and Eng phases, each with a native Claude reviewer and an outside gpt-6-astra reviewer (Codex CLI) on the same snapshot, reconciled finding by finding. 65 findings, 64 accepted, 1 partially accepted, 0 rejected. The review record, consensus tables and reconciliations are in the same file; the six reviewer reports and the B0 file set (hand-written this once, since the tooling that writes them is what PR B builds) are in docs/designs/multi-agent-wave-2026-10-10/.

Deviations stated in the record: Spec Review Loop not run, no review-log rows (ephemeral state root), publication-hook guard not enforced (no hooks on this host).

What the owner decides

The plan ends at a gate: UC1 and D1–D12, each with a recommendation. Reply grammar is in the plan (all, <id><option>, all except …). Nothing is implemented until the gate is answered.

Checks run: test/docs-config-keys.test.ts, test/no-stale-gstack-brain-refs.test.ts, test/spawnsync-timeout-tripwire.test.ts (9 pass), secret-pattern grep clean.

Open in Capy

…artifacts

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@trunk-io

trunk-io Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

@github-actions

Copy link
Copy Markdown
Contributor

E2E Evals: ✅ PASS

[test:paid] VERDICT GREEN — lane gate/pr, attempt 1
  rule 0/0 · behavior 0/0 · judge 0/0 · quarantined 0 (0 failing the lane)
  SKIPPED 0 · INFRA 0 · INCOMPLETE 0 · unattributed 0 · ACTION REQUIRED 0
  wall 0m00s · cost $0.00

0 executed, 0 reused rule/judge records | 0 manual accepted (unscored; no score-cache credit) | $0 rule/judge cost | reconcile exit: 0

Profile: pr / mode pr; selected behaviors: 0, judges: 0. Deferred to scheduled/release coverage: 0 behaviors and 0 changed prompt files. Deferred checks did not run and receive no PR-pass credit.

Rule and judge shards
Shard Automated result Manual/unscored Executed Reused Status Cost
Fail-closed reconciliation
[test:paid] report: 1/1 slices, 0 planned shards, tier=gate, attempt 1
[test:paid] coverage: profile=pr mode=pr; selected E2E=0, judges=0
[test:paid] deferred: 0 broad behaviors, 0 changed prompts without quick live coverage; these are not PR passes
[test:paid] collector final outcomes: 0 executed, 0 reused; 0 passed, 0 failed, 0 manual accepted (unscored; no score-cache credit) (0 attempt records from 0 collectors; every record counts)
[test:paid] VERDICT GREEN — lane gate/pr, attempt 1
  rule 0/0 · behavior 0/0 · judge 0/0 · quarantined 0 (0 failing the lane)
  SKIPPED 0 · INFRA 0 · INCOMPLETE 0 · unattributed 0 · ACTION REQUIRED 0
  wall 0m00s · cost $0.00
[test:paid] report: every planned shard accounted and passed

Sliced lane: planner → duration-packed executors → fail-closed report. Behavior cases run a pre-registered 3-trial panel (PASS at 2/3 with no contract violation); a PASS 2/3 is shown with its failed trial, never as a clean pass. Reused results retain their original provenance and expiry.

…l recommended options)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot merged commit dfccf5a into main Oct 10, 2026
47 checks passed
@capy-ai
capy-ai Bot deleted the capy/multi-agent-wave-plan branch October 10, 2026 23:25
levi85 pushed a commit to levi85/gstack that referenced this pull request Oct 14, 2026
…oplan, queue-aware ship, cheap-first gates (garrytan#3113)

* docs(designs): multi-agent wave plan with autoplan review record and artifacts

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* docs(designs): record owner approval of the multi-agent wave gate (all recommended options)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

---------

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant