Skip to content

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
capy-ai[bot] merged 8 commits into
mainfrom
gsta-132-size-ledger
Oct 28, 2026
Merged

capy-ai[bot] merged 8 commits into
mainfrom
gsta-132-size-ledger

Conversation

@garrytan

@garrytan garrytan commented Oct 27, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 3522,
  "head": "f7e77da7d1b787909344bc91e4872dab21368a8f",
  "version": "1.91.284.0",
  "base": "main",
  "session_kind": "unattended",
  "run": "jam_01M5ZPX96WKXJTKDTYGJZ8R8XN",
  "queue_mode": "stamp-at-merge",
  "pregate": "requires-remote cleared @caae966df2e8 (1 checks, current for f7e77da7d1b7)",
  "requires_remote": [
    "free-tests.yml/cso-macos-launcher: https://github.com/garrytan/gstack/actions/runs/40601206690",
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/40601206690",
    "windows-free-tests.yml/windows-free-shard: https://github.com/garrytan/gstack/actions/runs/40601207092",
    "pregate.json/remote_gate: remote-gate tree=caae966df2e8 tests=23092"
  ],
  "docs": {
    "status": "current",
    "scope": "README.md, docs/, CONTRIBUTING.md, AGENTS.md, CLAUDE.md (release diff 9ccb5233..0f6ca6f plus CHANGELOG)"
  },
  "review_loop": {
    "passes": 2,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 5,
    "fixed": 5,
    "scope": "frozen"
  }
}

What changed

Before/after: two ship-touching PRs in one train

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.json holds 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 adds test/size-ledger/ship/<branch>.json with 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 (NEXT train 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 maxSizeRatio literal 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 of test/size-ledger/ship/HISTORY.md under "Superseded at the cut-over", and base.json was 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)

  • The notes-ref-only STALE path has no test.
  • The --no-fetch fetched guard (lib/ship-queue-train-verify.ts:181) and the held-freeze message (:183) are untested.
  • Slug collision in ledger entry names (test/helpers/size-ledger.ts:63) loses which branch wrote an entry.
  • Eng review F4 (Medium) is unresolved.
  • docs/CONTRIBUTOR_REFERENCE.md still explains caps as ratios (docs debt).
  • Plan items deferred to GStack Minder at READY: reports/GSTA-132.md and handoffs/GSTA-132/gbrain-note.md.

Approved plan: autoplan GSTA-132 gate rev 1, rec (GStack Minder under Garry's "Do it", 2026-10-27).

Open in Capy

…rify refuses a stale all-merged train (#3519 b, c)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@trunk-io

trunk-io Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 7 commits October 27, 2026 22:37
…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>
…Windows Bun starts it

The CLI test passed --config=/dev/null, which native Bun on Windows cannot open
(#3415); Windows Free Tests shard 6 failed at 4143373 with exit 1 and empty stdout.

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>
@github-actions github-actions Bot changed the title feat(ship-queue): the ship size cap composes across a merge train; verify refuses a stale all-merged train (#3519) v1.91.286.0 feat(ship-queue): the ship size cap composes across a merge train; verify refuses a stale all-merged train (#3519) Oct 28, 2026
@capy-ai
capy-ai Bot merged commit 3986182 into main Oct 28, 2026
63 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant