논문 해설
Invariant-Aware Harness Enforcement to Protect LLM Agents from Silent API Failures
침묵하는 API 실패로부터 LLM 에이전트를 보호하는 불변식 인식 하네스 강제
- 연구 문제 성공 상태 코드를 반환하는 침묵 API 실패로 에이전트가 틀린 값을 믿는 문제를 다룹니다.
- 연구 방법 하네스가 도구 결과에 불변식 검사를 실행하고, 정확한 검사에 실패한 값은 보류합니다.
침묵 API 실패가 왜 어려운가
LLM 에이전트는 API 호출 결과를 그대로 읽고 답을 만듭니다. 이 논문이 다루는 침묵 API 실패는 응답이 HTTP 200과 정상적인 형식을 갖추지만 요청의 일부, 예를 들어 잘못 이름 붙은 필터를 무시해 틀린 값을 주는 경우입니다. 응답만 보아서는 결함을 드러낼 수 없으므로, 모델이 스스로 의심하도록 하는 체크리스트나 리뷰어 모델, LLM 판정기만으로는 충분하지 않다고 논문은 봅니다. 저자들은 모델이 문제를 알아채고도 답을 내놓는 현상이 핵심이라고 봅니다. 이 연구는 이런 실패를 하네스 단계에서 잡는 방법을 다룹니다.

Table 11 : Three kinds of silent fault in real public APIs (read-only probes). Misnamed filter: a plausibly mis- named filter parameter. Rejected means the API re- turned an error. Bad filter value: a typo in the value of a valid filter (for example a bad year or date). Ig- nored means the count equals the unfiltered one, applied means the value was used as given (usually zero results), which is correct. Page over limit: a request for more records per page than the API allows. Capped means HTTP 200 with fewer records than asked and no error. Honored means the API returned the larger page. Bold red: silent. –: rate-limited, not measured.
원문 · CC BY 4.0 · Sajib Acharjee Dip, Brian Ouyang, Lala Motlhabi · Invariant-Aware Harness Enforcement to Protect LLM Agents from Silent API Failures · 원문 그림 인용 · 원본 PDF 14쪽에서 그림 영역을 추출했습니다.하네스가 불변식으로 결과를 거르는 방식
SilentGuard는 도구를 실행하는 하네스가 각 결과를 검사하는 방법입니다. 정확한 검사는 올바른 API라면 반드시 만족해야 하는 불변식으로 만듭니다. 개수 질의에서는 조건 C_k를 가진 필터 F에 대해 N(F)+N(F<k ∧ ¬C_k)=N(F<k)가 성립해야 하며, 여기서 F<k는 마지막 조건을 뺀 필터입니다. 하네스는 이 두 추가 질의를 직접 보내 확인하며, 조건 위치마다 반복하여 무시된 필터를 찾습니다. 목록 결과에서는 각 레코드가 필터를 만족하는지, 중복이 없는지, 목록 크기가 보고된 총계와 같은지를 봅니다. 학습 기반 검사는 정상 응답에서 계약을 익히므로 틀릴 수 있어, 실패하면 경고만 합니다.
실패한 결과는 같은 호출을 한 번 재검사하고, 다시 실패하면 정확한 검사에서는 값을 보류하고 학습 검사에서는 경고와 함께 노출합니다. 오탐률은 1/(n_j+2)로 추정하고 기준 τ=1%보다 작거나 같은 검사만 보류 대상이 됩니다.

