Skip to content

WASP-Mem: Agent-Organized Procedural Memory, Human Diagnosis

THE ARGUMENT

Agents should organize procedural memory into navigable pages, while human effort should go to failure diagnosis rather than upfront taxonomy; the method holds only when procedures recur and failures can be localized and explained.

On this page

A team with 127 logged enterprise tasks must decide whether to buy a memory layer or hire a diagnostician, but the usual advice—design a schema first—may be backwards. Most people assume the hard part is model capability, so they add a taxonomy and ask the agent to fill it in. This paper tests the opposite order. It turns execution traces and feedback into interlinked procedure pages, then measures whether the next attempt improves. On TheAgentCompany, WASP-Mem raises checkpoint pass rate by 4.6–6.1% over the strongest baseline across three models while using 57–61% less storage [1]. The same study finds that prescriptive schemas and explicit deduplication hurt, and that one round of human diagnosis beats four rounds of self-judgment by 7.0–10.9%. The boundary is just as clear: no repeated procedures, no diagnostic feedback, no gain.

What They Measure: Two Enterprise Procedure Benchmarks

The default framing is that enterprise automation needs a stronger model or a longer prompt. The paper locates the gap more precisely. The pre-deployment harness is fixed: software implementation, system prompt, tools, environment interfaces, and supplied context. Yet proprietary policies, undocumented behavior, and state-dependent recovery paths surface only during execution. The test is therefore not whether a model can code, but whether an agent can turn knowledge from repeated attempts into a reusable procedure for the next attempt.

The main study uses TheAgentCompany: 127 workplace tasks and 542 execution checkpoints, where a checkpoint is a gradeable step inside a task, across GitLab, RocketChat, OwnCloud, and Plane. Training and test contain the same 127 tasks, so it measures improvement on recurring procedures, not generalization to entirely new tasks. The second benchmark is the retail domain of τ²-Bench. The authors define a custom operating procedure that is absent from the harness and encode its requirements in ground-truth action checkpoints. It has 74 training tasks with 391 checkpoints and 40 test tasks with 192 checkpoints, with disjoint sets. The three models are Claude Opus 4.6, GPT-5.4, and GLM-5; retrieval uses Cohere Embed v4 with 1024-dimensional vectors [1].

BenchmarkTrainingTestDesign
TheAgentCompany127 tasks, 542 checkpointssame 127 tasks, 542 checkpointsfour services; repeated-procedure improvement
τ²-Bench Retail74 tasks, 391 checkpoints40 tasks, 192 checkpointscustom procedure withheld; disjoint sets

WASP-Mem Is a Navigable Procedure Wiki, Not a Chat Log

Three memory types are distinct. Episodic memory stores what happened in one rollout; semantic memory stores general facts; procedural memory stores how to act under particular conditions. Its unit is not a transcript but reusable guidance: when a procedure applies, which actions carry it out, what can fail, and how to recover. That requires consolidation, not accumulation. Repeated successes must be merged, contradictions resolved, and diagnosed failures written down as missing preconditions or troubleshooting paths.

WASP-Mem stands for Wiki-based Agent-Synthesized Procedural Memory. A consolidator agent writes traces and feedback into persistent, interlinked wiki pages, meaning a set of co-editable pages navigated by links. Pages sit at different granularities, and index.md acts as a high-level router. There are three interface operations. Ingestion reads a raw session .jsonl file and optional natural-language feedback, spawns a subagent to review the trace, and adds, updates, or removes pages and links. Query starts from index.md during consolidation and execution, combines semantic search with shell navigation, and follows page relationships. Lint uses prompt rules and scripts to check generalizability, reusability, ambiguity, page length, link integrity, and conflicts, then decides whether pages should be split, merged, or relinked. The semantic index is rebuilt after each consolidation phase.

The variants matter. Free Form gives each page only a minimal metadata header, such as title, short description, and last-modified time; the consolidator decides the rest. Schema Form forces pages to be Procedures, Actions, or Lessons, each with fixed fields and enumerated options, so schema here means a pre-decided page shape and field list. Schema Form-ED adds explicit deduplication: each session is first processed independently into candidate pages, then a separate normalization, matching, and merge stage commits them. From Free Form to Schema Form-ED, prescribed structure increases. The four baselines are No Memory; No Consolidation, which stores raw traces and retrieves the most similar trace; Insights, which distills each session into abstract insights in a flat set with no cross-session deduplication, verification, or reconciliation; and SkillX, which organizes skills into planning, functional, and atomic tiers but does not deduplicate reusable skills into a shared pool across tiers [1].

