Manuscript Offprint
arXiv:2611.04003WASP-Mem: Let Agent Organize Procedural Memory. Human Spend Effort on Diagnosis
ABSTRACT
LLM agents struggle to automate complex enterprise procedures because static, pre-built harness cannot capture proprietary policies, undocumented behaviors, or state-dependent recovery paths that surface only during execution. Procedural memory accrued from agent experience offers a training-free path to closing this gap—yet unlike episodic records or semantic facts, it must consolidate repeated successes and diagnosed failures into reusable actions and recovery strategies. We introduce WASP-Mem (Wiki-based Agent-Synthesized Procedural Memory), a nimble but effective method that distills execution traces and feedback into persistent, interlinked wiki pages, enabling continual agent learning. On TheAgent-Company benchmark, WASP-Mem raises the checkpoint pass rate by 4.6–6.1% over the strongest baseline we compared across three models while requiring 57–61% less storage. We further present a systematic controlled study spanning consolidation method, feedback type, trace ingestion scope, and refinement rounds. Our results reveal that prescriptive knowledge organization such as human defined schemas and explicit deduplication rules hurts performance rather than closing the procedural-knowledge gap. In contrast, human diagnosis converts failed traces into corrective knowledge and drives sustained improvement: a single round of human diagnosis outperforms four rounds of self-judgment by 7.0–10.9%. These findings point to a simple division of labor: let agents organize procedural memory, and invest human effort where it matters most—diagnosis.
1 INTRODUCTION
LLM agents are becoming practical interfaces for complex enterprise procedure automation: they plan, call tools, and modify shared services to complete multi-step workplace tasks (Xu et al., 2024; ang Gao et al., 2025). Their behavior is governed by a static agent harness, including the software implementation, system prompt, tools, environment interfaces, and fixed contexts supplied before deployment (Sumers et al., 2023). Yet the operational knowledge needed in a proprietary environment is intrinsically unforeseeable: under-documented APIs, organization-specific policies, strict output conventions, abnormal service states, and recovery paths often surface only during execution. In production, designers cannot know in advance which hidden condition will cause the next failure. Compounding this, unlike many coding or mathematical benchmarks where broadly available knowledge combines with compilers, tests, exact answers, or resettable sandboxes to provide cheap verification (Jimenez et al., 2023; Hendrycks et al., 2021), enterprise feedback depends on dedicated proprietary environments and organization-specific outcomes, making evaluation and diagnosis substantially more expensive (Xu et al., 2024).
Long-term memory offers a training-free way to close this residual knowledge gap without changing model parameters (Sumers et al., 2023; Du et al., 2025). Episodic memory preserves what happened in a particular rollout; semantic memory stores general facts or concepts. Procedural memory, in contrast, captures how to act under particular conditions (Tulving, 1972; Cohen & Squire, 1980;
Equal contribution.

(a) Procedural memory consolidation workflow.
(b) Memory-store size vs. checkpoint pass rate.
Figure 1: Workflow and key results. (a) The multi-round loop enables continual learning by consolidate agent execution traces and feedback into reusable procedural memory. (b) Memory-store size and checkpoint performance across consolidation methods and model variants. WASP-Mem achieves higher checkpoint pass rate with smaller memory store size.
Squire, 1992; Anderson, 1993). Its unit is not a transcript or isolated statement but reusable guidance specifying when a procedure applies, which actions and implementation details carry it out, what can fail, and how to recover. Consequently, procedural memory requires consolidation rather than naive accumulation: repeated successes should be merged, contradictions resolved, and diagnosed failures incorporated as missing preconditions or troubleshooting paths (Chen et al., 2024; Wang et al., 2024; Fang et al., 2025). Without such consolidation, raw sessions accumulate redundancy and noise without becoming accurate, robust knowledge that generalizes across recurring task instances.
Formally, this process is a multi-round execution–consolidation cycle (Figure 1a). During the execution phase, given a task, the agent retrieves zero or more relevant memory pages, acts on the environment through its tools, and records its actions and observations as a raw rollout trace. An evaluator or human then provides feedback based on the resulting environment state. During the consolidation phase, a method reads the current store alongside eligible traces and feedback, and abstracts them into reusable procedural knowledge: when a procedure applies, which actions to perform, what failures may arise, and how to diagnose and resolve them. The method then writes or merges this knowledge according to the memory system's representation and interaction interface. One execution pass followed by consolidation forms a round; only the updated memory store carries into the next round, while the model parameters and harness remain fixed.
Agent memory is a rapidly expanding design space, with new representations, extraction rules, retrieval mechanisms, and update procedures appearing continuously (Du et al., 2025; ang Gao et al., 2025; Xu et al., 2025; Ouyang et al., 2025; Hu et al., 2026; Wang et al., 2026). Choosing among overwhelming candidates resembles a classic Secretary Problem (Ferguson, 1989) with no known stopping rule, and exhaustive evaluation is infeasible. Practitioners instead need higher-level principles explaining which design dimensions matter, where human and system effort produces the greatest return, and which interventions merely add constraints or volume. We organize our study around three questions: (1) How should execution experience be consolidated into reusable procedural memory? (2) Which feedback, trace ingestion scope, and refinement choices most improve future execution? (3) Where should human effort be spent: prescribing knowledge organization upfront or diagnosing failures reactively?
Through controlled experiments and qualitative analysis, we derive actionable answers to these questions. Our contributions are threefold:
-
Nimble but Effective Consolidation Method. We introduce Wiki-based Agent-Synthesized Procedural Memory (WASP-Mem), an agentic procedural-memory organizer for training-free continual learning. It consolidates agent execution traces and human feedback into persistent, interlinked wiki pages, achieving both the most compact knowledge store and the strongest downstream task performance among all compared methods (Figure 1b).
-
Controlled Study. To determine what makes procedural-memory consolidation effective, we systematically vary consolidation method, feedback type, trace-ingestion scope, and refinement rounds across three models, identifying which interventions most improve future execution.
-
Learnings From a Bitter Lesson. We distill our findings into a design principle: build a general-purpose memory system, but let the agent self-organize its procedural knowledge. Imposing domain-specific structure on procedural knowledge at design time harms performance. Instead, human intervention is most effective when applied reactively—through failure diagnosis, targeted feedback, and iterative refinement.
Benchmarks for enterprise procedural learning. Suitable benchmarks are scarce because they must expose proprietary-knowledge gaps, target enterprise automation rather than coding or mathematics, provide stateful tools, include enough related tasks for procedural transfer, and offer execution annotations finer than task-level success. TheAgentCompany provides multi-service professional workflows and checkpoint-level grading (Xu et al., 2024), while -Bench provides domain policies, tool APIs, verifiable state transitions, and customer-support tasks (Barres et al., 2025). SaaS-Bench broadens the setting to larger scale but its strongest reported agent completes fewer than 4% of tasks end-to-end (Shi et al., 2026) and package was also unavailable during our experiments. We adopt TheAgentCompany and -Bench: agents generate rollouts and feedback on training tasks, each method consolidates them into memory, and the agent with frozen store is evaluated on held-out test tasks. We judge memory methods by downstream checkpoint and task completion, rather than recall of stored experience.
3 METHOD
We target recurring enterprise workflows in which a task attempt can modify a shared environment and relevant organization-specific procedures may be absent from the initial agent harness. Let denote the persistent memory store at round , a batch of execution traces, the corresponding environment or human feedback, and the ingestion scope governing which traces and feedback are eligible for consolidation. A consolidation method updates the store as
The goal is to capture residual procedural knowledge not already encoded in the fixed harness. Consolidation transforms many rollout-specific observations into fewer reusable procedures by merging repeated evidence, correcting inaccurate knowledge, and retaining distinct lessons when their conditions or remedies differ. The model parameters, harness, and executor loop remain fixed; methods differ only in their memory representation and consolidation operation. After consolidation on training tasks, the store is frozen and evaluated by the checkpoint and task completion rates the agent achieves on test tasks.
3.1 WASP-Mem CONSOLIDATION METHOD
WASP-Mem is a memory-consolidation and retrieval method for training-free continual learning that organizes execution traces and feedback into persistent, interlinked procedural wiki pages at different granularities and retrieves them to guide future execution, drawing on the idea of an LLM-maintained wiki as a personal knowledge base (Karpathy, 2026). WASP-Mem initializes a wiki filesystem with no initial procedural content and mandatory control files such as index.md, which serves as a high-level router over the wiki pages. A WASP-Mem consolidator agent creates, organizes, revises, or removes pages and their links during consolidation. Three interface operations are provided:
-
Ingestion. Given a raw agent-session .json1 file and optional asynchronously produced natural-language feedback, the WASP-Mem agent spawns a subagent that reviews the session trace to identify actionable observations retrospectively, then uses them to add, update, or remove pages and links.
-
Query. During both consolidation and execution, agents begin from index.md and combine semantic search with shell navigation to locate relevant pages and follow inter-page relationships, such as related conditions, actions, and outcomes; the semantic-search index is rebuilt after each consolidation phase.
-
Lint. Prompt-based rules and scripts direct the agent to scrutinize generalizability, reusability, ambiguity, excessive page length, link integrity, and conflicts, and to determine whether pages should be split, merged, or relinked.
WASP-Mem variants. Free Form is the basic WASP-Mem instantiation described above. Each page is markdown with a minimal metadata header, such as its title, brief description, and last-modified time; the consolidator decides the remaining page structure and content. Schema Form adds prescriptive, human-designed organization: pages must be Procedures, Actions, or Lessons, each with fixed fields and enumerated options. Both Free Form and Schema Form read the existing wiki before writing and therefore perform implicit, agent-managed deduplication. Schema Form-ED further adds explicit deduplication rules: each session is first processed independently into candidate pages, after which a separate normalization, matching, and merge stage consolidates candidates before committing them to the persistent store. Schema Form and Schema Form-ED thus represent increasing levels of upfront prescriptive knowledge organization.
3.2 CONTROLLED CONSOLIDATION DESIGN SPACE
To identify which consolidation choices improve downstream execution and where human and system effort is most rewarding, we vary four dimensions systematically while holding the remaining factors fixed.
Consolidation method. We compare the three WASP-Mem variants above with four baselines. No Memory executes without assistance from any long-term memory, while No Consolidation stores raw execution traces and retrieves the most similar trace without abstraction or integration. Insights distills each session into abstract procedural insights (Hu et al., 2026) and stores them in a flat collection, with no cross-session deduplication, verification, or reconciliation. SkillX constructs a knowledge base in the form of agent skills organized at three levels: planning, functional, and atomic (Wang et al., 2026). This hierarchy is prescriptive, analogous to imposing a page schema: each planning skill forms an independent procedural hierarchy, and reusable functional or atomic skills are not deduplicated into a shared pool across those hierarchies.
Feedback type. Feedback determines what evidence the consolidator has for deciding whether an execution was correct and why it succeeded or failed. We construct a ladder from Self-Judge, which uses only the agent's own assessment, to external Checkpoint-binary feedback that localizes success and failure to individual checkpoints within the task, and Checkpoint-binary + Human feedback that additionally provides natural-language diagnosis. This separates the value of an external outcome signal from the value of diagnostic explanation.
Ingestion scope. Ingestion scope determines which experiences are eligible for consolidation. Success-only admits evidence from successful executions, whereas Both also admits failed traces and their feedback. Failure traces become useful when outcome or diagnostic feedback distinguishes a reusable procedural lesson from incidental unsuccessful behavior.
Refinement rounds. Refinement rounds control whether memory is consolidated once or repeatedly revised as further execution traces become available. R0 serves as the no-memory baseline, R1 performs the first consolidation, and R2–R4 repeatedly execute against and update the same persistent store, allowing knowledge to be corroborated, corrected, or extended over time. Appendix B specifies the complete controlled matrix and protocols.
4 EXPERIMENTS
4.1 EXPERIMENTAL SETUP
TheAgentCompany. Our primary controlled study uses TheAgentCompany (Xu et al., 2024), which contains 127 workplace tasks and 542 execution-based checkpoints across GitLab, RocketChat, OwnCloud, and Plane. Its six professional domains share tools, APIs, and workflows, providing recurring procedural structure across tasks. The isolated services form a resettable testbed for state-changing workplace actions. To model recurring enterprise automation in which agents repeatedly encounter the same workflows, training and test sets contain the same 127 tasks. We enforced strict post-consolidation guardrails to prevent case-specific data leakage. Each condition scores one fresh attempt per task under the current memory store.
-Bench Retail. We additionally use the retail domain of -Bench (Barres et al., 2025) to examine in-domain generalization across disjoint train and test sets. We define a custom operating procedure that is absent from the agent harness and encode its requirements in the ground-truth action checkpoints. The disjoint train and test tasks share substantial procedural knowledge through common policy rules and tool workflows. The resulting benchmark contains 74 training tasks with 391 checkpoints and 40 test tasks with 192 checkpoints. Agents first execute the training tasks without access to the procedure. The resulting traces and checkpoint feedback are then used to construct each memory condition's store, which is frozen and evaluated on the test tasks while the original procedure remains withheld.
Models, harnesses, and environments. For both benchmarks, we report results with Claude Opus 4.6 (Anthropic, 2026), GPT-5.4 (OpenAI, 2026), and GLM-5 (GLM-5 Team, 2026). On TheAgentCompany, we use the pi-agent harness, which exposes bash as its only action tool for issuing API calls against self-hosted services in isolated Docker environments. Cohere Embed v4 provides 1024-dimensional embeddings for semantic search. For -Bench, we use its native function-calling agent and simulated customer environment. All memory methods receive the same training rollout batch, and LLM-based methods use the same consolidator model (Appendix E).
Metrics and controls. Our primary metric is checkpoint pass rate: the fraction of binary, execution-grounded checkpoints passed. For -Bench, checkpoints are ground-truth action sequences verified against the environment state. Fully-passed rate is the fraction of tasks satisfying all benchmark evaluation criteria. We also report memory-store size and consolidation API cost. The full four-dimensional controlled study is conducted on TheAgentCompany, while -Bench repeats the consolidation-method comparison under held-out in-domain generalization. Appendix C gives the complete matrix and exact results, and Appendix E reports implementation details and costs.
4.2 CONSOLIDATION METHOD
4.2.1 MAIN RESULTS
This experiment tests whether consolidating experience improves future execution and how the organization of procedural memory affects transfer. We compare No Memory, raw-trace retrieval without consolidation, Insights, SkillX, and the three WASP-Mem variants. All conditions use checkpoint-binary feedback, ingest both successful and failed traces, and consolidate in a single round (R1). Within each benchmark, all memory methods receive the same training rollout batch and are evaluated under the same execution budget.
Table 1 shows that consolidation, rather than experience storage alone, drives improvement. Every consolidated method exceeds No Memory across all six model-benchmark combinations. In contrast, No Consolidation provides only +2.5–2.9 pp on TheAgentCompany and changes checkpoint
Table 1: Consolidation method across model variants. Bold marks the best value for each metric within a block, and the shaded row is the Free Form WASP-Mem.
| Method | THEAGENTCOMPANY | τ²-BENCH | ||||
|---|---|---|---|---|---|---|
| Checkpoint pass | Fully passed | Store (KB) | Checkpoint pass | Fully passed | Store (KB) | |
| Claude Opus 4.6 | ||||||
| No Memory | 58.5% | 36.2% | n/a | 66.7% | 40.0% | n/a |
| No Consolidation | 61.3% (+2.8) | 40.2% (+4.0) | 7,979 | 69.3% (+2.6) | 42.5% (+2.5) | 1,428 |
| SkillIX | 65.3% (+6.8) | 45.7% (+9.5) | 1,125 | 81.2% (+14.5) | 50.0% (+10.0) | 336 |
| Insights | 65.7% (+7.2) | 45.7% (+9.5) | 396 | 78.1% (+11.4) | 55.0% (+15.0) | 96 |
| WASP-Mem | ||||||
| Free Form (Implicit Dedup) | 72.3% (+13.8) | 48.0% (+11.8) | 234 | 81.2% (+14.5) | 55.0% (+15.0) | 92 |
| + Schema (Implicit Dedup) | 66.2% (+7.7) | 48.8% (+12.6) | 565 | 77.6% (+10.9) | 42.5% (+2.5) | 252 |
| + Schema + Explicit Dedup | 65.7% (+7.2) | 44.9% (+8.7) | 789 | 79.7% (+13.0) | 52.5% (+12.5) | 656 |
| GPT-5.4 | ||||||
| No Memory | 60.0% | 40.2% | n/a | 65.1% | 35.0% | n/a |
| No Consolidation | 62.5% (+2.5) | 42.5% (+2.3) | 8,208 | 62.0% (-3.1) | 42.5% (+7.5) | 1,953 |
| SkillIX | 67.2% (+7.2) | 50.4% (+10.2) | 1,161 | 69.3% (+4.2) | 45.0% (+10.0) | 425 |
| Insights | 66.2% (+6.2) | 48.8% (+8.6) | 399 | 67.7% (+2.6) | 52.5% (+17.5) | 112 |
| WASP-Mem | ||||||
| Free Form (Implicit Dedup) | 72.5% (+12.5) | 52.0% (+11.8) | 233 | 76.6% (+11.5) | 60.0% (+25.0) | 123 |
| + Schema (Implicit Dedup) | 67.9% (+7.9) | 50.4% (+10.2) | 592 | 71.4% (+6.3) | 47.5% (+12.5) | 303 |
| + Schema + Explicit Dedup | 67.0% (+7.0) | 49.6% (+9.4) | 808 | 71.9% (+6.8) | 52.5% (+17.5) | 880 |
| GLM-5 | ||||||
| No Memory | 58.9% | 38.6% | n/a | 47.4% | 25.0% | n/a |
| No Consolidation | 61.8% (+2.9) | 40.9% (+2.3) | 8,480 | 46.4% (-1.0) | 30.0% (+5.0) | 1,461 |
| SkillIX | 65.7% (+6.8) | 46.5% (+7.9) | 1,187 | 53.1% (+5.7) | 32.5% (+7.5) | 315 |
| Insights | 65.9% (+7.0) | 47.2% (+8.6) | 441 | 51.6% (+4.2) | 37.5% (+12.5) | 82 |
| WASP-Mem | ||||||
| Free Form (Implicit Dedup) | 72.5% (+13.6) | 52.0% (+13.4) | 255 | 58.3% (+10.9) | 42.5% (+17.5) | 92 |
| + Schema (Implicit Dedup) | 66.6% (+7.7) | 50.4% (+11.8) | 599 | 56.2% (+8.8) | 37.5% (+12.5) | 323 |
| + Schema + Explicit Dedup | 65.7% (+6.8) | 46.5% (+7.9) | 838 | 53.1% (+5.7) | 27.5% (+2.5) | 557 |
pass rate by -3.1 to +2.6 pp on -Bench. Raw traces can therefore preserve useful examples, but without abstraction and reconciliation they transfer inconsistently and can even distract execution.
Free Form WASP-Mem provides the strongest and most consistent result. It leads checkpoint pass rate for every model on TheAgentCompany and leads or ties the best baseline on -Bench (tying SkillIX for Claude at 81.2%), improving by +10.9–14.5 pp over No Memory across the six settings. It also improves fully-passed rate by +11.8–25.0 pp and achieves the best or tied-best value in five of six settings. These gains do not come from retaining more experience: its 92–255 KB stores are approximately 94–97% smaller than No Consolidation. Free Form is the smallest consolidated store for all three TheAgentCompany models and the smallest WASP-Mem variant on -Bench.
The WASP-Mem ablations further show that prescriptive knowledge organization does not improve consolidation. Adding a human-defined schema lowers checkpoint pass rate relative to Free Form in every model–benchmark combination by 2.1–6.1 pp, while increasing store size by 2.3–3.5×. Adding explicit deduplication also remains 1.5–6.8 pp below Free Form and expands the store by 3.3–7.2×. Thus, agent-managed implicit deduplication produces a more compact and effective procedural memory than either prescribed page types or prescribed cross-session matching rules.
Figure 1b reinforces that a compact memory store with high signal density outperforms a large one filled with redundancy and noise. These results suggest that memory consolidation acts as a filter. Its value lies not in volume but in selectivity, retaining informative procedural signal while discarding what is false, noisy, redundant, or misleading. Under this view, we identify two failure modes:
-
Under-filtering retains noise, redundancy, and incidental detail. No Consolidation stores entire rollouts without abstraction. Insights and SkillIX abstract individual sessions but process them independently, so similar procedures with nuanced differences produce separate entries rather than being merged into a shared, deduplicated procedure.
-
Over-filtering discards useful signal. Schema Form’s fixed fields can exclude implementation details not anticipated when the schema was designed. SkillIX’s rigid three-level hierarchy may similarly drop contextual information that does not fit its prescribed structure.

