Skip to content

fix(bus): check-stale-blockers now recognizes full github.com PR URLs - #182

Open
asachs01 wants to merge 1 commit into
mainfrom
fix/stale-blocker-full-url-recognition
Open

asachs01 wants to merge 1 commit into
mainfrom
fix/stale-blocker-full-url-recognition

Conversation

@asachs01

@asachs01 asachs01 commented Sep 9, 2026

Copy link
Copy Markdown

Summary

  • unverified_external_ref only pattern-matched bare "PR #N" mentions. A full github.com/<owner>/<repo>/pull/<n> URL for the same PR names the repo explicitly — nothing left to verify — but was invisible to the checker, so a task carrying both forms kept re-flagging on every scan (4th confirmed recurrence today, task_1788535091729_35071329).
  • Adds GITHUB_PR_URL_REGEX; skips a bare "PR #N" match when a full URL for the same number appears anywhere in the same task text.
  • Verified against both live examples in the bug report, honestly — one is fixed, one isn't:
  • Also deliberately does not touch the separate "already manually superseded" mechanism (murph's mimecast-mcp PR SP2b: cloud-init bootstrap and systemd units #3 case) — that citation has no URL either, and would need the same scrutiny as the existing dismissal-marker convention (task_1788305871620_29811457, same file — already fragile, 8-case regression matrix, two rejected fix attempts). Left as an open question for that task rather than expanding this PR into already-fragile negation-scoping code.

Test plan

  • npm run typecheck — clean
  • npx vitest run tests/unit/bus/system.test.ts — 45/45 passing (3 new: URL-resolves-bare-mention, URL-for-different-number-still-flags, URL-only-no-bare-form-not-flagged)
  • npx vitest run tests/unit/bus/ — 434/434 passing, no regressions

Task-ID: task_1788535091729_35071329
Agent: dev

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

…, not just bare PR#N

unverified_external_ref only pattern-matched bare "PR #N" mentions. A full
github.com/<owner>/<repo>/pull/<n> URL for the same PR names the repo
explicitly -- nothing left to verify -- but was invisible to the checker,
so a task carrying both forms (a bare mention plus the resolving URL
alongside it) kept re-flagging on every scan.

Adds GITHUB_PR_URL_REGEX and skips a bare "PR #N" match when a full URL
for the same number appears anywhere in the same task text (title +
description), in addition to the existing precedent-citation check.

Verified against the two live examples in task_1788535091729's own bug
report: task_1788446092100_21920670 (PR #170) genuinely has a full URL in
its description and will stop re-flagging. task_1788464546954_33593143
(PR #172) does NOT -- it only ever names the repo via a parenthetical
"PR #172 (WYRE-AI/cortextos)" annotation, never a URL, so it is unaffected
by this fix. Scoped deliberately to what was asked (URL recognition) --
the parenthetical-repo-name shape is a real, different pattern worth its
own follow-up task, not folded in here.

Deliberately does NOT touch the separate "already manually superseded"
mechanism (murph's mimecast-mcp PR #3 case, task_1779287346080_74441757)
-- that citation has no full URL either, so this fix doesn't help it. It
needs the same kind of scrutiny the existing dismissal-marker convention
(task_1788305871620_29811457, same file, already fragile with a known
8-case regression matrix and two rejected fix attempts) already applies
to "tool artifact" markers, not a second bolt-on mechanism. Left as an
open question for that task's owner rather than expanding this PR's
blast radius into already-fragile negation-scoping code.

---
Task-ID: task_1788535091729_35071329
Agent: dev

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Sep 9, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 69c54158-7a0d-4daa-a546-f2f7937ffac7


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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