Skip to content

gstack-post flags the ship receipt's own run id as pii.phone.e164 #4480

Closed

Description

@dgrant

gstack version: 1.100.0.0 (Linux, Claude Code host)

What happened: At /ship Step 19, gstack-ship-receipt write --pr <n> --run <SESSION_ID> ... --body <file> appends the gstack-ship-receipt JSON block to the PR body. Then gstack-post pr-body <n> --body-file <file> refused with exit 2:

RULE: pii.phone.e164 LINE: 192 PART: body
gstack-post: MEDIUM findings; nothing was posted. Ask the user about each finding; to post these exact bytes, rerun with --confirm <token>.

The only phone-shaped string in the body is the receipt's own run id: the SESSION_ID that gstack-skill-start echoes, in the form <pid>-<epoch>-<8 hex>, e.g.

  "run": "1234567-1794900000-0a1b2c3d",

A 7-digit pid followed by a 10-digit epoch reads as an E.164 number.

Expected: The receipt gstack writes itself should post without a PII confirmation. receiptDigitTokens in lib/gstack-post.ts already exempts the receipt's 12-digit tree=/head= shas and 11-digit CI run ids, but not the session-id run field.

Repro: Run /ship until Step 19 in a session whose SESSION_ID pid has 7 digits, and post the receipt-bearing body with gstack-post pr-body.

Suggested fix: Inside a gstack-ship-receipt fence, exempt the "run" value when it matches the skill-start session-id shape (^\d+-\d{10}-[0-9a-f]{8}$), the same way the receipt's tree and head shas are exempt.

Workaround used: confirmed the token with --confirm after checking that the match was the run id.

Activity

  1. capy-ai commented on Nov 18, 2026

    @capy-ai
    Contributor

    Fixed in #4488. gstack-post no longer reads the session run id in /ship's receipt, or the all-digit commit prefixes on /ship's receipt lines, as phone numbers. A real phone number anywhere else still needs a confirm. Thanks for the clear report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions