Skip to content

fix(design-ledger-gate): exempt Trunk merge-queue PRs from touch-coupling (RIG-4821) - #1922

Merged
mattwilkinsonn merged 2 commits into
mainfrom
compass-comms/rig-4821-ledger-gate-trunk-queue
Oct 7, 2026
Merged

mattwilkinsonn merged 2 commits into
mainfrom
compass-comms/rig-4821-ledger-gate-trunk-queue

Conversation

@rigel-mintaka

@rigel-mintaka rigel-mintaka commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Since #1799, the design-ledger-gate touch-coupling leg runs on pull_request events, including Trunk merge-queue test PRs (trunk-merge/*). Their body is the Trunk banner, so it never has a Ledger-impact: line. Every queued PR that touches a design record failed in the queue (runs 37569555833, 37571057556).

Change

  • Add trunk-merge/ to EXEMPT_BRANCH_PREFIXES in tools/design-ledger-gate/index.ts. It sits next to renovate/.
  • Each source PR already ran this leg on its own pull_request event. The snapshot leg still runs on queue PRs.

Record

  • docs/designs/repo/compass-shared-tools-repo/design.md: the Problem example and the T7 acceptance bullet no longer say compass lacks the trunk-merge/ exemption. No decision changes.

Security note

  • The exemption is based only on the branch name, same as renovate/. A PR named trunk-merge/... skips only the Ledger-impact coupling check. Snapshot and Status legs still run, and CODEOWNERS review is still required. Tightening both prefixes to the bot author is tracked in RIG-4823, along with one leftover record nit (the inventory table's drift cell).

Tests

  • New case: trunk-merge/ queue PR touching a record, no ledger, no decl → no violation. It failed before the fix and passes after.
  • The existing startsWith, not includes case still guards against a mid-branch match.
  • bun test: 108 pass. tsc: clean. biome: no new findings. The gate passes on the tree: 378 rows, 158 records.

Spec-impact: none
Ledger-impact: record-only fix (compass-shared-tools-repo Problem and T7 text match the code; no DL row change)

Refs RIG-4821

Co-authored-by: Matt Wilkinson matt@rigel.build

…ling (RIG-4821)

Trunk queue test PRs (`trunk-merge/*`) carry the Trunk banner as their body,
so the `Ledger-impact:` scan always failed on queued PRs that touch a record.
Each source PR already passed this leg on its own PR event.

Co-authored-by: Matt Wilkinson <matt@rigel.build>
@trunk-io

trunk-io Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

@linear-code

linear-code Bot commented Oct 7, 2026

Copy link
Copy Markdown

RIG-4821

… (RIG-4821)

Co-authored-by: Matt Wilkinson <matt@rigel.build>
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

Compass engineering docs preview: https://compass-comms-rig-4821-ledge.compass-eng-docs.pages.dev

Deployed from compass-comms/rig-4821-ledger-gate-trunk-queue at 9a545f8.

Changed pages:

@rigel-mintaka
rigel-mintaka marked this pull request as ready for review October 7, 2026 05:56
@mattwilkinsonn
mattwilkinsonn merged commit b698561 into main Oct 7, 2026
16 checks passed
@mattwilkinsonn
mattwilkinsonn deleted the compass-comms/rig-4821-ledger-gate-trunk-queue branch October 7, 2026 23:06
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.

2 participants