mlsanityData to 7 Oct 2026

Phantom Guardrails: When Self-Improving Agent Harnesses Fix Failures That Never Happened

arXiv 2607.13083 ↗First posted 13 Jul 2026cs.CR cs.SEcited by 6

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

  1. 2026Adapting the Interface, Not the Model: Runtime Harness Adaptation for Deterministic LLM Agents21 May
  2. 2026Agentic Harness Engineering: Observability-Driven Automatic Evolution of Coding-Agent Harnesses28 Apr

Other references · 11

  1. 2026AutoHarness: improving LLM agents by automatically synthesizing a code harnesscited by 63
  2. 2026SCRIBE: Structured Mid-Level Supervision for Tool-Using Language Modelscited by 20
  3. 2026LLM Agents Already Know When to Call Tools -- Even Without Reasoningcited by 17
  4. 2026SafetyRepro: Configuration-Conditional Rank Instability on Alignment Benchmarkscited by 14
  5. 2018You Cannot Fix What You Cannot Find! An Investigation of Fault Localization Bias in Benchmarking Automated Program Repair Systemscited by 13
  6. 2026Reflect-Guard: Enhancing LLM Safeguards against Adversarial Prompts via Logical Self-Reflectioncited by 12
  7. 2025Analysing Chain of Thought Dynamics: Active Guidance or Unfaithful Post-hoc Rationalisation?cited by 8
  8. 2026Beyond Accuracy: Measuring Bias Acknowledgment in Chain-of-Thought Reasoning for Responsible AI Evaluationcited by 8
  9. 2025Reward Auditor: Inference on Reward Modeling Suitability in Real-World Perturbed Scenarioscited by 7
  10. 2026The Observability Gap: Why Output-Level Human Feedback Fails for LLM Coding Agentscited by 2
  11. 2026PAFT: Preservation Aware Fine-Tuning for Minimal-Edit Program Repaircited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 6.

6 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026RAIL Guard: Closing the Evaluation-to-Remediation Gap in Responsible AI for LLM Agents
  2. 2026ClayBuddy: A Framework, Evaluation, & Mitigation of Coding Agent Failures
  3. 2026LLM-as-a-Judge Is Not an Oracle: Why Self-Improving Agents Need Deterministic Guardrails
  4. 2026AgentGuard: Learning Execution Guardrails from Anomalous Coding-Agent Trajectories
  5. 2026VERSE: Verified Self-Evolving Optimizer for Agent Harnesses
  6. 2026Self-Harness: Harnesses That Improve Themselves
  7. 2026AI Agents Do Not Fail Alone:The Context Fails First
  8. 2026ProofAgent Harness: Open Infrastructure for Adversarial Evaluation of AI Agents