Add tc eval review CLI wrapper (CR-RH-003)#87
Merged
Conversation
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds CR-RH-003 for the evidence-bound review harness: a thin, read-only
tc eval reviewCLI wrapper around the existingreview_submission_v0validator (CR-RH-001) andreview_result_v0deterministic checker (CR-RH-002).The command validates a pre-tagged submission, runs the checker against an explicitly supplied context packet, and renders or writes the result. It adds no checking logic of its own.
Scope
tc eval reviewsubcommand (handler + subparser + dispatch)write_review_result(...)writer inreview_result.pydocs/operations/Output convention
--output: render the review result to stdout.--output: write the JSON result to that path and print a shortSuccess:line.--print-json: print the JSON result to stdout in addition to normal behavior.--fail-on-gate: exit3only after successful validation/checking whengrounding_gate == fail.1.Non-goals
--outputpath may be writtenValidation
python -m pytest tests/test_eval_review_cli.py tests/test_review_result.py tests/test_review_submission.py -q-> 61 passedpython -m triage_core.tc_cli eval review --submission tests/fixtures/evals/model_review/review_submission_v0.example.json --context-packet tests/fixtures/evals/model_review/review_context_packet.example.md-> intentional grounding-gate FAIL, exit 0git diff --cached --check-> clean before commit🤖 Generated with Claude Code