{"slug": "how-a-reviewer-agent-found-a-silent-bug-in-my-llm-eval", "title": "How a Reviewer Agent Found a Silent Bug in My LLM Eval", "summary": "A reviewer agent running Claude Opus 5.5 in Claude Code v2.1.316 flagged a silent scoring bug in an LLM evaluation before any model was called, according to the practitioner's first-person account: the scorer classified an answer containing both the old value and the corrected value (\"9 and 10\") as \"wrong_other\" rather than \"kept_old_value,\" undercounting the failure the study measured while leaving overall accuracy unchanged. The author fixed the scorer by splitting answers on \"and,\" \"or,\" commas and slashes and flagging the old value when a whole separate part of the answer matched it, and later sent the lead six corrections to the report, at least three concerning text the skeptic had reviewed and passed. The author notes the \"write only your own files\" instruction did not prevent the skeptic from having shell access, and recommends giving a reviewer a read-only copy or a filesystem sandbox to enforce read-only review.", "body_md": "*Disclosure. I used Claude and ChatGPT for feedback and editing, including help rephrasing parts of this article. I also used a model from another provider to help review the evaluation report. The research and scoring decisions were mine.*\n\nI was building a small evaluation. Give a model a conversation in which the user corrects an earlier request, then score whether the answer uses the **new** value. The failure I cared about most was a model **keeping the old value** after it had been corrected. The scorer had a separate category for exactly that.\n\nHere’s the scorer’s logic, simplified, with made-up data:\n\n```\n# User: \"Book it for 9.\" Later: \"Actually, make it 10.\"old, new = \"9\", \"10\"\npython\ndef score(answer):    if answer == new:        return \"correct\"    if answer == old:        return \"kept_old_value\"    return \"wrong_other\"\nassert score(\"9\") == \"kept_old_value\"assert score(\"9 and 10\") == \"wrong_other\"  # Misclassified failure\n```\n\nAn answer that kept the old value **and** added the new one still counted as wrong. It went into “wrong for other reasons.” Overall accuracy stayed the same, but the breakdown would undercount the failure I was studying every time a model answered that way.\n\nThe tests passed because none covered this case. My written spec even gave an old-plus-new answer as an example of “old value kept.” The Claude Code session I called the **skeptic** flagged the mismatch before the first call to any of the models in the evaluation. Its finding was easy to check. Run 9 and 10 through the scorer and compare the result with the spec.\n\nNear the end of the run, I read the report closely and, with some help from a model from another provider, sent the lead six corrections. At least three concerned text the skeptic had reviewed and passed.\n\nChecking went both ways. When the lead rewrote the “ceiling” line, the skeptic caught a wrong count in the new version. The outside review asked what the count could support. The skeptic checked whether the count itself was right.\n\nAll four sessions ran Claude Opus 5.5 in Claude Code v2.1.316 on one laptop. They could send messages to each other by name. [Claude Code cross-session messaging](https://code.claude.com/docs/en/cross-session-messaging)\n\nEveryone also added messages to one shared file, LOG.md. Corrections went in as new entries. For day-to-day decisions, the owner proposed a change, the skeptic challenged it, and the lead made the call and logged it. I wrote the brief and made decisions about what the evaluation measured.\n\nThe skeptic’s role file asked it to check sources, reproduce important claims, and record each claim, verdict, and supporting evidence. The verdicts were **CONFIRMED**, **OVERSTATED**, **WRONG**, and **UNVERIFIED**. It added **CONCERN** for decisions that could spoil the study even if the code did what the spec said.\n\n“Write only your own files” was an instruction to the sessions. The skeptic still had shell access. To enforce a read-only review, give the reviewer a read-only copy or use a filesystem sandbox. [Claude Code permissions](https://code.claude.com/docs/en/permissions#what-read-and-edit-rules-cover)\n\nOther practitioners have tried dedicated reviewer agents and cross-provider code review. I wanted a record of what this setup caught on an evaluation, what slipped past, and what the review cost. [Adversarial Review](https://github.com/ng/adversarial-review) · [Cross-provider PR review in Towards AI](https://pub.towardsai.net/dont-let-claude-grade-its-own-homework-fef71200bdf9)\n\nThe skeptic found a mismatch between the scorer and one example in the spec. I still had to decide what counted as keeping the old value. I chose to flag it when a **whole, separate part** of the answer matched that value. Splitting on “and,” “or,” commas, and slashes caught both 9 and 10 and 9 or 10. A model that says “or” may simply be unsure. I included those cases because the old value is still present as an option. Matching whole parts keeps 19 out of the category.\n\nHere’s a synthetic version of the fix and the regression check. It uses the same old and new values as the first snippet.\n\n``` python\nimport re\npython\ndef score_fixed(answer):    if answer == new:        return \"correct\"    parts = re.split(r\"\\band\\b|\\bor\\b|[,/]\", answer)    if any(part.strip() == old for part in parts):        return \"kept_old_value\"    return \"wrong_other\"\nassert score_fixed(\"10\") == \"correct\"assert score_fixed(\"9\") == \"kept_old_value\"assert score_fixed(\"9 and 10\") == \"kept_old_value\"assert score_fixed(\"9 or 10\") == \"kept_old_value\"assert score_fixed(\"9, 10\") == \"kept_old_value\"assert score_fixed(\"9 / 10\") == \"kept_old_value\"assert score_fixed(\"19\") == \"wrong_other\"\n```\n\nThe skeptic also flagged that a strict time parser would reject 5.30 where the prompt asked for 5:30. I accepted both in time fields. The evaluation was measuring whether the model used the corrected time, so I treated the separator as formatting.\n\nI froze the scoring definitions and the list of accepted spellings before the first evaluated-model answer. A smoke test then exposed two implementation bugs in how repeated runs were handled. I reopened the freeze for those fixes on condition that the matching rules stayed byte-identical and every existing answer label was reproduced. The skeptic rechecked the fixes before the full run. After seeing outputs, I kept a separate exploratory review for answers whose meaning appeared right but failed strict matching.\n\nIn the first 20 hours and 40 minutes, the skeptic logged **99 verdicts on 81 distinct claims**. Some claims were checked again after a fix. It marked **13 of the 81** as OVERSTATED or WRONG at least once. Eight were fixed and rechecked, four were reworded, and one became a caveat. The count describes how the skeptic labeled the claims it reviewed in that window.\n\nTwo checks were especially instructive:\n\nThe skeptic also surfaced a problem I created. Two sessions asked me how to handle the same startup bug, a minute apart. I approved a workaround in one terminal and a code fix in another. My answers reached the shared log one second apart. The skeptic asked for a single confirmed decision before it would pass either option. With a team, I’d have the lead ask each question once, record the answer, and tell the other sessions to proceed.\n\nI took the usage figures from session transcripts and counted each API response once. I priced that usage at Anthropic’s public Opus 5.5 API rates per million tokens ($4 for uncached input, $5 for five-minute cache writes, $0.20 for cache reads, and $20 for output). The dollar figures are API-equivalent estimates. I ran the sessions through an enterprise account and had no invoice for the run. [Anthropic API pricing](https://platform.claude.com/docs/en/about-claude/pricing)\n\nThe full-run estimate comes from about 20.58 million tokens written to the five-minute cache, 408.4 million read from cache, 10,800 uncached input tokens, and 3.91 million output tokens.\n\nMuch of the wall-clock time was idle. The skeptic’s estimate covers its own session. Time and tokens spent by other sessions responding to its findings are part of the team total. I ran one configuration, so these numbers describe that setup’s usage.\n\nI skipped the four-session setup for my next project, where I only needed a quick feasibility check. I’d use it again for a longer evaluation where a quiet scoring mistake could change the conclusion. I’d also put the claims in front of an outside reader earlier. The skeptic caught the missing case in the code. It took another look to catch what we’d claimed from the numbers.\n\n[How a Reviewer Agent Found a Silent Bug in My LLM Eval](https://pub.towardsai.net/how-a-reviewer-agent-found-a-silent-bug-in-my-llm-eval-a4dc2ed987bc) was originally published in [Towards AI](https://pub.towardsai.net) on Medium, where people are continuing the conversation by highlighting and responding to this story.", "url": "https://wpnews.pro/news/how-a-reviewer-agent-found-a-silent-bug-in-my-llm-eval", "canonical_source": "https://pub.towardsai.net/how-a-reviewer-agent-found-a-silent-bug-in-my-llm-eval-a4dc2ed987bc?source=rss----98111c9905da---4", "published_at": "2026-11-26 12:31:02+00:00", "updated_at": "2026-11-26 12:45:00.411502+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "large-language-models"], "entities": ["Claude Opus 5.5", "Claude Code v2.1.316", "Claude", "ChatGPT", "Anthropic"], "also_reported_by": [], "takeaway": "A reviewer agent caught that a scorer returning \"wrong_other\" for \"9 and 10\" undercounted the kept-old-value failure; splitting answers on \"and,\" \"or,\" commas and slashes and matching whole parts fixed the classification while keeping 19 out of the category.", "recommendation": {"advice": "Have a separate reviewer agent check your scorer against the written spec before running models, and split answers on \"and,\" \"or,\" commas and slashes so old-plus-new responses land in the kept-old-value category.", "playbook": "evals-testing", "playbook_url": "https://wpnews.pro/playbooks/evals-testing"}, "alternates": {"html": "https://wpnews.pro/news/how-a-reviewer-agent-found-a-silent-bug-in-my-llm-eval", "markdown": "https://wpnews.pro/news/how-a-reviewer-agent-found-a-silent-bug-in-my-llm-eval.md", "text": "https://wpnews.pro/news/how-a-reviewer-agent-found-a-silent-bug-in-my-llm-eval.txt", "jsonld": "https://wpnews.pro/news/how-a-reviewer-agent-found-a-silent-bug-in-my-llm-eval.jsonld"}}