Repository navigation
Unattended /autoplan runs its configured second-model review in the foreground, and run ids no longer collide (GST-3015) - #4459
Merged
Conversation
…oreground, and run ids no longer collide (GST-3015) An explicit codex_reviews: enabled is the owner's standing consent: gstack-autoplan next prints OUTSIDE_CONSENT beside the outside attempt, and autoplan/DRIVER.md tells an unattended host to run the voice in the foreground with a 9-minute limit and to record a failure with the standard outside-voice failure line instead of ending the turn. Run ids now carry six random letters before the time stamp, so two runs started in the same second no longer share a checkpoint folder. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
capy-ai Bot
added a commit
that referenced
this pull request
Nov 18, 2026
- A test, or a scratch repository in the temp directory, can no longer write approval rows into your real Capy Drive (GST-3027). (#4466) - An unattended /autoplan run on Claude Code no longer says the publication guard is off while it is on. (#4481) - A phase report written only in reasoning now gets a denial that says so and names the fix. (#4481) - `gstack-autoplan revise` no longer refuses a plan that the first `next` accepted. (#4470) - `revise --plan` with a different file now says the run follows that file. (#4470) - A second-model plan review in `/autoplan` is no longer reported as unavailable when it actually ran (GST-3051). (#4471) - The /ship conductor trial plan now lets case reverts that conflict with later code be resolved by hand in docs, tests and the planted file, so large pull requests can be cases (GST-3003). (#4460) - A locked plan for a trial of /ship without its separate conductor subagent (GST-3003). (#4456) - A driven /ship now runs each phase as one command, counts its calls, and stops itself at 100 minutes. (#4451) - /ship stops asking owners to clear two kinds of bookkeeping noise: base-side merge text and a reviewer's confirmation prose. (#4458) - A base merge that only touched base-side text no longer stops `/ship` finish for an owner's grant. (#4458) - A reviewer's confirmation prose no longer becomes a Critical finding that only an owner can clear. (#4458) - A CI run that passed only after its failed jobs were re-run is now marked wherever gstack reuses it. (#4473) - /ship reuses CI's passing test run when merging the base changed no file, and stops instead of quietly starting hour-long test runs or reviewing an empty diff (GST-3019). (#4461) - /ship on Codex no longer stops at the test coverage audit. (#4489) - A cold first-use check before an app build reaches its owner (GST-3025). (#4465) - `skill_prefix=true` now survives updates when gbrain is installed. (#4454) - The OpenClaw docs no longer send you to ClawHub, which held only April 2026 builds of office-hours, ceo-review and retro and no longer has gstack skills (the docs also said four skills while listing three). (#4454) - `gstack-issue-links` no longer reads other repositories' issues as gstack's. (#4454) - /ship's pre-gate finds the tests of a monorepo app that imports through its own `@/` alias. (#4464) - /office-hours explains why it recommends a mode. (#4450) - /office-hours keeps its 34 founder videos and essays out of the skill file. (#4463) - Two `gstack-owner-answers add` runs for the same answer no longer collide. (#4490) - A Captain can check an ask against the owner's earlier answers before sending it. (#4467) - `gstack-post` stops reading /ship's own receipt identifiers as phone numbers, so posting a /ship PR body no longer needs a confirm. (#4488) - GitHub release notes now list every change in plain words, with a link to its pull request. (#4390) - gstack's router no longer gives bug reports a special rule, so the model fixes a bug the way it would without gstack. (#4442) - /ship's review plan now sorts Swift and Xcode files by risk instead of sending every iOS PR to the full review panel (GST-3041). (#4469) - /ship's review plan now sends Swift code that touches private user data to the full review panel (GST-3052). (#4472) - A round grant at /ship's review round cap now buys the fix round it names, in the same run or the next (GST-2968). (#4479) - The secrets check stops flagging three kinds of ordinary code as a secret, and catches two misses. (#4457) - A security finding's location and reason no longer go into a PR body. (#4486) - The token-capped /ship child on Claude Code now starts its prompt with the typed `/ship` command, so the skill actually loads. (#4487) - A /ship receipt now counts the second-model review's blocking findings, and refuses to be written while one is still open. (#4485) - A `/ship` with a token cap on Claude Code no longer stops at its first handoff. (#4452) - /ship's push step now always ends with one line that says whether it pushed (GST-3053). (#4474) - A PR's review-round count can no longer be overwritten by the body `/ship` posts. (#4440) - One queued record with a malformed path no longer stops artifacts sync for every project. (#4455) - A failed artifacts push stays reported until a push succeeds. (#4455) - The /sync-gbrain memory row no longer says OK when pages failed to import. (#4455) - ### Tests (#4495) - A policy-floor test no longer fails once gstack's own version reaches the minor after the newest policy key; it now checks a floor above both, so the v1.101.0.0 release can pass CI. (#4495) - CI now uploads free-suite test results to Trunk with analytics-uploader v2.1.8 and analytics-cli 0.17.0, up from v2.1.6 and 0.16.2. (#4453) - Packing a checkout for a Ubicloud run no longer fails when git beside it is rewriting a ref. (#4447) - The /plan-ceo-review HOLD SCOPE eval no longer fails a review because its follow-up question didn't repeat the mode name. (#4447) - Unattended /autoplan now records the owner's relayed gate reply instead of refusing it. (#4484) - Unattended /autoplan now runs the second-model review you turned on, and waits for it instead of ending the session. (#4459) - Two /autoplan runs started in the same second no longer share a run id. (#4459) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Unattended
/autoplan --fullnow runs the second-model review whencodex_reviews: enabledis set, runs it in the foreground with a 9-minute limit, and records a timeout with the standard failure line instead of ending the session. Two runs started in the same second also get different run ids now.Why: in a planning test, Opus 5.5 skipped the second reviewer in 2 of 3 runs over consent the config had already given, and ended the third session while the review ran in the background.
Nothing to do: an unset
codex_reviewsis handled as before, anddisabledis still enforced by the runner.What changed
Unattended /autoplan now treats
codex_reviews: enabledas consent and runs the second-model review in the foreground.The same before/after as text is in the Agent notes at the end (it quotes the new driver line, which uses an in-house word).
Someone who turned on second-model reviews and ran /autoplan without watching got a plan reviewed by one model, because the agent read its general consent rule as covering the second review, or started that review in the background and ended the session before it finished.
gstack-autoplan nextnow printsOUTSIDE_CONSENT: given by codex_reviews=enabledbeside the second-model attempt, and the driver text says that setting is the owner's consent, that the review runs in the foreground under a 9-minute limit, and which line to record when it fails. Run ids also include six random letters before the timestamp, so two runs in directories with the same name no longer share an id and a checkpoint folder.Why
"I'm waiting on Codex's CEO review now", written right before an unattended session ended with the review still running, is the failure this fixes. A plan reviewed unattended now gets the second-model review its owner turned on, or a recorded reason it didn't.
Blast radius
The change touches the unattended autoplan runner's
nextoutput, the generated autoplan/DRIVER.md and unattended profile, and the run id format. The run id stays<name>-...-<14-digit timestamp>with the timestamp last, so the approvals importer's timestamp exemption still matches it;test/autoplan-run-id.test.tsimports a minted id throughbuildRow(script ran). A disabled setting still refuses before any dispatch (CLI probe 002 ran).Pre-Landing Review
No blocking findings. One full review pass on this head: a batched specialist reader (testing, security, state machines) found nothing, the red team found two low-severity notes, the Claude adversarial pass found five (two duplicates of the red team's, one pre-existing test outside this diff), and the second-model review (GPT-6.1 Sol) returned clean.
Review notes
Below the blocking floor (a finding blocks only if it would fail a test, break production, or lose data or secrets); recorded here and not fixed in this PR.
lib/approval-record.ts:157The minted-id pattern still allows 64 characters before the timestamp, and that span now includes the six random letters, so a run directory named with 58 to 64 characters loses the timestamp exemption andgstack-approvals import --autoplanrefuses it when the timestamp looks like a phone or card number. It fails closed and writes nothing.scripts/resolvers/autoplan-driver.ts:80The unattended failure lines come from the Claude-host rendering, so they name Codex and the Claude Code Bash timeout even when a parent on another host uses a different second model.lib/autoplan-run.ts:286Consent is checked once when the run starts;nextre-reads the setting only to print the consent line, so switching todisabledmid-run drops the line while later phases still open second-model attempts (that part predates this PR).lib/autoplan-run.ts:286The newOUTSIDE_CONSENT: givenline shares theOUTSIDE_CONSENT:prefix with theconsent_missingmarker; no parser keys on that prefix today.test/approval-classes.test.ts:407The adversarial reader saw "P1-4: a content diff that is missing or disagrees with git's count fails closed" exit 2 instead of 3 once locally, at this branch's base too; it passed in this run's focused test run and in CI. Not introduced by this diff.Exploratory QA
Functional smoke, two CLI probes of
gstack-autoplan nextin isolated state roots with no API keys: withcodex_reviews: enabledit printed the consent line besidevoice=outsideand mintedrun-reyhpv-20261117192717(pass); withdisabledit printedOUTSIDE: ceo not_run reason=consent_missing, opened no second-model attempt and printed no consent line (pass). Unset and unreadable settings and long directory names were not probed here.Eval Results
Selector (
bun run eval:select --base origin/main): PR profile full-fallback becausescripts/resolvers/index.tsis a shared input; no quality judges and no case selected as a PR pass, so no paid evals ran. The 145 behaviors it lists remain scheduled and release coverage.Scope Drift
Scope Check: CLEAN
TODOS
No TODO items completed in this PR.
Documentation
Status: current. No documentation edits were needed, and no blockers.
Scope: base e1cfcea..48bf37a: 2 commits and 14 files, all committed (none staged, unstaged or new). The changed doc sources and the docs whose claims the change could touch were audited.
Documentation health:
autoplan/DRIVER.md.tmpl Current (new AUTOPLAN_UNATTENDED_VOICE resolver line matches the code)
autoplan/sections/unattended.md.tmpl Current (codex_reviews consent and foreground-only wording matches)
docs/troubleshooting.md Current (run-id note about six random letters matches lib/autoplan-run.ts)
docs/unattended.md Current (no contradiction; coverage gap below)
changelog.d fragment Current
Documentation Debt
OUTSIDE_CONSENT: given by codex_reviews=enabledline and the rule that an unattended second-model review runs in the foreground with a 9-minute limit are documented only in autoplan/DRIVER.md. docs/unattended.md step 1 ("Dispatch each ATTEMPT:") does not mention them. A how-to sentence there would close the gap.Diagram drift: none.
Tests
bun test test/autoplan-run-id.test.ts test/autoplan-unattended-voice.test.ts test/outside-consent.test.ts test/approval-classes.test.ts: 50 tests, exit 0Agent notes
Refs GST-3015, GSTA-592
Approvals
No approvals recorded for branch unattended-autoplan-runs-its-second-voice.
Plan: exempt: bug fix
Plan check: exempt bug fix
REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=0 fixed=0 scope=frozen
Gate edits: none detected (4 listed, 1 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
Second-model review: openai/gpt-6.1-sol (host subagent), completed, VERDICT CLEAN.
Evidence: GEVA-549's smoke on c5250de, Claude sessions 9f4aab72 and d9cadfb2 (
--unavailable "...sends data off this machine, which needs the owner's consent") and e180668a (run_in_background: true, then "I'm waiting on Codex's CEO review now").Before/after as text: Unattended /autoplan now treats codex_reviews: enabled as consent and runs the second-model review in the foreground
🤖 Generated with Claude Code