Table 1 : Checks by kind of tool operation. Exact checks are invariants that hold on every correct API. Learned checks are mined from clean responses and can raise false alarms. Of 84 documented operations in 13 public APIs, 61 allow an exact check and all allow the spec check (Table 14).
원문 · CC BY 4.0 · Sajib Acharjee Dip, Brian Ouyang, Lala Motlhabi · Invariant-Aware Harness Enforcement to Protect LLM Agents from Silent API Failures · 원문 그림 인용 · 원본 PDF 4쪽에서 그림 영역을 추출했습니다.
Table 29 : Sensitivity to the cutoff on ToolMaze. A learned check is treated as exact when 1/(n+ 2)≤τ , that is, when it held on at least the listed number of clean examples. Over all 2,448 withhold-or-warn decisions logged in our ToolMaze runs, the largest support is 52, so every cutoff below 1.85% (1/54) gives the same decisions as 1% (Changed: decisions that differ from 1%). On AgentOrchBench and real APIs every check is exact and the cutoff has no effect.
원문 · CC BY 4.0 · Sajib Acharjee Dip, Brian Ouyang, Lala Motlhabi · Invariant-Aware Harness Enforcement to Protect LLM Agents from Silent API Failures · 원문 그림 인용 · 원본 PDF 23쪽에서 그림 영역을 추출했습니다.
Table 30 : How many conditions to check, measured on the harness alone (no model, 36 count tasks per fault type, detection averaged exactly over every choice of positions). Extra queries per filter call on clean and faulted runs. Caught: share of faulted results the check flags. Wrong: share released with a wrong count under the answer rule. No budget raised a false alarm on clean runs. Check-aware: the consistent lie, an API built to keep the identity true. No budget catches more than 2.8% of it.
원문 · CC BY 4.0 · Sajib Acharjee Dip, Brian Ouyang, Lala Motlhabi · Invariant-Aware Harness Enforcement to Protect LLM Agents from Silent API Failures · 원문 그림 인용 · 원본 PDF 24쪽에서 그림 영역을 추출했습니다.AgentOrchBench와 실험 구성
AgentOrchBench는 정답을 합성 카탈로그에서 정확히 계산할 수 있는 벤치마크입니다. 에이전트는 셸에서 여덟 개의 로컬 REST 서비스를 curl로 호출하며, 400개 레코드 중 두 개 또는 세 개 조건에 맞는 개수를 답합니다. 결함은 서버 안에서 주입되어 HTTP 200으로 응답하고 모든 호출에서 반복됩니다. 주요 실험은 7개의 오픈 모델에서 수행되었고, 세 개의 프런티어 모델은 나중에 추가되었습니다. 실제 공개 API 9개에서는 잘못된 필터 이름을 준 문서를 사용해 확인했습니다. ToolMaze는 외부 벤치마크로, 자체 판정기로 채점하며 학습 기반 검사만 있어 SilentGuard는 이 벤치마크에서 경고만 합니다.
따라서 ToolMaze 결과는 보류 강제가 아니라 재검사의 효과를 본 것입니다.

Table 10 : Agents on nine real public APIs, per model (45 runs per model and cell, %). No guard and Silent- Guard: agents given slightly wrong documentation. Right docs: % correct with no guard and the right docu- mentation. The frontier models ran these two arms only.
원문 · CC BY 4.0 · Sajib Acharjee Dip, Brian Ouyang, Lala Motlhabi · Invariant-Aware Harness Enforcement to Protect LLM Agents from Silent API Failures · 원문 그림 인용 · 원본 PDF 13쪽에서 그림 영역을 추출했습니다.증거와 강제 집행이 잘못된 답을 줄이는 방식
판정기가 결과를 본 경우에도 조언으로만 쓰면 71.2%가 잘못된 답으로 남았고, 실패한 값을 막는 강제 집행을 붙이면 6.1%로 내려갔습니다. 경고만 준 방식은 70.1%였지만, 답을 알 수 없다고 말할 수 있는 허용 문구를 함께 주자 18.2%로 줄었습니다. 허용 문구만으로는 증거 없이 효과가 없었습니다. SilentGuard는 확인된 개수만 허용하여 잘못된 답을 1.7%로 낮추었고, 깨끗한 정확도는 84.9%로 기준과 같았습니다. 따라서 증거, 답변 허용, 강제 집행의 역할은 서로 다르며 강제 집행이 모델 차이에 덜 흔들렸습니다.

