Three models failed my test the same way, and it was my fault
I build Gatecheck, a small eval harness for LLM apps. You write tasks in YAML, it grades the outputs, and it fails your CI build when a prompt or model change makes things worse. The first real run of it taught me two things I didn't expect, and neither one was about the models.
The run
Three models, every bundled suite, one command:
gatecheck run --models ollama:llama3.1:8b ollama:qwen2.5:7b-instruct anthropic:claude-haiku-4-5
Two local models through Ollama, one hosted. The whole thing cost about a tenth of a cent, since the local models are free.
Most of it passed. But all three models failed the same task, structured-output :: action-object. The prompt was:
Translate the request into ONE action, as JSON only.
Schedule a meeting with Sam next Tuesday at 3pm about the budget.
And the grader was a JSON Schema check that required two keys, action and params.
What came back
// llama3.1:8b
{ "action": "Schedule a meeting", "details": { "date": "Next Tuesday", "time": "3pm", "topic": "Budget discussion", "attendee": "Sam" } }
// qwen2.5:7b-instruct
{ "action": "schedule_meeting", "details": { "with": "Sam", "date": "next Tuesday", "time": "3pm", "purpose": "about the budget" } }
// claude-haiku-4-5
{ "action": "schedule_meeting", "parameters": { "attendee": "Sam", "date": "next Tuesday", "time": "3pm", "subject": "budget" } }
All three are valid JSON. All three got the meaning right. And all three failed with the same message: 'params' is a required property. Two of them picked details, one picked parameters. (Claude also wrapped its answer in a code fence, which a real parser downstream would have choked on too.)
If I'd been eyeballing outputs I would have called all three of these fine. They read fine. A tool that calls params["date"] would crash on every one of them.
Whose bug was it?
My first thought was "small models are sloppy." But a hosted model failed in exactly the same way, and that's the tell. When three different models from three different families make the same mistake, the problem usually isn't the models. It's the task.
The prompt never said what shape I wanted. I knew the schema because I wrote it, and I just assumed it was obvious. It wasn't. Each model invented a reasonable name for the container, and none of them could guess mine.
The fix was one line in the system prompt:
Reply with ONLY JSON shaped as {"action": "<verb>", "params": {<details>}}.
All three pass now, and the passing numbers are the baseline CI gates against. I kept the failing run in the repo on purpose, because catching exactly this is the whole point of the tool.
The second surprise: the judge picks the winner
Some things can't be checked with a schema, like whether a summary stuck to the source. For those Gatecheck uses an LLM judge: a second model scores the answer against a rubric.
I ran the faithfulness suite once with a small local model as the judge, then graded the exact same outputs again with Claude Haiku as the judge. Nothing else changed.
| Judged by | Claude Haiku | llama3.1:8b | qwen2.5:7b | |---|---|---|---| | Local 8B judge | 1.00 | 1.00 | 0.67, worst | | Claude Haiku judge | 1.00 | 0.67, worst | 1.00 |
The "worst model" flipped from Qwen to Llama just by swapping the judge. On one task Qwen's answer was actually correct, the plain string check passed it, and the Claude judge passed it, but the small judge failed it with a reason that described correct behavior.
So a weak judge doesn't just add noise. It can flip your ranking.
What I do differently now
- Gate CI only on checks that give the same answer every time. Exact match, regex, JSON schema. The LLM judge is useful for looking around, but I don't fail a pull request on it.
- When every model fails the same way, read your own prompt first.
- Make the judge swappable. Gatecheck has
--judge-modelso you can regrade the same outputs with a stronger judge instead of trusting one. - Keep the failures. The run that caught the bug is in
docs/example-run/, transcripts and all.
Gatecheck is pip install gatecheck, three runtime dependencies, works with local models through Ollama, and the code is short enough to read in an afternoon. If you're testing an LLM feature by eyeballing outputs right now, I'd really like to hear what you'd want it to check.