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:
- Checklist. Before each task, a self-reviewer turns the prompt and tool schema into a fixed checklist of yes/no checks. Each run is graded against it, with no reference answers.
- Analyze. Rules that keep passing are pinned. Newly broken behaviours rank ahead of old gaps.
- Propose. Two candidate edits are scored on the same tasks.
- Gate. The winner ships only if the gate, called Soft-HURT, finds that gains exceed regressions. Rules that cause isolated drops get narrowed with
[iff <condition>]preconditions, and rejected edits go into a ledger so they aren't retried.
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:
- 80.80% is the best of five configurations, which averaged 77.09%.
- The 6.28-point lead over Meta-Harness isn't statistically significant (p=0.11).
- The whole hosted gain came from one promoted playbook, because the gate declined later edits.
- On a five-domain local test set the gain was small: 65.81% to 66.46%.
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
- GUARD: Stabilizing Recursive Self-Improvement with Regret Guidance · arXiv.org
- @omarsar0: Banger paper from Google on self-improving agent harnesses. · @omarsar0
- Self-Improvement Memory Enables Continual Recursive Self-Improvement · Self-Improvement Memory Enables Continual Recursive Self-Improvement | DAIR.AI Academy