cd /news/ai-tools/three-models-failed-my-test-the-same… · home › topics › ai-tools › article
[ARTICLE · art-180504] src=satchelhamilton.com ↗ pub= topic=ai-tools verified=true sentiment=· neutral

Three models failed my test the same way, and it was my fault

A first run of the Gatecheck eval harness, built by its developer, showed llama3.1:8b, qwen2.5:7b-instruct and Claude Haiku 4.5 all failing the same structured-output task with "'params' is a required property" because the prompt never specified the JSON key names; adding one system-prompt line naming the {"action", "params"} shape made all three pass. In a second test, swapping the LLM judge from a local 8B model to Claude Haiku flipped the worst-scoring model on the faithfulness suite from qwen2.5:7b (0.67) to llama3.1:8b (0.67), leading the developer to gate CI only on deterministic checks such as exact match, regex and JSON schema.

recommendation

Gate CI only on deterministic checks (exact match, regex, JSON schema) and state the exact output schema in the prompt; a weak LLM judge flipped the worst model from Qwen to Llama at 0.67.

more in playbook: Evals and testing for LLM apps
read4 min views1 publishedDec 2, 2026
Three models failed my test the same way, and it was my fault
Image: source

← Writing

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-model so you can regrade the same outputs with a stronger judge instead of trusting one.
  • Keep the failures. The run that caught the bug is indocs/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.

── more in #ai-tools 4 stories · sorted by recency
── more on @gatecheck 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/three-models-failed-…] indexed:0 read:4min 2026-12-02 · —