Skip to content

REGEXP_MATCH_BUDGET_MS

const REGEXP_MATCH_BUDGET_MS: 50 = 50

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/approvals/matcher.ts:174

ยง3.1 โ€” the run-time budget for ONE regexp entry evaluation, in milliseconds.

It is a backstop reported rather than swallowed, not the primary defence: a pattern is length-capped and compile-checked when the config loads (approvalEntrySchema), and a short pattern can still backtrack catastrophically. What this bounds is the damage โ€” and, more importantly, it makes a pattern that stopped deciding visible, so a session in which one quietly fell out of use cannot be mistaken for one in which it works.