Manuscript Offprint

arXiv:2610.18427

Reliable Memory from Unstable Growth: Curating Self-Written Agent Playbooks with Randomized Experiments

Hoang Pham, Cong-Duy Nguyen, Dong Le, Ponhvoan Srey, Anh Tuan Luu

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

Abstract

Persistent textual memory lets language-model agents reuse lessons from past tasks to improve on future multi-step tasks without retraining. Systems such as ACE and Dynamic Cheatsheet keep it as a playbook: lessons the agent writes after each task and reads in its prompt. A key challenge is to decide which lessons improve later tasks. Current systems leave the decision to the agent itself, which makes performance unstable: the same procedure can write a playbook that helps or one that falls up to 69.6 points below no playbook. These findings motivate valuing lessons by their measured effect on task success rather than by the agent's judgement. We propose Randomized Block Curation (RBC) 1^{1}, which measures this effect with a randomized experiment on practice tasks. It groups related lessons into blocks large enough to move success measurably and, on each practice task, includes or leaves out every block at random. Random inclusion makes tasks with and without a block comparable, so the gap in their success estimates the block's effect. RBC keeps the blocks that help and, since the same procedure can write a helpful or a harmful playbook, grows several and serves whichever curated, whole or no playbook scores best on fresh practice episodes. Across two memory systems, three models and three benchmarks, RBC raises average success to 66.9, against 55.5 with the whole playbook, 54.1 with no playbook and 53.8 when the agent's own judgement picks the lessons to keep.

1 Introduction

Language-model agents carry out multi-step tasks such as operating apps, shopping online and household chores (Trivedi et al., 2024; Yao et al., 2022; Shridhar et al., 2021). Without retraining, which is costly or impossible through a proprietary API, a

Figure

Figure 1: Judging versus measuring a playbook. (a) The agent judges its lessons and serves the playbook whole or by similarity. (b) Context valuation re-scores random subsets to explain one answer, not to serve. (c) RBC includes each block at random on practice tasks, keeps those that help within a budget, and serves them unless a whole or no playbook scores higher.

growing line of work lets agents improve through persistent textual memory: lessons the agent writes after each task and reads in its prompt later (Shinn et al., 2023; Zhao et al., 2024), which we call a playbook. Systems maintain it differently, growing it lesson by lesson (ACE; Zhang et al., 2026), rewriting it as a whole (Dynamic Cheatsheet; Suzgun et al., 2026) or retrieving lessons by similarity (ReasoningBank; Ouyang et al., 2026), but they share one design (Figure 1a): the agent that writes the lessons also judges which to keep.

Few works test this judgement against task success, and those that do compare whole memories (Nguyen et al., 2026). This matters because added context can distract a model as easily as help it (Shi et al., 2023), and a lesson kept by mistake is served on every later task. This work targets that decision, which lessons of a self-written playbook to serve, in two established memory systems, ACE and Dynamic Cheatsheet. We find their playbooks unstable: served whole, a playbook can fall up to 69.6 points below no playbook, and growing it

∗^{*}Corresponding author.

1^{1}Our code is available at https://anonymous.4open.science/r/rbc.

again on the same tasks in another order can turn a helpful playbook harmful. Whether a playbook helps depends on the growth run that wrote it and is known only by measuring its effect on success.

Letting the agent prune lessons it judges harmful does not remove the harm. Judging a lesson requires comparing episodes with and without it, but the agent sees only those that use it, and language models are poor and biased judges of their own outputs (Huang et al., 2024; Zheng et al., 2023). So it tags lessons as helpful when they sound right, not when they raise success, even a harmful rule (Section 4). Context-valuation methods run this comparison but not for curation: they explain why a model gave one answer (Cohen-Wang et al., 2024) or score memory entries one at a time (Li et al., 2026; Wang et al., 2026), though one entry rarely moves success measurably, and return scores, not a playbook to serve (Figure 1b).

We propose Randomized Block Curation (RBC), which supplies this comparison with a randomized experiment on practice tasks (Figure 1c). RBC groups related lessons into blocks large enough to move success measurably. Including each block at random on every practice task makes tasks with and without it comparable, so their success gap estimates its effect. RBC keeps the blocks that help within a token budget and, since a playbook’s value depends on its run, grows several and serves whichever curated, whole or no playbook scores best on fresh practice episodes. RBC leaves growth itself unchanged.

We test RBC on both systems with three models on three benchmarks. It lifts both on every model, averaging 66.9 task success against 55.5 with the whole playbook, 54.1 with no playbook and 53.8 when the agent picks lessons itself. It also avoids the harm: on ACE it never falls more than 0.8 points below no playbook, while every baseline falls at least 5.4 points below it in some setting. When ACE's playbooks, which never drop a lesson, grow for twice as long, RBC still beats the whole playbook and no playbook in every setting. In summary, our contributions are as follows.

• Analysis. We show that self-written playbooks are unstable across growth runs and that the agent’s own judgement misses the harm.

• Method. We propose RBC, which measures each block of lessons in a randomized experiment and serves only what helps.

• Experiments. RBC is effective and robust across memory systems, models, benchmarks and rounds of memory updates.

References (59)