
Daily Digest
Withhold tool results that fail checks
If a tool result breaks a basic rule, don't let the model see it.
The problem
Agents trust what their tools hand back. But an API can fail quietly: it ignores part of a request, such as a filter with the wrong name, still returns status 200, and gives a number that looks fine. A new paper found this in most of the public research APIs it checked. The usual fixes ask the model to notice. Models often notice and answer anyway.
The technique
Move the decision out of the model and into the code that runs the tools. Before a result reaches the model, test it against rules any correct answer must follow. A filtered count must be smaller than the unfiltered total. Every returned row must match every filter. If a result breaks a rule, replace the value with WITHHELD and a one-line reason. Don't just add a warning next to it. Our Oct 26 post, Make tools say what they skipped, had the tool report its gaps. Here the harness decides, so the tool doesn't have to know it failed.
What we saw
The paper found silent failures in 11 of 15 public research APIs, with counts inflated by up to 691 times. Its harness, SilentGuard, cut wrong answers on its target faults from 74.0% to 1.7% across 7 open models, and from 70.2% to 0.5% on three frontier models, with no loss on fault-free tasks. The same check sent as a warning left 70.1% wrong. On new fault types, wrong answers fell from 61.1% to 24.5%. Those are their numbers.
Our own check was much smaller: 20 questions where a search API silently ignored a misnamed year filter and returned the all-years total, plus 8 where it worked. Each result went in raw, raw plus a warning naming the broken rule, or withheld. We ran two small local models (Qwen 2.5 1.5B and 3B Instruct, 4-bit, llama.cpp, greedy decoding, no effort setting) and Claude Haiku 5.5 at low effort through Claude Code. When the API returned only a count, raw results gave a wrong number 20 of 20 times on every model. With a warning, the 1.5B model was still wrong 20 of 20 and the 3B 19 of 20, while Haiku answered "unknown" all 20 times. Withholding the value took every model to 0 of 20 wrong. When the API also returned sample rows with visibly wrong years, Haiku spotted the problem on its own (0 of 20 wrong even raw), but the small models stayed wrong with or without the warning (1.5B: 20 and 20; 3B: 16 and 18, counting answers that tallied the sample rows) and dropped to 0 when the value was withheld. On the 8 working-API questions, no model gave a wrong number in any setup, though Haiku said "unknown" twice.
Limits
Our test is a toy we built, with one kind of fault and a rule written to catch it, single-turn, 28 questions per setup. Haiku's sample-rows run used slightly older prompt wording. Withholding gives the user "unknown", not the right answer, and we didn't test whether the agent then retries with the correct filter. A stronger model may handle a warning fine, as Haiku did, so in our test the gain was biggest for the small models. Rules only catch faults you can describe.
Try it
Pick the tool your agent trusts most. Write two or three rules a correct result must pass, like filtered count below total, rows match filters, dates in range. Check them in your tool wrapper. When one fails, return WITHHELD and the reason instead of the value, and log it so you can see how often the API lies.
Models tested
- Qwen 2.5 1.5B Instruct Q4_K_M (llama.cpp, greedy decoding, no effort setting)
- Qwen 2.5 3B Instruct Q4_K_M (llama.cpp, greedy decoding, no effort setting)
- Claude Haiku 5.5 (claude-haiku-5-5) via Claude Code (paid account), effort low, no tools