Skip to content

Stop reading ship receipt CI run ids as phone numbers (GST-2047) - #4197

Closed
garrytan wants to merge 1 commit into
mainfrom
receipt-run-ids-are-not-phone-numbers
Closed

garrytan wants to merge 1 commit into
mainfrom
receipt-run-ids-are-not-phone-numbers

Conversation

@garrytan

@garrytan garrytan commented Nov 9, 2026

Copy link
Copy Markdown
Owner

What changed

gstack-post no longer holds a PR body because its ship receipt carries GitHub Actions run ids. Run ids in the receipt's run-id fields (ci_carried[].run, flaky_exception[].runs, issues.flakes[].run) pass the pii.phone.e164 check when the block is one the receipt writer rendered: a closed gstack-ship-receipt fence whose JSON passes the receipt schema and is byte-identical to renderReceiptBlock's output. Only those value positions are exempt.

Why

Each carried CI entry held as a phone number, so every ship tail with carried CI needed --confirm (seen on garrytan/gstack-evals#289). Routine confirmation trains crews to wave through holds they should read.

Blast radius

lib/gstack-post.ts only: the exemption filters pii.phone.e164 findings after the scan, by line and column of the parsed receipt's run-id values. lib/redact-patterns.ts and every other caller of the shared phone pattern are unchanged. Still held (tested): an E.164 or bare 11-digit number in prose, a carried run id copied into prose, the same number under any other receipt key (thread, attempt, lane, issues.flakes[].issue), a number on the line before or after the block, and a number inside a schema-invalid, hand-written one-line, malformed-JSON or unclosed receipt block. Mutation checks: dropping the schema check, dropping the byte-identity check, or exempting one extra key each fails the new test.

Agent notes

Failing-first: the new test failed on main 68b1d05 with four pii.phone.e164 findings, one per carried run. Docs: one bullet added under the existing redact-run-id-as-phone troubleshooting anchor (anchor unchanged). Changelog fragment added.

Open in Capy

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

trunk-io Bot commented Nov 9, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@capy-ai

capy-ai Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Superseded by #4198: same change on a branch whose name passes the plain-words check. Closing this one.

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