Problem
A rubric criterion with pattern: "([" throws SyntaxError: Unterminated character class out of the scorer and kills the whole run. Sibling scorers (regex, json-schema) try/catch this; rubric does not.
Where
src/scorers/rubric.ts (new RegExp(c.pattern, "i"), no guard) + src/runner.ts (awaits scorer with no guard).
Acceptance
Add a failing test first scoring {criteria: [{description: "x", pattern: "(["}]}, expecting a fail-result not a throw. Then fix.
Problem
A rubric criterion with
pattern: "(["throwsSyntaxError: Unterminated character classout of the scorer and kills the whole run. Sibling scorers (regex,json-schema) try/catch this; rubric does not.Where
src/scorers/rubric.ts(new RegExp(c.pattern, "i"), no guard) +src/runner.ts(awaits scorer with no guard).Acceptance
Add a failing test first scoring
{criteria: [{description: "x", pattern: "(["}]}, expecting a fail-result not a throw. Then fix.