Four Controlled Knobs: Method, Feedback, Ingestion, Rounds

The experiments freeze model parameters and the harness, changing only memory representation and consolidation. That separates the memory method from model capability. The four knobs are:

  • Consolidation method: No Memory, No Consolidation, Insights, SkillX, and WASP-Mem Free Form, Schema Form, and Schema Form-ED, seven methods in total.
  • Feedback type: Self-Judge uses only the agent's own assessment; Checkpoint-binary localizes success or failure to individual checkpoints; Checkpoint-binary + Human adds natural-language diagnosis. The ladder separates an external outcome signal from diagnostic explanation.
  • Ingestion scope: Success-only admits successful executions; Both also admits failed traces and their feedback.
  • Refinement rounds: R0 has no memory; R1 performs the first consolidation; R2–R4 repeatedly execute against and update the same store so knowledge can be corroborated, corrected, or extended.

The primary metric is checkpoint pass rate, not recall of stored experience. The question is not whether the agent remembers, but whether the next attempt succeeds.

The Counterintuitive Result: Prescribed Structure Performs Worse

Start with three numbers. On TheAgentCompany, WASP-Mem raises checkpoint pass rate by 4.6–6.1% over the strongest baseline the authors compared, across three models, while using 57–61% less storage. This is not a story about bigger memory. More counterintuitively, Schema Form and Schema Form-ED, which impose human-defined page structure and explicit deduplication rules, do not close the procedural-knowledge gap and hurt performance. Free Form, where the agent organizes the pages itself, produces both the most compact store and the strongest downstream task performance [1].

ResultReported effect
Checkpoint pass rate on TheAgentCompany+4.6–6.1% over strongest baseline, three models
Storage57–61% less
Human diagnosis, one round vs four self-judgment rounds+7.0–10.9%
Prescribed schema and explicit deduphurt performance

Why might that be? My reading is that a prescribed schema pulls the consolidator's attention toward filling fields correctly, rather than noticing that a failure appears only under one service state. Explicit deduplication processes each session independently and then merges candidates, which can collapse lessons that look similar but have different conditions. That explanation is my judgment, not a mechanism the paper directly establishes. The paper also finds that SkillX's three-tier skill hierarchy is prescriptive, and its reusable skills are not deduplicated across tiers, so it trails WASP-Mem in both storage and effect.

Where Human Effort Pays: Diagnosis, and When the Method Fails

The feedback ladder is more direct: one round of human diagnosis outperforms four rounds of self-judgment by 7.0–10.9%. Self-Judge has only the agent's own assessment, so it can mistake a service-state problem for a wrong API call. Checkpoint-binary gives an external location, telling the agent which step failed but not why. Human natural-language diagnosis turns a failed trace into corrective knowledge, such as a missing precondition or a recovery path for an abnormal state. Ingestion scope supports the same point: Both beats Success-only because failed traces become useful when diagnosis separates a reusable procedural lesson from incidental bad luck.

This does not mean more human labeling is always better. The boundary is explicit. Human diagnosis is supplied by people in the study, and deployment must count its cost. If a task is attempted once and never repeats, procedural memory has little to offer. If feedback is only task-level success or failure, without checkpoint localization, the consolidator cannot tell which page to change. TheAgentCompany uses the same 127 tasks for training and test, so it measures sustained improvement on recurring tasks, not generalization to new ones. τ²-Bench has disjoint train and test sets, but it covers only retail, and its procedure is author-defined and encoded into checkpoints. The paper itself lists limitations: single runs, repeated-task distribution, and human diagnosis cost.

The method fails when procedures do not recur, when checkpoint-level feedback is unavailable, or when no one will invest in failure diagnosis. It does not replace model capability, and it does not replace observability the environment never provides. It applies when the same class of procedure repeats and failures can be localized and explained.

References

  1. WASP-Mem: Let Agent Organize Procedural Memory. Human Spend Effort on Diagnosis

Sign in to Padda

A code in your inbox. No password to remember.

Connecting to sign-in…