Skip to content
The AI Agent Factory

Chapter 31 reference: self-improving AI workers, in detail

Approved by
Panaversity ·
63 min read

This page goes with Chapter 31. Read the chapter first. Nothing here is needed for its lab, and none of it is on the exam.

Do the three sources agree?

Yes, under different names. Section 31.2 named three sources. The loops article, the talk and the always-on article each describe part of one system. The same six concerns appear in all three:

ConcernLoops article[^loops]Mukta's talk[^mukta-talk]Always-on article[^always-on]
What starts workA request, a goal, a schedule, an eventA task session, or a separate dreaming jobInbox events, follow-ups, schedules
When to stopClear tests for done, caps on triesA person accepts or rejects each proposed changeSend, stay silent, or ask the person
Two runs collidingEach parallel fix in its own copy, with a judgeA hash before and after an edit; retry on a mismatchOne active worker per inbox; drop duplicates by id
Risk with nobody watchingAuto mode, stop tests and capsRead-only and read-write tiers; versions to roll backA credential proxy, classifiers, tool calls that wait for a person
Getting better over timeA person updates the skill after a missNotes in band, plus dreamingMemory files written during runs, curated by dreaming
CostThe right model for each job, scripts for fixed stepsDreaming repaid by more tasks right the first timeA small, cached fixed part; pointers instead of copies

Four things the three agree on run through this chapter:

  1. Files first. Markdown that people and workers can both read, with an index that points down, like skills. Files can still sit beside a database.
  2. One writer at a time for shared state. Hash-checked writes and one worker per inbox solve the same problem, for memory and for events. Anthropic's experiment with 1,000 agents used ordinary database transactions for the same job.[^fable-teams]
  3. Make the fixed parts fixed. Stable steps move into scripts, and versions and hash checks move into the harness. The worker keeps the judgment calls.
  4. People gate what cannot be undone. A test for done, accepting a dream's proposal and approving a tool call that waited are all moments where a person stays in the loop at low cost.

How do you know it works?

Every layer costs something. If you cannot show what it adds on your own work, you cannot tell your client, or yourself, whether to keep it. Lab 31's regression run (Task 7) is a small version of this study.

What do you compare?

Conditions that each add one layer, in build order, with everything else the same: the same model, tools and mix of tasks.

ConditionWhat it hasComparing it with the one before measures
ANo memory kept between tasks
BA durable runtime: tasks continue across runsDurability
CB, plus memory written during runsMemory written in band
DC, plus dreaming that publishes by itselfDreaming
ED, but every change passes the promotion protocolThe protocol
F1E, plus governed outside actionsThe action layer
F2F1, plus a durable case recordThe case record
F3F2, plus governed knowledgeThe knowledge record
GE, plus the same capabilities built on existing tools: databases, a workflow engine, a policy serviceCompared with F3: are three separate records better than ordinary tools?

Comparing E with F3 measures governance as a bundle. The steps from F1 to F3 measure each record, given the ones before it. These are effects under one build order, not each part's value in every design.

How do you keep it fair?

  • Match the compute. Dreaming adds tokens and background work, so a gain from C to D could come from more resources, not better memory. Give C an equal budget spent on other background work, or report gains per token. D and E get the same candidates and the same budget for looking back.
  • Fix everything before you start: the model versions, the source access, the success thresholds, several trials per condition.
  • Grade the outside result, not the worker's own report, on held-out tasks: tasks kept apart from the learning tasks, so right answers cannot leak into memory and inflate the score.
  • Use one task mix in every condition: single-step tasks, multi-step tasks, tasks interrupted on purpose in the middle, and tasks that contain prompt-injection attempts.
  • Give G a fair build. Condition G gets as much engineering effort as the F conditions, so the study does not compare a tuned stack with a rushed one.
  • Check the order. F1 to F3 are measured in one order. Run a second order on some tasks, such as knowledge before the case record, to see how much the results depend on it.

What do you measure?

Define each measure before the study starts:

MeasureDefinition
Task successThe share of held-out tasks whose outside result is checked as correct
Cost per completed taskAll tokens and compute, dreaming and review included, divided by checked successes
Time to completionClock time from a task's arrival to its checked result
Human review timeMinutes of review by a person per completed task
Unauthorized or duplicate actionsActions taken without a required approval, or carried out twice, per 1,000 actions
Recovery successThe share of tasks interrupted on purpose that finish correctly, with no duplicate action
Harmful memory regressionA published memory change after which a held-out task that used to pass now fails, counted per published version