(a) Checkpoint pass rate.

(b) Full pass rate.
Figure 2: Feedback type and ingestion scope. Checkpoint pass rate (a) and fully-passed rate (b) when consolidating successful traces only versus both successful and failed traces under Self-Judge, Checkpoint-binary, and Checkpoint-binary + Human feedback. Colored points denote model variants; black diamonds and whiskers show the cross-model mean and min-max range.
These two modes can co-occur: a method may simultaneously retain redundant entries (under-filtering) while discarding actionable detail that falls outside its prescribed structure (over-filtering), producing a mis-filtered store. Free Form WASP-Mem achieves a more balanced filter: reading the existing wiki before writing enables implicit deduplication, while unconstrained pages preserve whichever actionable details execution reveals, yielding the strongest and most consistent checkpoint pass rate across model variants.
Let Agents Organize Memory.
Prescriptive knowledge organization does not improve consolidation. Agent management produces more compact and effective procedural memory.
4.3 FEEDBACK TYPE AND INGESTION SCOPE
This experiment asks how feedback richness and trace-ingestion scope jointly affect consolidation quality. It uses Free Form WASP-Mem consolidated in a single round (R1). Feedback varies from Self-Judge, to external Checkpoint-binary outcomes, to Checkpoint-binary + Human feedback with natural-language diagnosis. Within each feedback condition, we compare Success-only ingestion with Both, which also admits failed traces. The two scopes consolidate the same R0 rollout batch and receive the same subsequent execution budget, so their difference isolates the value of learning from failure.
Feedback richness first determines the overall quality of the consolidated memory. When both successful and failed traces are ingested, checkpoint pass rate rises from 64.4–64.9% with Self-Judge to 72.3–72.7% with Checkpoint-binary and 75.8–77.1% with Checkpoint-binary + Human. External checkpoint outcomes improve performance by +7.4–8.1 pp over Self-Judge by correcting mistaken self-assessments and localizing unsuccessful actions. Human diagnosis adds a further +3.5–4.4 pp by explaining failure causes and corrective procedures that cannot be recovered reliably from a binary outcome alone.
This benefit is concentrated in failed traces. Under Success-only ingestion, moving from Self-Judge to Checkpoint-binary + Human changes checkpoint pass rate by only +0.9–2.0 pp, and adding human diagnosis beyond Checkpoint-binary changes it by -0.2 to +0.7 pp. Under Both, the same comparisons yield +10.9–12.2 pp and +3.5–4.4 pp, respectively. Fully-passed rate exhibits the same interaction: rich feedback changes Success-only by only -0.8 to +0.8 pp over Self-Judge, but improves Both by +9.4–15.7 pp. Diagnostic feedback therefore contributes primarily by making failed executions interpretable, rather than by adding substantial information to traces that already succeeded.

