GUARD: agent self-edits must out-earn what they break

A Google Cloud paper proposes GUARD, which lets an agent edit its own prompts, skills and memory but keeps an edit only if its gains outweigh new regressions.

Agents that rewrite their own prompts, skills and memory tend to fix today's failure by breaking something that already worked. A Google Cloud paper, GUARD (arXiv, Nov 17, 2026), targets that problem. The base model stays frozen, and the harness changes only when an edit's gains outweigh what it breaks.

The loop has four stages:

At test time, one frozen harness runs in a single pass.

The headline numbers come from 43 hosted calendar tasks. There, GUARD reached 80.80% accuracy against 71.91% for the unedited harness and cut tokens per task by 54.5%, per the paper. The paper's own caveats matter:

The ablations make the clearest case for the gate. Promoting edits without it cut accuracy by 10.35 points. In one run an unvetted edit told the agent to call a hallucinated MCP tool, which collapsed accuracy on IT service management tasks to 7.61%. The gate alone wasn't enough either: paired with a weaker proposer, it still let through rules that overfit.

The paper says the authors plan to release code and prompt templates, "subject to approval." A related Google and Penn State approach, Self-Improvement Memory, gives the optimizer a log of its past edits and their outcomes instead. DAIR.AI's summary reports a 2.36-point average gain over harness-only continuation across ten coding runs. @omarsar0 flagged the GUARD paper. It isn't clear yet whether the gate works when applied by hand to everyday coding-agent setups, since none of the experiments use them.

Try it: next time your agent proposes a new rule for its CLAUDE.md or a skill, adapt the paper's seed prompt (our example): "Keep the rule narrow and guarded with explicit [iff ] scope so it cannot fire on tasks you already solve." Then rerun three tasks that already work, and keep the rule only if all three still pass.

Sources