Skip to content

feat(tier3): add validate-grader qualification command and reference suite - #383

Merged
chrisknvidia merged 18 commits into
mainfrom
feat/christopherk/grader-validation
Nov 10, 2026
Merged

chrisknvidia merged 18 commits into
mainfrom
feat/christopherk/grader-validation

Conversation

@chrisknvidia

Copy link
Copy Markdown
Collaborator

Summary

The Tier 3 docs stated that the repository published no comparison of its LLM judges against independently labelled outcomes. This adds a reproducible way to measure how the shipped grader agrees with known passes and failures.

  • Suite format skillevaluator.grader-qualification/v1 (suite.json + ATIF trajectories): each case has an assessment or tuning split, a category (positive, negative, edge, failure_recovery, unavailable_evidence, non_use, baseline), source/trace identity, the verifier entry, overall and per-metric expected labels, and label provenance. Loading is strict (unknown fields, duplicate IDs, path escapes, missing trajectories, behavior-label length mismatches are rejected). Executable label checks (final_response_contains, final_response_not_contains, tool_result_contains, file_written_contains) are re-run against the evidence independently of the grader; reviewed labels are marked as such.
  • skillevaluator tier3 validate-grader [SUITE_DIR] runs the real verifier template as a subprocess per case and repeat (--repeats, --concurrency, --timeout, --split assessment|tuning|all, --case, -o, --json). --check-suite validates the suite and executable labels with no LLM calls. Optional --max-false-pass-rate / --max-false-fail-rate / --max-unjudgeable-rate gates exit 1 when exceeded; invalid input exits 2.
  • Report per metric (plus per behavior step and overall): confusion matrix, false-pass rate among known failures, false-fail rate among known passes, unjudgeable rate, each with numerator/denominator and a Wilson 95% interval; class counts; error and insufficient_evidence kept separate; abstention behavior on unavailable-evidence cases; repeat disagreement and score spread; evidence coverage. Tuning cases never enter assessment numbers.
  • Provenance: suite name/version/SHA-256, trajectory hashes, split and case IDs, SkillEvaluator version, verifier-template hash, judge contract, metric set, score policy, judge provider/model labels, non-secret judge settings, thresholds, repeats, concurrency, timeout, timestamp. Per-attempt reward.json, the detailed reward sidecar, judge attempts and expected-vs-observed records are retained.
  • Bundled reference suite (14 assessment + 2 tuning cases on the public calculator skill), including correct non-use and no-skill baseline cases that must not be penalized for not loading the skill, wrong answer/format, false success claims, mixed behavior, failure recovery and unavailable evidence. It is packaged in the wheel.
  • Docs: new docs/grader-validation.mdx (format, procedure, denominators, limitations, measured baseline), CLI reference, Tier 3 judge-provenance paragraph, Fern nav.

Measured baseline (real judge integration)

Bundled assessment split, 14 cases x 3 repeats, openai-compatible provider, SkillEvaluator 0.8.0:

Metric gpt-oss-120b false passes false fails gpt-5-mini false passes false fails
accuracy 6/12 3/27 4/12 3/27
goal_accuracy 8/15 0/24 2/15 0/24
behavior_check 0/15 0/24 0/15 0/24
skill_execution 0/3 3/33 0/3 3/33
overall 15/15 0/24 15/15 0/24

No unjudgeable observations; all unavailable-evidence attempts abstained. Notable findings, reported rather than hidden: the judges give partial accuracy credit (0.8, at the 0.8 threshold) to wrong-format and false-success answers; the composite overall dimension mean stays above 0.5 for every known task failure; the recovered-failure case scores skill_execution 0.975. These describe this suite, scorer and models only; they are a baseline, not acceptance thresholds. No live-run gate thresholds or CI cadence are set in this PR; CI runs the offline --check-suite validation through the test suite.

