eval: the 22-question judged gold set and its loader - #30
Merged
Conversation
The retrieval set asks whether the right page reached the caller. It cannot ask whether the answer was right, and that is the failure the confident answers are made of: an answer can cite the correct file and still describe the wrong mechanism. Correctness is judged point by point, not as one verdict. Each question carries the claims a correct answer has to make, judged individually, plus the plausible wrong claims that score it zero however much else it covered. A judge asked for a single number rewards fluency, and an answer that gets three mechanisms of four is a different thing from one that gets none - a distinction a holistic grade throws away exactly when the tool is improving. The forbidden-claim list is the other half: several of the worst answers seen so far were confident, well written and about the adjacent page, and nothing short of naming the tempting wrong claim marks that as wrong rather than merely incomplete. 22 questions, 87 required points, 16 carrying a forbidden claim. Each is written from the content of the page it expects, so a reviewer can check any expectation by reading that one page, and every expected path resolves to a real page in the pinned snapshot. This commit is the questions and the loader only. Nothing calls a model yet.
|
✅ Health: 9.9 (unchanged) 📋 At a glance
📊 Full report · ⭐ Star Repowise · 📥 Install bot · Last updated 2026-07-29 17:42 UTC |
This was referenced Jul 29, 2026
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.
The retrieval set asks whether the right page reached the caller. It cannot ask whether the answer was right — and that is the failure the confident-answer tail is made of: an answer can cite the correct file and still describe the wrong mechanism. Hand-auditing the confident misses turned up exactly that shape twice.
This is the questions and the loader. Nothing calls a model yet — the judge and the runner follow separately, so this one is pure and green on its own.
Correctness is judged point by point
Each question carries the claims a correct answer has to make, judged one at a time, plus the plausible wrong claims that score it zero however much else it covered.
{"id": "g005", "question": "How is a commit classified when an agent service identity is the committer but a human is the author?", "must_include": ["it is classified tier 2 (human-driven agent), not tier 1", ...], "must_not_claim": ["an agent identity as committer makes the commit tier 1 (near-autonomous)"], "expected_paths": ["packages/core/.../agent_provenance.py"]}A judge asked for a single number rewards fluency, and an answer that gets three mechanisms of four is a different thing from one that gets none — a distinction a holistic grade throws away exactly when the tool is improving.
must_not_claimis the other half, and it is the part aimed at the observed failure. Several of the worst answers were confident, well written, and about the adjacent page; nothing short of naming the tempting wrong claim marks that as wrong rather than merely incomplete. A question whose answer makes one is zero — a wrong mechanism stated confidently is worse than an incomplete answer, and averaging them hides it.The set
22 questions · 87 required points · 16 carrying a forbidden claim · 21 distinct pages, no page used more than twice. Shapes: 8 what, 7 how, 5 why, 1 where, 1 when.
Each is written from the content of the page it expects, so a reviewer can check any expectation by reading that one page. Every expected path was verified to resolve to a real page in snapshot
45ce57f52457.Tests
23 new. The loader raises on everything that would make a correctness figure unreliable: a missing file, an unparseable line (reported with its line number), a missing or blank field, an unknown key (a mistyped
must_includesis how a required point silently stops being checked), an emptymust_include(which would score 100% against any answer, including none), a duplicate id, a non-string point, and a claim listed as both required and forbidden — which could never be scored, since covering it also fails it.The file's own test guards the properties that decide whether the number means anything: at least three points per question, no point vague enough that a judge marks it covered against any fluent answer, a forbidden claim on at least half, more than one question shape, and no page used more than twice.
That vagueness check earned its place immediately — it failed on
"it stays a single group", which I rewrote rather than lowering the threshold.python -m pytest tests/test_answer_eval_*.py→ 154 passed (was 131).