Repository navigation
fix: golden check drifts under load on bootstrap.rtl.css; fuse no longer swallowed (#4555) - #4570
Merged
Merged
Conversation
…4555) Under load the 60s SIGALRM fuse fired inside css::safety (a quadratic var() sweep, ~18s on bootstrap.rtl.css at load 80). Its TimeoutError was caught by the detector's per-rule `except Exception`, so the rule scored 0 (Defensive Programming 176 -> 0) and the file finished as a normal parsed record: a false golden drift with no excluded-queue entry for the #4247 guard. The fuse now raises RegexFuseTimeout (BaseException), so the worker relegates the file to the excluded queue and the guard refuses loudly. Output without a fuse is unchanged; no golden re-bless. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017BVJCCUMdjLJq1TAM3V34V
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #4555
Root cause (engine, minimal fix): the per-file 60s SIGALRM ReDoS fuse raised TimeoutError, which the detector's per-rule
except Exceptionswallowed. On bootstrap.rtl.css thecss::safetyrule (quadraticvar\([^,]+,...sweep, ~18s at load ~80) is the one that gets hit: it scored 0 (Defensive Programming 176 -> 0, plus fingerprint/cluster floats), the file stayed "parsed", and the #4247 timeout-exclusion guard never saw it. Fix: the fuse raisesRegexFuseTimeout(BaseException); the worker catches it, relegates the file to the excluded queue with the timeout reason, and the existing guard refuses loudly.Evidence: single-file scans with the fuse shrunk to 3s: before = parsed record with safety 0, empty excluded queue; after = file in the excluded queue with "Global Regex Timeout" (guard returns it). Unshrunk scans: identical records run to run (0 diffs). Output unchanged, so no golden re-bless. pr_gates 7/7.
Not done: the
safetyregex itself stays quadratic (rewriting risks changing counts).🤖 Generated with Claude Code
https://claude.ai/code/session_017BVJCCUMdjLJq1TAM3V34V