Chapter 24 builds golden sets and judges in full. At Brightline, the golden set is the start of the held-out tasks, and the October 26 week is a small held-out week. The FR credit on NA-2281 was a harmful memory regression, counted against v4.

Nine study conditions. A top row of five boxes, A to E, with brackets between neighbours: A to B adds durability, B to C adds run memory, C to D adds dreaming, D to E adds the protocol. A lower row runs from E: F1 adds governed outside actions, F2 a case record, F3 governed knowledge. A dashed box, G, the same capabilities on existing tools, sits beside F3 with "versus" between them. Below: compare neighbours, with equal budgets and thresholds fixed in advance.

Figure 31.9. Each pair of neighbours measures one layer. F3 against G tests the three records against ordinary tools.

The three governed records, in detail

Panaversity, which publishes this book, is developing one open-source framework for each governed record. They are Panaversity's own proposals, at different stages, and Part V builds each one. Here is what each one is, and how far along it is, as of November 2026:

  • DSoR, the Data System of Record, is the action layer.[^dsor] It sits between workers and a company's real systems, such as accounting software. Its guiding principle is that it never takes the worker's word for anything: it checks for itself. Controls are written as rules in CEL, the Common Expression Language, and checked against a registry of requirements. Status: specification v1.4.0 with JSON Schemas and 268 requirements; the reference implementation has not started.
  • SSoR, the State System of Record, is the case record.[^ssor] It is an append-only, governed case file per matter. It defines four record types. Episodes say what happened. Assertions are claims, each with the time it was true, the time it was recorded and where it came from. Derivations show how one record was derived from others, which gives every lesson the provenance the promotion protocol needs. Traces are recorded decisions, with the context they were made in and receipts of what was read. Traces log reasons, not only tool calls, which answers the blind-spot risk in 31.12. Runtimes still handle timers and retries; SSoR records what they did. Status: an idea, described in its README, with no specification or code yet.
  • KSoR, the Knowledge System of Record, is the knowledge record.[^ksor] It is an SDK for governed knowledge that people and workers share. Knowledge is Markdown in the Open Knowledge Format, and moves through draft, review, approval and stable. Nothing is served until a governance decision passes it. One record is then published three ways: a website for people, an llms.txt file for AI tools, and an MCP server that agents search, retrieve and cite. KSoR holds the rules for acting on business data; the ERP and CRM still hold the data. LangChain's knowledge factory also points to the Open Knowledge Format, an early sign it may become a common standard.[^langchain-kf] Status: available as an Apache-2.0 SDK. This book is itself published from a KSoR record.

The reference stack, in detail

31.13 gives the short version. This section gives one complete design: Claude runs the worker; Cloudflare and Neon govern what it receives, reads, does and records.

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

Which Claude product does which job?

Anthropic offers three ways to run the same kind of loop, and each fits a different part of the design:

ProductIts roleUse it for
Claude Managed AgentsThe production runtime (Chapter 23)The task loop as durable sessions, scheduled deployments for time-based loops, memory stores, dreams, outcomes, permission policies and vaults for credentials. A self-hosted option exists for regulated data[^ma-overview]
Claude Agent SDKA runtime you run yourself (Chapter 22)The promotion protocol's validator and regression runner, the study on this page, and deployments Managed Agents cannot serve. Hooks can enforce a rule on every tool call, in code[^agent-sdk]
Claude CodeThe build tool, and a simple runtime (Chapter 12)Writing the skills, services and evaluations. Running internal workers and pilots as scheduled tasks

Claude Code can run a worker with no runtime code at all. Its cloud scheduled tasks, once called routines (12.7), are saved prompts with repositories and connectors, started on a schedule, by a call to the task's own web address, or by a GitHub event.[^cc-scheduled] Memory can live as files in the repository, committed at the end of each run. That gives two things for little cost. Each run starts from one commit, so it reads a fixed snapshot of memory, as 31.6 requires. And a proposed memory change can arrive as a pull request, which gives the protocol a natural review step.

