Repository navigation
Let an owner's ruling ship a small edit made after /ship's final review (GST-3775) - #4818
Merged
Merged
Conversation
…775) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…on the path (GST-3775) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… branch's own parents, and list edited paths unquoted (GST-3775) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…roduct test (GST-3775) 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>
…asted paths, and mark unapplied edit rulings (GST-3775) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…deletions apart, and say gate-class paths can be ruled (GST-3775) 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>
…er, so it cannot clear an edit to another file (GST-3775) Review-Finding: p2/outside-voice#2 reader=outside-voice Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…locker fix (GST-3775) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
Merged
capy-ai Bot
added a commit
that referenced
this pull request
Nov 25, 2026
- gstack now picks the newest Opus, Fable, Sol and Astra everywhere it chooses a model. (#4811) - /autoplan no longer asks the owner a third time for changes his "do it" already approved. (#4809) - The destructive-command check no longer asks before deleting a file inside another `git worktree` of the same repository, or elsewhere in the session's own worktree. (#4834) - New guide section: you don't need to cut back on MCP servers for accuracy, up to about 300 tools, as long as Claude Code's tool search stays on. (#4814) - This release's notes no longer contradict each other. (#4839) - An owner can now let a small edit made after the final review ship as a disclosed note, and /ship honours it. (#4818) - `/eval-plan` lets a judge that grades code be checked against a third model's labels instead of people's (R126). (#4824) - `gstack-pr-wait` no longer blocks on a cancelled check that a newer passing run of the same check replaced. (#4832) - The `DEPS_MISSING` stop names npm's `allow-git` setting when the lockfile installs a package from git. (#4832) - The docs audit /gstack-ship launches starts after a reviewer's install replaced the shared install verdict. (#4832) - `gstack-ship-receipt write` leaves a retired `scoped-fix-check` row out of `--no-stop`, (#4832) - The QA-only cleanup test no longer fails at random in CI. (#4823) - Three tests that failed at random now pass reliably. (#4821) - Six tests that failed at random now pass reliably. (#4830) - /gstack-ship honours a ruled edit after the final review, and a stop on a second-model blocker records. (#4829) - `/ship` is now `/gstack-ship`, so Claude Code loads gstack's shipping skill again (#4775). (#4839) - make-pdf's new layout handles three more cases. (#4828) - make-pdf has a bold new default look, and `--style plain` keeps the old one. (#4820) - The CI image now runs Claude Code 2.1.326 and Codex 0.172.0, versions that know gstack's newest default models. (#4822) - `bin/gstack-capy-install` reads the Codex setup model from the astra row of `lib/model-families.ts` instead of naming it, so the next Astra release is still a one-line change. (#4822) - The default judge's move to claude-fable-5-2 is checked against the labelled controls next to its callers (plan-decision and DX peer-comparison calibrations, the redaction semantic pass): every item agreed with its label. (#4822) - The test harness keeps working on Claude Code 2.1.326. (#4822) - A release no longer rewrites version numbers inside changelog entries, counts subsection headings as changes, or prints a subsection heading twice. (#4803) - The /cso security audit skill is gone, because a plain request for a security audit now finds more real problems. (#4839) - /gstack-ship no longer has round grants, fix-check grants or the review-loop exception: after two review rounds a blocker ships only as an owner's ruled note, or the PR parks. (#4826) - `gstack-ship-queue ready` no longer asks for a cross-family read of the decision trail. (#4826) - `gstack-ship-receipt stop` works before a PR exists. (#4826) - Receipt checks read a path with `*` or `?` in its name as that file. (#4826) - The /gstack-ship driver records spend at start and close only, (#4826) - Skill routing no longer fires on subagent hand-backs or on a passing mention of "code review". (#4831) 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.
An owner can now rule that a small edit made after /ship's read-only final review ships as a disclosed note, and finish accepts exactly that file at exactly the ruled bytes instead of forcing a whole new /ship.
This unblocks teams that hit "behavior, tests or build inputs changed since review" over a one-line test change (garrytan/gbrain#10256), while keeping the review stop for every other edit.
Nothing to do on merge; the changelog fragment is in changelog.d/edit-ruling-fixes.md.
What changed
gstack-approvals rule --finding edit:<path> --head <stop head>records the owner's ruling for one edited path.gstack-ship-release finishroutes a ruled path asRULED_EDIT:only when the ruled head is HEAD or an ancestor of it, the file's mode and bytes in the tree finish routes equal the ruled head's, and no later first-parent commit touches it. Anything else printsRULED_EDIT_REFUSED: <path> (<why>)and finish still stops.git ls-treelookups check their exit status and must name exactly the routed path. An unreadable path, a missing file, and any spelling that holds a replacement character (U+FFFD, which a non-UTF-8 filename turns into) are refused, so a ruling can never clear an edit to a different file.RULED_NOTE: … (no RULED_EDIT at this head; not applied).gstack-review-plan --post-reviewstop prints one paste-safe, shell-quoted command per path the PR itself edited since the final review, and names deletions and whitespace paths apart.Why
GBRA-795 hit this on garrytan/gbrain#10256. After the final review, the owner ruled "ship it with the note" for a one-line test timeout change, but no command recorded that ruling in a form finish read, so the only way forward was a whole fresh /ship.
Blast radius
Only /ship's finish route and the post-review stop text change: without an
edit:ruling, finish takes exactly the path it took before, because the new block runs only over rulings whose finding starts withedit:(lib/ship-release.ts route, read and covered by test/ship-finish-edit-ruling.test.ts, which fails on main). The full free suite passed in CI at 91106aa (run 45521890768, 39514 tests).Documentation
Status: current. The documentation audit found the branch's docs accurate and made no edits.
Scope: the committed diff afb68ac..91106aa on
edit-ruling-fixes(9 commits, 9 files). There were no staged, unstaged or new files. The audit read docs/ship-policy.md, docs/review-policy.md, docs/troubleshooting.md and changelog.d/edit-ruling-fixes.md, and checked them against bin/gstack-approvals, bin/gstack-review-plan and lib/ship-release.ts.Documentation health:
#ruled-editssection matches finish's RULED_EDIT and RULED_EDIT_REFUSED routing.gstack-approvals rule --finding edit:<path>and links the ruled-edits anchor.Coverage gaps and diagram drift:
edit:<path>rulings are documented as reference (ship-policy, review-policy, the approvals help text) and as a how-to (the ship-policy command block and the printed stop line). The common gap:RULED_EDIT_REFUSED:has no docs/troubleshooting.md entry, and its message points to ship-policy.md#ruled-edits instead. There was no diagram drift.Pre-Landing Review
Pre-Landing Review: 20 issues — 3 fixed, 3 ruled notes by the lead, 14 noted, 0 deferred. Round 1 fixed two stop-line notes (20c917f). Round 2's second-model review found a real hole (a ruling on a replacement-character spelling could clear an edit to a different file); the lead granted one fix (85d571a), and the read-only final review of the whole PR found nothing blocking.
Second-model review (GPT-6.2 Sol): completed; 4 marked blocking, 1 fixed, 3 ruled notes by the lead (listed in Agent notes).
Review notes (round 2)
Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.
test/review-plan-cli.test.ts:485no test checks that a base-merge-only path stays out of the rulable listsf-312590fdd2dfsecurity finding, details recorded privatelysf-dc38c368242csecurity finding, details recorded privatelyReview notes (read-only final review)
Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.
lib/ship-release.ts:459three refusal branches (off-branch head, deletion at the routed tree, mode-only change) have no testbin/gstack-review-plan:307the edit-ruling suffix is added to every post-review stop, including blocking-open and round-cap stopsbin/gstack-review-plan:308when own is null the stop falls back to rangeBase..HEAD, which can list base-merge pathssf-8f6986f9195dsecurity finding, details recorded privatelysf-59ee42af2e9fsecurity finding, details recorded privatelyAgent notes
Agent notes
Plan: exempt: bug fix (blocker), no /autoplan per the brief.
REVIEW_LOOP: passes=3 blocking_found=4 deferred=0 noted=14 fixed=3 scope=frozen open=3 ledgers_read=4 dispatches=12
Ruled note: lib/ship-release.ts:453:outside-voice at 20c917f ruled by GStack Minder (GSTA-36) (relayed from GSTA-36:01M88297DDDZ3T1S18X74FY9N5) at 2026-11-25T00:41:06.016Z: an edit ruling matching a finding fingerprint in a file named edit grants nothing a plain rule --finding cannot already record (approval a-bcb6794ebdfc)
Ruled note: lib/ship-release.ts:457:outside-voice at 20c917f ruled by GStack Minder (GSTA-36) (relayed from GSTA-36:01M88297DDDZ3T1S18X74FY9N5) at 2026-11-25T00:41:06.135Z: a merged side branch that edits then restores the ruled bytes reuses the approval; ruled a note earlier (a-826fd86f35cb) (approval a-f2f9e7fd7250)
Ruled note: bin/gstack-review-plan:315:outside-voice at 20c917f ruled by GStack Minder (GSTA-36) (relayed from GSTA-36:01M88297DDDZ3T1S18X74FY9N5) at 2026-11-25T00:41:06.249Z: on a targeted-review PR the stop moves from finish to receipt write and still fails closed; the hint refresh is a follow-up (approval a-93ad15011e20)
Gate edits: none detected (2 listed, 0 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
Tests ran: focused 35
Other notes from the native adversarial pass, below the floor: paths are not escaped for control characters in the stop and RULED lines; with uncommitted edits the stop falls back to HEAD; an unapplied edit ruling still lists as a Ruled note in the PR body;
RULED_EDIT_REFUSEDhas no troubleshooting entry yet.