Skip to content

v1.92.28.0 ship-receipt: a base merge's metadata changes no longer block carry (GST-343, #3606) - #3706

Merged
capy-ai[bot] merged 5 commits into
mainfrom
gst-343-carry-base-readme
Nov 1, 2026
Merged

capy-ai[bot] merged 5 commits into
mainfrom
gst-343-carry-base-readme

Conversation

@garrytan

@garrytan garrytan commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 3706,
  "head": "f5a8f323630a5581e161265159c19ebd32425710",
  "version": "1.92.20.0",
  "base": "main",
  "gate": {
    "tests": {
      "pass": 461,
      "fail": 0,
      "skip": 0
    }
  },
  "session_kind": "unattended",
  "head_tree": "81e9cfd938506e1d5242f4cba6b44462e2af834f",
  "product_patch_id": "f23e7d74d2a709cf70ff40c8a83fa38d8a29f2e8",
  "gstack_version": "1.92.20.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 31,
    "rules": "150435b0a543019a",
    "base": "fd5fcb4318844ad103ab4c0340dac1562197fa35",
    "registry": "fd5fcb4318844ad103ab4c0340dac1562197fa35",
    "gate_scan": {
      "tagged": 0,
      "head": "f5a8f323630a5581e161265159c19ebd32425710"
    },
    "reasons": [
      "gate-class",
      "runtime=31<=50"
    ]
  },
  "pregate": "requires-remote cleared @81e9cfd93850 (1 checks, current for f5a8f323630a)",
  "requires_remote": [
    "windows-free-tests.yml/windows-free-shard: https://github.com/garrytan/gstack/actions/runs/41290101365",
    "pregate.json/remote_gate: remote-gate tree=81e9cfd93850 tests=461"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "updated",
    "scope": "docs/ship-policy.md receipt carry paragraph against fd5fcb4..f5a8f32; docs/troubleshooting.md RECEIPT_CARRY_PRODUCT_CHANGED unchanged and accurate"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 4,
    "fixed": 0,
    "scope": "frozen",
    "fix_checks": 2,
    "dispatches": {
      "red-team": 1,
      "fix-check": 2
    }
  }
}

Summary

#3656 taught receipt carry that a changelog.d/<slug>.md fragment is release metadata, but #3606 (GSTA-162) still refused with RECEIPT_CARRY_PRODUCT_CHANGED although its product patch-id was unchanged (c8f281d8). Its receipt was written before #3654, so merging main brought in changelog.d/README.md. Carry counted that README as a product change and dropped the fragment rule for the whole range. The PR's own fragment then entered HEAD's product patch-id but not the reviewed one. The lane had to rewrite the receipt by hand (GST-343).

What changed

  • Only the branch's own changes turn a release-metadata path back into product (bin/gstack-ship-receipt). Carry now drops a metadata glob from the product exclusion for a path the branch touched against the base, and only when that path's change is not a version stamp. The non-stamp change can be between the two heads or on either branch side (the reviewed range or the current one), counting only sides where the file actually changed. A change only a base merge brought in has the same patch against the base at both heads, so it no longer drags a matching fragment into one side's patch-id. A README edit the PR makes itself still makes carry refuse. So does a stamped file the branch edited and main later landed (v1.92.16.0 fix: /ship stops re-running the review loop after base merges, test fixes and audit-requested doc fixes #3684's GST-407 case).
  • The touched-path set comes from main's touchedPaths(), built once before the product pathspec. Carry still refuses with RECEIPT_CARRY_REFUSED when git can't list it.
  • docs/ship-policy.md says a README change the branch makes demotes the fragments, and one a base merge brings in does not.

Test plan

Review notes

  • Informational, not changed: each touched stamped path now costs two git show calls per branch side. The release-metadata carry test went from about 8 s to 13-17 s on a 4-core machine, still under the shard runner's 30 s.
  • Informational, not changed: the list of paths changed between the two heads still uses git's quoted names. A non-ASCII metadata path is matched through the branch-side check, which uses raw names.

… changes (GST-343, #3606)

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

trunk-io Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

@capy-ai
capy-ai Bot marked this pull request as ready for review October 31, 2026 16:36
garrytan and others added 4 commits November 1, 2026 08:18
…ry builds main's touchedPaths set once and passes it to productSpec

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…-stamp changes on either side (GST-343, GST-407 cycle 5 test)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…er demotes its glob

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@github-actions github-actions Bot changed the title ship-receipt: a base merge's metadata changes no longer block carry (GST-343, #3606) v1.92.28.0 ship-receipt: a base merge's metadata changes no longer block carry (GST-343, #3606) Nov 1, 2026
@capy-ai
capy-ai Bot merged commit 6bffa20 into main Nov 1, 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