The limits are about production, not ability. Scheduled tasks are in research preview. Each task belongs to one person's claude.ai account, acts as that person and uses their subscription, with hourly caps on runs. Cloud runs start in auto mode, where a classifier, not a person, approves most actions. And Anthropic does not allow third-party products to run on a claude.ai sign-in. So use Claude Code for internal workers, pilots and teaching, and Managed Agents or the Agent SDK for a worker you run for a client. Skills, prompts and file memory move across largely unchanged. Permissions, scheduling, memory access, tool connections and evaluation must be adapted to the new runtime, and tested again.

What does a complete stack look like?

One reference design: Claude runs the worker; Cloudflare and Neon govern what it receives, reads, does and records. It is a design still to be built and checked, not a tested blueprint. Parts IV and V build its parts.

Part of the designTechnology
Inbox: events waiting for the workerWorkers receive webhooks, email and API calls, and put them on Cloudflare Queues
One writer per worker or per case: leases and timersDurable Objects
Business processes that run for days across many stepsCloudflare Workflows, only where needed
Action layer (DSoR)A Worker service that gives the agent governed actions as custom tools, with idempotency keys and an outbox in Postgres
Case record (SSoR)Append-only tables in Neon Postgres, reached from Workers through Hyperdrive
Knowledge record (KSoR)Neon Postgres, plus Markdown in Git, served to the agent read-only
Read-only lookups into the case and knowledge recordsRemote MCP servers on Workers
Long-term archive: transcripts, audit events, retired memory versionsR2
Regression tests and study runsNeon branches, with mocked outside services and test credentials

In plain words:

  • Workers are small programs that run on Cloudflare's network and answer requests.
  • Queues are a waiting line for incoming work, so nothing is lost while the worker is busy.
  • Durable Objects are small programs with their own storage, which make sure only one process works on a case at a time.
  • Workflows run a long, multi-step process that survives crashes and can wait between steps.
  • Hyperdrive is a fast, shared connection from Workers to the Postgres database.
  • R2 is low-cost file storage, for archives.
  • Neon branches are instant copies of the database, for testing a change without touching production. Neon is the database of Chapter 19.

Two choices matter most. First, every governed outside action goes through a custom tool backed by DSoR. In Managed Agents, a custom tool runs in your own application (22.4 showed where each kind of call runs), not on Anthropic's platform, so every real-world action passes DSoR before it happens. A well-secured MCP server could do the same; what matters is that policy is enforced apart from the agent. Second, Cloudflare hosts the edges and the governed services, not a second agent runtime. Cloudflare has its own agent framework and agent memory too. Using them beside Claude's would give you two memory models to govern, so this design keeps one.

A deployment in three bands. Top band, Claude Managed Agents: the session, memory mounted read-only at its published version, and the dream writing to a separate store. Middle band, Cloudflare: a Worker and a queue for the inbox, read-only MCP servers, the DSoR Worker with custom tools, and R2 for the archive. Bottom band, Neon Postgres: the inbox table, the case record and the knowledge record, the action ledger, and a branch for tests. Numbered steps 1 to 6 follow one task: event in, session starts, reads, action through DSoR, events to the case record, dream to a separate store. Below: Claude runs the worker; Cloudflare and Neon govern what it reads and does.

Figure 31.10. One task, end to end. The numbers match the six task steps.

One task, end to end, in six steps:

  1. An event reaches a Worker, which checks it, records it as an inbox item in Postgres and puts it on a queue.
  2. A queue consumer starts or resumes a session for that case, passing the case id. In the simple runtime, it calls the scheduled task's address instead.
  3. The worker reads the case record and the relevant knowledge through read-only MCP servers. Approved memory is mounted read-only at its published version.
  4. To act, the worker calls a custom tool, and DSoR carries out the action through the lifecycle below.
  5. Session events flow into SSoR as traces, and are archived to R2.
  6. On its own schedule, a dream writes to a separate store. Candidates are tested on a Neon branch, and approved ones are published as a new read-only version.

How does one action stay safe?

