Skip to content

v1.92.50.0 wave(autoplan): #3781 #3743 #3751 #3762 - #3788

Merged
capy-ai[bot] merged 58 commits into
mainfrom
wave/autoplan-e97beb7bf577
Nov 2, 2026
Merged

capy-ai[bot] merged 58 commits into
mainfrom
wave/autoplan-e97beb7bf577

Conversation

@garrytan

@garrytan garrytan commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 3788,
  "head": "4efc21aeb7b9328b3bd1cb9d7e742484b4879c51",
  "version": "1.92.25.0",
  "base": "main",
  "gate": {
    "typecheck": {
      "pass": 1,
      "fail": 0,
      "skip": 0
    },
    "remote_gate": {
      "pass": 20674,
      "fail": 0,
      "skip": 0
    }
  },
  "session_kind": "unattended",
  "head_tree": "69182a529d74b008555172d997235ba8bf953969",
  "product_patch_id": "690d71b3b15554fa2a2b5f18be31d74a993fd823",
  "gstack_version": "1.92.25.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 684,
    "rules": "150435b0a543019a",
    "base": "f739756389d1fa7ebca2a10d84c97c294bfea4c5",
    "registry": "f739756389d1fa7ebca2a10d84c97c294bfea4c5",
    "gate_scan": {
      "tagged": 1,
      "head": "4efc21aeb7b9328b3bd1cb9d7e742484b4879c51"
    },
    "reasons": [
      "gate-class",
      "runtime=684>50"
    ]
  },
  "pregate": "requires-remote cleared @69182a529d74 (1 checks, current for 4efc21aeb7b9)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/41307182570",
    "windows-free-tests.yml/windows-free-shard: https://github.com/garrytan/gstack/actions/runs/41307182491",
    "pregate.json/remote_gate: remote-gate tree=69182a529d74 tests=20674"
  ],
  "issues": {
    "fixes": [],
    "refs": [
      3651,
      3653,
      3708,
      3743,
      3751,
      3762,
      3781
    ],
    "flakes": []
  },
  "docs": {
    "status": "updated",
    "scope": "docs/, README.md, AGENTS.md, CLAUDE.md, CONTRIBUTING.md, autoplan/, eval-plan/ against f739756..HEAD (audit plus one re-audit)"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 2,
    "deferred": 0,
    "noted": 7,
    "fixed": 2,
    "scope": "frozen",
    "fix_checks": 4,
    "dispatches": {
      "specialist": 1,
      "red-team": 1
    }
  },
  "review_targeted": {
    "classes": [
      "money",
      "gate"
    ],
    "rules": "baeb8f7ef7da92d0",
    "brief_sha": "7f92a0d0a8319c3c0e076fb3b1a4689c45120b2be2c14dfc7d4cb03aafa9d6a5",
    "product_patch_id": "690d71b3b15554fa2a2b5f18be31d74a993fd823",
    "status": "done",
    "findings": 0,
    "raised_by": "targeted"
  }
}

Wave autoplan-e97beb7bf577

One slot and one version for 4 PRs in area autoplan. Each is merged unchanged with a merge commit:

Each constituent is closed with a link to this PR after it lands (gstack-ship-queue wave settle).

Integrator commits

The wave's /ship review found real bugs in the combined code. Each one was fixed on this branch with a test that failed first. No constituent branch was touched.

  • Size pin (d1909fa): the gemini plan-devex-review skill-size pin is lowered to its exact size after fix(autoplan): field report fixes, findings reach the gate, spend caps bind, run binds API results (GBRA-223) #3781's DX trim.
  • CAP titles (f5e603c): two CAP4/CAP6 findings on different paths never pair by title, in reconcile or in the confirm round.
  • The spend cap fails closed on every exit of gstack-autoplan run (da4fd19, 167638d, 3b4968b, 97b04e0):
    • A paid call is settled at its usage, or at its full reservation when the usage is unknown. That covers a call that was truncated, timed out, dropped, cancelled, had its result refused, or was in flight when the process died (the next run charges it, then sends a fresh attempt).
    • Only a call refused before anything was sent (no API key, for example) keeps its attempt open without a charge.
    • A retry with a larger --max-tokens is admitted against the cap afresh.
    • Reservations price the prompt as it is sent.
    • Under a spend cap, an API model with no price reserves the $5 per-voice default in any session kind, instead of $0.
  • A finding you chose to fix stays open until the revised plan is reviewed (2317063). A reviewer re-raising it after a revise that missed it brings it back to the gate, and withdrawing the fix leaves the finding open.
  • A shared location alone never merges two findings (2317063). A user challenge one line away no longer hides an unrelated Critical.
  • Approval citations (033319e): a plan gate answered in an agent's own words (--words-by agent:<id>) is not owner approval, so gstack-ship-receipt rejects a plan-sha citation of it.
  • Answer provenance (95a8f33): a later gate answer replaces the earlier answerer's words, words_by and carry fields.
  • Docs (4d9e0ac, 335e809, f6a37b4, 4efc21a): the 16384 output default applies to both providers in run, and OpenAI counts reasoning tokens toward it. The spend-cap settlement is described in docs/unattended.md, the DRIVER commands, --estimate-usd help and the changelog fragment.

Spend-cap behavior change

