Skip to content

v1.91.72.0 feat(autoplan): unattended runner gstack-autoplan next|submit, pluggable outside voice, review checklists, spec-loop cap (multi-agent wave B-runner) - #3117

Merged
capy-ai[bot] merged 6 commits into
mainfrom
capy/v191720-feat-b-runner
Oct 11, 2026
Merged

capy-ai[bot] merged 6 commits into
mainfrom
capy/v191720-feat-b-runner

Conversation

@garrytan

Copy link
Copy Markdown
Owner

Multi-agent wave B-runner (plan: docs/designs/MULTI_AGENT_WAVE_2026_10_10.md, items B2, B3, B4, B8, B11), on top of B-core (#3115) and PR A (#3116), both on main.

What a parent agent gets

  • bin/gstack-autoplan over lib/autoplan-run.ts + lib/autoplan-state.ts as an explicit durable state machine. next --out <dir> prepares the phase (snapshot, methodology, prompt), persists dispatch intent with an attempt id, prints voice / prompt path / expected result path / required model family and exits GSTACK_RESULT: status=awaiting_result; submit --phase --voice --result --model --attempt validates the full-read receipt, canonical findings and model family, binds the hash into run.json atomically, runs the B11 reconciliation and phase-close, and advances. status, export, answer --gate-rev --reply (stale/unparsed/conflicting replies write nothing; a scope-changing non-recommended choice reopens only the dependent phases, Eng last; all finalizes with no new attempts), resume (exclusive ownership; EXECUTION_UNKNOWN for an attempt with intent but no terminal record; never auto-redispatches), run (in-process loop, typechecked only). autoplan/sections/unattended.md profile; docs/unattended.md has the parent loop, the RESULT FORMAT contract and the runner table.
  • bin/gstack-outside-voice run --runner codex-cli|api|host-subagent over lib/outside-voice-runner.ts with one adapter interface (capabilities, input digest, actual model metadata, cancellation, terminal result, usage); api is labeled supplied-input review unless it runs a repo tool loop; host-subagent accepts a cross-family subagent's result file and records the model, enforcing the same-family rule. bin/gstack-codex-login from OPENAI_API_KEY.
  • lib/spend-ledger.ts: atomic spent + reserved + next_estimate <= cap under a file lock; reservations retained after a crash; host-subagent spend unknown.
  • Checklists (B4): sections/checklist.md.tmpl in the four plan review skills (27–34 lines) with an output → producing-section → scope table; manifests gain optional scope (default always) and runner_only, the passive note updated; the runner is the only consumer, prints Skipped sections: <ids> (scope: …), and loads the deep section whenever scope is uncertain.
  • Spec-review loop at the cap (B8): gstack-office-hours-review finalize [--fixes] lists numbered gaps and records issues verified: k of N (deterministic, never a verdict, never a fourth launch) or N fixes unconfirmed + Decision: spec not re-verified.
  • Reconciliation (B11): lib/autoplan-reconcile.ts computes consensus from canonical finding ids (confirmed / disagree / new); the Eng prompt refuses without prior consensus (CONSENSUS_MISSING).
  • lib/headless-artifacts.ts: ackRun under withFileLock (exactly-once ack); native_counterpart nullable.

Proof

The wave plan itself ran end to end on a Capy machine with no Claude Code harness: gstack-autoplan next --light → fixture reviewers → 4× PHASE_CLOSED → status=gate_pending → export → gstack-artifact validate = ARTIFACT_VALID: run=run-20261010235526 status=gate_pending; jq 'select(.status=="pending")' lists the gate items; plan.md opens with ## URGENT, outside this plan.

Validation

typecheck, typecheck:test (no new), gen:skill-docs --host all idempotent, parity (plan-ceo-review headroom 110 B, plan-eng 265, office-hours 383, autoplan 65 after trimming Phase 0 output and the gate prose; ship/review/qa unchanged), module-size ratchet (12 modules registered), troubleshooting anchors, free-fixtures, egress wiring, carve guards, section manifests, Codex-pinned tests. New suites: autoplan-run-recovery 9, autoplan-run-concurrency 4, autoplan-answer-invalidation 5, review-checklists 10, outside-runner-contract 12, spend-ledger 6; office-hours-review 77 and office-hours-completion 134 pass. Final focused run post-merge: 1040 pass / 0 fail. test:quick leftovers (Chromium-less image, PTY, CSO core) reproduce on the unmodified merge base.

Deferred

The rendered Codex prose still shells to codex directly (scripts/resolvers/outside-voice-steps.ts); naming bin/gstack-outside-voice there touches 21 Codex-pinned tests and ship/review byte budgets, so it ships separately. Plan corrections: B8's spec-review.ts:182-192 is actually :191-201 (CEO stop rules) with the office-hours loop at :32-141; export lives in bin/gstack-autoplan, not the frozen snapshot bin.

Version 1.91.72.0 (PATCH, clean bump from base).

Open in Capy

garrytan and others added 4 commits October 10, 2026 22:59
…nd, findings-derived review log, gate list

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

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…utside voice, review checklists, spec-loop cap

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

trunk-io Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

…ps runner-only sections, fixture env spelling

- lib/spend-ledger.ts: create the lock by linking a complete temp file so a
  contender never reads an empty lock and breaks a live owner (CI admitted 20
  of a cap of 8 under contention); unreadable locks break only by mtime age.
- test/helpers/workflow-judge-input.ts: exclude manifest runner_only sections
  (the B4 checklists) from the judge bundle; the judge rates the interactive
  workflow. test/workflow-judge-input.test.ts expects the same set.
- test/helpers/autoplan-run-fixture.ts: spell the runner's session kind
  without the literal the free-suite environment scan rejects.

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

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

Copy link
Copy Markdown
Contributor

E2E Evals: ❌ FAIL

[test:paid] VERDICT RED — lane gate/pr, attempt 1
  rule 107/108 · behavior 0/0 · judge 24/24 · quarantined 0 (0 failing the lane)
  SKIPPED 0 · INFRA 0 · INCOMPLETE 0 · unattributed 0 · ACTION REQUIRED 2
  wall 8m30s · cost $91.14 known + 54 of 132 trial(s) cost unknown

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

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

Derived dependents (scripts/pr-dependencies.ts):

  • bin/gstack-autoplan: 227 case(s), 24 judge(s)
  • bin/gstack-codex-login: 227 case(s), 24 judge(s)
  • bin/gstack-doctor-components.sh: 227 case(s), 24 judge(s)
  • bin/gstack-outside-voice: 227 case(s), 24 judge(s)
  • lib/autoplan-export.ts: 227 case(s), 24 judge(s)
  • lib/autoplan-gate.ts: 227 case(s), 24 judge(s)
  • lib/autoplan-prompts.ts: 227 case(s), 24 judge(s)
  • lib/autoplan-reconcile.ts: 227 case(s), 24 judge(s)
  • lib/autoplan-run.ts: 227 case(s), 24 judge(s)
  • lib/autoplan-state.ts: 227 case(s), 24 judge(s)
  • lib/headless-artifacts.ts: 227 case(s), 24 judge(s)
  • lib/outside-voice-api.ts: 227 case(s), 24 judge(s)
  • lib/outside-voice-runner.ts: 227 case(s), 24 judge(s)
  • lib/result-codes.ts: 227 case(s), 24 judge(s)
  • lib/spec-review-cap.ts: 94 case(s), 5 judge(s)
  • lib/spend-ledger.ts: 227 case(s), 24 judge(s)
Rule and judge shards
Shard Automated result Manual/unscored Executed Reused Status Cost
e2e/skill-e2e-workflow 4/4 0 4 0 ✅ $2.95
e2e-deploy/skill-e2e-deploy--land-and-deploy-workflow 1/1 0 1 0 ✅ $1.4
e2e-safety-codex-consult/skill-e2e-safety-codex-consult 1/1 0 1 0 ✅ $0.94
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-stale-before 1/1 0 1 0 ✅ $1.31
e2e-review-attribution/skill-e2e-review-attribution 3/3 0 3 0 ✅ $0.9
e2e/skill-e2e-shared-libs--shared-libs-review-lifecycle 1/1 0 1 0 ✅ $2.45
e2e-qa-workflow/skill-e2e-qa-workflow--qa-quick 1/1 0 1 0 ✅ $1.73
e2e/skill-e2e-shared-libs-paths--shared-libs-review-prior-coverage 1/1 0 1 0 ✅ $2.76
e2e/skill-e2e-ship-skip 1/1 0 1 0 ✅ $0.54
e2e-qa-callers/skill-e2e-qa-callers--review-exploratory-small-cli 1/1 0 1 0 ✅ $1.97
e2e/skill-e2e-test-value 3/3 0 3 0 ✅ $2.4
e2e-qa-workflow/skill-e2e-qa-workflow--qa-only-no-fix 1/1 0 1 0 ✅ $1.9
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-plan-checks 1/1 0 1 0 ✅ $1.8
e2e/skill-e2e-shared-libs--shared-libs-review-revalidation 1/1 0 1 0 ✅ $4.88
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-recovery 1/1 0 1 0 ✅ $0.98
e2e-review/skill-e2e-review 2/2 0 2 0 ✅ $1
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-failure 1/1 0 1 0 ✅ $1.46
e2e-skillify/skill-e2e-skillify 3/3 0 3 0 ✅ $2.31
e2e/skill-e2e-shared-libs-paths--shared-libs-review-path-eligibility 1/1 0 1 0 ✅ $3.88
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-current 1/1 0 1 0 ✅ $3.29
llm-judge/skill-llm-eval 24/24 0 24 0 ✅ $1.44
e2e/skill-e2e-coverage-audit 2/2 0 2 0 ✅ $1.03
e2e-deploy/skill-e2e-deploy--setup-deploy-workflow 1/1 0 1 0 ✅ $0.38
e2e-review-army/skill-e2e-review-army--review-army-perf-n-plus-one 1/1 0 1 0 ✅ $1.14
e2e/skill-e2e-shared-libs-paths--shared-libs-review-index-flags 1/1 0 1 0 ✅ $2.58
e2e/skill-e2e-investigate-owned-completion 1/1 0 1 0 ✅ $0.21
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-late-result 1/1 0 1 0 ✅ $0.97
e2e-review-army/skill-e2e-review-army--review-army-json-findings 1/1 0 1 0 ✅ $0.26
e2e-deploy/skill-e2e-deploy--benchmark-workflow 1/1 0 1 0 ✅ $0.86
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-small-cli 1/1 0 1 0 ✅ $1.79
e2e-learnings/skill-e2e-learnings 1/1 0 1 0 ✅ $0.26
e2e-deploy/skill-e2e-deploy--land-and-deploy-review-gate 1/1 0 1 0 ✅ $1.06
e2e-review-army/skill-e2e-review-army--review-army-migration-safety 1/1 0 1 0 ✅ $0.94
e2e/skill-e2e-shared-libs--shared-libs-read-only 1/1 0 1 0 ✅ $0.76
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-stale-after 1/1 0 1 0 ✅ $1.01
e2e-deploy/skill-e2e-deploy--land-and-deploy-first-run 1/1 0 1 0 ✅ $1.08
e2e-docsync-spawned/skill-e2e-docsync-spawned 1/1 0 1 0 ✅ $1.04
e2e-qa-functional-fix/skill-e2e-qa-functional-fix 2/2 0 2 0 ✅ $2.75
e2e/skill-e2e-plan--plan-review-report 1/1 0 1 0 ✅ $1.08
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-unavailable 1/1 0 1 0 ✅ $1.78
e2e-retro/skill-e2e-retro 1/1 0 1 0 ✅ $1.25
e2e-qa-functional/skill-e2e-qa-functional 1/2 0 2 0 ❌ $2.41
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-late-input 1/1 0 1 0 ✅ $2.14
e2e-cso/skill-e2e-cso 1/1 0 1 0 ✅ $1.57
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-store 1/1 0 1 0 ✅ $3.59
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-completion 1/1 0 1 0 ✅ $3.88
e2e-design/skill-e2e-design--design-review-detector-shim-dom 1/1 0 1 0 ✅ $0.8
e2e/skill-e2e-shared-libs--shared-libs-unsupported-git 1/1 0 1 0 ✅ $0.53
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-missing-asset 1/1 0 1 0 ✅ $1.4
e2e-review-army/skill-e2e-review-army--review-army-quality-score 1/1 0 1 0 ✅ $0.39
e2e-safety-ship-evidence/skill-e2e-safety-ship-evidence 1/1 0 1 0 ✅ $0.47
e2e-hermetic/skill-e2e-hermetic-canary 2/2 0 2 0 ✅ $0.04
e2e-design/skill-e2e-design--design-review-plugin-handoff 1/1 0 1 0 ✅ $0.56
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-missing-marker 1/1 0 1 0 ✅ $0.45
e2e-browse/skill-e2e-bws 6/6 0 6 0 ✅ $0.89
e2e-third-party-actions/skill-e2e-third-party-actions 5/5 0 5 0 ✅ $1.2
e2e-plan-tune/skill-e2e-plan-tune 1/1 0 1 0 ✅ $0.42
e2e-session-intelligence/skill-e2e-session-intelligence 4/4 0 4 0 ✅ $0.76
e2e-safety-pair-agent/skill-e2e-safety-pair-agent 1/1 0 1 0 ✅ $0.32
e2e-design/skill-e2e-design--design-review-detector-shim 1/1 0 1 0 ✅ $0.36
e2e-qa-workflow/skill-e2e-qa-workflow--qa-bootstrap 1/1 0 1 0 ✅ $0.25
e2e-triage/skill-e2e-triage 1/1 0 1 0 ✅ $0.45
e2e/skill-e2e-ship-hook-consent 2/2 0 2 0 ✅ $0.59
e2e-review-army/skill-e2e-review-army--review-army-delivery-audit 1/1 0 1 0 ✅ $0.34
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-timeout-unsettled 1/1 0 1 0 ✅ $0.54
e2e/skill-e2e-ship-hook-refresh 1/1 0 1 0 ✅ $0.27
e2e/skill-e2e-investigate-owned-termination 2/2 0 2 0 ✅ $0.42
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-launch-failure 1/1 0 1 0 ✅ $0.47
e2e-deploy/skill-e2e-deploy--canary-workflow 1/1 0 1 0 ✅ $0.35
e2e-design/skill-e2e-design--plan-design-review-no-ui-scope 1/1 0 1 0 ✅ $0.76
Fail-closed reconciliation
skill-e2e-review-army.test.ts#review-army-perf-n-plus-one
  slice 12  passed            128s  test/skill-e2e-plan-ceo-plan-mode.test.ts
  slice 12  passed             38s  test/skill-e2e-investigate-owned-completion.test.ts
  slice 12  passed             37s  test/skill-e2e-review-army.test.ts#review-army-json-findings
  slice 13  passed            127s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-missing-asset
  slice 13  passed            127s  test/skill-e2e-plan-devex-plan-mode.test.ts
  slice 13  passed             84s  test/skill-e2e-safety-ship-evidence.test.ts
  slice 13  passed            121s  test/skill-e2e-design.test.ts#design-review-detector-shim-dom
  slice 13  passed             88s  test/skill-e2e-shared-libs.test.ts#shared-libs-unsupported-git
  slice 13  passed             53s  test/skill-e2e-office-hours-auto-mode.test.ts
  slice 13  passed             83s  test/skill-e2e-design.test.ts#design-review-plugin-handoff
  slice 13  passed             62s  test/skill-e2e-bws.test.ts
  slice 13  passed             51s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-missing-marker
  slice 13  passed             56s  test/skill-e2e-review-army.test.ts#review-army-quality-score
  slice 13  passed              9s  test/skill-e2e-hermetic-canary.test.ts
  slice 14  passed             75s  test/skill-e2e-third-party-actions.test.ts
  slice 14  passed             64s  test/skill-e2e-plan-tune.test.ts
  slice 14  passed             68s  test/skill-e2e-triage.test.ts
  slice 14  passed             74s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-timeout-unsettled
  slice 14  passed             60s  test/skill-e2e-ask-user-question-format-compliance.test.ts
  slice 14  passed             51s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-launch-failure
  slice 14  passed             53s  test/skill-e2e-session-intelligence.test.ts
  slice 14  passed             55s  test/skill-e2e-ship-hook-consent.test.ts
  slice 14  passed             50s  test/skill-e2e-investigate-owned-termination.test.ts
  slice 14  passed             42s  test/skill-e2e-design.test.ts#design-review-detector-shim
  slice 14  passed             39s  test/skill-e2e-deploy.test.ts#canary-workflow
  slice 14  passed             37s  test/skill-e2e-ship-hook-refresh.test.ts
  slice 14  passed             45s  test/skill-e2e-design.test.ts#plan-design-review-no-ui-scope
  slice 14  passed             33s  test/skill-e2e-review-army.test.ts#review-army-delivery-audit
  slice 14  passed             33s  test/skill-e2e-safety-pair-agent.test.ts
  slice 14  passed             41s  test/skill-e2e-qa-workflow.test.ts#qa-bootstrap
  slice 15  passed             31s  test/skill-e2e-learnings.test.ts
  slice 15  passed             28s  test/skill-e2e-diagram.test.ts
[test:paid] collector final outcomes: 121 executed, 0 reused; 120 passed, 1 failed, 0 manual accepted (unscored; no score-cache credit) (121 attempt records from 70 collectors; every record counts)
[test:paid] deselected testcases, zero credit (307):
[test:paid]    293  sibling case of a case shard (its own shard runs it)
[test:paid]      8  periodic-tier case (this lane runs gate)
[test:paid]      6  Bun hook placeholder of a skipped describe block (not a test)
[test:paid] VERDICT RED — lane gate/pr, attempt 1
  rule 107/108 · behavior 0/0 · judge 24/24 · quarantined 0 (0 failing the lane)
  SKIPPED 0 · INFRA 0 · INCOMPLETE 0 · unattributed 0 · ACTION REQUIRED 2
  wall 8m30s · cost $91.14 known + 54 of 132 trial(s) cost unknown
[test:paid] failures and split verdicts:
  ✗ qa-functional-cli-report  rule  FAIL  assertion — command outside declared observation interface  · cause assertion: session completed; check failed  [slice 7, attempt 1]  evidence: paid-slice-7-a1/shards/skill-e2e-qa-functional (fetch: bun run eval:pass-rates --run 38097941308 --case qa-functional-cli-report)  after a repair: bun run scripts/test-paid-shards.ts --tier gate --case qa-functional-cli-report

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.

Failures and split verdicts

✗ qa-functional-cli-report  rule  FAIL  assertion — command outside declared observation interface  · cause assertion: session completed; check failed  [slice 7, attempt 1]  evidence: paid-slice-7-a1/shards/skill-e2e-qa-functional (fetch: bun run eval:pass-rates --run 38097941308 --case qa-functional-cli-report)  after a repair: bun run scripts/test-paid-shards.ts --tier gate --case qa-functional-cli-report

@capy-ai
capy-ai Bot merged commit 140003b into main Oct 11, 2026
65 of 67 checks passed
@capy-ai
capy-ai Bot deleted the capy/v191720-feat-b-runner branch October 11, 2026 00:32
levi85 pushed a commit to levi85/gstack that referenced this pull request Oct 14, 2026
…bmit`, pluggable outside voice, review checklists, spec-loop cap (multi-agent wave B-runner) (garrytan#3117)

* v1.91.70.0 feat(unattended): artifact contract, unattended session kind, findings-derived review log, gate list

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

* v1.91.72.0 feat(autoplan): unattended runner next|submit, pluggable outside voice, review checklists, spec-loop cap

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

* fix(b-runner): atomic lock creation in spend-ledger, judge bundle skips runner-only sections, fixture env spelling

- lib/spend-ledger.ts: create the lock by linking a complete temp file so a
  contender never reads an empty lock and breaks a live owner (CI admitted 20
  of a cap of 8 under contention); unreadable locks break only by mtime age.
- test/helpers/workflow-judge-input.ts: exclude manifest runner_only sections
  (the B4 checklists) from the judge bundle; the judge rates the interactive
  workflow. test/workflow-judge-input.test.ts expects the same set.
- test/helpers/autoplan-run-fixture.ts: spell the runner's session kind
  without the literal the free-suite environment scan rejects.

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

* test(spend-ledger): accept Windows' status-only report of the killed child

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