Through six steps, each written to a durable action ledger before the next. An outside action and a case-record update usually live in different systems, so they cannot be saved together in one transaction. If a payment succeeds and the write to SSoR then fails, the two records disagree. So DSoR takes each action through six steps, separate from the six task steps above:

  1. Prepare. Record the intended action, its idempotency key and the case it belongs to.
  2. Authorize. Check policy, and get approval if the tier requires it.
  3. Execute. Call the outside system with the idempotency key.
  4. Verify. Confirm the result with the outside system, not only from the call's reply.
  5. Reconcile. If the outcome is unclear, for example after a timeout, ask the outside system what happened before any retry. If it still cannot be confirmed, stop and ask a person (31.9).
  6. Finalize. Write the confirmed outcome to SSoR, and close the ledger entry.

A crash at any step leaves an open ledger entry. Recovery checks every open entry before the worker takes another action. At Brightline, "mark INV-7850 ready to pay" is prepared with the key run-1026-0710:INV-7850, authorized against the approvals table, executed, checked in the payment system, and only then written to the record.

What must you still build?

The documented products leave gaps that your build must fill:

  • Snapshot pinning. The memory store documentation describes versions, but not pinning a session to one. Stores are mounted live, and writes are shared across sessions. Publish each approved version as its own read-only store.[^ma-memory]
  • Retention. Memory versions are kept for 30 days, apart from the recent versions of a live memory. A longer audit needs an archive.
  • Validation and regression. Outcomes grade a single run against a rubric. Nothing runs a regression suite over a candidate memory change. That is your work, here on the Agent SDK and Neon branches.
  • Exactly-once actions. Permission policies decide whether a tool runs, not whether it runs twice.[^ma-permissions] Idempotency and reconciliation belong to DSoR.
  • Event delivery. Managed Agents webhooks report on sessions; they do not feed work in, and the documentation describes no way to resend an event. The inbox needs its own queue, and important states should be checked by polling.
  • Audit. There is no dedicated audit log. The event stream carries each tool call's permission outcome, and SSoR must keep it.
  • Availability and compliance. Dreams are in research preview, by request. Managed Agents is not eligible for zero data retention or HIPAA except when self-hosted, which matters for financial and other regulated clients.

Keep tests away from the real world. A Neon branch isolates the database, not the outside world. A regression run that calls real tools could still send an email or make a payment. So regression and study runs use an isolated branch, sandboxed or mocked outside services, synthetic or properly protected test data, and separate credentials. No action that changes anything in production is allowed during evaluation. Lab 31's worker has no tool that writes to the portal, for the same reason.

Porting the stack to OpenAI

Porting the design. The Cloudflare and Neon half stays the same; Cloudflare is even one of the Agents API's sandbox partners. The runtime column changes:

Part of the designClaudeOpenAI
Hosted runtimeManaged Agents sessionsAgents API sessions
Time-based loopScheduled deploymentsScheduled automations, by cron or at one set time
Approval before actionsPermission policiesAutomatic review
CredentialsVaultsVaults
Notifications to your applicationWebhooksWebhooks
Running on your own infrastructureSelf-hosted sandboxes, or the whole serviceSelf-hosted sandboxes, your own cloud network, or partner sandboxes
Several agents on one taskMultiagent orchestrationMulti-agent sessions with subagents
Governed actions (DSoR)Custom tools, run by your applicationCustom functions, routed to DSoR the same way
Memory between sessionsMemory stores, with versionsNot provided: build it in Git or Neon, mounted read-only at a pinned version
DreamingDreams, in research previewNot provided: build it as a scheduled automation that reads past sessions and proposes changes
A runtime you run yourselfClaude Agent SDKOpenAI Agents SDK

The main difference is memory. On OpenAI, you supply the memory layer and the dreaming loop, so the promotion protocol matters even more: nothing in the platform stands in for any of it. Permissions, approvals, memory access and tool contracts must be adapted and tested again.

How others arrived at the same design

When separate builders arrive at the same design, it is a sign the design fits the problem. This section tells you which parts of Chapter 31 are settled practice, and which part is still a proposal you must test yourself.

How did Anthropic's publications build it?

In parallel with the three core sources, not after them. Memory and dreaming shipped in Managed Agents in April and May 2026, before the talk and the always-on article. In date order:

