Repository navigation
feat(tier3): add validate-grader qualification command and reference suite - #383
Conversation
…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
left a comment
There was a problem hiding this comment.
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]>
SkillEvaluator CI resultsRequired gate: Skipped Only Tier 1 blocks CI; Tier 2 and Tier 3 are advisory.
Commit: |
…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]>
…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]>
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
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.
skillevaluator.grader-qualification/v1(suite.json+ ATIF trajectories): each case has anassessmentortuningsplit, 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-suitevalidates the suite and executable labels with no LLM calls. Optional--max-false-pass-rate/--max-false-fail-rate/--max-unjudgeable-rategates exit 1 when exceeded; invalid input exits 2.errorandinsufficient_evidencekept separate; abstention behavior on unavailable-evidence cases; repeat disagreement and score spread; evidence coverage. Tuning cases never enter assessment numbers.reward.json, the detailed reward sidecar, judge attempts and expected-vs-observed records are retained.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-compatibleprovider, SkillEvaluator 0.8.0: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
overalldimension 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-suitevalidation through the test suite.Verification
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)make lintmake test— 47 failures that also fail on a cleanorigin/maincheckout in the same environment (CI onboarding origin checks, plugin dependency resolution, secure-fs/helpers, a timing-sensitive MCP staging test); none in touched codemake build(wheel includes all 16 reference-suite JSON files)Also ran
skillevaluator tier3 validate-grader --split all --repeats 3live with the two judge models above, and the Fern docs check.Release Impact
CHANGELOG.md