Repository navigation
/ship catches a file-mode change from main on files whose names start with a colon - #4774
Merged
Merged
Conversation
…iled lookup as a change 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>
|
😎 This pull request was merged. |
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.
/ship's file-mode check now reads file names literally, so a name like
:!tool.shor:(top)tool.shcan 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.
What changed
comparePath(lib/ship-patch.ts) asksgit --literal-pathspecs ls-treefor each head's file mode. A lookup that fails now counts as a change that needs review, instead of two failures comparing as equal.baseHoldsuses the same literal lookup, so:(top)tool.shno longer reads the mode of the roottool.sh.Blast radius
Only /ship's check of whether a merged head still matches what was reviewed. Normal file names behave exactly as before. A name starting with git pathspec magic now gets a full review whenever its mode moved.
Tests
test/ship-base-side-masks.test.ts: a base exec-bit flip on:!tool.sh,:(glob)tool.shand:(top)tool.shis changed, and the same merge without the flip is still context.baseHoldsdoes not hold a reviewed mode change the base dropped on:(top)tool.sh, and does hold it when the base took the mode. Skipped on Windows, where those names are not legal.Agent notes
Agent notes
Review
Two rounds, light depth (batched specialist with the Red Team prompt, native adversarial Opus 5.5). Round 1 at 0764509: the specialist found nothing; the native adversarial reader found the same unflagged lookup in
baseHolds(Medium), the changelog overclaiming because of it (Low), and no:(top)test (Low). All three were fixed in 959fd98. gstack's plan requires a full round 2 after any fix, so round 2 ran at 959fd98, and both readers were clean. The changelog fragment was then renamed to match the branch (6b42345).Review notes
lib/ship-receipt-patch.ts:96andlib/ship-receipt-depth.ts:427still callls-treewithout literal pathspecs. Both fail toward more review, and both are outside this diff.Documentation
Status: current. No documentation changes were needed for this branch.
Scope: base
6ef38613to HEAD6b423456onls-tree-mode-check-fails-closed: 3 commits and 3 committed files (lib/ship-patch.ts,test/ship-base-side-masks.test.ts,changelog.d/ls-tree-mode-check-fails-closed.md), with nothing staged, unstaged or untracked. The change makes /ship's file-mode check incomparePathandbaseHoldsread file names literally (--literal-pathspecs) and treats a failed mode lookup as a change that needs review. A file whose name starts with:can no longer hide a base-side mode change.Documentation health:
docs/ship-policy.md: Current. The carry table already requires the branch's file modes to stay identical across a base merge, and thecomparePath/baseHoldsrules describe the behavior the fix restores.docs/troubleshooting.md: Current. TheRECEIPT_CARRY_SCOPED_REVIEWand product-changed guidance is still accurate.docs/pregate.md,docs/TESTING_INTERNALS.md,docs/designs/GSTACK_ON_CAPY.md: Current. They mention modes orlib/ship-patch.ts, but this behavior doesn't affect them.CHANGELOG.md: Current (not edited). The entry is the branch's fragmentchangelog.d/ls-tree-mode-check-fails-closed.md, which matches the diff.README.md,AGENTS.md,CONTRIBUTING.md: Current. The diff touches no feature list, command or setup step.Coverage: no new public surface (no command, flag, config key or exported API), so there's no documentation debt.
Diagram drift: none.
Validation notes
Approvals
Plan: exempt: bug fix follow-up to #4754 (no plan needed)