LayerPublicationDateWhat it adds
BackgroundEffective context engineering for AI agents (Rajasekaran, Dixon, Ryan, Hadfield)[^context-eng]Sep 29, 2025Compaction, notes kept outside the context window, subagents that return short summaries, and fetching information just in time
BackgroundEquipping agents for the real world with Agent Skills[^skills-post]Oct 16, 2025Skills and progressive disclosure, step 3 of memory's history (31.3)
LoopsEffective harnesses for long-running agents (Justin Young)[^harness-long]Nov 26, 2025Memory built by hand: a JSON feature list agents may only mark as passing, a progress file, git history and an init.sh to bridge sessions
LoopsHarness design for long-running application development (Prithvi Rajasekaran)[^harness-design]Mar 24, 2026A planner, a generator and a separate evaluator. An agent grading its own work is weak, so checking needs its own agent. Remove harness parts as models improve
LoopsIntroducing routines in Claude Code[^routines]Apr 14, 2026The proactive loop as a cloud product. Managed Agents scheduled deployments give custom agents the same
RuntimeScaling Managed Agents: Decoupling the brain from the hands[^ma-engineering]Apr 8, 2026The brain, the hands and the session, each replaceable (31.9)
MemoryBuilt-in memory for Claude Managed Agents[^ma-memory-blog]Apr 23, 2026The talk's guardrails, already shipping: file-system memory, versions with rollback and redaction, read-only or read-write stores, safe concurrent writes, an audit log per memory
Dreaming and loopsNew in Claude Managed Agents: dreaming, outcomes, and multiagent orchestration[^ma-new]May 19, 2026Dreaming in research preview, applied automatically or after review. Outcomes: a rubric checked by a grader in its own context. A lead agent delegating to subagents on a shared file system
Memory and dreamingMemory and dreaming for self-learning agents (Mahesh Murag, Code with Claude), known here through a summary written by someone else[^murag]May and Jun 2026Storage, structure and process layers of memory. Dreaming outputs updated memory for review. An example from site reliability work, where a dream found a retry problem and merged five duplicate entries
TeamsBuilding effective human-agent teams[^teams]Jun 24, 2026For an agent, context nobody wrote down does not exist. Defined roles and tool access per agent
Memory and dreamingThe components of agent memory (Lance Martin)[^memory-components]Nov 6, 2026The four layers (31.3), what a dream does and how often, the CL-Bench and corpus benchmarks
TeamsSafely scaling multi-agent teams with Claude Fable 5.2 (Zhang, Peng, Najt, Scholl, Martin)[^fable-teams]Nov 9, 20261,000 agents coordinated only through a shared Postgres database and Git, with transactions handling writes at the same time. Safety in layers: a sandbox per agent, a classifier on every tool call that fails closed, and monitoring afterwards

Two threads stand out. First, memory was built by hand before it was automated: the feature list and progress file of late 2025 are the injected context and memory notes of the 2026 memory model. Second, checking keeps moving out of the working agent and into a separate one: the harness evaluator, the Outcomes grader and the dreaming reviewer all judge work in a context the worker never touched. That is why Brightline's regression run is a separate script, not the worker grading itself.

What did other labs find?

OpenAI reached similar conclusions on its own, in five pieces.

  • Frontier (February 5, 2026) is an enterprise platform for what OpenAI calls AI coworkers. A coworker needs shared business context, onboarding, learning from feedback, and its own identity with explicit permissions. Frontier joins data warehouses, CRM systems, ticketing tools and internal applications into one shared layer of business context, turns past interactions into memory, and has built-in evaluation.[^openai-frontier] In this chapter's terms, those are the role, the governed records and the improvement loop of 31.11. The announcement describes capabilities, not mechanisms. It does not say how a memory is checked before it is trusted.
  • Harness engineering (Ryan Lopopolo, February 11, 2026) reports a five-month internal project in which Codex agents wrote about a million lines of code, none by hand.[^openai-harness] Three of its lessons match this chapter. A map, not a manual: the short top layer with an index (31.3). Background gardening: recurring agents find documents that no longer match the code, and check code against agreed principles, and open small pull requests; most take under a minute to review and merge automatically. That is dreaming with a low tier (31.7). Promotion into code: when documentation is not enough, a rule becomes a custom linter or structural test whose error message tells the agent how to fix the problem. That is the third place for a lesson (31.8).
  • The Agents API (September 10, 2026) is OpenAI's counterpart to Claude Managed Agents (31.13).[^openai-agents-api]
  • Dots (September 29, 2026, updated November 3) brings always-on agents to ChatGPT. Each dot has its own cloud computer and browser, works in the background, and learns from feedback. Specialist dots have their own identity and credentials for defined responsibilities, close to a Digital FTE. Custom rules allow an action, require approval for it, or block it, and sensitive tasks, such as changing a password, always stay with the person.[^openai-dots] Those are approval tiers.
  • Self-evolving agents (OpenAI Cookbook, November 4, 2025, now archived) improves an agent's system prompt in a loop: feedback, a rewrite, four graders, saved versions and rollback to the best one. A version that clears the graders' bar is used with no person approving it (31.13).1

