Skip to content

fix: golden bless/check refuse when a regex timeout excluded files (#4247) - #4452

Merged
squid-protocol merged 1 commit into
mainfrom
fix/4247-golden-timeout-guard
Oct 5, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
fix/4247-golden-timeout-guard

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 5, 2026 •

Copy link
Copy Markdown
Owner

Closes #4247

New tests/golden_timeout_guard.py reads the excluded queue (5. Unparsable Artifacts (Excluded Artifacts Queue)) of the fresh scan and flags any timeout-class reason ("Global Regex Timeout", "Thread Timeout (Regex ReDoS)"). No committed golden master holds one.

  • update_golden_master.py: exits 1 before writing, naming the files and suggesting a quieter rerun under golden-lock.sh; --allow-timeouts (or GITGALAXY_GOLDEN_ALLOW_TIMEOUTS=1) forces it, loudly.
  • test_golden_crucible.py (check): fails with the same message ahead of the diff.
  • crucible_check.py: --update previously ignored the bless subprocess's exit code; it now returns non-zero if a leg refuses (stops before the next leg), and the check output prints the timeout message in preference to the drift.
  • Tests: tests/test_golden_timeout_guard.py (synthetic audit with a timeout-excluded file: guard, check, bless refuse/force, crucible_check exit code). 29 passed with test_golden_store. ruff and mypy audits clean. No golden masters touched, so no bless was needed.

Not run locally: a full crucible check (no engine change; guard is tested with synthetic audits).

🤖 Generated with Claude Code

https://claude.ai/code/session_01VrujbRefDqQ8ptAwTBQTaz

@github-actions

github-actions Bot commented Oct 5, 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 5, 2026 13:51
@squid-protocol
squid-protocol merged commit e3ace8a into main Oct 5, 2026
29 checks passed
@squid-protocol
squid-protocol deleted the fix/4247-golden-timeout-guard branch October 5, 2026 13:51
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.

Golden bless/check: detect a regex timeout pushing a file into the excluded queue under load, and refuse

1 participant