Skip to content

fix: golden check drifts under load on bootstrap.rtl.css; fuse no longer swallowed (#4555) - #4570

Merged
squid-protocol merged 1 commit into
mainfrom
fix/4555-golden-load-drift
Oct 6, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
fix/4555-golden-load-drift

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Closes #4555

Root cause (engine, minimal fix): the per-file 60s SIGALRM ReDoS fuse raised TimeoutError, which the detector's per-rule except Exception swallowed. On bootstrap.rtl.css the css::safety rule (quadratic var\([^,]+,... 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 raises RegexFuseTimeout(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 safety regex itself stays quadratic (rewriting risks changing counts).

🤖 Generated with Claude Code

https://claude.ai/code/session_017BVJCCUMdjLJq1TAM3V34V

…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
@squid-protocol squid-protocol added bug Unintended behavior or logic failure in the engine testing Unit, integration, and E2E pipeline verification priority: medium labels Oct 6, 2026
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol marked this pull request as ready for review October 6, 2026 14:31
@squid-protocol
squid-protocol merged commit a8d9c22 into main Oct 6, 2026
25 of 27 checks passed
@squid-protocol
squid-protocol deleted the fix/4555-golden-load-drift branch October 6, 2026 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Unintended behavior or logic failure in the engine priority: medium testing Unit, integration, and E2E pipeline verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Local golden check drifts on bootstrap.rtl.css under load (false failure; passes on rerun)

1 participant