LangChain comes closest to dreaming. Harrison Chase's How to build a knowledge factory (November 21, 2026) separates knowledge, the reusable understanding a company maintains, from context, what an agent has during one task.[^langchain-kf] Its centre is a curator: a background agent on a schedule that reads raw sources such as Notion and Slack, agent traces and agent flags, and updates the knowledge store. That is dreaming under another name. It also argues, as this chapter does, that agents should not maintain their own knowledge, because it would become unruly and full of contradictions. Three more points match: the curator turns recurring human corrections into skills; data stays in its own system, such as BigQuery or Salesforce, and the knowledge store holds only how to reach it; and knowledge that is not a procedure needs a shared format, such as the Open Knowledge Format. The flag tool of 31.5 comes from this post. It does not describe an approval gate before the curator writes, versioning or evaluation.

Warp comes closest to the gate. Michael Segner's article on Warp (August 26, 2026) describes an improver skill that proposes edits to a working skill as pull requests, which a person merges. Warp checks its agents with verification harnesses and evals against known-good outputs.2 That is a candidate, a regression check and an approval (31.11). It does not describe counted evidence, a check against policy, tiers by risk, or versions a run is pinned to.

What does no one describe?

The gate. Several teams now run a background curator. None of the publications here, read together, specifies the full lifecycle a lesson passes: evidence, regression testing, authorization and publication, with monitoring and rollback after. Other systems may do some of this without describing it. That lifecycle, the promotion protocol, is this chapter's main proposal, and it is why most of the chapter is about it.

Words this chapter uses, in full

