Repository navigation
v1.99.5.0 Give the head a pull request merges a full review when its removed lines changed or it was only re-checked (GST-2706) - #4365
Merged
Conversation
/ship's two-round review cap was counted inside each run, so a pull request shipped many times was reviewed again at every head. Step 1 now reads the rounds the PR body's receipt history records, passes them to the review plan, and sends later heads to the scoped re-check, with a lane or Captain round grant for an extra round. Adds the no-loss replay preregistration. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
The plan counts a PR's earlier full rounds (--prior-full) against the cap of two, as the approved plan says, and prints every earlier round as pr_rounds=. Renames the troubleshooting anchor to pr-round-cap, lists <SESSION_ID> as a reviewed placeholder, and leaves ship/DRIVER.md at its size cap. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ry the PR round count Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… re-check advice only (GST-2673) A scoped re-check that reads only what changed since the last reviewed head caught 22 of 24 planted faults but none of 8 real faults that full rounds had caught, so it no longer carries a /ship receipt. A later head whose own lines changed now gets a fresh full review, the PR's last before merge; a PR already at two full rounds gets one read-only full review with no fix round, whose blocker goes to the lane's Captain. carry prints RECHECK: advisory and refuses --recheck. The drift threshold, the re-check blocker count and the design-change grant kind are removed with the route they fed. Repins lib/review-depth.ts and ship/sections/review-army.md under replay GST-2673 (docs/evals/pr-round-count-results.md; deterministic grid against main: 196,608 of 196,608 plans identical with no prior rounds). Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ad-only review A grant now holds after the fix round's commits move HEAD past it, counts only the rounds earlier heads spent, and a receipt written without a run keeps other runs' stubs. Review-Finding: p1/specialist-batched#1 reader=state-machines Review-Finding: p1/red-team#2 reader=red-team Review-Finding: p1/red-team#3 reader=red-team Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…set the count Reverts the history change that skipped rounds recorded at a round grant's head: the run that hit the cap is recorded at that same head, so skipping it wiped the count. A grant recorded after a read-only review still doesn't buy a fix round (fails closed). Review-Finding: p2/adversarial-native#1 reader=adversarial-native Review-Finding: p2/outside-voice#1 reader=outside-voice Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… receipt came from a re-check A head whose removed lines changed with the base no longer carries on one scoped reader, a receipt an older gstack carried through a scoped re-check no longer carries on or lands, and a /ship body post keeps the run history. The read-only stop stops offering a round grant it can't honor, and the stamp-only-carry no-stop class is removed because a refused carry never stopped. (GST-2706) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Contributor
|
Flaky rerun, logged per the standing rule: in Free Tests run 43622428874 at 7e1c2f4, attempt 1 had one red check. In |
…eipt Review-Finding: p1/red-team#1 reader=red-team Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…nch ledger Review-Finding: p3/outside-voice#1 reader=outside-voice Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…gh a re-check Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This was referenced Nov 15, 2026
4 tasks done
|
😎 This pull request was merged. |
This was referenced Nov 17, 2026
Merged
capy-ai Bot
added a commit
that referenced
this pull request
Nov 17, 2026
- /autoplan's approval page no longer hides a reviewer's product objection behind "keep your direction". (#4431) - Every skill that loads the shared preamble, on every host, now says to ask a question once and to check a file before handing it over. (#4383) - The Captain manuals now name the `Failed or skipped:` and `Also changed:` lines that READY and lane reports carry. (#4432) - gstack's shell locks hold again on Ubuntu 26.04, where `mkdir` reports success when another process won the race (GST-2247). (#4262) - `test/gstack-lock-race.test.ts` runs the old pattern and the helper against a PATH shim that behaves like uutils 0.8.0 `mkdir`, so it runs on any runner image: the old pattern lets two of four racers win, the helper admits exactly one in each of 60 races and never overlaps across take, hold and release loops, and parallel `gstack-config` writers keep every key. (#4262) - Windows Setup E2E now runs when `bin/gstack-lock.sh` changes. (#4433) - Claude Code's skill list now says when to use each gstack skill, so Opus loads /review and /plan-eng-review when a request fits. (#4387) - A pull request's merge head can no longer keep its `/ship` receipt without a full review. (#4365) - `/ship` now counts review rounds per pull request, and the head that merges always gets a full review. (#4360) - /ship's documentation audit no longer accepts a passing result when an earlier line from the same audit said "blocked". (#4434) - /ship's documentation audit no longer spends an attempt when the audit child writes text after its result. (#4285) - The README lists the two new guides, and the install doc counts its hooks right. (#4403) - docs/releases.md now says the stable release cut treats a failed commit status as red and a pending one as still going, as it has since #4257. (#4436) - /ship's `finish --docs-requested` now accepts a docs fix when the audit named the file with a line number. (#4437) - Document the `.gstack/approval-classes.json` schema, `gstack-approval-classes` CLI commands, and owner approval citation format in `docs/ship-policy.md#approval-classes`. (#4355) - `/eval-plan` now runs four result checks instead of leaving them to judgment. (#4384) - The /review coverage-audit eval no longer fails a run that really read the source file when zsh stops a command line at an `echo ====` separator. (#4364) - Sixteen in-repo documentation links reach their section again. (#4394) - gstack agents now open every status report with what failed, what they didn't verify and what else they changed. (#4273) - Two new short guides. (#4380) - A skill you wrote whose contract still lists `check_after_last_edit` keeps the rest of its contract. (#4439) - The ship policy guide now explains how to merge any pull request with `gstack-ship-queue land`, even in a repository with one maintainer. (#4377) - /ship's test step runs a large unit suite on Linux. (#4426) - Every skill that loads the shared preamble, on every host, now says never to print a whole environment, git config or process table. (#4382) - Pull requests from /ship now open with at most three plain lines, and every merge lands as one commit titled with the PR title. (#4438) - `gstack-pr-wait`, `gstack-ci-gate` and the release cut no longer call a commit green while a check on it failed. (#4257) - `gstack-runaway` now says what a thread's cold and empty wakes cost, not just how many there were (GST-2770). (#4385) - The optional Stop hook no longer checks for a test run after the last edit, and /verify asks for it in plain words instead. (#4428) - /ship's test step says when it ran out of time, and you can set its budget. (#4429) - The remote test command no longer puts every file on one command line. (#4429) - The stable release no longer waits on the nightly Windows tests (GST-2815). (#4400) - Ubicloud fan-outs can no longer overshoot the vCPU limit, and owners no longer delete each other's VMs. (#4430) - hono is pinned to 4.13.16, which fixes five advisories the weekly OSV scan found in 4.13.13 (gstack#4406). (#4408) - `package.json` overrides (#4408) - `test/dependency-security.test.ts`: the lockfile floor check now covers `hono >= 4.13.16`. (#4408) - The nightly Windows test run finishes again. (#4409) - A short write-up checklist in ETHOS.md. (#4381) 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.
This makes sure a pull request merges only after a full review of the exact code it merges. It finishes Garry's 2026-11-14 ruling on review rounds: a quick re-check that reads only what changed is advice, and a head that only merges in the base counts as reviewed only when the pull request's own added and removed lines are unchanged.
What changed
Stacked on #4360, which lands first.
SAVE_VERSION := 82to84, then the base took83: the PR now removes83, a line no review read.comparePathused to call that hunk "context" and let carry keep the receipt after one scoped reader. It's now a changed path, so carry refuses withRECEIPT_CARRY_PRODUCT_CHANGEDand the head runs/ship. Every other caller (finish routing, the targeted-reader delta) reads "changed" as more review, never less.carryrefuses it at its own head and after any later base merge or stamp, andgstack-ship-queuewon't bind it (QUEUE_RECEIPT_STALE), so READY and land both need a fresh full review first. The lineage is read fromcarry.reason, which keeps every hop./shipbody post keeps the run history. Posting the composed body replaced the Agent notes and dropped thegstack-receipt-runsblock, sogstack-ship-receipt historysaw only the last run and undercounted rounds. The post now puts back the runs block placeReceipt would write on the live body: earlier runs, started stubs, and the receipt it replaces.PR_ROUND_CAPafter the read-only final review offered "a round grant", which can't buy a fix round once that review ran. It now says ship with the note or park, and why.stamp-only-carryis removed from the no-stop classes. A refused carry already runs Steps 2-16 with no stop, so recording this class skipped nothing and only wrote a misleadingno_stopentry. A receipt that still lists it no longer validates, so that PR runs/shipagain.gstack-ship-receipt writedrops a--no-stoprow whose class is no longer a no-stop class (an oldstamp-only-carryentry) and names it on stderr, so that branch's next/shipcan write its receipt.Tests
13 new or flipped free tests fail on #4360's head (2f6c371) and pass here: comparePath and carry on the founderstar#563 shape, carry and queue binding on a re-check lineage (with an ordinary-carry control), history after a body post, the read-only stop text, and the no-stop class removal.
lib/review-depth.tsis repinned under replay GST-2706: only one stop string changed, andnextStepgives the same step in all 23,887,872 grid cases.Why
A merge should only go through on a full review of the code it merges. These gaps let a receipt stand on a scoped reader or a re-check, which R51 counts as advice only.
Blast radius
/shipcarry, receipt write,gstack-postbody posts and the queue binding. A PR whose head now counts as changed runs/shipagain instead of carrying. Nothing else changes for a head whose own lines are byte-identical to the reviewed ones.Documentation
Status: updated. One factual fix was made to docs/troubleshooting.md, and there are no blockers.
Scope: 23 committed paths across 3 commits from 2f6c371 to 5c2b3d4 on close-last-recheck-carry-paths. Nothing is staged, unstaged or untracked. The audit covered the changed docs, the changelog fragment, ship/sections/tests.md and its template, and a repo-wide search for stale mentions of the removed stamp-only-carry class, the five-to-four no-stop count, the base-edit-only context carry and the round-grant wording of PR_ROUND_CAP.
Documentation health:
Coverage debt: RECEIPT_CARRY_REFUSED for re-check-carried receipts has reference coverage only, in docs/review-policy.md and the CLI message, with no how-to. No critical gaps were found.
Diagram drift: None. No diagrams reference the changed modules.
Pre-Landing Review
Pre-Landing Review: 5 issues — 2 auto-fixed, 0 asked (0 fixed, 0 skipped), 0 deferred, 9 noted
Gate edits: 21 listed, 14 read, 0 findings
REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=6 fixed=1 scope=frozen unbound=1 fix_checks=2
Review notes
Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.
ship/sections/pr-body.md.tmpl:231Removing 'stamp-only-carry' from NO_STOP_CLASSES makes the receipt schema reject that class. But a branch's no-stop ledger, kept under the checkout's git dir, can still hold a stamp-only-carry recordtest/ship-receipt-carry-mixed.test.ts:1The newrecheckCarriedrefusal incmdCarry(bin/gstack-ship-receipt:713) and the QUEUE_RECEIPT_STALE branch inbindReceiptare only tested through the import added here. I saw no diff hunk thatlib/gstack-post.ts:303(p2/fix-check#1) A legacy body with no Agent notes whose receipt is unchanged can still take a runs fence quoted in its readable part; the old code did the same.lib/ship-receipt.ts:141(p2/targeted#1, p3/adversarial-native#2) Receipts an older gstack carried through the GST-1561 scoped-review route for a changed removed line can't be told apart from pure-context scoped reviews bycarry.reason, so existing ones aren't refused.bin/gstack-ship-receipt:713(p3/adversarial-native#3)carryreports refused rather than current for a receipt at HEAD that came through a re-check.bin/gstack-ship-receipt:180(p4/fix-check#1, p4/targeted#1)--no-stopparsing drops any row whose class isn't current, not only the retiredstamp-only-carry, so a malformed or unknown row no longer makes the write fail; today's writers can't produce one.Agent notes
Lane GSTA-544, issue GST-2706. Sol audit findings 1 and 2 on #4360 plus deferred items (a) through (e) from GSTA-538.
Open notes:
carry.reason, so existing ones aren't refused (p2/targeted#1, p3/adversarial-native#2).finishcompares the reviewed tree with the current one, so a base merge that only changes what a PR hunk removes, with the file's bytes unchanged, never reaches finish's routing; this predates Review a pull request's final head in full and count review rounds per PR (GST-2673) #4360.lib/ship-patch.tscontextPacketstill mentions a removed line differing; with this change that case never reaches the packet. It's left as is to avoid a review-packet change under crew rule 15.keepRunsat lib/gstack-post.ts:305-307 strips only the firstgstack-receipt-runsblock the incoming body brings. A post that places two runs blocks before its receipt therefore lets the injected one win:receiptRunsthen reads full=1 instead of 3, and the next post drops the real history. The poster is the /ship agent itself, and the error is an undercount, so it fails toward more review and the final head still gets its full review. main today drops the block entirely. The queued fix strips every incoming runs block and never returns unsanitized incoming history.Approvals
Approved: yes (record r-a19581069258). The full approval record stays private.
Plan: exempt: bug fix
Plan check: exempt bug fix