{"slug": "three-models-failed-my-test-the-same-way-and-it-was-my-fault", "title": "Three models failed my test the same way, and it was my fault", "summary": "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.", "body_md": "[← Writing](https://satchelhamilton.com/writing)\n\n# Three models failed my test the same way, and it was my fault\n\nI build [Gatecheck](https://github.com/satchmakua/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.\n\n## The run\n\nThree models, every bundled suite, one command:\n\n```\ngatecheck run --models ollama:llama3.1:8b ollama:qwen2.5:7b-instruct anthropic:claude-haiku-4-5\n```\n\nTwo local models through Ollama, one hosted. The whole thing cost about a tenth of a cent, since the local models are free.\n\nMost of it passed. But all three models failed the same task, `structured-output :: action-object`. The prompt was:\n\n```\nTranslate the request into ONE action, as JSON only.\n\nSchedule a meeting with Sam next Tuesday at 3pm about the budget.\n```\n\nAnd the grader was a JSON Schema check that required two keys, `action` and `params`.\n\n## What came back\n\n```\n// llama3.1:8b\n{ \"action\": \"Schedule a meeting\", \"details\": { \"date\": \"Next Tuesday\", \"time\": \"3pm\", \"topic\": \"Budget discussion\", \"attendee\": \"Sam\" } }\n\n// qwen2.5:7b-instruct\n{ \"action\": \"schedule_meeting\", \"details\": { \"with\": \"Sam\", \"date\": \"next Tuesday\", \"time\": \"3pm\", \"purpose\": \"about the budget\" } }\n\n// claude-haiku-4-5\n{ \"action\": \"schedule_meeting\", \"parameters\": { \"attendee\": \"Sam\", \"date\": \"next Tuesday\", \"time\": \"3pm\", \"subject\": \"budget\" } }\n```\n\nAll 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.)\n\nIf 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.\n\n## Whose bug was it?\n\nMy 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.\n\nThe 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.\n\nThe fix was one line in the system prompt:\n\n```\nReply with ONLY JSON shaped as {\"action\": \"<verb>\", \"params\": {<details>}}.\n```\n\nAll 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.\n\n## The second surprise: the judge picks the winner\n\nSome 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.\n\nI 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.\n\n| Judged by | Claude Haiku | llama3.1:8b | qwen2.5:7b |\n|---|---|---|---|\n| Local 8B judge | 1.00 | 1.00 | **0.67**, worst |\n| Claude Haiku judge | 1.00 | **0.67**, worst | 1.00 |\n\nThe \"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.\n\nSo a weak judge doesn't just add noise. It can flip your ranking.\n\n## What I do differently now\n\n- **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.\n- **When every model fails the same way, read your own prompt first.**\n- **Make the judge swappable.** Gatecheck has`--judge-model` so you can regrade the same outputs with a stronger judge instead of trusting one.\n- **Keep the failures.** The run that caught the bug is in[`docs/example-run/`](https://github.com/satchmakua/gatecheck/tree/main/docs/example-run) , transcripts and all.\n\nGatecheck 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.", "url": "https://wpnews.pro/news/three-models-failed-my-test-the-same-way-and-it-was-my-fault", "canonical_source": "https://satchelhamilton.com/writing/three-models-same-wrong-key", "published_at": "2026-12-02 19:56:03+00:00", "updated_at": "2026-12-02 20:17:22.223547+00:00", "lang": "en", "topics": ["ai-tools", "large-language-models", "ai-agents", "mlops"], "entities": ["Gatecheck", "llama3.1:8b", "qwen2.5:7b-instruct", "Claude Haiku 4.5", "Ollama", "Anthropic"], "also_reported_by": [], "takeaway": "Specify the exact JSON key names in the system prompt — three models all invented their own container key (details or parameters) instead of the required params until one line naming {\"action\", \"params\"} was added — and don't gate CI on an LLM judge, since swapping from a local 8B judge to Claude Ha", "recommendation": {"advice": "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.", "playbook": "evals-testing", "playbook_url": "https://wpnews.pro/playbooks/evals-testing"}, "alternates": {"html": "https://wpnews.pro/news/three-models-failed-my-test-the-same-way-and-it-was-my-fault", "markdown": "https://wpnews.pro/news/three-models-failed-my-test-the-same-way-and-it-was-my-fault.md", "text": "https://wpnews.pro/news/three-models-failed-my-test-the-same-way-and-it-was-my-fault.txt", "jsonld": "https://wpnews.pro/news/three-models-failed-my-test-the-same-way-and-it-was-my-fault.jsonld"}}