TermMeaning in this chapter
Action layerThe governed record of what a worker may do in business systems, and of every action it took. DSoR is one design for it (31.11)
Action ledgerA durable log of each outside action's steps, from Prepare to Finalize, used to recover safely after a crash (see "The reference stack, in detail")
AgentA model that plans its own steps and uses tools to finish a task
Always-on workerA worker that sleeps between events, wakes when something happens or a timer fires, does its work and reports back, with no person starting it (31.9)
Approval tierHow much checking a candidate needs before it is published: low, medium or high (31.7)
Audit trailThe record that makes a check of what happened possible: who changed what, and when
CandidateA lesson someone proposed, before it is checked
Capability evalA test of what a worker cannot do yet. A candidate's target cases start as one, and graduate into the regression eval once the lesson is published (31.6)
Case recordThe full history of one piece of work, such as one payment: its goal, status, decisions and evidence. SSoR is one design for it (31.11)
CELThe Common Expression Language, a small language for writing rules, used by DSoR
Claude Managed AgentsAnthropic's hosted service for running agents, with sessions, memory stores, dreams, scheduling and permissions
Commit, pull requestA commit is one saved change in a Git repository. A pull request asks a person to review changes before they are merged
CompactionSummarizing a long conversation so it fits in the model's working space
ContextWhat a worker knows about its company and its work that is not in the model
Context windowThe most text the model can see at one time
Credit memoA document from a supplier that reduces what you owe, for example after a return
Custom toolA tool your own application runs, so your application decides whether each call goes ahead
Digital FTEA worker that holds a role in an organization, as a full-time employee would (31.10)
DreamingAn out-of-band job that reads many past sessions and the current memory, and proposes changes to memory (31.5)
DSoR, SSoR, KSoRPanaversity's three governed records: for actions and data (DSoR), for the state of each case (SSoR), and for approved knowledge (KSoR) (31.11)
DurableKept safely, so it survives a crash or a restart
EDIElectronic Data Interchange: a standard way for companies' systems to send each other invoices and orders
Fine-tuningTraining a model further on your own examples, which creates a new model. A lesson learned this way cannot be read or withdrawn on its own (31.1)
FlagA report from the worker, through flag_gap, of missing or wrong knowledge. A report, not a change (31.5)
Golden setA fixed list of test cases, each with the answer a person checked
GovernedControlled by clear rules: who may change something, how changes are checked and approved, and a record of what happened
HarnessThe software around the model that runs its loop, calls its tools and manages its context
HashA short fingerprint of a file's content. Change one letter and it changes (31.4)
Held-out taskA test task kept apart from the tasks a worker learns from (see "How do you know it works?")
Idempotency keyA unique label on a request, so that a request sent twice is carried out once (31.9)
Improver skillA skill that runs on a schedule, compares an agent's work with what people did, and proposes edits to the working skill for a person to merge (31.11)
In band, out of bandIn band: inside a task's own session. Out of band: in a separate job, outside any task
InboxThe durable list of events waiting for the worker (31.9)
Injected contextText loaded into every run, such as instructions.md and index.md (31.3)
Knowledge recordThe governed record of how work should be done, shared by people and workers. KSoR is one design for it (31.11)
LinterA program that checks files against fixed rules, such as "every note must name its source"
LoopA cycle in which the worker acts, checks the result and decides what to do next, until a stop condition is met
ManifestThe list of memories in a published version, each with its candidate and approval, checked before a run mounts it (31.6)
MCPThe Model Context Protocol, the standard way to connect an agent to tools and data
Memory storeA collection of text files a worker can read and write, kept between sessions. A published version is a read-only copy
Optimistic concurrencyAssume nobody else is writing, and write only if the file still has the hash you read (31.4)
OutboxWhere a run's result goes: a message sent, a decision to stay quiet, or a question for a person (31.9)
OutcomesA Managed Agents feature: a rubric that describes success, which a separate grader checks a run against
pass@k, pass^kThe chance that at least one of k tries is right (pass@k), or that all k are right (pass^k). A worker that moves money needs pass^k (31.6)
PolicyAn organization's official rule, such as an approval limit. Policy always overrides memory (31.8)
Policy versionThe version of the policy a lesson was learned under. A new policy version sends its lessons back to be checked (31.6)
Progressive disclosureLoading a short description first, and the full text only when it is needed (31.3)
Promotion protocolThe seven stages a lesson passes before runs rely on it (31.6)
Prompt injectionInstructions hidden in content the worker reads, written to make it misbehave
ProxyA service that stands between the worker and another system, and uses passwords and keys so the worker never sees them
Published versionA copy of the memory that no run can change, with a number, such as v4
Regression testRunning the golden set again after a change, to find anything that used to pass and now fails
RollbackPublishing an earlier version's content again, as a new version. Nothing is deleted (31.6)
RunOne wake-up of the worker to do one piece of work
RuntimeThe system that runs the worker: it starts, pauses, resumes and records its work
SandboxA closed space where the worker runs code and uses files, cut off from everything else
SessionThe runtime's record of a worker's work: messages, tool calls and results
Side effectAn action that changes something outside the worker, such as sending an email or marking an invoice ready to pay
SkillA packaged set of instructions and scripts that teaches a worker one kind of task
SnapshotA fixed copy of memory at one moment, so a run's memory does not change while it works
StaleOut of date: true once, no longer true
System of recordThe official, trusted source for one kind of information, such as the payment system for payments
TokenA small piece of text, about three quarters of a word. Models are priced and limited by tokens
TranscriptThe saved record of a session, which dreaming reads
WebhookA message one system sends another the moment something happens, such as "a new invoice arrived"
Cloudflare and Neon termsWorkers, Queues, Durable Objects, Workflows, Hyperdrive, R2 and Neon branches are explained in plain words in "The reference stack, in detail"

Sources

Every source the chapter and this page draw on, grouped. Figure 31.2, in the chapter's overview, shows them in time order. Products change quickly, so check a product fact against its source before you rely on it.

The three core sources. The chapter's main claim comes from reading these three together (31.2).

Anthropic's research and product writing.

Other labs, and a critic.

Panaversity's frameworks for the governed records (31.11).

Product documentation (31.13 and the lab).

  1. Self-evolving agents: a cookbook for autonomous agent retraining (Shikhar Kwatra and others, OpenAI Cookbook, 4 November 2025).↑
  2. How Warp builds self-improving agents on Claude (Michael Segner, Claude, 26 August 2026).↑
Owner
Panaversity