You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
panicMessageStartsWithBUG in pkg/linters/panic-in-library-code/panic-in-library-code.go exempts any panic() whose message starts with "BUG:" from the panicinlibrarycode linter, with no further check on call-site reachability. Several of the exempted panics (e.g. domains.go:691, claude_tools.go:142) are in fact reachable from the per-workflow compile path, so the linter cannot distinguish a real build-time invariant from a panic reachable from user input — it also encourages mislabelling panics as "BUG:" purely to silence the linter.
Expected Impact
Restores the linter's ability to flag reachable panics instead of letting a message-prefix convention bypass it, closing the loophole that let the two panics in issue "Convert domains.go/claude_tools.go invariant panics..." go undetected by CI.
Suggested Agent
GitHub Copilot coding agent — stop exempting panics by message prefix alone; require an explicit (nolint/redacted):panicinlibrarycode // <reason> justification, or restrict the exemption to init()/sync.Once/package-level-initialization contexts. Update linter testdata and add justified nolint comments to the remaining legitimate panics. Run make golint-custom.
Activity
github-actions commentedon Oct 4, 2026
This issue was automatically closed because it expired on 2026-10-04T18:42:36.633Z.