gstack's /ship now stamps a PR's version when it is next to merge

1 month ago

gstack 1.91.73.0 to 1.91.75.0 (2026-10-11): /ship now stamps a pull request's version only when it is next to merge, gstack-restamp re-stamps the queue after a reorder in one step, a committed ship policy sets each repo's bump rule and queue mode, a tree receipt lets a gate be reused when the stamp is the only change, and every PR body opens with a ship receipt.

Ask about this presentation

Chapters

  1. 0:00Restamp
  2. 0:15Policy
  3. 0:29Gate reuse
  4. 0:41Receipt
  5. 0:56Limits
Show transcript
  1. Reordering a release queue meant hand-editing the version, changelog headings and lockfile on every pull request behind it. Now gstack-restamp stamps a pull request when it is next to merge, and /ship runs it for you.

    Slide text
    gstack logo

    gstack’s /ship stamps a PR’s version when it is next to merge

    Reordering the release queue hand edits on every PR
    gstack-restamp --next one step
    Restamp Policy Gate reuse Receipt Limits
    garrytan/gstack · CHANGELOG.md 1.91.73.0
  2. Each repo now commits a ship policy: its bump rule, queue mode and the files that carry the stamp. gstack reads it from the base branch, and when the rule is bump patch, ship stops asking for a version.

    Slide text

    A committed ship policy sets how each repo bumps and stamps

    $ cat .gstack/ship-policy.json
    Read from origin/<base>
    Policy only on your branch head (unreviewed)
    Restamp Policy Gate reuse Receipt Limits
    garrytan/gstack · CHANGELOG.md 1.91.73.0
  3. A new stamp meant a full gate run on a tree that differed by a few bytes. Now a tree receipt proves the stamp is the only change, so the earlier gate counts. Stamp-sensitive lanes still rerun.

    Slide text

    The gate can be reused when the stamp is the only change

    TREE: same-modulo-stamps gate-reuse: eligible
    TREE: changed (<paths>) not-eligible + fix
    Lanes the policy marks stamp-sensitive always rerun.
    Restamp Policy Gate reuse Receipt Limits
    garrytan/gstack · CHANGELOG.md 1.91.73.0
  4. /ship now writes a receipt as the first block of the pull request, with the tree verdict, gate reuse and policy. An evidence bundle carries the gate results to a fresh machine after the gate's VM is gone.

    Slide text

    Every PR body now opens with a ship receipt

    Ship receipt · tree verdict, gate reuse, policy, queue mode
    gstack-evidence bundle · gate results a fresh machine can check
    Restamp Policy Gate reuse Receipt Limits
    garrytan/gstack · CHANGELOG.md 1.91.73.0
  5. The policy's mirror setting is checked but skipped for now. A shallow checkout can't read the policy from the base branch. And gstack's own repo still claims a version when a pull request opens. The ship policy guide covers setup.

    Slide text

    Mirroring waits for a later release

    The policy’s mirror is validated, then skipped
    A shallow checkout can’t read the policy: POLICY_SOURCE_UNAVAILABLE
    gstack’s own repo keeps claim-at-open and bump ask
    docs/ship-policy.md setting up a policy
    Restamp Policy Gate reuse Receipt Limits
    garrytan/gstack · CHANGELOG.md 1.91.73.0

What happened in AI today, in your inbox

One short email each evening. Read it and you’re caught up.

Built with ❤️ in New York