Skip to content

v1.91.344.0 ship-receipt: carry counts changelog fragments as release metadata (GST-343) - #3656

Merged
capy-ai[bot] merged 2 commits into
mainfrom
gst-343-carry-fragments
Oct 31, 2026
Merged

capy-ai[bot] merged 2 commits into
mainfrom
gst-343-carry-fragments

Conversation

@garrytan

@garrytan garrytan commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 3656,
  "head": "eed7d4e485418a758b031358fd9f2633804a067d",
  "version": "1.91.342.0",
  "base": "main",
  "gate": {
    "tests": {
      "pass": 4105,
      "fail": 0,
      "skip": 0
    }
  },
  "session_kind": "unattended",
  "head_tree": "930c040195d0c949b8b93a19e66213c1503de825",
  "product_patch_id": "28ceb7bc490495ad35e319137f9c6ad2fb8c8641",
  "gstack_version": "1.91.342.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 26,
    "rules": "55726fab80631072",
    "base": "53522b1bbc60b3dc820842371f80ebc9db7911ec",
    "registry": "53522b1bbc60b3dc820842371f80ebc9db7911ec",
    "gate_scan": {
      "tagged": 0,
      "head": "eed7d4e485418a758b031358fd9f2633804a067d"
    },
    "reasons": [
      "gate-class",
      "runtime=26<=50"
    ]
  },
  "pregate": "requires-remote cleared @930c040195d0 (1 checks, current for eed7d4e48541)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/41137870268",
    "windows-free-tests.yml/windows-free-shard: https://github.com/garrytan/gstack/actions/runs/41137870291",
    "pregate.json/remote_gate: remote-gate tree=930c040195d0 tests=4105"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "updated",
    "scope": "docs/ship-policy.md receipt carry paragraph against the 53522b1..eed7d4e diff; docs/troubleshooting.md RECEIPT_CARRY_PRODUCT_CHANGED already says release metadata, no change"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 7,
    "fixed": 2,
    "scope": "frozen",
    "fix_checks": 0,
    "dispatches": {
      "specialist": 1,
      "red-team": 1
    }
  }
}

Summary

Since #3654 turned on changelog fragments for gstack, a base merge that moves a PR's [Unreleased] entry into changelog.d/<slug>.md made gstack-ship-receipt carry refuse with RECEIPT_CARRY_PRODUCT_CHANGED. Every lane that merged main lost its carry and needed a new review pass for a changelog edit (GST-343, found on #3648). Carry now counts a fragment as release metadata, the same way it counts CHANGELOG.md.

What changed

  • Fragments are release metadata in carry (lib/ship-receipt.ts, bin/gstack-ship-receipt). When the base policy sets changelog_fragments, each <dir>/<slug>.md directly under the directory is metadata and leaves the product patch-id. The directory's README.md, a nested path, a non-Markdown file, and a fragment under a policy without changelog_fragments stay product. A README change in the range demotes the fragment glob, so that carry fails closed. A leading ./ or a trailing slash in dir is normalized first, so git's pathspec and the classifier agree.
  • docs/ship-policy.md lists the fragment under release metadata in the receipt carry section.

Review notes

  • Informational, not changed: a backslash in changelog_fragments.dir reads differently in git's glob and in matchesAny. Other policy globs have the same gap, and the validator could reject \\ in a later fix.
  • Informational, not changed: a receipt written before the base turned on fragments recorded its patch-id with the fragment counted as product, so a rebase carry (planTreeCarry) still refuses. That fails closed.

Test plan

  • test/gstack-ship-receipt.test.ts: a merge-only head that moves the entry into changelog.d/feat.md carries as "base merge + release metadata". A README edit in the same merge is refused and named, and so is the same move when the base policy has no changelog_fragments. The test failed before the fix ("metadata" expected, "product" received).
  • bun run typecheck
  • Remote free tier (gstack-pregate --stage tests --remote, UBI_OWNER=gsta154) at tree 930c0401: 4105 tests, 0 failed, $0.05. macOS and Windows lanes cleared by this PR's CI runs 41137870268 and 41137870291.
  • Locally, three test/ship-receipt-carry-pregate and -carry-rewrite fixture cases fail when gstack's launch environment is exported into the test shell. They fail the same way with main's carry code, and they pass on this branch without that environment.

garrytan and others added 2 commits October 30, 2026 22:23
…etadata (GST-343)

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

trunk-io Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

@capy-ai
capy-ai Bot marked this pull request as ready for review October 30, 2026 22:39
@github-actions github-actions Bot changed the title ship-receipt: carry counts changelog fragments as release metadata (GST-343) v1.91.344.0 ship-receipt: carry counts changelog fragments as release metadata (GST-343) Oct 31, 2026
@capy-ai
capy-ai Bot merged commit c6e781f into main Oct 31, 2026
62 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