Commit Graph
10 Commits
Author SHA1 Message Date
torbenandClaude Sonnet 5.5 4bcb1d6596 Isolate git environment for all tests
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>
2026-12-05 07:15:13 +01:00
torbenandClaude Sonnet 5.5 74574b948c Add baseline report formats and --baseline/--format CLI switches
CI / checks (pull_request) Successful in 1m5s
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>
2026-12-04 23:16:48 +01:00
torbenandClaude Sonnet 5.5 8f3844d650 Add load_baseline reading an eval set from a git ref
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>
2026-12-04 23:16:48 +01:00
torbenandClaude Sonnet 5.5 b0f04d7912 Add baseline comparison of eval sets
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>
2026-12-04 23:14:15 +01:00
torbenandClaude Sonnet 5.5 857a1818d5 Show reference counts per case and per set in the eval report
CI / checks (pull_request) Successful in 1m4s
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>
2026-12-04 23:02:45 +01:00
torbenandClaude Sonnet 5.5 9a7dc6ceb3 Add reference grader with set comparison and text normalisation
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>
2026-12-04 23:02:45 +01:00
torbenandClaude Sonnet 5.5 c423e1039c Add example eval set and its test
Three recorded cases for an entity-extraction step; threshold 1.0.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-02 18:09:51 +01:00
torbenandClaude Sonnet 5.5 53bed333de Add eval runner, report and chemenu-eval command
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>
2026-12-02 18:09:51 +01:00
torbenandClaude Sonnet 5.5 77097dd81c Add eval set and recorded response loader
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>
2026-12-02 18:09:51 +01:00
torbenandClaude Sonnet 5.5 76f2fbbf06 Add eval types and hard graders
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>
2026-12-02 18:09:51 +01:00