Skip to content

fix(core): normalize rubric grader name to rubrics#1196

Merged
christso merged 1 commit intomainfrom
fix/rubric-name-consistency
Apr 29, 2026
Merged

fix(core): normalize rubric grader name to rubrics#1196
christso merged 1 commit intomainfrom
fix/rubric-name-consistency

Conversation

@christso
Copy link
Copy Markdown
Collaborator

Summary

The criteria: shorthand path (buildLlmGraderFromCriteria) hardcoded name: 'rubric' while the explicit type: rubrics assertion path (generateAssertionName) returned 'rubrics'. Both were written in the same PR — the singular form was an oversight.

Also fixes an import ordering lint issue in scripts/check-grader-scores.ts (from #1191) that was blocked by the pre-push hook.

Changes

  • packages/core/src/evaluation/loaders/grader-parser.ts: name: 'rubric'name: 'rubrics' in buildLlmGraderFromCriteria
  • examples/features/rubric/evals/dataset.eval.baseline.jsonl: updated "name":"rubric""name":"rubrics" (the only baseline file affected)
  • scripts/check-grader-scores.ts: fix Biome import order

Impact

Users relying on scores[].name == "rubric" when using the criteria: shorthand need to update to "rubrics". The explicit type: rubrics assertion path was already producing "rubrics", so those users are unaffected.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Apr 29, 2026

Deploying agentv with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9c88a23
Status: ✅  Deploy successful!
Preview URL: https://f78e3dd3.agentv.pages.dev
Branch Preview URL: https://fix-rubric-name-consistency.agentv.pages.dev

View logs

The criteria: shorthand path (buildLlmGraderFromCriteria) returned
name: 'rubric' while the explicit type: rubrics assertion path
(generateAssertionName) returned 'rubrics'. Both code paths were
written in the same PR — the singular form was an oversight.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@christso christso force-pushed the fix/rubric-name-consistency branch from fa4577d to 9c88a23 Compare April 29, 2026 08:50
@christso christso merged commit a7b7a79 into main Apr 29, 2026
4 checks passed
@christso christso deleted the fix/rubric-name-consistency branch April 29, 2026 09:07
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.

1 participant