Skip to content

fix: handle invalid regex in rubric criteria without crashing - #48

Merged
royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
sharadvc:cursor/fix-rubric-invalid-regex-22b4
Sep 12, 2026
Merged

royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
sharadvc:cursor/fix-rubric-invalid-regex-22b4

Conversation

@sharadvc

Copy link
Copy Markdown
Contributor

Summary

Invalid pattern regexes in rubric criteria now return a fail result with a clear reason instead of throwing SyntaxError and stopping the run.

Test plan

  • npm test

Fixes #33

Catch invalid RegExp patterns in rubric criteria instead of throwing,
matching regex and json-schema scorer behavior.

Fixes AgentPostmortem#33
@royalpinto007
royalpinto007 merged commit 4913198 into AgentPostmortem:main Sep 12, 2026
9 checks passed
@github-actions

Copy link
Copy Markdown

Merged, @sharadvc. Thank you for taking the time.

Contributions like this are what keep Evalgate moving.

A star on the repo would mean a lot if this project is useful to you.

Happy to see more from you whenever you have the time.

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.

Rubric criterion with invalid pattern regex throws and kills the whole run

2 participants