How can an AI protocol worker learn from its previous runs without resetting state?
An agent that runs the same job every night can start each run from zero or from what the last run learned. The second is documented: Zep, OpenAI, AWS, Google and LangChain each describe a place where a lesson from one run waits for the next. Where they differ is the part a team running such an agent has to decide on: who checks a lesson before the next run uses it, and whether a bad one can be taken back. This page follows that question through each vendor's own pages, as read on 24 November 2026.
TL;DR
- The lesson lives outside the model. On the pages read, an agent learns from earlier runs by writing a lesson or procedure that a later run can read, with no change to model weights (Zep, Letta, Google).
- Surviving a restart is a storage choice. A lesson held in process memory or a fresh sandbox is lost; one committed to a database or a persisted store is kept. Run state can reset each run while the lessons stay.
- What is kept is a procedure or a lesson distilled from runs. Zep compiles only successful, strongly verified attempt families, OpenAI distills lessons into files, AgentCore extracts reflections across episodes. Storing a lesson is not checking it.
- Who admits a lesson differs by vendor. On 24 November 2026 Zep admitted new Skill versions automatically by default; LangSmith Fleet asked a person first and advises switching that off for scheduled agents; Claude offered read-only mounts.
Picture an agent that runs the same reconciliation job every night. Each run starts in a fresh process, works out the same plan, and trips over the same edge case it handled the night before. The question is how the next run can start from what the last one learned.
Reading the question as two halves, what a run leaves behind for the next one and where that survives a restart, is this page's framing, and the restart half is covered in depth in How to store agent states across restarts?; every behaviour is quoted from vendors' documentation and blogs, or practitioners' own words. This page reads "protocol worker" as an agent that runs the same procedure again and again, each run in a fresh process.
Learning from previous runs, on this page, is writing a lesson or procedure outside the model, where a later run can read it once it is admitted. Zep's words for it: "Agent Skills let an agent learn from its own task runs."
A run's state is what a checkpointer or session keeps while one thread of work is in progress. LangChain's documentation says "Unlike short-term memory, which is scoped to a single thread, long-term memory persists across threads and can be recalled at any time."
Two halves: what a run learns and where it survives
A checkpoint tells an interrupted run where to resume; a lesson can guide a later run. LangGraph keeps the two apart, a checkpointer for the current thread and a store for durable information across threads, and How to store agent states across restarts? covers the first half in depth. The new part here is that a durable store does not feed the next run on its own. On the LangChain forum on 17 July 2026, pawel-twardziak, a forum participant whose forum title reads "LangChain Expert", wrote: "a store is cross thread but nothing reads it for you unless you write that middleware." dariel.datoon, whose forum flair reads "LangChain Team", a group the forum describes as "Employees of LangChain", 17 July 2026, on the forum, not in the documentation, added: "But start a new thread and none of it carries over". OpenLegion draws the same line: "Memory is read-mostly and persists across runs; state is read-write-concurrent and scoped to an active execution." This page's inference: run state and learned memory are solved in different places, and a stored lesson reaches the next run only when something reads it.
What vendors document as learning from previous runs
Three controls are easy to blur, so the table keeps them apart: what is written, where it is kept, and who lets it reach the next run. It compares documented controls, not how well any system learns. "Not described on the pages read" limits a finding to those pages; it is not a claim about the product.
| System | What a run leaves for the next one | Where it lives, and does it survive a restart | Who admits it to the next run | Rollback or correction | Stage on 24 November 2026 |
|---|---|---|---|---|---|
| Zep Agent Skills | Skills compiled only from successful attempt families with strong verification. | In Zep, as versioned Skills. | On 24 November 2026, "The default approval is auto." Manual mode, review for risky tools, and evaluation gates are documented (admission). | Compare versions and restore an earlier one. | Generally available since 4 November 2026; not available with bring your own key (BYOK) or bring your own cloud (BYOC). |
| OpenAI Agents SDK, Agent memory | Lessons distilled from prior runs into files. | Sandbox workspace; survives only if the memories directory is kept. | Not described on the pages read. | A forgetting step favours the newest environment. | Part of Sandbox agents; no stage label on the pages read. |
| LangMem | Procedural memory and prompt rules from feedback. | A store; a persistent one survives restarts, the in-memory one does not. | Not described on the pages read. | Not described on the pages read. | No stage label on the pages read. |
| AWS Bedrock AgentCore, episodic memory | Episodes, and reflections across episodes. | An AgentCore Memory resource. | Not described on the pages read. | Not described on the pages read. | No stage label on the pages read. |
| Claude Managed Agents memory stores | Preferences, conventions, prior mistakes; a dream writes a new store. | A memory store that persists across sessions, mounted into a session read-only or read-write. | Read-only or read-write mounts; dream output reviewed before use. | Every change is a version, with point-in-time recovery. | Beta; Dreams in research preview. |
| Google Agent Platform Memory Bank | Memories consolidated from interactions. | Memory Bank, with optional time to live. | Memories picked by the agent or a person can be supplied (generate). | Roll back to an earlier revision. | No stage label on the pages read. |
| LangSmith Fleet | Memory files; agents can also change their own instructions and tools. | The agent's memories folder. | Approval before each save by default: a person accepts, edits, or rejects each update; the docs advise turning it off for scheduled agents (settings). | Not described on the pages read. | No stage label on the pages read. |
| LangChain Deep Agents and LangGraph store | Memory files; long-term memory across threads. | A LangGraph store across threads. | Read and write by default; an interrupt can require approval, and in Managed Deep Agents a reviewer can correct or reject a write before it is stored; memory can be read-only. | Not described on the pages read. | Managed Deep Agents in public beta; no stage label on the open-source Deep Agents pages read. |
| Letta | Context the agent manages itself, not model weights. | A git-backed memory filesystem, MemFS. | Optional second review by the agent, without asking you. | MemFS history in git. | No stage label on the pages read. |
| Hindsight | Facts, observations, mental models. | A memory bank. | Curation corrects or retires memories after they are stored. | Mental models keep previous versions. | No stage label on the pages read. |
| Mnemoverse (publisher) | What the application writes, content: "The insight, pattern, or lesson to remember". POST /memory/feedback: "rating a recalled memory as helpful or misleading re-ranks what comes back next"; "the stored text does not change". | "Mnemoverse stores memories in your account" (overview). | In your own domains, a write "too close to a memory already stored in the same domain" is refused, unless it supersedes one; in a shared room, only a message indistinguishable from one already there is refused. Review by a person or an evaluation before a later run reads a memory is not described on the pages read. | supersedes keeps earlier memories "fetchable by ID", still shown in default reads unless "Hide replaced memories" is on. Restoring an earlier version is not described on the pages read. | Hosted API; no stage label on the pages read. |
The kept artifact differs. Zep says it "records each run, learns how the task is best completed, and gives the agent a Skill to follow on the next run," and that "Each compiled step cites the captured runs that it came from." OpenAI keeps lessons as files in the sandbox, AgentCore keeps episodes and the reflections drawn across them, and Letta describes "system prompt learning (rewriting their own prompts as they accumulate experience)". None of these artifacts guarantees that the next run applies it correctly.
Some routes run through evaluation: Google's Optimize "applies the GEPA algorithm to iteratively refine root system instructions by evaluating them against your test suite". None of it is described as training. Zep writes "There's no fine-tuning, and your models stay the same," Letta that its agents learn "rather than by updating model weights", Google's Example Store that "Using examples doesn't involve updating the parameters of the pretrained model", and LangChain that "it is fairly uncommon for agents to modify their model weights or rewrite their code." How a reported outcome changes what memory returns later is the subject of outcome reranking and repeated fixed mistakes.
Where a lesson survives a restart
A lesson in a file is only as durable as the place the file lives. OpenAI's Agent memory says "a fresh empty sandbox starts with empty memory" and continues: "To reuse them in a later run, preserve and reuse the whole configured memories directory by keeping the same live sandbox session or resuming from a persisted session state or snapshot". Anthropic offers "persistent memory that survives across sessions," and LangMem says to "Use a persistent store like AsyncPostgresStore instead of InMemoryStore to persist data between restarts." ADK sessions follow the same rule: in-memory sessions lose their data on restart, database sessions keep it. Google's developer blog: "The state machine is only durable if the underlying session storage survives restarts."
The write path matters as much as the store. On 19 September 2025, liling-kongbai wrote on the LangChain forum: "My observation is that if the application restarts, any pending task is lost." The post went unanswered; it is a forum report, not documented behaviour, but it names the question: has the lesson reached durable storage before the process exits?
A second reading of "protocol worker" is an agent behind a protocol such as MCP. Since the 2026-07-28 specification the MCP core keeps no session state, and servers that need state across calls pass explicit handles; stateless MCP agent memory covers where memory lives then, and what survives when AI agents restart covers coding tools.
Who admits a lesson to the next run
Between a candidate lesson and its use in the next run sits a decision, and vendors place it differently.
Zep makes it explicit: "A candidate is not available to search until Zep admits it." On 24 November 2026 "The default approval is auto." (This site's outcome reranking page, which read Zep's documentation on 21 September 2026, quotes the default then as manual; the value here is the one read on 24 November.) The docs spell it out: "Zep admits each new Skill version without human review, so the agent can use what it learns on the next run." In manual mode "Each candidate waits for a member to approve or reject it"; a middle setting keeps auto approval and sends only Skills that use listed tools to a person; admission can also require "The evaluations, for example an offline test set, that each candidate of a task family must pass before admission." When evidence turns out wrong, "Zep removes the Skills that depend on that evidence from search until it repairs them."
LangSmith Fleet starts from the other end: "By default, agents require approval before saving to the memories folder." For unattended agents the settings page says "If your agent runs on a schedule or other automated schedule, disable the memory approval requirement," or the agent will "wait indefinitely for manual approval."
Claude memory stores control writes at the mount, where "a read_only mount rejects writes", and a dream writes elsewhere: "The input store is never modified, so you can review the output and discard it if you don't like the result." Letta's optional second pass "does not ask you for approval." Paper Compute publishes first: "review happens right after it lands; edits publish a new version." Cognee runs a curator and a writer or rejecter before a lesson is added; the agent memory write gate covers such filters. For OpenAI's Agent memory, AgentCore's episodic memory and LangMem, admission is not described on the pages read.
Practitioners ask for a gate. pawel-twardziak, in the same LangChain thread: "Let it plan once on a novel task, persist the trajectory, then promote validated ones to a skill or a plain tool behind a human or eval gate." yewheng86, on the OpenAI developer forum on 1 October 2026: "These lessons should not automatically become permanent." jmtulloss, on Hacker News on 4 October 2026: "Evals or it didn't happen."
This page's conclusion: for an agent that runs without a person, a human gate is either switched off, as LangSmith Fleet advises, or replaced by an evaluation, as in Zep's admission gates, or moved: to a separate output reviewed before use, as with Claude's dreams, or to a review after publication, as with Paper Compute's skills. A review after publication is not a gate before it, and an approval step nobody is there to give stops the run rather than protecting the next one.
What goes wrong when lessons are admitted without checks
A lesson can encode a mistake. Paper Compute: "A skill extracted from a false success bakes in a pattern that does not hold." Zep: "A literal that is specific to one run can make a Skill wrong for the next run." sathish316, on Hacker News on 4 October 2026, found that "Agents cannot differentiate between a general principle or abstraction to be followed vs a one-off code review comment".
A lesson can also carry an injected instruction. LangChain's Managed Deep Agents: "Treat memory as untrusted input: content saved by one caller is loaded for later callers and must not grant authority, change tool permissions, or bypass approvals." mzhaase, on Hacker News on 4 October 2026, describing their own agent: "Some rule it made up that I never approved."
Self-reports are a weak record. p0rt (Sergei Parfenov), writing on dev.to on 8 July 2026 about self-editing harnesses: "The system simply has no way to distinguish what it verified from what it once said." A commenter on that post, kartik-nvjk, on 9 July 2026: "I have started treating anything an agent writes about its own execution as an untrusted claim". mohith__gowda, on 10 November 2026, about his own DejaVu repository built on Hindsight: "If nobody clicks Worked or Failed, there's no track record to learn from."
Lessons also go stale. b-karl, on Hacker News on 4 October 2026: "I also agree memories go stale and pollute the context over time, especially when the state changes externally." Memory Bank offers a time to live, and Hindsight says "If an observation is marked as stale, the agent automatically verifies it against current facts."
Research names the cost. A preprint submitted to arXiv on 10 November 2026, Don't Just Trust Your Memory, describes "memory-induced degradation, where an agent fails on tasks it would solve without memory". It is research, not vendor documentation; its WikiTrace "stores each lesson as a concise insight linked to a summary of why its trajectory succeeded or failed and to the raw trajectory itself." This page's inference: the test of a stored lesson is whether the next run does the task correctly with it, measured by comparing runs with and without it.
What this page does not claim
No test of any vendor's learning feature and no experiment. Splitting the question into what a run learns and where it survives, and reading "protocol worker" as an agent that repeats one procedure, are this page's framing. The behaviours are the vendors' documented ones on the date in Sources; Zep Agent Skills became generally available on 4 November 2026, and Claude Managed Agents memory stores are in beta and Dreams in research preview. Where a vendor's pages say nothing about admission or restarts, the table says "not described on the pages read"; that is not a claim the product lacks it. Forum and comment replies are practitioners' words with their dates.
Common questions
How can an AI protocol worker learn from its previous runs without resetting state?
On the vendor pages read, an agent learns from earlier runs without changing the model: a lesson or procedure is written outside it and a later run reads it. The lesson survives a restart when its storage does: a database or a persisted store keeps it, process memory or a fresh sandbox does not. Who admits it differs: on 24 November 2026 Zep admitted new Skill versions automatically by default, LangSmith Fleet asked a person before each memory save, and Claude memory stores offered read-only mounts.
Do your tool-using agents re-plan the same task every single time?
In the loop discussed on the LangChain forum on 17 July 2026, yes: pawel-twardziak, a forum participant whose forum title reads "LangChain Expert", wrote that "re-planning is the semantics of the loop, not a bug." dariel.datoon, whose forum flair reads "LangChain Team", a group the forum describes as "Employees of LangChain", writing on the forum and not in the documentation, suggested writing the procedure down once so the agent can reach for it. Zep compiles Skills from successful, strongly verified attempt families.
Does a scheduled agent that starts in a fresh sandbox keep what it learned?
Only if the lessons are kept somewhere that outlives the sandbox. OpenAI's Agent memory says "a fresh empty sandbox starts with empty memory" and tells you to keep the memories directory through the live sandbox session or a persisted session state or snapshot. Claude memory stores persist across sessions; LangSmith Fleet keeps memories in the agent's files and advises turning off memory approval for scheduled agents. Run state is covered in How to store agent states across restarts?
Do AI agents learn between sessions?
When memory is set up, the vendors say yes: Zep writes "Agent Skills let an agent learn from its own task runs", OpenAI writes "Memory distills lessons from prior runs into files in the sandbox workspace", and Anthropic's memory stores carry prior mistakes and project conventions across sessions. Vectorize, the maker of Hindsight, notes that without such memory the default answer is no. None of this is fine-tuning: Zep says "There's no fine-tuning, and your models stay the same."
Should a lesson from one run be used on the next run without review?
Vendors document both. On 24 November 2026 Zep admitted automatically by default and could hold every candidate for a member, or only Skills that use risky tools. LangSmith Fleet asks before every memory save by default and advises turning that off for scheduled agents. Claude memory stores can be mounted read-only, and a dream writes to a new store you review before use. Practitioners ask for a human or evaluation gate.
Sources
All read on 24 November 2026.
Vendor documentation
- Zep: Agent Skills, Learning and admission, Capture traces, changelog entry of 4 November 2026.
- OpenAI Agents SDK: Agent memory.
- LangChain: LangGraph persistence, Memory concepts, Long-term memory, Deep Agents memory, Managed Deep Agents memory, LangSmith Fleet essentials, Fleet agent settings.
- LangMem: Conceptual guide, Background quickstart, Optimize a prompt.
- Anthropic: Managed Agents memory stores (beta), Dreams (research preview).
- Google: ADK sessions, Memory Bank, Generate memories, Revisions, Optimize agent prompts, Example Store.
- AWS: AgentCore episodic memory strategy.
- Letta: Memory configuration, MemFS, documentation index.
- Hindsight: Mental models, Memories API, Reflect.
- Cognee: Improve.
- MCP: Specification 2026-07-28 changelog.
- Mnemoverse: API reference, API overview.
Vendor blogs
- AWS Machine Learning Blog, Build agents to learn from experiences using Amazon Bedrock AgentCore episodic memory, 21 January 2026.
- Google Developers Blog, Build long-running AI agents that pause, resume and never lose context with ADK.
- Paper Compute, Learning from past AI agent sessions.
- OpenLegion, AI agent state management.
- Vectorize, Do AI agents learn between sessions?
Practitioners
- LangChain forum, Do your tool-using agents re-plan the same task every single time?, 17 July 2026 (pawel-twardziak, dariel.datoon).
- LangChain forum, LangMem reflection recovery after restarts, 19 September 2025 (liling-kongbai, no replies).
- OpenAI developer forum, feature proposal on procedural memory and continual task learning, 1 October 2026 (yewheng86).
- Hacker News, thread "Agents don't need memory, they need documentation", 3 to 4 October 2026 (sathish316, b-karl, jmtulloss, mzhaase).
- dev.to: p0rt (Sergei Parfenov), 8 July 2026, with a comment by kartik-nvjk; mohith__gowda, 10 November 2026.
Research
- Don't Just Trust Your Memory: Evidence-Linked Memory Reduces Memory-Induced Degradation in LLM Agents, arXiv 2611.14320, preprint submitted 10 November 2026.
Related
- How to store agent states across restarts?
- The agent memory write gate
- What survives when AI agents restart
- Stateless MCP and agent memory
- Outcome reranking in agent memory
- Stop an agent repeating fixed mistakes
- Learn from user corrections
- Pruning low-value context in memory APIs
- The agent memory feedback dilemma
Sources were read on 24 November 2026; the page describes them as of that date.
Who wrote this. Mnemoverse publishes this page and is one of the systems in its table, so we are an interested party. Every row is drawn from the vendor's own documentation on the date in Sources, ours included (rows paraphrase; quotation marks mark verbatim text). Send corrections through contact.
Edward Izgorodin · Mnemoverse · 25 November 2026
