Repository navigation
feat(tier3): declare deterministic checks in datasets without a custom grader - #403
Conversation
…m grader Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
rng1995
left a comment
There was a problem hiding this comment.
Automated review: 6 findings (0 P1, 2 P2, 4 P3); 6 posted inline.
Checked the new declarative_checks module (validation, the five check types, exit-status parsing, the behavior_check merge), its wiring into the staged Harbor evaluator on both arms and in the no-trajectory branch, the plugin dataset path and the report text, using staged eval.py runs on Codex and Claude Code ATIF trajectories plus module probes.
Tests at head: test_declarative_checks, test_judge_contracts and the shared check, ATIF staging, shell lexing, evals config, error recovery and Codex normalization suites 1172 passed; Harbor metrics truth, judge lift integrity, commands, source-validation reporting, validate defaults, judge result semantics and unscored grading policy 808 passed; Harbor report links and the unified Tier 3 report 232 passed; case-id safety with the shared suites 685 passed.
Merges cleanly into main. Real file conflict with #402 in tier3/harbor/adapter.py and templates/eval.py (adjacent lines); merge #402 first and keep its normalized expected_behavior, so judged_count = len(expected_behavior) here does not count placeholder steps the judge drops. Other open PRs: CHANGELOG.md only.
#383: validate-grader's suite loader rejects the checks entry field ("entry: unknown fields"), so a judge-plus-checks behavior_check cannot be qualified there, and #383 adds its own check vocabulary (final_response_contains, tool_result_contains, file_written_contains) with different semantics. Agree on one vocabulary and the checks field before both land.
#395: check results have no step, so its behavior warning reports a failed command_succeeded as "missed expected behavior (behavior 0.50)".
#382 and #399: a failed check has no step or evidence ref, so #382's Dataset tab never lists it and #399's deduction shows "evidence: unavailable".
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: |
Signed-off-by: Christopher Kevin <[email protected]>
…larative-checks Signed-off-by: Christopher Kevin <[email protected]> # Conflicts: # CHANGELOG.md # src/skillevaluator/tier3/harbor/adapter.py # src/skillevaluator/tier3/harbor/templates/eval.py
…larative-checks Signed-off-by: Christopher Kevin <[email protected]> # Conflicts: # CHANGELOG.md
…larative-checks Signed-off-by: Christopher Kevin <[email protected]>
…larative-checks Signed-off-by: Christopher Kevin <[email protected]> # Conflicts: # CHANGELOG.md
…larative-checks Signed-off-by: Christopher Kevin <[email protected]> # Conflicts: # CHANGELOG.md
…larative-checks 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]>
Summary
Some expectations can be checked directly from the run, such as "the script ran and exited 0", "the report file exists" or "the answer contains X". Today they still go through the LLM behavior judge unless the author writes a custom grader. This PR lets dataset authors declare them in a
checkslist. They are evaluated deterministically and reported separately from judged items.script_invokedpasses when the trajectory shows a command invoking the script.command_succeededrequires an invocation with a recorded success. If no exit status was recorded, it is not checked, never passed.file_existschecks the post-run workspace. A path that is only mentioned in the response doesn't count.output_matches(regex) andoutput_containstest the final response.behavior_checkitem. With bothexpected_behaviorandchecks,behavior_checkis the mean of judged and checked items. With onlychecks, the behavior judge is not called. Not-checked items are left out, like N/A. There is no new dimension, and neither the Overall formula nor the attempt verdict changes.Checked directly: N, judged: M, not checked: K, plus plain failure reasons such asExpected scripts/x.py to exit successfully; it was invoked but exited 2.Verification
make lint(ruff check and format on the changed files)make test(focused: 164 passed, 1 skipped; not yet verified in a live Harbor run)make buildRelease Impact
CHANGELOG.md