(a) Reactive refinement.

(b) Progress toward full pass.
Figure 3: Multi-round refinement and task completion. (a) Checkpoint pass rate across R0–R4 for all three models under Checkpoint-binary + Human, Checkpoint-binary, and Self-Judge feedback. (b) Claude Opus 4.6 task scores under Checkpoint-binary + Human feedback. Segment labels are task counts.
Viewed from the other axis, richer feedback determines how much the agent can learn from failed traces (Figure 2). Moving from Success-only to Both changes checkpoint pass rate by only -0.7 to +0.1 pp under Self-Judge. Without reliable external signal, the agent cannot distinguish a reusable lesson from incidental unsuccessful behavior, so admitting failures adds noise rather than knowledge. The gain grows to +5.9–6.4 pp with Checkpoint-binary feedback and +9.6–10.5 pp with Checkpoint-binary + Human feedback. The fully-passed rate exhibits the same progression: admitting failed traces adds 0.0–4.0 pp under Self-Judge, +3.9–6.3 pp under Checkpoint-binary, and +13.4–14.9 pp under Checkpoint-binary + Human. Failure traces are therefore not automatically useful: they become valuable when feedback identifies what failed and, most effectively, why it failed and how the procedure should be corrected.
Feedback Makes Failure Learnable.
The richer and more diagnostic the feedback, the more downstream value the agent extracts from failed traces.
4.4 MULTI-ROUND REFINEMENT
This experiment asks whether repeated execution and consolidation continue to close the residual procedural-knowledge gap. It uses Free Form WASP-Mem with Both ingestion scope, varies rounds from R0 through R4, and compares Self-Judge, Checkpoint-binary, and Checkpoint-binary + Human feedback. R0 executes without memory; each subsequent round executes against the current frozen store and then consolidates the resulting traces and feedback. All reported results reflect fresh executions from that round rather than cumulative or best-over-round scores.
With Checkpoint-binary + Human feedback, checkpoint pass rate increases monotonically for every model and reaches 85.6–86.7% at R4. The first consolidation round contributes +17.1–17.5 pp, yet the residual failures continue to reveal useful procedural gaps: R3 to R4 still adds +3.1–3.9 pp, with gains remaining non-trivial through the final round. Checkpoint-binary feedback reaches only 78.2–79.7% at R4, with its final-round change shrinking to -0.6 to +0.9 pp. Self-Judge is lower and non-monotonic, ending at 65.5–68.8%. Human diagnosis therefore does more than improve the first memory store; it repeatedly turns the remaining failures into new corrective knowledge.
Feedback quality also matters more than additional rounds alone. After one Checkpoint-binary + Human round, checkpoint pass rate is already 75.8–77.1%, exceeding the corresponding Self-
Judge R4 result by 7.0–10.9 pp for every model. Four rounds of self-assessment do not recover the information supplied by one round of external outcomes and human failure diagnosis.
Figure 3b shows how local checkpoint gains translate into end-to-end task success. For Claude Opus 4.6, fully passed tasks increase from 46 at R0 to 71, 79, 86, and 92 through R4. As repeated refinement makes earlier steps reliable and resolves later failure points, tasks shift from partial completion into full passes.
Feedback Quality over Rollout Volume.
Richer feedback on fewer traces outperforms sparse feedback on more rollouts; local checkpoint gains compound into end-to-end success.
5 DISCUSSION
Our study answers the three questions posed in the introduction and turns them into a design principle for agentic continual learning.
How should experience be consolidated? Experience should be transformed into shared, revisable procedural memory rather than accumulated as independent traces or abstractions. By organizing interlinked pages, WASP-Mem can merge and correct knowledge across sessions while preserving useful relationships at different granularities. Free Form WASP-Mem improves over No Memory by 10.9–14.5 pp across all six model–benchmark settings with 92–255 KB stores—two orders of magnitude smaller than raw-trace retrieval. The value of memory lies in selective consolidation, not volume.
Which feedback, ingestion, and refinement choices matter? Failure traces are useful primarily when feedback makes them interpretable. Execution-grounded outcomes localize failures, diagnosis explains the required correction, and iterative refinement turns newly exposed gaps into durable knowledge. One diagnostically supervised round outperforms four Self-Judge rounds by 7.0–10.9 pp: feedback quality matters more than rollout volume.
Where should human effort be spent? General system design remains necessary: memory needs persistence, retrieval, update operations, navigation, and quality checks. Domain-specific organization, however, should be left to the agent rather than prescribed before the knowledge gap is observed. Human effort is better spent reactively diagnosing failures. Additional constraints should address demonstrated memory failures, not anticipated ones.
WASP-Mem therefore contributes both a training-free mechanism for acquiring proprietary procedural knowledge and a practical principle: let the agent organize memory, and spend human effort on diagnosis.
Limitations. Our controlled study uses two benchmarks, three models, and single-run configurations; variance across seeds remains unquantified (Appendix F). More broadly, enterprise procedural automation remains less studied than code, mathematics, or personal assistants, and no available open benchmark combines stateful environments, proprietary procedures, and execution-grounded feedback at scale. Longer-term memory stability, broader enterprise environments, replication, and scalable automated diagnosis remain important directions for future work.
6 CONCLUSION
We introduced WASP-Mem, a training-free continual-learning method that consolidates execution traces and feedback into persistent, interlinked procedural wiki pages. Across two enterprise benchmarks and three model families, Free Form WASP-Mem leads or ties checkpoint pass rate in all six settings while maintaining compact stores. The controlled study further shows that prescribed schemas and explicit deduplication rules do not improve consolidation, that failed traces become useful as feedback becomes more diagnostic, and that one round with checkpoint outcomes and human diagnosis outperforms four rounds of self-judgment. Continued diagnosis produces larger and more sustainable improvements across refinement rounds, with local checkpoint corrections compounding into end-to-end task completion. The resulting design principle is simple: provide a general memory system, let the agent organize the procedural knowledge revealed by experience, and spend human effort reactively on diagnosing the failures that remain.
AI USE STATEMENT
Generative AI is both the object of study in this work and a tool we used to carry it out. As the object of study, large language models execute the benchmark tasks, perform consolidation, and supply Self-Judge feedback in the corresponding condition, as described in Section 3 and Appendix B. As a tool, we used an LLM-based assistant to give feedback on experimental design, help interpret results, implement analysis and plotting scripts, draft and edit the manuscript, and identify and format related work. We did not use it to generate data or produce any reported number outside the experimental runs themselves. All AI-generated or AI-assisted outputs were reviewed and verified by the authors, who take full responsibility for the paper's content, claims, results, and artifacts.
ETHICS STATEMENT
We identify no ethical concerns with this work. It involves no human-subjects research and releases no personal data. Every experiment ran against self-hosted instances of GitLab, RocketChat, OwnCloud, and Plane populated with the benchmark's synthetic content; no production system or real user data was accessed. The Checkpoint-binary + Human condition required a qualified annotator to describe each failed checkpoint; that annotator produced labels for the study rather than being a subject of it.
REPRODUCIBILITY STATEMENT
Section 3 defines the consolidation cycle and the four dimensions we vary; Section 4.1 states the benchmarks, models, harness, metrics, and controls held fixed. Appendix B provides per-method consolidation recipes, representation-specific retrieval adapters, feedback definitions, and the complete experimental matrix. Appendix C reports every per-model result behind the ranges quoted in the main text. Appendix E records the environment, model versions, retrieval configuration, compute, wall-clock time, per-batch API cost, round procedure, and experiment code. Every configuration was run once; Appendix F states which differences we therefore treat as unresolved.
REFERENCES
John R. Anderson. Rules of the Mind. Lawrence Erlbaum Associates, 1993.
Huan ang Gao, Jiayi Geng, Wenyue Hua, Mengkang Hu, Xinzhe Juan, Hongzhang Liu, Shilong Liu, Jiahao Qiu, Xuan Qi, Yiran Wu, Hongru Wang, Han Xiao, Yuhang Zhou, Shaokun Zhang, Jiayi Zhang, Jinyu Xiang, Yixiong Fang, Qiwen Zhao, Dongrui Liu, Qihan Ren, Cheng Qian, Zhenhailong Wang, Minda Hu, Huazheng Wang, Qingyun Wu, Heng Ji, and Mengdi Wang. A survey of self-evolving agents: What, when, how, and where to evolve on the path to artificial super intelligence. arXiv preprint arXiv:2507.21046, 2025. doi: 10.48550/arXiv.2507.21046. URL https://arxiv.org/abs/2507.21046.
Anthropic. Claude opus 4.6 system card. https://www.anthropic.com/claude-opus-4-6-system-card, February 2026.
Victor Barres, Honghua Dong, Soham Ray, Xujie Si, and Karthik Narasimhan. -Bench: Evaluating conversational agents in a dual-control environment. arXiv preprint arXiv:2506.07982, 2025. doi: 10.48550/arXiv.2506.07982. URL https://arxiv.org/abs/2506.07982.
Minghao Chen, Yihang Li, Yanting Yang, Shiyu Yu, Binbin Lin, and Xiaofei He. Automanual: Constructing instruction manuals by llm agents via interactive environmental learning. arXiv preprint arXiv:2405.16247, 2024. doi: 10.48550/arXiv.2405.16247. URL https://arxiv.org/abs/2405.16247.
Prateek Chhikara, Dev Khant, Saket Aryan, Taranjeet Singh, and Deshraj Yadav. Mem0: Building production-ready AI agents with scalable long-term memory. arXiv preprint arXiv:2504.19413, 2025. doi: 10.48550/arXiv.2504.19413. URL https://arxiv.org/abs/2504.19413.
Neal J. Cohen and Larry R. Squire. Preserved learning and retention of pattern-analyzing skill in amnesia: Dissociation of knowing how and knowing that. Science, 210(4466):207–210, 1980.
Yiming Du, Wenyu Huang, Danna Zheng, Zhaowei Wang, Sebastien Montella, Mirella Lapata, Kam-Fai Wong, and Jeff Z. Pan. Rethinking memory in llm based agents: Representations, operations, and emerging topics. arXiv preprint arXiv:2505.00675, 2025. doi: 10.48550/arXiv.2505.00675. URL https://arxiv.org/abs/2505.00675.
Runnan Fang, Yuan Liang, Xiaobin Wang, Jialong Wu, Shuofei Qiao, Pengjun Xie, Fei Huang, Huajun Chen, and Ningyu Zhang. Memp: Exploring agent procedural memory. arXiv preprint arXiv:2508.06433, 2025. doi: 10.48550/arXiv.2508.06433. URL https://arxiv.org/abs/2508.06433. Published at ACL 2026 Findings.
Thomas S. Ferguson. Who solved the secretary problem? Statistical Science, 4(3):282–289, 1989. doi: 10.1214/ss/1177012493.
Yao Fu, Dong-Ki Kim, Jaekyeom Kim, Sungryull Sohn, Lajanugen Logeswaran, Kyunghoon Bae, and Honglak Lee. Autoguide: Automated generation and selection of context-aware guidelines for large language model agents. arXiv preprint arXiv:2403.08978, 2024. doi: 10.48550/arXiv.2403.08978. URL https://arxiv.org/abs/2403.08978. Published at NeurIPS 2024.
GLM-5 Team. GLM-5: from vibe coding to agentic engineering. arXiv preprint arXiv:2602.15763, 2026. URL https://arxiv.org/abs/2602.15763.
Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring mathematical problem solving with the MATH dataset. arXiv preprint arXiv:2103.03874, 2021. doi: 10.48550/arXiv.2103.03874. URL https://arxiv.org/abs/2103.03874. Published at NeurIPS 2021 Datasets and Benchmarks Track.
Qisheng Hu, Quanyu Long, and Wenya Wang. When continual learning moves to memory: A study of experience reuse in llm agents. arXiv preprint arXiv:2604.27003, 2026. doi: 10.48550/arXiv.2604.27003. URL https://arxiv.org/abs/2604.27003.
Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, and Karthik Narasimhan. SWE-bench: Can language models resolve real-world GitHub issues? arXiv preprint arXiv:2310.06770, 2023. doi: 10.48550/arXiv.2310.06770. URL https://arxiv.org/abs/2310.06770. Published at ICLR 2024.
Andrej Karpathy. Llm wiki. GitHub Gist, April 2026. URL https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f.
OpenAI. Gpt-5.4 thinking system card. https://openai.com/index/gpt-5-4-thinking-system-card/, March 2026.
Siru Ouyang, Jun Yan, I-Hung Hsu, Yanfei Chen, Ke Jiang, Zifeng Wang, Rujun Han, Long T. Le, Samira Daruki, Xiangru Tang, Vishy Tirumalashetty, George Lee, Mahsan Rofouei, Hangfei Lin, Jiawei Han, Chen-Yu Lee, and Tomas Pfister. Reasoningbank: Scaling agent self-evolving with reasoning memory. arXiv preprint arXiv:2509.25140, 2025. doi: 10.48550/arXiv.2509.25140. URL https://arxiv.org/abs/2509.25140.
Charles Packer, Sarah Wooders, Kevin Lin, Vivian Fang, Shishir G. Patil, Ion Stoica, and Joseph E. Gonzalez. Memgpt: Towards llms as operating systems. arXiv preprint arXiv:2310.08560, 2023. doi: 10.48550/arXiv.2310.08560. URL https://arxiv.org/abs/2310.08560.
Kean Shi, Zihang Li, Tianyi Ma, Zengji Tu, Jialong Wu, Xinbo Xu, Qingyao Yang, Ruoyu Wu, Weichu Xie, Ming Wu, Jason Zeng, Michael Heinrich, Elvis Zhang, Liang Chen, Kuan Li, and Baobao Chang. SaaS-Bench: Can computer-use agents leverage real-world SaaS to solve professional workflows? arXiv preprint arXiv:2605.15777, 2026. doi: 10.48550/arXiv.2605.15777. URL https://arxiv.org/abs/2605.15777.
Noah Shinn, Federico Cassano, Edward Berman, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao. Reflexion: Language agents with verbal reinforcement learning. arXiv preprint arXiv:2303.11366, 2023. doi: 10.48550/arXiv.2303.11366. URL https://arxiv.org/abs/2303.11366.
Larry R. Squire. Declarative and nondeclarative memory: Multiple brain systems supporting learning and memory. Journal of Cognitive Neuroscience, 4(3):232–243, 1992.
Theodore R. Sumers, Shunyu Yao, Karthik Narasimhan, and Thomas L. Griffiths. Cognitive architectures for language agents. arXiv preprint arXiv:2309.02427, 2023. doi: 10.48550/arXiv.2309.02427. URL https://arxiv.org/abs/2309.02427.
Endel Tulving. Episodic and semantic memory. In Endel Tulving and Wayne Donaldson (eds.), Organization of Memory, pp. 381–403. Academic Press, 1972.
Chenxi Wang, Zhuoyun Yu, Xin Xie, Wuguannan Yao, Runnan Fang, Shuofei Qiao, Kexin Cao, Guozhou Zheng, Xiang Qi, Peng Zhang, and Shumin Deng. Skillx: Automatically constructing skill knowledge bases for agents. arXiv preprint arXiv:2604.04804, 2026. doi: 10.48550/arXiv.2604.04804. URL https://arxiv.org/abs/2604.04804.
Guanzhi Wang, Yuqi Xie, Yunfan Jiang, Ajay Mandlekar, Chaowei Xiao, Yuke Zhu, Linxi Fan, and Anima Anandkumar. Voyager: An open-ended embodied agent with large language models. arXiv preprint arXiv:2305.16291, 2023. doi: 10.48550/arXiv.2305.16291. URL https://arxiv.org/abs/2305.16291.
Zora Zhiruo Wang, Jiayuan Mao, Daniel Fried, and Graham Neubig. Agent workflow memory. arXiv preprint arXiv:2409.07429, 2024. doi: 10.48550/arXiv.2409.07429. URL https://arxiv.org/abs/2409.07429.
Frank F. Xu, Yufan Song, Boxuan Li, Yuxuan Tang, Kritanjali Jain, Mengxue Bao, Zora Z. Wang, Xuhui Zhou, Zhitong Guo, Murong Cao, Mingyang Yang, Hao Yang Lu, Amaad Martin, Zhe Su, Leander Maben, Raj Mehta, Wayne Chi, Lawrence Jang, Yiqing Xie, Shuyan Zhou, and Graham Neubig. Theagentcompany: Benchmarking llm agents on consequential real world tasks. arXiv preprint arXiv:2412.14161, 2024. doi: 10.48550/arXiv.2412.14161. URL https://arxiv.org/abs/2412.14161.
Wujiang Xu, Zujie Liang, Kai Mei, Hang Gao, Juntao Tan, and Yongfeng Zhang. A-mem: Agentic memory for llm agents. arXiv preprint arXiv:2502.12110, 2025. doi: 10.48550/arXiv.2502.12110. URL https://arxiv.org/abs/2502.12110.
Andrew Zhao, Daniel Huang, Quentin Xu, Matthieu Lin, Yong-Jin Liu, and Gao Huang. Expel: Llm agents are experiential learners. arXiv preprint arXiv:2308.10144, 2023. doi: 10.48550/arXiv.2308.10144. URL https://arxiv.org/abs/2308.10144. Published at AAAI 2024.
Huichi Zhou, Yihang Chen, Siyuan Guo, Xue Yan, Kin Hei Lee, Zihan Wang, Ka Yiu Lee, Guchun Zhang, Kun Shao, Linyi Yang, and Jun Wang. Memento: Fine-tuning llm agents without fine-tuning llms. arXiv preprint arXiv:2508.16153, 2025. doi: 10.48550/arXiv.2508.16153. URL https://arxiv.org/abs/2508.16153.
A EXTENDED FORMALIZATION
Harness and residual knowledge. The fixed harness contains the executor implementation, system prompt, available tools, environment interface, and retrieval mechanism. In our implementation, is instantiated by pi-agent, and its action space contains only bash commands. We use residual procedural knowledge for any reusable condition, action, implementation detail, or error path that improves execution but is absent from . This definition is operational: a knowledge item is residual if it can be learned from a rollout and changes later task execution without changing the model or harness.
Round update. For the benchmark tasks , the execute phase under produces rollout batch , the set in which is the trace of the attempt at during round . A feedback function maps each rollout and its resulting environment state to . Scope selects passed checkpoint evidence only or both passed and failed checkpoint evidence. The consolidate phase applies
The memory store remains frozen within an execute phase, so all rollouts in one batch use the same ; updates become visible only in the next round.
Procedural sufficiency. A consolidated procedure should specify (i) its purpose, (ii) conditions under which it applies, (iii) executable actions and implementation details, and (iv) recovery behavior when an action fails. Consolidation is successful when it transforms multiple rollout-specific observations into a procedure that improves execution on other tasks sharing those conditions. This criterion permits different surface representations while excluding pure replay as the target behavior.
Table 2: Memory types and evaluation requirements. Procedural memory differs because repeated trials should refine a reusable action policy, and its quality is established by execution rather than recall.
| Episodic | Semantic | Procedural | |
|---|---|---|---|
| Stored content | Specific event and context | General fact or concept | Condition-action procedure |
| Repeated trials | Remain distinct events | Duplicate facts merge | Refine one reusable procedure |
| Failure value | Another event | Wrong facts are discarded | Reveals missing conditions or error paths |
| Generalization target | Event recall | Concept-level recall | Execution across task instantiations |
| Primary evaluation | Recall accuracy | Recall accuracy | Execution success |
B MEMORY AND EXPERIMENTAL CONDITIONS
B.1 CONSOLIDATION METHODS
Table 3: Consolidation-method definitions. “Existing store access” refers to whether the consolidator reads the current memory store before proposing an update. SkillIX and Insights are alternative consolidation representations, whereas Schema Form-ED, Schema Form, and Free Form are LLM wiki variants.
| Method | Durable representation | Input grouping | Existing store access | Organization / deduplication |
|---|---|---|---|---|
| No Memory | none | none | no | none |
| No Consolidation | raw rollout | rollout | no | raw-rollout retrieval |
| SkillIX | planning/functional/atomic skills | rollout independently | no | three levels, no deduplication |
| Insights | strategy insight | rollout independently | no | flat, no deduplication |
| Schema Form-ED | typed wiki page | independent extraction then merge | merge step only | fixed schema, deterministic matching |
| Schema Form | typed wiki page | sequential rollouts | yes | fixed schema, implicit deduplication |
| Free Form | unconstrained wiki page | sequential rollouts | yes | LLM-managed organization, implicit deduplication |
Every row of the matrix in Table 6 is run for Claude Opus 4.6, GPT-5.4, and GLM-5 under the same benchmark, executor loop, and task budget.
Consolidation methods (Experiment 1)
Six illustrated methods. Yellow = raw rollout - orange = wiki page - green = consolidator LLM - gray-W = memory store