Verification

  • I am familiar with the Contributing Guidelines
  • Added or updated focused tests (tests/tier3/test_grader_validation.py: schema rejection cases, executable checks, classification, denominators, Wilson intervals, split isolation, gates/exit codes, provenance secret filtering, subprocess runs against a local fake judge; CLI golden surface updated)
  • Updated documentation for user-visible changes
  • Ran make lint
  • Ran make test — 47 failures that also fail on a clean origin/main checkout in the same environment (CI onboarding origin checks, plugin dependency resolution, secure-fs/helpers, a timing-sensitive MCP staging test); none in touched code
  • Ran make build (wheel includes all 16 reference-suite JSON files)
  • Did not add credentials, private datasets, or proprietary benchmark content

Also ran skillevaluator tier3 validate-grader --split all --repeats 3 live with the two judge models above, and the Fern docs check.

Release Impact

  • No user-visible release note needed
  • Updated CHANGELOG.md

…suite

Adds a versioned grader-qualification suite format and
'skillevaluator tier3 validate-grader', which runs the shipped verifier
against independently labelled cases and reports confusion matrices,
false-pass and false-fail rates with explicit denominators and Wilson
intervals, unjudgeable and error counts, repeated-grading variability and
version-bound provenance. Ships a bundled public reference suite with
separate assessment and tuning splits and an offline --check-suite mode.

Signed-off-by: Christopher Kevin <[email protected]>
The SUITE_DIR argument now defaults to None and resolves to the bundled
reference suite at runtime, so the CLI surface snapshot no longer records
a machine-specific absolute path.

Signed-off-by: Christopher Kevin <[email protected]>

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review: 8 findings (0 P1, 1 P2, 7 P3); 8 posted inline.

Checked the new grader_validation.py (suite loading, executable checks, classification, rates, provenance, CLI exit codes and text output) and the bundled suite against docs/grader-validation.mdx and the CLI reference. Probes ran the real verifier template against a local fake judge, with no live LLM calls.
Tests at 3905176: tests/tier3/test_grader_validation.py 33 passed; tests/golden/test_cli_surface.py, tests/test_oss_packaging.py and tests/test_ci_change_classifier.py 94 passed; tests/test_cli.py -k 'reference or docs or surface or help' 13 passed; ruff check and ruff format --check on the new module and test are clean. The wheel build was not run locally.
Merges cleanly with main. Against other open PRs it conflicts in CHANGELOG.md only.
Overlap with #382: #382 lets the behavior judge return passed: null, and observations() here maps any non-bool step verdict to error, so after #382 merges an abstention counts toward the unjudgeable rate and --max-unjudgeable-rate rather than insufficient_evidence. The suite loader also requires boolean behavior labels, so an expected abstention cannot be labelled. Whichever of the two merges second needs to handle this.
The measured-baseline table in docs/grader-validation.mdx predates #382's judge prompt change, so it should be re-measured once #382 is in.

Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Evaluation run

SkillEvaluator CI results

Required gate: Skipped

Only Tier 1 blocks CI; Tier 2 and Tier 3 are advisory.

Skill Tier 1: Static and Security Validation Tier 2: Deduplication Tier 3: Live Agent Evaluation Report
No skills evaluated SKIPPED · issues unknown · No selected skills changed; Tier 1 evaluation did not run. SKIPPED · issues unknown · No selected skills changed; evaluation did not run. SKIPPED · issues unknown · No selected skills changed; evaluation did not run. Report

Commit: eec7261ca58371ac64abe7c5a089ed22d21462b1 · Environment: docker

…der-validation

Signed-off-by: Christopher Kevin <[email protected]>

# Conflicts:
#	CHANGELOG.md
#	src/skillevaluator/tier3/harbor/adapter.py
…der-validation

Signed-off-by: Christopher Kevin <[email protected]>

# Conflicts:
#	CHANGELOG.md
…der-validation

Signed-off-by: Christopher Kevin <[email protected]>

# Conflicts:
#	CHANGELOG.md
…der-validation

Signed-off-by: Christopher Kevin <[email protected]>

# Conflicts:
#	CHANGELOG.md
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
@chrisknvidia
chrisknvidia merged commit ad238e9 into main Nov 10, 2026
22 checks passed
@chrisknvidia
chrisknvidia deleted the feat/christopherk/grader-validation branch November 10, 2026 14:44
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.

2 participants