Skip to content

fix(pr-writer): prevent hallucinated placeholder issue references#147

Closed
sentry-junior[bot] wants to merge 1 commit into
mainfrom
jr/fix-placeholder-issue-refs
Closed

fix(pr-writer): prevent hallucinated placeholder issue references#147
sentry-junior[bot] wants to merge 1 commit into
mainfrom
jr/fix-placeholder-issue-refs

Conversation

@sentry-junior
Copy link
Copy Markdown
Contributor

@sentry-junior sentry-junior Bot commented May 14, 2026

Prevent hallucinated placeholder issue references like Closes https://github.com/getsentry/sentry/issues/XXXXX (observed in getsentry/sentry#115461).

  • Step 5: tighten issue-ref rule — require exact ID from trusted context, omit otherwise
  • Step 6: add pre-submit gate — strip unverified refs, block placeholder IDs
  • Issue References section: label example IDs as non-copyable

Fixes getsentry/junior#343

Strengthen issue reference guardrails in three places:

- Step 5 rules: require issue refs to come from trusted context (user
  request, branch name, commits, existing PR body, or verified tracker
  output); explicitly forbid placeholder patterns
- Issue References section: label examples as non-copyable; require
  omission when no real issue is known
- Step 6 pre-submit: add a validation gate that checks every issue
  reference before running create/update commands

Fixes getsentry/junior#343

Co-Authored-By: Junior[bot] <junior@sentry.io>
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.

PR writer hallucinates placeholder issue refs

0 participants