Feedback types (Experiment 2)
Four levels of feedback richness, applied to the same example task

Ingestion scope (Experiment 3)
Which checkpoints of a rollout inform the memory store: passing only, or all of them?

Figure 4: Controlled procedural-memory design space. The consolidation methods varied in Experiment 1 appear above. Feedback type (Experiment 2) and ingestion scope (Experiment 3) appear below at left and right, respectively. The repeated workflow in Figure 1a defines the round dimension in Experiment 4.
No Memory and No Consolidation. No Memory executes without persistent experience. No Consolidation stores raw rollouts and retrieves the most similar one, testing whether experience replay alone is sufficient.
Insights and SkillIX. Insights (Hu et al., 2026) independently extracts abstract strategy principles from each rollout and gathers them in a flat store without cross-rollout deduplication. SkillIX (Wang et al., 2026) independently extracts planning, functional, and atomic skills and organizes them by level, also without cross-rollout deduplication.
LLM wiki variants. Free Form lets the consolidator inspect the current wiki, then decide what to record and whether to add a page or revise one. Schema Form retains this one-step, implicit deduplication process but requires three human-defined page types: Procedures, Actions, and Lessons. Schema Form-ED, short for Schema Form with explicit deduplication, uses the same page schema but first extracts incremental pages without seeing existing content. A deterministic script then matches page identifiers and asks the LLM to execute the selected merges.
Implicit and explicit deduplication. The two settings differ in who decides that a new page and an existing page describe the same thing. Under implicit deduplication, used by Free Form and Schema Form, consolidation is a single stage. The consolidator sees the current wiki together with the new evidence. Deciding whether that evidence extends an existing page or warrants a new one is part of the same judgment that writes the page. Under explicit deduplication, used by Schema Form-ED, consolidation is two stages. The consolidator first writes pages for the new evidence with no sight of the current wiki, producing an incremental wiki. A deterministic script then normalizes every page identifier and treats two pages as duplicates when their normalized identifiers agree, for example mapping any page describing a shell invocation of the Python interpreter to the same action identifier regardless of what that invocation was for. Only the selected pairs are passed back to the LLM, whose role is reduced to merging two pages it is told belong together.
Page linking. Every wiki variant is reached from a single index.md entry point and connected by Obsidian-style [[wikilinks]], so that retrieval can start at the index and walk to related content. The variants differ in what the links are allowed to express. Free Form places links wherever the consolidator judges two pages related, and the resulting graph is unconstrained. The two schema variants inherit a fixed link grammar from the page types: a Procedure links to every Action it invokes, and a Lesson attaches to the single Procedure or Action whose failure it describes. Actions do not link to one another, so a procedure's steps are recoverable only through the Procedure page that lists them. Table 13 records a related omission, a schema page that names a step without the detail needed to execute it.
B.2 MEMORY ORGANIZATION BY METHOD
No Consolidation: raw rollout store.
Insights: flat insight set.
SkillX: three skill tiers.
Schema Form and Schema Form-ED: typed wiki pages.
Free Form: unconstrained LLM wiki.
B.3 EXECUTION PROCESS
Executor loop and task budget.
How retrieved memory enters the executor context.
Termination and what a rollout record contains.
B.4 CONSOLIDATION AND RETRIEVAL PROTOCOLS
Consolidation execution. All task executions within round use the frozen store . After evaluation, the eligible rollouts, meaning those the ingestion scope admits, are enumerated in lexicographic filename order. Free Form and Schema Form process them sequentially against a mutable copy of , so each successful update is visible when processing subsequent rollouts. Insights and SkillX process each rollout independently, potentially in parallel, without access to other extracted outputs. Schema Form-ED independently extracts candidate pages, applies deterministic matching, and invokes the LLM for selected merges. After all eligible rollouts are processed, the semantic index over the store is rebuilt to produce .
Retrieval execution. Each condition runs its retrieval stage before planning. No Memory omits retrieval, and No Consolidation supplies the retrieved raw-rollout trace. For consolidated representations, a retrieval-only agent receives the task instruction and a read-only memory path in a fresh session. It may search the representation-specific semantic index, inspect the representation's index or routing file, and read selected files in full, but it cannot interact with the task environment. If task-level retrieval finds no matched memory, the agent may search again for each subgoal, meaning one step of the plan the executor has formed. An execution failure also triggers a fresh subgoal search. Table 4 summarizes the adapter-specific search and expansion rules.
Table 4: Representation-specific retrieval adapters. The executor loop is shared, while each adapter exposes the native organization of its memory representation. "Search" is semantic search over file contents, and "index" and "routing" are the representation's own entry-point file.
| Representation | Task-level retrieval | Subgoal retrieval | Context expansion |
|---|---|---|---|
| No Memory | none | none | none |
| No Consolidation | raw-rollout retrieval | none | retrieved rollout trace |
| Insights | search/index, up to 5 files | search, up to 3 files | full insight files |
| SkillX | search/routing, up to 5 files | search/routing, up to 3 files | full files across skill tiers |
| Schema variants | top procedure from 3 candidates | top 5 actions per query | linked procedures, actions, and lessons |
| Free Form | search top 5 per query/index | search/index, up to 3 pages | full wiki pages |
Retrieval walkthrough for each method.
B.5 FEEDBACK TYPE, INGESTION SCOPE, AND ROUNDS
Table 5: Feedback types. Rich feedback denotes Checkpoint-binary + Human, and weak feedback denotes Self-Judge.
| Feedback type | Information available during consolidation |
|---|---|
| Self-Judge | Agent self-assessment without an external outcome signal. |
| Task-binary | External pass/fail for the whole task. |
| Checkpoint-binary | External pass/fail for each checkpoint. |
| Checkpoint-binary + Human | Checkpoint outcomes plus human failure diagnosis. |
Success-only selects evidence associated with passed checkpoints. Both (successes and failures) selects evidence from all checkpoints. One round is one execute phase over all benchmark tasks followed by one consolidate phase. R0 has no memory store, while R1 to R4 execute with and then update the persistent store produced previously.
B.6 CONTROLLED EXPERIMENTAL MATRIX
Table 6: Controlled experimental matrix. Each experiment varies one focal dimension while fixing the remaining dimensions.
| Experiment | Varied dimension | Method | Feedback | Scope | Rounds |
|---|---|---|---|---|---|
| 1 | Consolidation method | seven conditions | Checkpoint-binary | Both | R1 |
| 2 | Feedback type | Free Form | four conditions | Both | R1 |
| 3 | Ingestion scope | Free Form | Self-Judge and Checkpoint-binary + Human | Success-only, Both | R1 |
| 4 | Rounds | Free Form | Self-Judge and Checkpoint-binary + Human | Both | R0 to R4 |
B.7 CONSOLIDATION PROMPTS
C COMPLETE CROSS-MODEL RESULTS
Tables 7 to 12 report the exact result variants underlying the main-text ranges and figures. Within each model block, bold marks the best value in each column, where best means the lowest value for store size and cost. Shading marks the strongest configuration in the block. Table 11 has none, because there no single round is strongest on every model.
C.1 EXPERIMENT 1: CONSOLIDATION METHOD
C.2 EXPERIMENT 2: FEEDBACK TYPE
C.3 EXPERIMENT 3: INGESTION SCOPE
C.4 EXPERIMENT 4: ROUNDS
D ADDITIONAL ANALYSIS
D.1 STORE SIZE AND FILTER CHARACTERIZATION
Across methods a larger store does not buy a higher pass rate (Section 4.2). Within a fixed method the same growth can instead represent useful signal. Across models, richer feedback grows the store from 200 to 235 KB with Self-Judge to 328 to 343 KB with Checkpoint-binary + Human while improving checkpoint pass rate (Table 8). Under rich feedback, repeated rounds grow the store from 328 to 343 KB at R1 to 575 to 603 KB at R4 while performance continues to improve (Table 10). These within-method results distinguish the Filter Hypothesis from a simple compression objective.
D.2 ROLLOUT-VOLUME CONTROL
This control asks whether the R4 result follows from the number of rollouts consolidated. Pooled Insights and No Consolidation each receive 635 rollouts from R0 to R4, more than the 508 the evaluated Free Form R4 store was built from, and consolidate them in a single pass rather than one batch at a time. On strictly more rollouts, pooled Insights only reaches about what Free Form reached from the 254 rollouts behind its R2 store, and it remains 6.1 to 7.1 pp below Free Form R4 for every model (Figure 5). Rollout volume therefore does not account for the R4 result. Because the pooled runs also change the consolidation method, this control rules volume out as the explanation without establishing incremental consolidation as the cause.

