Repository navigation
/ship counts a clean base merge as reviewed (GST-3562) - #4754
Merged
Merged
Conversation
A base merge that leaves the branch's own added and removed lines, file modes and symlink targets byte-identical now counts as reviewed in finish and in the receipt step, with CI on the merged head as the check. Only hunks the base merge spliced still take one scoped reader. A test locks in that a receipt without the docs, review-loop, issue or budget records binds. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
…ed check (GST-3562) An insertion whose order against lines the base inserted or replaced at the same spot was chosen by the merge now goes to one scoped reader instead of counting as reviewed. A diff with bytes that are not UTF-8, or a file mode that differs between the reviewed and current heads, now counts as changed. The carry reason names at most 20 moved-context paths, and the changelog no longer claims the slim receipt is new. Review-Finding: p1/outside-voice#1 reader=outside-voice Review-Finding: p1/outside-voice#2 reader=outside-voice Review-Finding: p1/outside-voice#3 reader=outside-voice Review-Finding: p1/red-team#1 reader=red-team Review-Finding: p1/red-team#2 reader=red-team Review-Finding: p1/targeted#1 reader=targeted Review-Finding: p1/adversarial-native#1 reader=adversarial-native Review-Finding: p1/adversarial-native#4 reader=adversarial-native 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>
…y (GST-3562) 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 24, 2026
… with a colon (#4774) /ship's file-mode check now reads file names literally, so a name like `:!tool.sh` or `:(top)tool.sh` can no longer hide a mode change that a merge brought in from main. Why: this was the one open finding on #4754 that could let a changed head count as reviewed. Nothing for readers to do. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: p1/adversarial-native#1,#2,#3
Merged
capy-ai Bot
added a commit
that referenced
this pull request
Nov 24, 2026
- `/ship` now tells you what to change when GitHub refuses a push for email privacy. (#4748) - The release gate's /cso check accepts the low-confidence hypotheses /cso now reports. (#4753) - /cso reports every security finding the code supports instead of dropping most of them. (#4739) - /cso can search the whole repository in one call, and a daily report now lists its low-confidence hypotheses. (#4742) - A first version's plan and try-it message now open with the owner's own words, and the build is tried the same way he will try it before he is asked. (#4759) - A first version's public export now keeps out the owner's short quotes and his reasons to leave something out, and a phone first-use check installs a build the cloud phone can actually run. (#4772) - Three intermittent test failures are fixed. (#4745) - Free Tests runs its shards on 8-core runners again. (#4749) - A land that waits on an earlier CI run now decides on what that run actually did. (#4763) - Landing a PR no longer starts a new CI run when one for the same merged code is already running or has passed. (#4760) - /ship no longer misses a file-mode change from main on files whose names start with `:`. (#4774) - make-pdf keeps quotes in alt text, link titles and raw HTML attributes inside the attribute, so a Markdown file can no longer add an `onerror`, `onload` or `javascript:` link that runs in the print browser. (#4761) - Posting a PR body that lists earlier /ship runs no longer stops for a phone number that isn't there. (#4747) - A first version's public export now catches a short owner quote whose padding or quote marks are encoded. (#4778) - A first version's public export now also keeps out a short owner quote written with spaces just inside its quote marks. (#4776) - Posting a PR body that lists earlier /ship runs no longer stops for a card number that isn't there. (#4751) - /ship no longer asks for an extra reader when you merge the base branch next to code that was already reviewed. (#4754) - /ship no longer plans narrow re-checks after a fix. (#4741) - /ship can't quietly gain new refusals. (#4740) - `gstack-upgrade` no longer refuses to run after you disable skills. (#4743) - The free test suite splits its shards from this week's recorded test times. (#4744) - gstack now writes up a failed or shelved attempt before closing it. (#4735) 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 you merge main into a reviewed branch and your own lines, file modes and symlink targets come through byte-identical, /ship now treats the head as reviewed and lets CI check it, instead of asking for another reader.
Why: these routine merges cost a reader stop on almost every PR that sat a day, and the reader only ever re-read lines that had not changed.
Part of the /ship simplification Garry approved (items G and H); nothing for readers to do.
What changed
Why
The old rule sent every merge that touched nearby lines to a reader, even when none of your lines moved, so most PRs paid for a read that could not find anything new. The cases that can change what your code does, a splice into your own lines or a merge that orders your insertion against new lines, keep their reader.
Blast radius
Only /ship's final check and the step that moves a review record to a merged head. Merges that change your own lines, file modes or symlink targets still stop for review as before, with one known gap listed under Deferred findings: a file whose name starts with git pathspec magic (for example
:() can hide a mode flip that comes from main. CI at the merged head remains a required check before anything lands.Tests
Agent notes
Documentation
Status: updated. One factual correction in docs/ship-policy.md, no blockers.
Scope: 14 committed paths on ship-clean-base-merge-reviewed (base 1cb0a3e, head 8e66033), with nothing staged, unstaged or untracked. I searched every authored .md and .tmpl file for wording about receipt carry, base context and scoped review.
Documentation health
Coverage debt: None in this diff's docs. docs/ship-policy.md:1918 (reviewed-tree STALE wording) was not checked against code this diff doesn't touch.
Diagram drift: None. No diagrams cover this path.
Deferred findings
Each is outside this PR's own change or fails closed; none meets the blocking floor (would fail a test, break production, or lose data or secrets).
lib/ship-receipt-patch.ts:232Step 11.5's merge-only check (baseMergeOnly) still reads moved context as STALE, so an in-progress /ship that merges main before its first receipt asks for another full review. Stricter than finish, never looser; on main already. Follow-up work.lib/ship-receipt-depth.ts:258A targeted-reader record made before such a base merge failsreceipt write(product patch-id moved). On main already, fails closed. Follow-up work.lib/ship-patch.ts:195The head-mode check callsgit ls-treewithout--literal-pathspecsand compares two failed lookups as equal; also flagged by the Red Team and the native adversarial reader. Needs a pathspec-magic file name (or a git failure on both heads) plus a mode flip from main. One-line fix, offered as a follow-up.lib/ship-patch.ts:189The no-reader route compares hunks with the shared-preamble id mask applied; a change only inside that exactgstack shared preamble \<12 hex>`` form would read as unchanged. The mask predates this PR (it already let such paths compare as same).bin/gstack-ship-receipt:759Carry skipscomparePathwhen the 3-line patch-ids match, so an insertion moved to a spot with identical surroundings carries as a plain base merge. Finish still catches the splice, but its packet drops both matching hunks by text, so that reader would not see the moved insertion. Predates this PR.lib/ship-receipt.ts:385A file name containingscoped re-check bywould make the new reason read as a legacy advisory carry and the record refuse to bind (fails closed).lib/ship-preflight.ts:125Preflight wording still describes splices as adjacent edits. Prose only; goes with the follow-up prose PR.Fixed after round 2: Low (second-model review, round 2 #7)
docs/ship-policy.md:2498The dry-run guide still described the removed route. The Step 14.5 docs audit fixed it in 18290d5 and one scoped reader read that fix clean.Review notes
lib/ship-release.ts:410A context path routes as base before the metadata, tests and docs buckets: it is treated like a same path, which is the point of G.lib/ship-patch.ts:171A file that really contains U+FFFD now always gets a full review (fails closed).lib/review-targeted-delta.tsThesplicedfilter row keeps main's behavior (spliced was a subset of context) and has no dedicated test (coverage audit, 15/16 paths).Review
Two full rounds, both at this PR's own heads, panel: batched specialist, Red Team, targeted gate reader, native adversarial (Opus 5.5), second-model review (GPT-6.2 Sol). Round 1 at e263f87: four readers independently found the same-spot insertion ordering gap; fixed in 283e9f6 with the non-UTF-8 and head-mode tightenings, the reason path cap and a changelog correction; two outside findings deferred above. Round 2 at 283e9f6: no fix round (last round); its findings are deferred or noted above. Two rounds is the limit, so the PR ships with these notes. The second-model reader marked four of them blocking; each was judged below the blocking floor because it predates this PR or fails closed, except the pathspec-name mode gap on the new no-reader route, which needs a file name starting with pathspec magic plus a mode flip from main and is offered as a one-line follow-up. The Step 14.5 docs edit got one scoped reader (clean). REVIEW_LOOP: passes=2 rounds=2.
Validation notes
bun run testat 18290d5 exited 1 with 81 failing tests in 13 files, all cso-* (no optional native helper on this machine), gbrain-sync-skip, codex-hooks-setup, model-policy-cli and redact-kv-after-slash (a /cso history test). None touches ship code; CI ran the same tree green. The runner also flagged writes to the real home during the run, all under~/.codex/tmp/arg0-linux/(Codex CLI temp files), not from ship code. Green CI on the same tree shows the difference is local; it does not by itself prove the cause of each local failure.~/.capy/work/hg/focused2.log).Approvals
Plan: approved (record r-e4cfb8408c4d)
Plan check: approved (record r-e4cfb8408c4d)
Agent notes