Invariant-Aware Harness Enforcement to Protect LLM Agents from Silent API Failures
Sajib Acharjee Dip, Brian Ouyang, Lala Motlhabi
Virginia Tech · Genentech
Published November 16, 2026 · on the feed November 17, 2026 · ▲ 4 · arXiv 2611.20595
The abstract
LLM agents answer questions by calling APIs and trusting the results. An API can fail silently. It ignores part of a request, such as a misnamed filter, yet returns HTTP 200 and a plausible but wrong result. Current fixes, such as checklists, reviewer models and LLM judges, ask the model to catch it. But models often see the problem and answer anyway. We present SilentGuard, which moves the decision from the model to the harness running tool calls. It tests each result against invariants that any correct API must satisfy and withholds values that break one. We find silent failures in 11 of 15 public research APIs, with counts inflated up to 691 times. Current fixes leave over 70% of answers wrong, and agents report 77.4% of counts a judge flags. Across 7 open models, SilentGuard cuts wrong answers on its target faults from 74.0% to 1.7%, with no loss on fault-free tasks. On three frontier models they fall from 70.2% to 0.5%. A warning from the same check leaves 70.1% wrong, so enforcement is the key. On new fault types, the harness alone cuts wrong answers from 61.1% to 24.5%. It avoids wrong answers by abstaining rather than recovering.
The Brief
2:12A short podcast summary of the paper. Written and voiced by AI.
Transcript
Invariant-Aware Harness Enforcement to Protect LLM Agents from Silent API Failures. By Sajib Acharjee Dip and two others, from Virginia Tech and Genentech. Published on the sixteenth of November.
An agent answers questions by calling APIs and trusting what comes back. Some APIs fail silently. They ignore part of a request, a misnamed filter for instance, and still return HTTP two hundred with a result that looks plausible and is wrong. Current fixes, such as checklists, reviewer models and LLM judges, all ask the model to notice. The trouble is that models often do notice and answer anyway.
SilentGuard takes the decision away from the model and gives it to the harness that runs the tool calls. The harness tests each result against invariants that any correct API must satisfy, and when a value breaks one, it withholds that value rather than passing it along. The model is never asked whether it trusts the result. A value that fails the test simply does not reach it, so the familiar pattern of seeing the problem and answering anyway has nothing left to answer with.
The check rests on properties that every correct API shares, rather than on a model's judgement of whether a result looks right. Before testing the harness, the authors measure how common the fault is. Silent failures turn up in eleven of fifteen public research APIs, with counts inflated by as much as six hundred and ninety-one times. Against that, the existing fixes leave over seventy percent of answers wrong, and agents go on to report seventy-seven point four percent of the counts that a judge has flagged.
Across seven open models, SilentGuard cuts wrong answers on its target faults from seventy-four percent to one point seven percent, with no loss on fault-free tasks. On three frontier models, wrong answers fall from seventy point two percent to zero point five percent. The telling control is a warning produced by the same check: issued as advice rather than enforced, it leaves seventy point one percent of answers wrong. On fault types it was not built for, the harness alone cuts wrong answers from sixty-one point one percent to twenty-four point five percent.
The control with the warning carries the argument. Detecting the problem was never the hard part, since the same check that works when enforced does almost nothing when merely reported. Where the decision lives is what matters. And the way SilentGuard avoids wrong answers is by abstaining, not by recovering the right one.
More with an account
Listen to every day’s papers
Daily playlists, deep dives, quests for the papers, and quizzes on their key terms.
Join free