Phantom Guardrails: When Self-Improving Agent Harnesses Fix Failures That Never Happened
On the map: LLM agents and tool use → Software engineering coding agents
also in 2 more
Abstract (arXiv)
Self-improving AI agents are designed to learn from their mistakes. We show they can also hallucinate mistakes that never happened. We study this failure mode in automated harness optimization, where an LLM-based proposer edits an agent's scaffold, including prompts, parsers, filters, validators and guardrails, to eliminate observed failures. But this process rarely asks first: was there a real failure to fix? We introduce the Counterfactual Fabrication Lab, a deterministic micro-lab where the correct action is known: do nothing. The lab plants a candidate guardrail for a failure class that provably never occurs, presents only legal episodes, and uses a byte-exact oracle to check every cited violation. The proposer behaves as expected on real violations and abstains on featureless legal input. Yet when the legal input contains a harmless pattern resembling a familiar game rule, it invents a failure: in 15/60 runs, versus 0/60 on featureless input, it enables the nonexistent-rule guardrail and cites a violation the oracle refutes. The effect is structured, not indiscriminate. In single-shot proposals it appears only when three conditions coincide: a rule-shaped pattern, an open-ended rule set and an instruction that presupposes failures. Removing any of these conditions eliminates the fabrication. Because the invented guardrail changes no true outcome and cannot improve an already-perfect suppression score, the phenomenon is neither reward hacking nor over-refusal. It is a phantom guardrail: a fix for a failure that never happened, invisible to suppression-only acceptance. Inside an add-only accept loop it re-enters even without the failure-presupposing instruction, the loop's keep-adding role supplying the demand the instruction supplied in single shot, and once in it stays. We present the Counterfactual Fabrication Lab for measuring fabricated failures in self-improving agent harnesses.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 13 of its 30 references that are in the map. First posted on arXiv 13 Jul 2026.
Builds on
13 of 30 references.
Closest ancestors · 2
Same direction, newest first
- 2026Adapting the Interface, Not the Model: Runtime Harness Adaptation for Deterministic LLM Agents21 May
- 2026Agentic Harness Engineering: Observability-Driven Automatic Evolution of Coding-Agent Harnesses28 Apr
Other references · 11
- 2026AutoHarness: improving LLM agents by automatically synthesizing a code harnesscited by 63
- 2026SCRIBE: Structured Mid-Level Supervision for Tool-Using Language Modelscited by 20
- 2026LLM Agents Already Know When to Call Tools -- Even Without Reasoningcited by 17
- 2026SafetyRepro: Configuration-Conditional Rank Instability on Alignment Benchmarkscited by 14
- 2018You Cannot Fix What You Cannot Find! An Investigation of Fault Localization Bias in Benchmarking Automated Program Repair Systemscited by 13
- 2026Reflect-Guard: Enhancing LLM Safeguards against Adversarial Prompts via Logical Self-Reflectioncited by 12
- 2025Analysing Chain of Thought Dynamics: Active Guidance or Unfaithful Post-hoc Rationalisation?cited by 8
- 2026Beyond Accuracy: Measuring Bias Acknowledgment in Chain-of-Thought Reasoning for Responsible AI Evaluationcited by 8
- 2025Reward Auditor: Inference on Reward Modeling Suitability in Real-World Perturbed Scenarioscited by 7
- 2026The Observability Gap: Why Output-Level Human Feedback Fails for LLM Coding Agentscited by 2
- 2026PAFT: Preservation Aware Fine-Tuning for Minimal-Edit Program Repaircited by 2
Built on by
Citing papers per year: 2026: 6.
6 papers.
- 2026Evidence-Unit Fairness and the Limits of Query-Adaptive Sparse-Dense Fusion in Financial Document Retrievalcited by 1
- 2026Agentic-SQL Revisited: Autonomy-Based Taxonomy and Empirical Benchmark Analysis for LLM Text-to-SQLcited by 1
- 2026A Contract-Centered Architecture for Scalable and Manageable Agentic Runtimescited by 0
- 2026Bioinfoysis Technical Reportcited by 0
- 2026Style Over Substance: Content-Invariant Wrappers Flip LLM Safety-Judge Verdictscited by 0
- 2026Harness Evolution Hits a Ceiling: When Weight Training Should Begincited by 0
- 2026Harness Evolution Hits a Ceiling: When Weight Training Should Begin8 Oct 2026
- 2026Style Over Substance: Content-Invariant Wrappers Flip LLM Safety-Judge Verdicts8 Sep 2026
- 2026Bioinfoysis Technical Report3 Sep 2026
- 2026A Contract-Centered Architecture for Scalable and Manageable Agentic Runtimes27 Aug 2026
- 2026Agentic-SQL Revisited: Autonomy-Based Taxonomy and Empirical Benchmark Analysis for LLM Text-to-SQL15 Aug 2026
- 2026Evidence-Unit Fairness and the Limits of Query-Adaptive Sparse-Dense Fusion in Financial Document Retrieval31 Jul 2026
Similar, not cited
Close in wording, no citation either way
- 2026RAIL Guard: Closing the Evaluation-to-Remediation Gap in Responsible AI for LLM Agents
- 2026ClayBuddy: A Framework, Evaluation, & Mitigation of Coding Agent Failures
- 2026LLM-as-a-Judge Is Not an Oracle: Why Self-Improving Agents Need Deterministic Guardrails
- 2026AgentGuard: Learning Execution Guardrails from Anomalous Coding-Agent Trajectories
- 2026VERSE: Verified Self-Evolving Optimizer for Agent Harnesses
- 2026Self-Harness: Harnesses That Improve Themselves
- 2026AI Agents Do Not Fail Alone:The Context Fails First
- 2026ProofAgent Harness: Open Infrastructure for Adversarial Evaluation of AI Agents