Manuscript Offprint

arXiv:2610.38392

Masked Erosion: How Acceptance Gates Lose Redundant Safeguards in Self-Improving Agents

Hau-Sing So, Daixian Liu, Weicai Long

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Self-improving LLM agents edit their own harness, the prompts and rules around a fixed model, and keep an edit only if an acceptance gate scores it higher on a batch of tasks. Such a gate sees what the harness does under the current model, not what it would still prevent if one safeguard failed. When safeguards overlap, deleting one is masked: the others still block the harm, so the gate decides on task success alone and redundancy erodes unseen. We measure harm for every subset of four written safeguards in two agent environments and run 411 improvement loops under ten gate rules, mostly as controlled deletion experiments, plus three runs of the GEPA optimizer. A deletion behind another working safeguard adds almost no observable harm. A paired significance test blocks deletions that pass by chance but not deletions that genuinely raise task success, and a larger evaluation batch lets it delete cheaper safeguards: at the same cost, 20-task batches kept every harness protected while 40-task batches lost all six. Large harm audits prevent exposure but not the loss of depth, which turns into harm when the harness is reused with a weaker model. GEPA kept every safety rule verbatim, yet two of its three final harnesses misused credentials under a weaker model. A statistical model frozen before the runs predicts where each gate's protection breaks as safeguard cost and batch size change, and freezing safety text or auditing one-layer ablations preserves depth.

1 Introduction

Self-improving agents such as ADAS, the Darwin Gödel Machine, GEPA, ACE and Self-Harness (Hu et al., 2025; Zhang et al., 2025; Agrawal et al., 2026; Zhang et al., 2026b,a) rewrite their own harness: the prompts, notes and tool rules around a fixed model. Most keep a rewrite only if an acceptance gate finds that the new harness does better

(a) Three deletions, no observed harm

Figure

(b) Same harness, different model

Figure

Figure 1: Low observed harm can hide lost redundancy. (a) A gate that audits every harm task in its batch (veto, ρ=1\rho=1; loop 5 in Appendix Table 14) accepts three deletions without seeing new harm, and the margin falls from 2 to 1. (b) The final harness stays below the harm threshold under the loop's model, but misuses credentials in 0.575 of runs under the weaker Qwen3-30B (two stronger API models: at most 0.05).

than the old one on a batch of tasks. Self-evolution can still degrade safety (Shao et al., 2026; Das et al., 2026; Mao et al., 2026); the Darwin Gödel Machine removed the logging that its own hallucination detector relied on (Zhang et al., 2025).

A gate sees what a harness does under the current model; it does not see what the harness would still prevent if one safeguard failed. Real harnesses guard a harm with overlapping rules. An assistant that keeps notes for several users may be told who owns each note, to check a noted credential against its own, to verify the account after login, and never to act for someone else. This is defence in depth (Reason, 1997). While one rule suffices, deleting another changes almost nothing a gate can measure: the deletion is masked. In Figure 1, a gate that audited every harm task in its batch accepted three deletions in a row. The final harness stayed below

  • Corresponding author.

our harm threshold under the loop's model (0.025 vs. 0.000), but misused credentials in 0.575 of runs under the weaker Qwen3-30B.

Existing checks on self-improvement test either the gain or the child. Robust gates ask whether an accepted gain is real (Shawn, 2026; Wang et al., 2026); harm audits and semantic floors ask whether the child behaves safely now (Kumar et al., 2026). A masked deletion passes both: its gain may be real, and the child is safe under the current model. What it removes is margin, the number of further failures the harness can absorb, which no check of the child under one model can measure. We call this loss of redundancy masked erosion.

We study masked erosion in two environments with deterministic audits: credential misuse in AppWorld (Trivedi et al., 2024) and destructive cleanup in OpsSim, a simulated operations service. In each we measure harm for all 16 subsets of four safeguards and run 411 loops under ten gate rules. Most are stress loops, a controlled intervention in the spirit of mutation testing (DeMillo et al., 1978; Jia and Harman, 2011): each generation deletes one safeguard, and we record whether the gate lets it through. Eighteen natural loops let an LLM rewrite text freely, and three runs use GEPA unchanged. Our contributions are:

  • A mechanism and a way to measure it. Masking explains why a gate cannot see the loss of a redundant safeguard; a harm lattice over all safeguard subsets measures what is lost as margin, the number of further safeguards that may fail before harm appears (§3.2, §4.2).

  • Advance prediction of where gates break. A gate-free effect size from calibration runs separates deletions that a significance test blocks from those it passes, and a simulator frozen before the loops predicts where each gate breaks as safeguard cost and batch size change: a larger batch admits cheaper deletions (§3.3, §4.3–4.4).

  • Evidence on what gates leave behind. Harm audits stop exposure but not depth loss, which becomes harm under weaker models; GEPA shows a related blind spot outside the labelled rules; freezing safety text and auditing one-layer ablations preserve depth (§4.5–4.7).

Together, the results separate two properties that current gates conflate: being safe now, and staying safe when something changes.

References (66)