Skip to content
The AI Agent Factory

36.1 Recall, and what changes on the open stack

Approved by
Panaversity ·
6 min read

In everyday life. You learned to cook in your parents' kitchen. When you move to your own flat, you do not learn cooking again. You learn where things are, and you buy your own pots.

What you will learn. What Chapter 31 taught, in one page, and which parts of it you now build yourself.

Why it matters. The ideas do not change. Who owns each part does.

What Chapter 31 taught

A worker that learns runs two loops:

  • The work loop. It does assignments, and each one leaves a record: what it saw, what it did, what a person corrected.
  • The learning loop. In the background, it reads those records, finds patterns, and proposes lessons: a fact to remember, a better step in a skill.

Chapter 31 called them the task loop and the dreaming loop. Between the two sits the promotion protocol: a proposed lesson becomes part of the worker only after it is tested against the golden set and gets the right approval (31.7). The worker never edits itself.

The learning cycle, as the paper draws it:

Do the work → record the experience → find a lesson → propose a change → evaluate it independently → approve and release it → do better work → earn more → reinvest in learning.

What changes on the open stack

Everything in that loop stays. What changes is where each part lives and who runs it:

PartChapter 31This chapter on the open stack
MemoryVersioned files in the worker's repository; on Claude Managed Agents, memory stores (beta), held by AnthropicYour tables in Neon, with pgvector
ReflectionA dream you built; on Claude Managed Agents, Dreams (research preview, by request), Claude modelsA Workflow you build, on any approved model
EvaluationYour golden set and scriptsThe same, as an evaluation runner with held-out cases
ReleaseYour promotion protocolCandidate states and immutable releases in your database
Learning budgetNot builtBuilt
Learning to need no modelNot builtBuilt

How today's tools realize it

Checked on Sunday, 29 November 2026. Products change; check each line before you rely on it.

Claude Managed Agents. Memory stores keep facts across sessions, and dreams reflect on past sessions to curate memory. They are the fastest way to start, as 31.13 described. They run on Claude models, and dreams are billed at the chosen model's token prices. What the worker learns is held in Anthropic's stores, in Anthropic's format.

OpenAI. The Agents SDK gives you sessions that keep conversation history. Long-term memory, reflection and curation are yours to build, as on the open stack.

The open stack. Pi Durable keeps each conversation, and nothing more. Memory, dreaming, evaluation and evolution are yours: tables in Neon, Workflows on Cloudflare, models through the router from Chapter 35. That is more to build. It is also the only option where everything the worker learns is in your own database, in your own format, and works with whichever model you choose next year.

The invariant. Nothing the worker learns reaches production without independent evaluation and approval, and everything it learns belongs to the company, not the model.

Check yourself. A team on Claude Managed Agents asks, "If we move to the open stack, do we lose what the worker learned?" What do you tell them? (Not if they plan the move. Memory stores are in Anthropic's format, and dreaming is tied to Claude. So moving means reading the approved knowledge out, copying it into their own store with its provenance, and re-testing it on the new model. Check what the memory API lets them read before they promise anything.)

Owner
Panaversity