Repository navigation
A granted fix round that a follow-up check reads clean now closes the findings it fixed (GST-3260) - #4664
Merged
Conversation
…nd a live run past two hours stays open (GST-3260) The bare run marker becomes a run record whose state only gstack commands change; gstack-ship-run status and abandon end a run that stopped working. Stops bind to the head their last reading row read (#4591), and a reused run id counts once per head (gstack-evals#406). Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ip run record (GST-3260) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ts grant names (GST-3260) gstack-review-log stamps a granted fix-check row from the run record's claim (the stop head it read from, the run, the grant and the PR) and records the digest of the hunks its reader was given. lib/fix-check-clearing.ts is the one owner of when such a row counts: finish counts it anchored on the stop its grant names rather than the newest reviewed tree (#4612), and receipt write closes exactly the open findings the grant names, recording cleared_by_grant and one Agent notes line, or says why on a FIX_CHECK_CLEAR line. Stop and claim entries in the PR body now carry when they were recorded. The review plan routes a fix-check grant that answers a stop raised after a fix-check to its one fix-check (harness-evals#504). Reviewer prompts and packets are unchanged. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…later full review reads it clean (GST-3260, #4597) A later full review that read the fix commit but left the finding out of its row could not close it, because review-log rows are never rewritten, so the receipt needed an owner ruling. Receipt write now closes an open blocker when a branch commit carries its trailer (its exact ledger id, or a fingerprint no other open blocker shares) and a later complete full review, bound to its committed tree and holding that commit, reports nothing open at that id or line. The receipt records cleared_by_trailer and the Agent notes section gets one line per closed finding. Gate findings never close this way. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…nder a token cap refreshes the run's heartbeat (GST-3260) Review-Finding: p1/specialist-batched#1 reader=security Review-Finding: p1/specialist-batched#2 reader=testing Review-Finding: p1/specialist-batched#3 reader=state-machines Review-Finding: p1/specialist-batched#4 reader=state-machines Review-Finding: lib/ship-run-record.ts:167:correctness reader=core Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ound (GST-3260) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…r a /ship run is open (GST-3260) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…leave review depth untouched (GST-3260) gstack-review-log and gstack-ship-receipt now load nothing beyond lib/ unless there is a finding to close: the fix-check hunks record moves into lib/review-evidence.ts, and receipt write loads the clearing module only when a blocker is open. The planner routes a still-unspent fix-check grant through its existing granted-stop route, so lib/review-depth.ts keeps PR 1's bytes. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… whole fix it read, and a trailer closes only after a fully clean later review (GST-3260) Review-Finding: p1/specialist-batched#1 reader=security Review-Finding: p1/red-team#1 reader=red-team Review-Finding: p1/red-team#2 reader=red-team Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
capy-ai
Bot
changed the base branch from
ship-run-record-replaces-stale-marker
to
main
November 22, 2026 04:39
|
😎 This pull request was merged. |
3 tasks done
…reviewer's relayed grant, which the one-self-grant rule now requires (GST-3260) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…s its fix list named (GST-3260) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…er fix can also clear an open blocker (GST-3260) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
3 tasks done
garrytan
added a commit
that referenced
this pull request
Nov 22, 2026
…its granted check can close it (GST-3260) fixListNames split on whitespace, quotes and parentheses only, so **p1/x#1** and [p1/x#1] kept their markup and never matched a grant id. It now strips leading [ and * and trailing ] and * from each token, keeping brackets inside a path such as app/[id]/page.tsx. Fixes the #4664 note p2/outside-voice#1. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
garrytan
added a commit
that referenced
this pull request
Nov 22, 2026
…asn't committed (GST-3260) Decision 3.5 wrote the touched hunks as git diff $PASS_HEAD, which leaves out an untracked file the fix created. The clearing code then refused the closure, so it failed closed, but the reader never saw the new file. The instruction now runs git add -N on each file the fix created first; with no untracked file the bytes are unchanged. Fixes the #4664 note p2/red-team#1. The ship/sections/review-army.md pin moves in the replay commit, after its preregistered no-loss replay (docs/evals/r51-final-review-after-grant-prereg.md) passes. 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.
/ship now closes a review finding when its fix round was granted and a follow-up check read the fix clean, or when the fix commit names the finding and a later full review reads it clean. Before, someone had to write a ruling by hand.
Why: since this was missing, PRs whose findings were already fixed and checked stalled at the round limit (#4537, harness-evals#508, #4597, harness-evals#504, #4612).
Nothing to do.
What changed
lib/fix-check-clearing.tsis now the only place that decides whether a granted follow-up check closes findings. Bothfinishand the PR's /ship record writer call it. A fix round closes only the findings its grant names, and only when all of these hold:When any of these is missing, it prints a
FIX_CHECK_CLEAR:line saying why.Review-Finding:trailer also closes once a later full review round reads it clean (Reader subagents on Capy stop sending telemetry, error runs report their error class, and test fixtures stop reading the owner's settings #4597).finishcounts a granted follow-up check from the stop its grant names, not from the newest reviewed tree (Codex skills no longer stop on temp-file cleanup, which Codex refuses as rm -f (GST-3364) #4612).lib/review-depth.tsis byte-identical to the parent branch.scripts/.Tests
New file
test/fix-check-clearing.test.tswith 23 tests. Of the first 21, 18 failed on the parent branch:The only existing test files changed are fixtures: one exercised-map entry, one Windows curation entry and one module-size entry.
Issues
Refs #4591
Refs #4597
Refs #4612
Agent notes
lib/review-depth.ts; keptlib/free ofscripts/imports for copy installs), 79a0671 (review pass 1 fixes), b2d3ab4 (rebuilt on main after A stopped or crashed /ship run no longer blocks the next run or its granted fix round (GST-3260) #4654 merged; this PR's own lines byte-identical to 79a0671), c74e8ca (test-only fixture fix under fix-check grant a-3d9a27629e31, ruled by GSTA-36), 942b581 (changelog), ac9163d (docs/review-policy.md receipt table).fix_checks: 1counts the follow-up check that ran; finish didn't count it (FIX_CHECK: not counted, because its row names no range_base). The two pass-2 findings are closed by the review-loop exception below, not by that check.lib/fix-check-clearing.ts:71: an unreadable dispatch ledger reads as empty, becausereadLedgerswallows the error, so the "ledger unreadable" refusal never fires.lib/fix-check-clearing.ts:130-134: the trailer route accepts a completed full review with anincompletebinding and never checksconverged.bin/gstack-ship-receipt:322-323,408,439-445: closure ids are added after the body's security scan, so a fingerprint-only security closure would be unredacted.Approvals
Approved: yes (record r-07c3938e7165). The full approval record stays private.
Plan: approved (record r-ecae907524f6)
Plan check: approved (record r-ecae907524f6)
Review-loop exception: accepted by Captain GStack Minder (GSTA-36) 2026-11-22 via relayed to /ship run ship-4664 (GSTA-689) by its lane, from GStack Minder's ruling C on PR #4664 at 79a0671: Both fail closed: a granted fix round leaves a fixed finding needing a manual ruling, which is today's behaviour; neither closes a finding wrongly or fails a test. Fixed in PR 3 with its own full review and replay. (second full pass at 79a0671, deferred p2/red-team#1, p2/outside-voice#1)