Skip to content

feat(tier3): declare deterministic checks in datasets without a custom grader - #403

Merged
chrisknvidia merged 14 commits into
mainfrom
feat/christopherk/declarative-checks
Nov 10, 2026
Merged

chrisknvidia merged 14 commits into
mainfrom
feat/christopherk/declarative-checks

Conversation

@chrisknvidia

@chrisknvidia chrisknvidia commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

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 checks list. They are evaluated deterministically and reported separately from judged items.

"checks": [
  {"type": "command_succeeded", "script": "scripts/build_report.py"},
  {"type": "file_exists", "path": "out/report.md"},
  {"type": "output_contains", "text": "Report written"}
]
  • Vocabulary v1:
    • script_invoked passes when the trajectory shows a command invoking the script.
    • command_succeeded requires an invocation with a recorded success. If no exit status was recorded, it is not checked, never passed.
    • file_exists checks the post-run workspace. A path that is only mentioned in the response doesn't count.
    • output_matches (regex) and output_contains test the final response.
  • Validation rejects unknown types, unsupported or missing fields, unsafe paths and invalid regexes, and lists the supported types.
  • Scoring: each check counts as one behavior_check item. With both expected_behavior and checks, behavior_check is the mean of judged and checked items. With only checks, 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.
  • Reports show Checked directly: N, judged: M, not checked: K, plus plain failure reasons such as Expected scripts/x.py to exit successfully; it was invoked but exited 2.
  • The packaged Harbor evaluator stages and runs the same shared module.

Verification

  • I am familiar with the Contributing Guidelines
  • Added or updated focused tests
  • Updated documentation for user-visible changes
  • Ran make lint (ruff check and format on the changed files)
  • Ran make test (focused: 164 passed, 1 skipped; not yet verified in a live Harbor run)
  • Ran make build
  • Did not add credentials, private datasets, or proprietary benchmark content

Release Impact

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

@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: 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".

Comment thread docs/eval-datasets.mdx Resolved
@github-actions

github-actions Bot commented Nov 9, 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. INCOMPLETE · issues unknown · The tier did not produce retained evidence; inspect its failed or cancelled CI job. INCOMPLETE · issues unknown · The tier did not produce retained evidence; inspect its failed or cancelled CI job. Report

Commit: b7e74d5c4469aaf58b949148feb7042c4dd41180 · Environment: docker

…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]>

# 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]>
@chrisknvidia
chrisknvidia merged commit f6304e5 into main Nov 10, 2026
22 checks passed
@chrisknvidia
chrisknvidia deleted the feat/christopherk/declarative-checks branch November 10, 2026 09:29
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