Repository navigation
fix(combos): preserve moderation category boundaries in a single scan - #8978
Conversation
Carry the bounded matcher from #841 and retain both category-list readings until the end of the message. Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
✅ Deterministic PR hygiene checks passed. |
…cktracking The added category-boundary cases also matched the old regex, so nothing failed if the scan were reverted. This case uses the CodeQL js/redos attack shape from #841: on origin/dev it takes about 976 ms per body (Bun's backtracking limit), on this head 1.4 ms.
|
Maintainer integration into
This is maintainer integration, not an independent approval. |
Summary
Verification
bun test tests/routing/router-combo-failover-classification.test.ts -t 'recognizes category-list boundaries|the observed gateway refusal|moderation phrases alone|recognizes explicit moderation codes|hard stops like|generic 400 errors without moderation phrasing'passed 9 tests and 86 assertions.bun run typecheckpassed across 2,681 files.git diff --checkpassed.Checklist
Maintainer review is pending.
Summary by CodeRabbit