Table 2 :Evidence is necessary, and enforcement makes it reliable.% wrong answers under silent faults on AgentOrchBench. The same 7 open models and 2 seeds in every cell. (a) One judge (gpt-oss-120b) in four settings. It does or does not see the results of the count check’s extra queries, and its verdict is advice to the agent (advises) or is enforced by the harness (blocks). (b) Three ways to act on the full count check. May abstain: the prompt allows the answer that the count cannot be determined. In brackets: lowest and highest model. Clean: % correct with no fault. All methods: Table 3.
원문 · CC BY 4.0 · Sajib Acharjee Dip, Brian Ouyang, Lala Motlhabi · Invariant-Aware Harness Enforcement to Protect LLM Agents from Silent API Failures · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.
Table 3 :SilentGuard gives the fewest wrong answers on AgentOrchBench.Mean over 7 open models ( ± standard error), % of runs with a silent fault (Wrong, Corr., Unk.) or with no fault (Clean). Unk.: the an- swer says the count cannot be determined. Bold is best and underlined is second. The LLM judge sees the check results and advises. Published: checklist (Sun et al., 2024), reviewer (Ta et al., 2026), Outcome Moni- tors (OM) (Panthi and Abdelfattah, 2026). Blocking: a flagged result is withheld and only accepted counts may be reported. No evidence: the judge does not see the check results.
원문 · CC BY 4.0 · Sajib Acharjee Dip, Brian Ouyang, Lala Motlhabi · Invariant-Aware Harness Enforcement to Protect LLM Agents from Silent API Failures · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.
Figure 5 : Wrong answers per model on AgentOrch- Bench, no guard against SilentGuard. Every model falls to below 4%.
원문 · CC BY 4.0 · Sajib Acharjee Dip, Brian Ouyang, Lala Motlhabi · Invariant-Aware Harness Enforcement to Protect LLM Agents from Silent API Failures · 원문 그림 인용 · 원본 PDF 18쪽에서 그림 영역을 추출했습니다.
Table 25 : Ablation of the harness action after a failed check (mean over 7 open models, %). Warnings keep wrong answers high. Auto-repair gives the most correct answers but releases wrong ones marked as verified (Table 6). SilentGuard withholds only what an exact check proves wrong. Last condition: these two earlier arms check the last condition only. All other rows use the full check. Warning + tip: the warning also names the recovery tools. Enforce: only checked counts are accepted. Unknown: the answer says the value cannot be determined. –: not run on retail. Bold: best. Underlined: second.
원문 · CC BY 4.0 · Sajib Acharjee Dip, Brian Ouyang, Lala Motlhabi · Invariant-Aware Harness Enforcement to Protect LLM Agents from Silent API Failures · 원문 그림 인용 · 원본 PDF 22쪽에서 그림 영역을 추출했습니다.답을 줄이는 대가와 다른 방법과의 비교
SilentGuard는 보류를 통해 답을 줄이므로, 잘못된 답 비율과 답을 제공하는 범위를 함께 봐야 합니다. 25% 결함 비율에서 SilentGuard는 작업의 67%에 답하며 그 답 가운데 3.3%가 틀렸습니다. 기준이나 증거 없는 방법은 약 24.6% 위험 수준에 머물렀습니다. ToolMaze에서는 SilentGuard가 체크리스트와 Outcome Monitors보다 조금 높았지만 학습 기반 검사의 오탐이 깨끗한 성공률을 낮추었습니다. 블라인드 재시도는 결함이 한두 번 호출 안에 사라질 때 더 유리했습니다.

