Move the _isolated_git fixture to tests/conftest.py so git rebase --exec
cannot leak GIT_DIR into any test; add a test outside tests/evals.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Text and Markdown comparison reports (regressions first, IDs escaped);
exit code still comes from the current arm only, errors give exit 2.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Archive the set folder at the commit, unpack into a temp dir and read
cases and recorded responses into memory; the working tree stays untouched.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
compare() scores recorded responses of a ref against the current cases and
classifies each case (regression, fixed, new, removed, not_comparable, ...).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Each reference check prints precision and recall with counts, missing and
surplus entries; sum_matches adds the counts per label after the summary.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Compares answer lists against a reference as sets with precision and recall minimums; text is casefolded, NFC and whitespace normalised.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Scores each case against its recorded response, prints one line per case plus a summary, and exits 0, 1 or 2 (load error).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
load_eval_set turns a set directory into an EvalSet; every load
failure becomes an EvalSetError naming the file. RecordedResponses
returns raw response text or None.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Pure grading of recorded responses: equals and contains checks over
JSON Pointers, strict output-model validation, score per case.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>