← All papers  /  Nov 16, 2026
Agents

Invariant-Aware Harness Enforcement to Protect LLM Agents from Silent API Failures

First page
Invariant-Aware Harness Enforcement to Protect LLM Agents from Silent API Failures
The curator’s take

Sajib Acharjee Dip (Virginia Tech, Genentech) with Brian Ouyang and Lala Motlhabi (Genentech) present SilentGuard, which moves the handling of silently failed API calls from the model to the harness by checking each result against invariants any correct API must satisfy.

Ask this paper

Key points
01

Problem. An API can ignore part of a request, such as a misnamed filter, and still return HTTP 200 with a plausible wrong result. The authors find silent failures in 11 of 15 public research APIs, with counts inflated up to 691 times.

02

Prompting does not fix it. Checklists, reviewer models and LLM judges leave over 70% of answers wrong. A warning from the same check SilentGuard uses still leaves 70.1% wrong, because models see the problem and answer anyway.

03

Method. For a filtered count, the count with a condition plus the count with its negation must equal the count without it. For a list, every record must meet the filter. A broken exact invariant makes the harness withhold the value; a learned check only warns. No extra model call is needed.

04

Results. Across 7 open models, wrong answers on target faults fall 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%. On new fault types, wrong answers fall from 61.1% to 24.5%. SilentGuard avoids errors by abstaining, not by recovering.

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.

Every Monday
Get next week’s papers.
Subscribe on Substack