Skip to content

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

Open
christso wants to merge 2 commits intomainfrom
fix/rubric-name-consistency
Open

fix(core): normalize rubric grader name to rubrics#1196
christso wants to merge 2 commits 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.

christso and others added 2 commits April 29, 2026 03:38
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>
Biome import-sort requires existsSync before readFileSync and
globSync grouped with the other node:fs import.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying agentv with  Cloudflare Pages  Cloudflare Pages

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

View logs

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