Before: an attended run with --spend-cap reserved $0 for host-subagent attempts. Now it reserves the $5 default per voice, as unattended runs already did, so the cap binds. A run that relied on a small cap with unpriced or host voices may now stop with SPEND_CAP_EXCEEDED sooner. --estimate-usd <n> sets the reservation.

Review

The review ran under rule 23, with GStack Minder granting each step past the cap. Two full passes and the Step 11 voices (native adversarial, cross-family outside voice on gpt-6.1-sol, targeted money+gate) were followed by four fix-checks and a targeted re-read after each. The last fix-check walked every exit of the run loop and found nothing at the floor. The targeted re-read at the final patch found nothing.

Below-floor notes, not fixed here:

  • release --attempt on an attempt lost mid-call returns its reservation, so a possibly billed call counts $0. That needs an operator command after a crash.
  • Two run processes on one --out at once: the second retires the first's live attempt and pays twice. The charges are counted, but one result is lost.
  • A native submit whose closePhase throws after its settle leaves both submitted and superseded in the journal for that attempt.
  • After resume, an in-flight run attempt becomes execution_unknown, and run stops with EXECUTION_UNKNOWN. The fix is next --redispatch.
  • A user-challenge pair still associates by location alone (autoplan-gate.ts uc branch). run.json's gate keeps merged provenance, which nothing reads.
  • A partial p1b answer followed by the remaining tokens applies the finding items' default b, not a.
  • Adversarial Low items: ./-relative file spellings don't pair; doRun's outside catch is too wide (latent); startPilot throws a plain Error; capPath breaks on paths containing :; the $5 default reservation changes runs that started before the upgrade.

Documentation

Status: updated. One factual fix in the DRIVER resolver; autoplan/DRIVER.md needs regeneration.

Scope: the re-audit of f739756..f6a37b4b4 (branch wave/autoplan-e97beb7bf577), focused on the spend-cap settlement change since 4d9e0ac08 (bin/gstack-autoplan run, lib/autoplan-run.ts markSent/retireAttempt, lib/autoplan-budget.ts attemptEstimate, lib/autoplan-state.ts sent_at). There was no staged, unstaged or untracked content.

Documentation health:
scripts/resolvers/autoplan-driver.ts Updated (a spend cap reserves the default in any session kind; run: an unpriced model reserves the default, a sent native call with no result settles at its usage or reservation, and a failed outside call stays at its reservation)
autoplan/DRIVER.md.tmpl Current
autoplan/DRIVER.md Regeneration required (generated output, not edited)
docs/unattended.md Current (spend paragraph matches doRun, markSent, retireAttempt and attemptEstimate)
docs/troubleshooting.md Current (EXECUTION_UNKNOWN, SPEND_CAP_EXCEEDED, outside-review-truncated)
docs/captain.md Current
changelog.d/gsta232-autoplan-wave.md Metadata observation only: consistent with the code

Coverage: the new settlement behavior has reference coverage in docs/unattended.md, the DRIVER commands and the changelog fragment. There's no new public flag or command, so there's no coverage debt.

Diagram drift: none.

Debt: the --estimate-usd help at bin/gstack-autoplan:64 is stale (source, outside the doc audit).

Refs #3651
Refs #3653
Refs #3708
Refs #3743
Refs #3751
Refs #3762
Refs #3781

garrytan and others added 30 commits October 31, 2026 18:49
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…overs after an unreadable init (#3651)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…oter; an init with no text block no longer locks the session)

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

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ons (GST-537)

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

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…mmed band (arms share rows)

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>
…ut, price row still required, a real charge settles as spent)

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>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…d arm

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

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>
…s no $N token

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>
…a charge

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>
…-reset line (#3651)

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>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…aim 2)

The DX error contract told both autoplan DX voices to title capped findings
exactly CAP4:<path>:<item>, so gates, tasks and reconcile saw a bare code.
The title is now CAP4:<path>:<item> <what fails>; the grader already parses
that shape.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…(GBRA-223 claim 1)

Plan reviews name files, rarely lines, and reconcile associated by location
only when both findings had a line, so findings both voices raised on one
file were filed new and native-only. A same-file pair with a missing line is
now associated as unverified (basis file), never confirmed; a CAP code no
longer counts in title comparison. DRIVER.md names submit --reconcile.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…y items (GBRA-223 claim 3)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…-usd persists; DRIVER names --usage-usd (GBRA-223 claim 4)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…onse, --max-tokens; DRIVER documents run (GBRA-223 claim 6)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… nothing new (GBRA-223 claim 7)

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

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
garrytan and others added 6 commits November 1, 2026 00:39
…ests; bind run-api limit to DEFAULT_MAX_TOKENS

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>

# Conflicts:
#	test/fixtures/skill-md-size-allowlist.json
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

# Conflicts:
#	test/eng-finding-retry-budget.test.ts
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

# Conflicts:
#	test/fixtures/skill-md-size-allowlist.json
@trunk-io

trunk-io Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 14 commits November 1, 2026 11:00
…ze after #3781's DX trim

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…reconcile or confirm rounds (wave review)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…dmitted afresh against the cap

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…s reviewed; a shared location alone never twins two findings

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

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

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…; reservations price the bound prompt (wave fix-check)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ending keeps its attempt; a sent call with unknown usage settles at its reservation

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…hangelog for the wave's integrator fixes

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…t to the native voice

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…iced model reserves the default once a cap is set

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

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…d and how run settles a sent call

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