Repository navigation
v1.91.286.0 feat(ship-queue): the ship size cap composes across a merge train; verify refuses a stale all-merged train (#3519) - #3522
Merged
Conversation
…rify refuses a stale all-merged train (#3519 b, c) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
…nly on a fetched main, open-slot freeze control, LF size-ledger fixture) - verify's clear-time NEXT names gh pr view <n> --json state,headRefOid per unreadable slot instead of a pasteable #n@sha that views the current branch's PR - QUEUE_TRAIN_STALE needs a fetched main (never under --no-fetch) and reports a freeze restored from the notes ref instead of saying the queue is not frozen - freezeQueue docstring matches the unreadable field - new test: a train with a slot still OPEN freezes even when another train verified main's sha - test/size-ledger.test.ts fixture repo sets core.autocrlf false (Windows Free Tests shard 4 counted CRLF bytes) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…_TRAIN_STALE Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…nothing) The remote pregate refused 82f160c with PREGATE_NO_LANE: no test named scripts/size-ledger.ts. The new case runs the CLI itself. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…cut-over Rule 19 grant (GStack Minder) for one merge. carve-guards keeps sizeLedger for ship; main's maxSizeRatio 1.7529 re-pin (#3497) moved verbatim to the top of test/size-ledger/ship/HISTORY.md. base.json re-measured on the merged tree: 329,024 union bytes. CHANGELOG released entries are main's byte for byte. 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> # Conflicts: # CHANGELOG.md
MERGE_CONDITION: sha=1b7c8b3af32a093924205f4894cba6c5d224630a next: NEW_VERSION=1.91.286.0; commit and push only the stamp diff above (FILES), with no edit of your own: the train's verify accepts the CHANGELOG only as the base's plus this PR's entry re-headed; merge with the expected head 1b7c8b3 and recompute on a stale queue. GSTACK_RESULT: skill=restamp status=complete run=/workspace/gstack/.gstack/tmp/restamp-journal.json 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.
What changed
Real Free Tests runs on the train's own T2 (main 10b77de + A +62 + B +5): before, run 40603720446 fails parity "size ratio 1.753 > maxSizeRatio 1.7532"; after (on this PR's head), run 40603725348 is green.
Ship's union-size cap is now a byte ledger instead of a ratio pinned to one tree.
test/size-ledger/ship/base.jsonholds ship's union bytes (329,024 on main 10b77de merged with this PR, the size main's own 1.7529 re-pin measured), and a branch that changes them addstest/size-ledger/ship/<branch>.jsonwith its signed delta and a reason (bun --no-env-file --config=/dev/null scripts/size-ledger.ts record ship --why "…"). The parity suite requires the measured union to equal base plus every entry, exactly.Verify on a train whose every slot already merged, against a main another train verified, now refuses with
QUEUE_TRAIN_STALE(NEXTtrain prune --stale --train <nonce>) instead of freezing the queue and dispatching a backstop, and the freeze record keeps unreadable slots in a field the post-repair NEXT names (#3519 b, c).Why
Every ship-touching PR re-pinned the same
maxSizeRatioliteral on its own tree, so two of them in one train overshot the cap together: train 26's free run failed twice ("size ratio 1.753 > maxSizeRatio 1.7528", then "1.752 > 1.7524"). A ledger entry is a property of its branch's own diff, so it survives base merges and composes in any train order with no re-pin and no fifth stamp file.Merge with main
One merge of main 10b77de (v1.91.284.0) under GStack Minder's rule 19 grant. Main had re-pinned ship to
maxSizeRatio: 1.7529(#3497); that literal and its comment moved verbatim to the top oftest/size-ledger/ship/HISTORY.mdunder "Superseded at the cut-over", andbase.jsonwas re-measured on the merged tree (329,024). No other skill's cap changed; CHANGELOG released entries are main's byte for byte.Review notes (informational, not looped)
--no-fetchfetchedguard (lib/ship-queue-train-verify.ts:181) and the held-freeze message (:183) are untested.Approved plan: autoplan GSTA-132 gate rev 1,
rec(GStack Minder under Garry's "Do it", 2026-10-27).