Repository navigation
A failed second-model review names the cause that stopped it, and never deletes its own prompt (GST-3188) - #4519
Merged
Conversation
…er deletes its own prompt (GST-3188) Codex's final failure decides the cause, a 402 counts only as an HTTP status, a Claude Code 402 or usage limit reads as a budget stop, the runner refuses a prompt file it would overwrite, and a reviewer file with no final verdict or another snapshot's first line loses to Codex's complete closing message. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
… that would hide it (GST-3188) The closing message replaces the reviewer's file only when that file has no verdict, no markers, or another snapshot's INPUT line, and only when the closing message is complete and would not hide a P0 or P1 finding. A 402 in a status_code, statusCode or http_status field counts again; a 402 inside a request id does not. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
3 tasks done
capy-ai Bot
added a commit
that referenced
this pull request
Nov 19, 2026
… reading reviewers' scope lists as findings (GST-3201) (#4527) Pre-commit /verify now fails a check that times out and runs its checks on one time budget; a reviewer's scope-list bullets no longer need an owner ruling to clear; stack tests fail when git can't list a PR's tests. Why: each let a result read clean with nothing proving it, or block on nothing (#4518, #4519). Goal: gates never pass on missing evidence. Nothing to do; `gstack-checks quick --timeout` is now one budget the checks share (540 s default). Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: p1/outside-voice#1 reader=outside-voice Review-Finding: p1/outside-voice#2 reader=outside-voice
Merged
capy-ai Bot
added a commit
that referenced
this pull request
Nov 19, 2026
- `gstack-artifact validate` no longer passes a run.json that gstack-autoplan never wrote. (#4494) - /ship's changed-number check no longer stops on tests that only share a word with the change (#4478). (#4496) - On Capy, /ship no longer edits or comments on pull requests as you. (#4518) - The destructive-command check stops asking about scratch deletes and catches the real damage it used to miss. (#4513) - The destructive-command check reads commands more carefully, closing gaps found after the last release. (#4525) - The Codex readiness check and the second-model review now pick the same model for a custom Codex provider (GST-3089). (#4491) - gstack's Codex hooks work when your Codex folder's path has a `(`, `&` or other shell character in it. (#4528) - Uninstalling gstack keeps your own Codex hooks trusted. (#4528) - Codex hook setup matches Codex more closely. (#4528) - On Windows, setup copies the Claude Code hook code that gstack's Codex hooks import (#4528) - /review's checklist on Codex reads shell commands more carefully. (#4528) - On Codex, gstack now suggests the right skill for a prompt and stops destructive commands before they run. (#4512) - On Codex, /review is now held once when it tries to finish without its adversarial pass or its report, as it already is on Claude Code. (#4522) - On Codex, gstack's skill suggestion now names the skill the way Codex lists it. (#4523) - On Codex, gstack's suggested prompts and docs now name skills the way Codex lists them. (#4524) - /review on Codex with gpt-6.1-sol is no longer held back for a second-model pass it already ran. (#4526) - On Codex, office-hours, plan-design-review and gstack-upgrade work again when you name them. (#4510) - gstack knows when Codex is running unattended. (#4510) - Codex reviewers start with a clean context. (#4510) - Docs no longer say Codex has no hook support. (#4510) - A command whose output was cut off no longer counts as a finished read. (#4492) - A folder marked as published data can no longer hide source code or agent files from /ship's review. (#4516) - Correction to the on-by-default helper hooks entry: the hook still routes only to /review, /qa and /verify, so skills you've installed yourself aren't suggested yet. With gstack's skills it routes 14 of 60 real bug reports (was 17), and long prompts are no longer skipped. (#4505) - /sync-gbrain's read check now works when the first page in your code source is over 64 KB. (#4497) - Free-suite CI no longer fails before any test runs when Ubuntu's package mirror is slow. (#4530) - Syncing a second repo no longer makes the first one ask for /sync-gbrain again. (#4532) - gstack's helper hooks are now on by default in Claude Code, OpenClaw and Hermes, and the prompt-routing hook fires on real bug reports. (#4503) - `gstack-pregate clear --receipt` accepts a remote gate run from before a merged release when the release only regenerated a declared release output. (#4483) - The second-model review now keeps the reviewer's own result, and reports a used-up budget as a budget stop. (#4515) - When the reviewer wrote its review to the result file it was asked for, Codex then replaced that file with its short closing message ("Done, I wrote the review"), so the review was thrown away and reported as missing its markers. (#4515) - When the provider refuses the call with HTTP 402 Payment Required (usually a metering proxy that hit its allowance, or an account out of credits or quota), gstack used to record only "exit 1". (#4515) - The pre-commit /verify check now fails a check that times out, and its checks share one time budget (GST-3201). (#4527) - /ship's review collector no longer reads a reviewer's own scope list or list of passed checks as findings (GST-3201). (#4527) - Merge-queue stack tests fail when git cannot list a PR's added test files (GST-3201). (#4527) - /ship can now review results PRs that publish raw session data. (#4511) - /ship's review pass works when the checkout you ship isn't the project's default checkout. (#4507) - A second review round no longer reports done when nothing was reviewed. (#4520) - The prompt-routing hook now suggests skills you install yourself, and no longer sends ordinary bug reports to /qa (GST-3123). (#4506) - gstack's script runner and merge-queue checks now also refuse cut-off output. (#4502) - A failed second-model review reports the cause that actually stopped it, and the runner never deletes its own prompt. (#4519) - `gstack-ship-queue ready` now fills in the trial merges and the second-model trail read instead of printing lines to fill. (#4529) - Five small ship-tool fixes. (#4529) - A ruling the owner gives while a `/ship` run is open can be relayed. (#4529) - /ship no longer kills a working test run as stalled when the test command starts its workers in their own session. (#4533) - /ship no longer stops a review because the state-machine reader started its reply the way its instructions say. (#4504) - When Claude Code runs /verify right before a commit, it now gets a quick check instead of the full fix loop (GST-3150). (#4508) 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.
When a second-model review fails, gstack now reports the failure that actually ended it: Codex's final error decides, a stray "402" in a request id no longer reads as a used-up budget, and a Claude Code 402 or usage limit reads as a budget stop with no Codex advice.
Why: these were the four follow-ups ruled below the blocking bar on #4515; each one could send someone to fix the wrong thing.
Nothing to do. The prose rule that reads "auth", "login" or "API key" in stderr as a login failure is not changed here (see below).
What changed
--jsonevents hold failures, only the last one (turn.failed) is classified, so an early 402 retry followed by a final 401 stays an execution failure with the 401 in its detail (lib/outside-review-result.ts).HTTP 402,status 402,"status":402,"status_code": 402,statusCode: 402,Error: 402,402 Payment Requiredor "payment required"; a request id likereq_9c3f402aborreq-402-payment-abc, or "after 402 ms", no longer does.subtype: error_during_executionand a 402 inresultis now abudgetfailure, not a generic provider error. A Claude Code usage limit is read asbudget_exhaustedinstead of Codex'squota_exhausted, whose advice names Codex and a Codex-only setting. Thebudget_exhaustedsummary and its troubleshooting entry now name the Claude Code usage limit.gstack-outside-voice runrefuses (exit 2) a--promptthat is--outor one of the files the run writes beside it (.events.jsonl,.stderr,.last-message,.meta.json), symlinks resolved; the codex-cli runner refuses the same pair itself (prompt_is_output) before deleting anything.INPUT: <phase> <sha>) names another snapshot, gives way to a marked closing message, as on main. A reviewer file that says it is not ready is kept, and a file written for another snapshot is never reported clean. The snapshot is read from the last result-format block in the prompt.Not changed
Retries, budgets and when the review runs. The shared prose rule ("auth", "login" or "API key" in stderr means a login failure) is rendered into
review/sections/adversarial.md, a pinned reviewer file, so changing it needs its own no-loss replay; it stays open for a separate PR. Reviewer prompts are byte-identical.Open notes (not fixed in this PR)
.meta.jsonthat is a hard link to the prompt file still passes the prompt check, which compares paths, not inodes (also true on main).--prompt X.last-message --out Xeven though it never writes.last-message; it refuses safely.--jsonevents hold a failure, a cyber-policy or quota line that appears only on stderr is not read.VERDICT: CLEAN, so the run reads clean and those advisory findings are lost; on main it read unverified.Tests
Seven new tests, each failing on main at 957fab7, and three more from review that fail at b58f1f4, all passing here: final-failure order, 402 in a request id or duration, Claude
error_during_execution402, Claude usage limit wording, unverified reviewer file, result for another snapshot, prompt-is-output refusal (runner and CLI). Focused suites (outside-review-result, claude-code-runner, outside-runner-contract, troubleshooting-anchors, model-catalog-isolation, outside-voice-failure-policy, outside-voice-invocation, outside-review-cyber-policy): 630 pass, 0 fail. Typecheck clean.Agent notes
Lane GSTA-646 for GStack Minder, issue GST-3188, follow-up to #4515 (957fab7). Item 5 of the brief (prose auth rule) left out under CREW rule 15. Decision trail: captain drive reports/GSTA-646-decisions.tsv.
Ruled note: red-team#1 at 76795c1 ruled by Captain GStack Minder (GSTA-36) at 2026-11-19T11:41:56.400Z: parser artifact: the red-team reader listed it among checks that passed and declared blocking=0 (approval a-24d1ee802f06)
Approvals
Approved: yes (record r-d810a4c711ed). The full approval record stays private.
Plan: exempt: bug fix with failing-first tests
Plan check: PLAN_EXEMPT_UNKNOWN (gstack-approvals plan-check says why)