Repository navigation
Add a test that stops /ship from gaining refusals without a stated reason (GST-3562) - #4740
Merged
Merged
Conversation
…ason The test lists the 131 refusal codes /ship raises today; a new code needs an R56 reason in test/fixtures/ship-refusal-codes.json and a removed one must leave the list (GST-3562 Q). Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
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.
A new test lists the 131 ways /ship can refuse to continue today and fails when a new one appears without a written reason.
Why: about a third of gstack's recent PRs were gstack repairing its own gates, and new refusals are how that work grows.
Nothing for readers to do; it changes no /ship behavior.
What changed
test/ship-refusal-code-ratchet.test.ts scans /ship's review, release-check and merge-queue code for refusal codes (
code: 'X'andrefused('X')-style calls) and compares them with test/fixtures/ship-refusal-codes.json. The 131 codes raised today form a baseline that may only shrink. A new code needs an entry undercodeswhose reason starts with "R56:" and names its evidence or measurement plan, and a code that leaves the source must leave the list.Why
"25 of 67 merged gstack PRs on 2026-11-22 were gstack repairing its own gates." Each new refusal is a new way for /ship to stop someone's work, so this test makes every new one state why it earns its place.
Blast radius
It touches only a test and its fixture, with no product code, skill prose or reviewer prompt changes, so no /ship run behaves differently. The test reads source files and runs nothing (file read: test/ship-refusal-code-ratchet.test.ts; it passed on main and in CI at e17fb72).
Documentation
Scope: I reviewed tree 2a583355f7e31ae0532b03beb9a810ee75c4d7af. The change is 4 committed files (e17fb72 over base 8143a91), and nothing is staged, unstaged or untracked. It's all test infrastructure plus one changelog fragment.
Result: The docs are current, so I made no edits. The fragment's "131 ways" matches the fixture: the baseline has 131 codes and
BASELINE_MAXis 131. docs/TESTING_INTERNALS.md describesFREE_FIXTURESin general terms, and the new entry fits that description. No doc lists refusal codes or per-test ratchets, and the banned-terms check found nothing.Debt: The refusal-code ratchet has no prose docs. It's explained only in the fixture's
_commentand in the test's own failure messages. Filling that gap means writing new content, so I'm reporting it as debt instead of writing it.Agent notes
resultLine(...)(for example STOP_UNBOUND, GRANT_SPENT), its baseline check is by length (a retired baseline name could be swapped for a new one), and it has no planted positive or negative control. These are follow-ups, not regressions: nothing checked this before.Approvals
Plan: approved (record r-e4cfb8408c4d)
Plan check: approved (record r-e4cfb8408c4d)