Figure 2 :Risk against coverageon AgentOrchBench with clean and faulted calls mixed. Lower is safer and further right answers more. Each line runs from a 10% fault rate (right end) to 50% (left end, higher risk), with a large marker at 25%. Mean over 7 open models. Gray lines are methods without evidence of the fault, or with advice alone.
원문 · CC BY 4.0 · Sajib Acharjee Dip, Brian Ouyang, Lala Motlhabi · Invariant-Aware Harness Enforcement to Protect LLM Agents from Silent API Failures · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.
Figure 6 : ToolMaze task success under silent faults per model, for the checklist with Outcome Monitors against SilentGuard. SilentGuard is ahead on 5 of 7 models.
원문 · CC BY 4.0 · Sajib Acharjee Dip, Brian Ouyang, Lala Motlhabi · Invariant-Aware Harness Enforcement to Protect LLM Agents from Silent API Failures · 원문 그림 인용 · 원본 PDF 19쪽에서 그림 영역을 추출했습니다.
Figure 7 : ToolMaze task success by fault type for no re-check, blind retry and SilentGuard. Blind retry leads while the fault clears and not when it lasts.
원문 · CC BY 4.0 · Sajib Acharjee Dip, Brian Ouyang, Lala Motlhabi · Invariant-Aware Harness Enforcement to Protect LLM Agents from Silent API Failures · 원문 그림 인용 · 원본 PDF 19쪽에서 그림 영역을 추출했습니다.
Table 22 :Blind retry helps only when the fault clears. Blind retry (the no re-check harness plus every call sent twice, second result kept) clears a short fault that lasts one or two calls. On a fault that lasts (ToolMaze P4) it adds little over the same harness without retry, and on real APIs, which ignore a misnamed filter every time, it does not reduce wrong answers. It also repeats bookings, payments and messages. No re-check: the checklist with Outcome Monitors, without retry. Mean over 7 open models. Values are % except repeated actions (repeated action calls per ToolMaze run). Bold: best. Underlined: second.
원문 · CC BY 4.0 · Sajib Acharjee Dip, Brian Ouyang, Lala Motlhabi · Invariant-Aware Harness Enforcement to Protect LLM Agents from Silent API Failures · 원문 그림 인용 · 원본 PDF 21쪽에서 그림 영역을 추출했습니다.한계
검사에는 맹점이 있습니다. 접두사 일치처럼 자기 일관적인 결함이나, 질의 문자열 안에 있는 필터처럼 에이전트가 보내지 않은 조건은 검사할 수 없습니다. 특히 일관된 거짓말을 하는 API는 개수 검사를 통과하므로 SilentGuard가 잡지 못했고, 이 실험에서 모든 방법이 틀린 개수를 보고했습니다. 개수 항등식은 두 값을 가진 필터를 가정하며, 결측값이 있는 필드에는 별도 분할이 필요하다고 논문은 밝힙니다. 또한 SilentGuard는 답을 알 수 없다고 말하는 경우가 많아, 사용자에게 숫자를 주지 못합니다. 모델은 일곱 개의 오픈 모델과 세 개의 프런티어 모델로 한정되며, 블라인드 재시도는 한두 번 호출 안에 사라지는 결함에서 더 낫습니다.
논문 정보
- 저자
- Sajib Acharjee Dip, Brian Ouyang, Lala Motlhabi
- 학회·저널
- arXiv · 프리프린트
- 최초 공개일
- 2026년 11월 16일
- 등록일
- 2026년 11월 17일
- 수정일
- 2026년 11월 16일
- 버전
- v1
- arXiv
- 2611.20595
- 분류
- cs.CL
- 원문 이용 조건
- CC BY 4.0
- 제공 범위
- 논문 정보, 해설, 허용된 원문 그림
AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.
초록
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.
원문 인용
Sajib Acharjee Dip, Brian Ouyang, Lala Motlhabi (2026). Invariant-Aware Harness Enforcement to Protect LLM Agents from Silent API Failures. arXiv:2611.20595v1. https://arxiv.org/abs/2611.20595v1
BibTeX
@misc{dip2026invariant,
title = {{Invariant-Aware Harness Enforcement to Protect LLM Agents from Silent API Failures}},
author = {Sajib Acharjee Dip and Brian Ouyang and Lala Motlhabi},
year = {2026},
eprint = {2611.20595},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2611.20595v1}
}