Figure 5: Rollout volume does not account for the R4 result. Colored markers show individual model variants. Black diamonds and whiskers show the cross-model mean and min to max range. The pooled controls consume 635 rollouts from R0 to R4, more than the 508 the Free Form R4 store was built from, and consolidate them in one pass while Free Form consolidates one batch at a time. Exact results appear in Table 12.
Table 7: Complete Experiment 1 results. is checkpoint-pass improvement over No Memory for the same model. Cost covers consolidation API calls only.
| Model | Method | Checkpoint pass | (pp) | Fully passed | Store (KB) | Consol. cost |
|---|---|---|---|---|---|---|
| Claude Opus 4.6 | No Memory | 317/542 (58.5%) | n/a | 46/127 (36.2%) | n/a | n/a |
| No Consolidation | 332/542 (61.3%) | +2.8 | 51/127 (40.2%) | 7,979 | n/a | |
| SkillX | 354/542 (65.3%) | +6.8 | 58/127 (45.7%) | 1,125 | $173 | |
| Insights | 356/542 (65.7%) | +7.2 | 58/127 (45.7%) | 396 | $148 | |
| Schema Form-ED | 356/542 (65.7%) | +7.2 | 57/127 (44.9%) | 789 | $380 | |
| Schema Form | 359/542 (66.2%) | +7.7 | 62/127 (48.8%) | 565 | $230 | |
| Free Form | 392/542 (72.3%) | +13.8 | 61/127 (48.0%) | 234 | $198 | |
| GPT-5.4 | No Memory | 325/542 (60.0%) | n/a | 51/127 (40.2%) | n/a | n/a |
| No Consolidation | 339/542 (62.5%) | +2.5 | 54/127 (42.5%) | 8,208 | n/a | |
| SkillX | 364/542 (67.2%) | +7.2 | 64/127 (50.4%) | 1,161 | $171 | |
| Insights | 359/542 (66.2%) | +6.2 | 62/127 (48.8%) | 399 | $146 | |
| Schema Form-ED | 363/542 (67.0%) | +7.0 | 63/127 (49.6%) | 808 | $370 | |
| Schema Form | 368/542 (67.9%) | +7.9 | 64/127 (50.4%) | 592 | $229 | |
| Free Form | 393/542 (72.5%) | +12.5 | 66/127 (52.0%) | 233 | $202 | |
| GLM-5 | No Memory | 319/542 (58.9%) | n/a | 49/127 (38.6%) | n/a | n/a |
| No Consolidation | 335/542 (61.8%) | +2.9 | 52/127 (40.9%) | 8,480 | n/a | |
| SkillX | 356/542 (65.7%) | +6.8 | 59/127 (46.5%) | 1,187 | $79 | |
| Insights | 357/542 (65.9%) | +7.0 | 60/127 (47.2%) | 441 | $87 | |
| Schema Form-ED | 356/542 (65.7%) | +6.8 | 59/127 (46.5%) | 838 | $197 | |
| Schema Form | 361/542 (66.6%) | +7.7 | 64/127 (50.4%) | 599 | $117 | |
| Free Form | 393/542 (72.5%) | +13.6 | 66/127 (52.0%) | 255 | $118 |
Table 8: Complete Experiment 2 results. is relative to Self-Judge for the same model.
| Model | Feedback | Checkpoint pass | (pp) | Fully passed | Store (KB) | Consol. cost |
|---|---|---|---|---|---|---|
| Claude Opus 4.6 | Self-Judge | 352/542 (64.9%) | 0.0 | 59/127 (46.5%) | 212 | $174 |
| Task-binary | 391/542 (72.1%) | +7.2 | 64/127 (50.4%) | 237 | $205 | |
| Checkpoint-binary | 392/542 (72.3%) | +7.4 | 61/127 (48.0%) | 234 | $198 | |
| Checkpoint-binary + Human | 411/542 (75.8%) | +10.9 | 71/127 (55.9%) | 328 | $196 | |
| GPT-5.4 | Self-Judge | 352/542 (64.9%) | 0.0 | 56/127 (44.1%) | 200 | $156 |
| Task-binary | 384/542 (70.8%) | +5.9 | 66/127 (52.0%) | 224 | $186 | |
| Checkpoint-binary | 393/542 (72.5%) | +7.6 | 66/127 (52.0%) | 233 | $202 | |
| Checkpoint-binary + Human | 418/542 (77.1%) | +12.2 | 78/127 (61.4%) | 335 | $201 | |
| GLM-5 | Self-Judge | 349/542 (64.4%) | 0.0 | 56/127 (44.1%) | 235 | $97 |
| Task-binary | 388/542 (71.6%) | +7.2 | 64/127 (50.4%) | 256 | $106 | |
| Checkpoint-binary | 393/542 (72.5%) | +8.1 | 66/127 (52.0%) | 255 | $118 | |
| Checkpoint-binary + Human | 414/542 (76.4%) | +12.0 | 72/127 (56.7%) | 343 | $103 |
Table 9: Complete Experiment 3 results. is relative to Success-only under the same model and feedback type. CP-binary + Human abbreviates Checkpoint-binary + Human.
| Model | Feedback | Scope | Checkpoint pass | (pp) | Fully passed | Store (KB) | Consol. cost |
|---|---|---|---|---|---|---|---|
| Claude Opus 4.6 | CP-binary + Human | Success-only | 359/542 (66.2%) | 0.0 | 53/127 (41.7%) | 119 | $180 |
| CP-binary + Human | Both | 411/542 (75.8%) | +9.6 | 71/127 (55.9%) | 328 | $196 | |
| Self-Judge | Success-only | 351/542 (64.8%) | 0.0 | 54/127 (42.5%) | 193 | $180 | |
| Self-Judge | Both | 352/542 (64.9%) | +0.1 | 59/127 (46.5%) | 212 | $174 | |
| GPT-5.4 | CP-binary + Human | Success-only | 361/542 (66.6%) | 0.0 | 60/127 (47.2%) | 135 | $170 |
| CP-binary + Human | Both | 418/542 (77.1%) | +10.5 | 78/127 (61.4%) | 335 | $201 | |
| Self-Judge | Success-only | 356/542 (65.7%) | 0.0 | 58/127 (45.7%) | 211 | $173 | |
| Self-Judge | Both | 352/542 (64.9%) | -0.8 | 56/127 (44.1%) | 200 | $156 | |
| GLM-5 | CP-binary + Human | Success-only | 362/542 (66.8%) | 0.0 | 55/127 (43.3%) | 140 | $100 |
| CP-binary + Human | Both | 414/542 (76.4%) | +9.6 | 72/127 (56.7%) | 343 | $103 | |
| Self-Judge | Success-only | 351/542 (64.8%) | 0.0 | 56/127 (44.1%) | 212 | $91 | |
| Self-Judge | Both | 349/542 (64.4%) | -0.4 | 56/127 (44.1%) | 235 | $97 |
Table 10: Experiment 4 with rich feedback. is relative to R0. Marginal gain is relative to the preceding round.
| Model | Round | Checkpoint pass | (pp) | Marginal (pp) | Fully passed | Store (KB) | Consol. cost |
|---|---|---|---|---|---|---|---|
| Claude Opus 4.6 | R0 | 317/542 (58.5%) | 0.0 | n/a | 46/127 (36.2%) | n/a | n/a |
| R1 | 411/542 (75.8%) | +17.3 | +17.3 | 71/127 (55.9%) | 328 | $196 | |
| R2 | 430/542 (79.3%) | +20.8 | +3.5 | 79/127 (62.2%) | 460 | $171 | |
| R3 | 446/542 (82.3%) | +23.8 | +3.0 | 86/127 (67.7%) | 492 | $180 | |
| R4 | 464/542 (85.6%) | +27.1 | +3.3 | 92/127 (72.4%) | 583 | $179 | |
| GPT-5.4 | R0 | 325/542 (60.0%) | 0.0 | n/a | 51/127 (40.2%) | n/a | n/a |
| R1 | 418/542 (77.1%) | +17.1 | +17.1 | 78/127 (61.4%) | 335 | $201 | |
| R2 | 438/542 (80.8%) | +20.8 | +3.7 | 86/127 (67.7%) | 465 | $165 | |
| R3 | 449/542 (82.8%) | +22.8 | +2.0 | 91/127 (71.7%) | 505 | $178 | |
| R4 | 470/542 (86.7%) | +26.7 | +3.9 | 99/127 (78.0%) | 575 | $170 | |
| GLM-5 | R0 | 319/542 (58.9%) | 0.0 | n/a | 49/127 (38.6%) | n/a | n/a |
| R1 | 414/542 (76.4%) | +17.5 | +17.5 | 72/127 (56.7%) | 343 | $103 | |
| R2 | 433/542 (79.9%) | +21.0 | +3.5 | 82/127 (64.6%) | 486 | $92 | |
| R3 | 451/542 (83.2%) | +24.3 | +3.3 | 87/127 (68.5%) | 499 | $104 | |
| R4 | 468/542 (86.3%) | +27.4 | +3.1 | 94/127 (74.0%) | 603 | $96 |
Table 11: Experiment 4 with weak feedback. is relative to R0 for the same model.
| Model | Round | Checkpoint pass | (pp) | Fully passed | Store (KB) | Consol. cost |
|---|---|---|---|---|---|---|
| Claude Opus 4.6 | R0 | 317/542 (58.5%) | 0.0 | 46/127 (36.2%) | n/a | n/a |
| R1 | 352/542 (64.9%) | +6.4 | 59/127 (46.5%) | 212 | $174 | |
| R2 | 349/542 (64.4%) | +5.9 | 52/127 (40.9%) | 297 | $141 | |
| R3 | 362/542 (66.8%) | +8.3 | 56/127 (44.1%) | 273 | $136 | |
| R4 | 373/542 (68.8%) | +10.3 | 60/127 (47.2%) | 291 | $135 | |
| GPT-5.4 | R0 | 325/542 (60.0%) | 0.0 | 51/127 (40.2%) | n/a | n/a |
| R1 | 352/542 (64.9%) | +4.9 | 56/127 (44.1%) | 200 | $156 | |
| R2 | 358/542 (66.1%) | +6.1 | 58/127 (45.7%) | 262 | $133 | |
| R3 | 364/542 (67.2%) | +7.2 | 62/127 (48.8%) | 267 | $133 | |
| R4 | 363/542 (67.0%) | +7.0 | 62/127 (48.8%) | 285 | $144 | |
| GLM-5 | R0 | 319/542 (58.9%) | 0.0 | 49/127 (38.6%) | n/a | n/a |
| R1 | 349/542 (64.4%) | +5.5 | 56/127 (44.1%) | 235 | $97 | |
| R2 | 347/542 (64.0%) | +5.1 | 55/127 (43.3%) | 255 | $62 | |
| R3 | 345/542 (63.7%) | +4.8 | 55/127 (43.3%) | 262 | $71 | |
| R4 | 355/542 (65.5%) | +6.6 | 57/127 (44.9%) | 282 | $97 |
Table 12: Rollout-volume control. The pooled methods consume 635 rollouts from rounds R0 to R4, more than the 508 the evaluated Free Form R4 store was built from, and process them in a single non-incremental pass while Free Form consolidates one batch at a time. is relative to No Memory for the same model in Table 7.
| Model | Condition | Checkpoint pass | (pp) | Fully passed |
|---|---|---|---|---|
| Claude Opus 4.6 | Pooled R0 to R4, No Consolidation | 408/542 (75.3%) | +16.8 | 70/127 (55.1%) |
| Pooled R0 to R4, Insights | 431/542 (79.5%) | +21.0 | 78/127 (61.4%) | |
| Free Form, R2 | 430/542 (79.3%) | +20.8 | 79/127 (62.2%) | |
| Free Form, R4 | 464/542 (85.6%) | +27.1 | 92/127 (72.4%) | |
| GPT-5.4 | Pooled R0 to R4, No Consolidation | 412/542 (76.0%) | +16.0 | 77/127 (60.6%) |
| Pooled R0 to R4, Insights | 433/542 (79.9%) | +19.9 | 84/127 (66.1%) | |
| Free Form, R2 | 438/542 (80.8%) | +20.8 | 86/127 (67.7%) | |
| Free Form, R4 | 470/542 (86.7%) | +26.7 | 99/127 (78.0%) | |
| GLM-5 | Pooled R0 to R4, No Consolidation | 406/542 (74.9%) | +16.0 | 74/127 (58.3%) |
| Pooled R0 to R4, Insights | 429/542 (79.2%) | +20.3 | 81/127 (63.8%) | |
| Free Form, R2 | 433/542 (79.9%) | +21.0 | 82/127 (64.6%) | |
| Free Form, R4 | 468/542 (86.3%) | +27.4 | 94/127 (74.0%) |

