TwinCheck: Evidence-Grounded Negative-Twin Verification for Stateful Tool Agents
Abstract
A single locally plausible tool call can derail an otherwise successful agent trajectory. Suspicion alone does not justify intervention, because the replacement itself can introduce the very failure verification is meant to prevent. We introduce TwinCheck, an inference-time verification policy that considers replacement only when the trace satisfies an evidence condition tied to a local failure hypothesis. It constructs a trace-grounded counterfactual alternative, a negative twin, and replaces the actor's proposal only if the twin passes structural checks and the pairwise verifier prefers it in both candidate orders. For paired evaluation, exact replay holds the actor's parsed responses and actions fixed until the first accepted replacement, separating intervention effects from resampling. On 159 primary BFCL V4 multi-turn tasks, the complete policy raises GPT-5.6 Sol task success from 45.3% to 58.5%, a gain of 13.2 percentage points (95% task-bootstrap CI [8.2, 18.8]), with 21 rescues and no observed success-to-failure regressions. Across the completed primary set and a conditional extension, all 37 rescues follow the same inverse-action repair pattern. The verifier accepts every constructed candidate and adds no filtering on these trajectories. TwinCheck frames execution-boundary repair as a constrained comparison, making the proposed replacement itself the object of verification.
Create a lesson
Metadata
- Comments
- Accepted at the NeurIPS 2026 Workshop Who Verifies the Agents? Toward Reliable Agent Development; Accepted at the NeurIPS 2026 Third Workshop on Agents in the Wild: Safety, Security, and Beyond
Related papers
CARE-3D: Reinforcement Learning for Evidence Grounded Agentic Reasoning in Situated 3D Scenes
Shared title terminologycs.AIXiaoqian Hu, Ruihong Qiu, Yanran Tang et al.
State-Grounded Conditioning: Wrapping User-Facing LLM Agents Where Direction Depends on Live State
Shared title terminologycs.AIQi Liu, Xiaoyang Yuan, Yubin Ruan et al.
TACT-Bench: Testing Adaptive Conversational Threats against Tool-Use Agents
Shared title terminologycs.AIIlia Hashemi Rad, Feijie Wu, Haoyu Wang et al.
Agent Evaluation Without Ground Truth: A Null Proportion Perspective
Shared title terminologycs.AIBrian M. Cho, Michael Lindon, Nathan Kallus
Preflight: Agentic Last-Mile Verification for AI Software Supply Chains
Shared title terminologycs.AIYaman Jandali, Nojan Sheybani, Farinaz Koushanfar et al.
SchemaCaps: When a Compatible Tool Update Silently Widens an AI Agent's Authority
Shared title terminologycs.AIYulliwas Ameur, Samia Bouzefrane, Soumya Banerjee