Figure 6: Free Form versus Schema Form by task-score bucket for Claude Opus 4.6. The checkpoint-level advantage of Free Form is distributed across partially completed tasks, while Schema Form narrowly leads in the all-or-nothing fully-passed rate. This difference motivates reporting both metrics.
D.3 TASK-SCORE DISTRIBUTIONS
D.4 FAILURE-CAUSE STATISTICS AND ANALYSIS
D.5 TASK-SCORE BUCKET COUNTS
D.6 SELECTION OF THE QUALITATIVE EXAMPLES
D.7 QUALITATIVE CONSOLIDATION BEHAVIORS
Table 13: Representative filtering behaviors observed in generated stores. These examples motivate, rather than independently prove, the Filter Hypothesis.
| Behavior | Observed pattern | Procedural consequence |
|---|---|---|
| Implicit merge | Free Form revises one GitLab authentication wiki page with new pagination and error handling evidence. | Repeated trials become one richer procedure. |
| Independent duplication | SkillX creates 15 separate pages describing substantially the same GitLab API authentication procedure. | Retrieval must sift through redundant fragments. |
| Schema omission | On ds-stock-analysis-slides, Schema Form records step names but drops the code and formatting details retained by Free Form. | The action is named but not reliably executable. |
| Explicit false merge | Schema Form-ED merges “grade ML exams with Python” and “extract video frames with Python” under action-bash-run-python. | Unrelated instructions can be retrieved together. |
E IMPLEMENTATION AND REPRODUCIBILITY
Environment. Each task ran in a Docker environment connected to self-hosted GitLab, RocketChat, OwnCloud, and Plane services. We used pi-agent v0.75.3 as the fixed executor harness and exposed bash as its only action tool. All service interaction, including API calls, was therefore issued through shell commands. Every attempt was launched with --no-session, so the harness wrote no session state to disk and nothing it might otherwise retain could carry across tasks or rounds. Self-hosted services were confirmed running before each execution batch.
Environment reset between attempts.
Models and retrieval. Claude Opus 4.6, GPT-5.4, and GLM-5 are the executor-consolidator model variants. Claude Sonnet 4.6 performs evaluation, and Cohere Embed v4 provides 1024-dimensional semantic-search embeddings. The LLM wiki was available through link navigation
Table 14: API cost of one complete 127-task evaluation batch. Execution is the task-execution phase, retrieval is the memory-query phase, and Free Form total is their sum. Consolidation costs are reported separately in the experiment tables. Evaluator, embedding, host-compute, and human-feedback costs are outside these values.
| Model | No Memory execution | Free Form execution | Retrieval | Free Form total |
|---|---|---|---|---|
| Claude Opus 4.6 | $106.6 | $88.9 | $60.4 | $149.3 |
| GPT-5.4 | $108.5 | $87.1 | $60.6 | $147.8 |
| GLM-5 | $56.3 | $47.2 | $18.6 | $65.9 |
from index.md and semantic search over page contents. All conditions used the same executor loop and a retrieval stage before planning. Consolidated representations used retrieval-only agents with representation-specific adapters, while No Memory omitted retrieval and No Consolidation supplied raw rollout evidence. Table 4 gives the exact protocols.
Evaluator protocol for checkpoint scoring.
Compute, time, and human effort. Experiments were orchestrated on an Amazon EC2 g5.2xlarge host with 8 vCPUs and 30 GiB of memory. Model inference was served through provider APIs, while the host ran the agent harness, benchmark services, and Docker environments. One complete 127-task evaluation batch occupied approximately 12 wall-clock hours. Producing Checkpoint-binary + Human feedback for one rollout batch required approximately six hours from a qualified annotator.
Round procedure. Within each round, all benchmark tasks executed against a frozen memory store and produced one rollout batch. Feedback records were generated from checkpoint evaluation and, for the rich condition, human failure diagnosis. The consolidator then updated a copy of the previous wiki. The semantic index was rebuilt before the next execute phase. R0 used no store and supplied the rollout batch from which R1 memory was created.
Validation. Metric denominators were normalized to the benchmark totals for every condition. Shared conditions reuse one canonical result wherever they appear across experiments. All main and appendix tables, and the values behind every figure, are transcribed from the same source-of-truth result pages.
Experiment code.
F LIMITATIONS AND FUTURE WORK
Section 6 lists the bounds on this study. Three of them constrain the conclusions most, and each is taken up here with the experiment that would lift it.
Single runs. Agent execution is stochastic, but each configuration was executed once. Large gaps motivate the paper's conclusions. Small differences should be treated as unresolved until replicated, among them the 0.2 to 1.7 pp between Task-binary and Checkpoint-binary (Table 8) and the 0.8 to 1.6 pp between the best fully-passed rates in Experiment 1 (Table 7). Stateful long-horizon execution makes exhaustive replication costly, but cost does not remove the need to replicate the central contrasts.
Repeated-task distribution. R1 to R4 re-executed the same benchmark tasks. The experiment measures deepening competence over recurring procedural workloads, not unrestricted generalization to unseen distributions. Held-out task families and cross-domain transfer are necessary to measure how broadly the learned procedures apply.
Human diagnosis. Checkpoint-binary + Human provides the strongest feedback but requires human effort after execution. Automating failure diagnosis without reverting to unreliable self-judgment is the most direct route to scaling the approach.