Skip to content
The AI Agent Factory

31.11 From agent to AI worker

Approved by
Panaversity ·
18 min read

In everyday life. A skilled accountant joins a firm. She is given more than a desk. She gets a job description: what she owns, who she reports to, what she may sign and what she must never sign. She gets access to the ledger, a file for each client, and the firm's procedures manual. Without these, she is a talented visitor. With them, she holds a job.

What you will learn. What turns a learning agent into a worker that holds a job. It needs a defined role above it. And it needs governed records beneath it: of what it may do, of where each piece of work stands, and of what the organization knows. You write the role in Lab 31, Task 10.

Why it matters. Everything so far answers how a worker runs, remembers and improves. It does not say what the worker is for, who it answers to, or which records it must trust over its own notes. Those decide whether it can be given a job.

What is the worker made of?

A role above, the runtime and learning core in the middle, and three governed records beneath. The two loops, the memory and the promotion protocol are the core. They are not the whole worker.

A stack in three bands. Top band: the role, with a job definition, outcomes measured over weeks, and a budget. Middle band: the runtime and learning core, with the task loop, the memory and the dreaming loop behind the promotion gate. Bottom band: three governed records side by side: the action layer, for what the worker may do; the case record, for where each piece of work stands; the knowledge record, for what the organization knows. Below: the core learns; the role says what for; the records say what is true.

Figure 31.8. An AI worker: a role, the core this chapter built, and three governed records.

What does the role add?

Three things turn a well-built agent into an accountable worker. None of the three core sources covers them.

  • A job definition. What the worker owns, its goals, who it reports to, when it escalates, and what it may never do.
  • Outcomes judged against the role. Not only whether each task passed, but whether the worker meets its job's goals over weeks. In the long run, that is what dreaming should improve.
  • Economics. A budget per worker, and the cost per finished outcome as a managed number, so that dreaming, testing and review are worth what they cost.

You have written one before: the Role Contract of 2.6, which Part II filled in draft by draft. A job definition is real only when each part maps to something the system enforces. Here is Brightline's AP worker, using what Part III built in place of the full systems:

Part of the job definitionEnforced byAt Brightline, with what Part III built
What it ownsThe kinds of work it may open, and the actions it may takeThe morning triage for Brightline and Cedar Ridge, through the connector's tools
What it may never doActions blocked by policy, which no memory or prompt can overrideThe connector refuses to mark a Cedar Ridge invoice over $2,500.00 ready to pay with no approval row
When it escalatesApproval tiers, and the rules for stopping to ask (31.9)Holds go to Ana or Luis. High-tier lessons go to them too (31.7)
Who it reports toThe approver of its medium and high lessons, and the owner of its outcome reviewsAna at Brightline, Luis at Cedar Ridge
Its goalsOutcomes measured over weeksInvoices triaged right the first time, and minutes of human correction per week
Its budgetA cost limit per period, and the cost per finished outcome$0.50 per run (23.5), and the dream's own budget

What records does it stand on?

31.8 separated four kinds of state, each with its own authority. You met the three records in Chapter 4 as the layers that know (4.2), track (4.4) and act (4.5). The worker's own memory stays inside the core. The other three need governed services beneath the worker, each the authority for one kind of truth:

Governed recordThe official source forWhat Part III uses instead
Action layerBusiness data, and every action taken in business systemsThe connector and the approvals table
Case recordWhere each piece of work stands, and how it got thereThe portal's runs table and the sessions
Knowledge recordHow work should be doneChapter 19's policy documents

What each one must do:

  • The action layer enforces each worker's permissions and spending limits. It sends large actions to a person, and stops an action from happening twice. It keeps evidence of what happened. It checks facts itself, and never takes the worker's word.
  • The case record keeps one file per piece of work, such as one payment. Entries are only added, never changed (append-only). The file holds the goal, the status, each attempt and decision, the outcome, what blocks the work and what is still owed, each with evidence. The worker records its decision before it acts. Dreaming reads the file. After a crash, the runtime checks itself against it.
  • The knowledge record holds the rules that people and workers share. It decides which rules are official, who may use them, and when a worker must say it does not know. A rule changes only through draft, review and approval.

These records take over jobs this chapter left to you. The rules for actions that must not happen twice (31.9) become the action layer's job. The case record turns execution history into evidence a reviewer can audit. And the promotion protocol gains a second destination. Some lessons hold for more than one worker, or change what the organization treats as true. Those go to the knowledge record, through its review. That move is always high tier.

Where can a lesson go?

Four places. A lesson for one worker or one company goes into memory. A procedure, steps the worker follows each time, goes into its skill. A rule for everyone goes into the knowledge record, the company's policy. And a rule that matters most can become code: a check in the action layer, so that it no longer depends on any worker remembering it (31.8). Whichever place, memory never overrides policy, and each memory records the policy version it was learned under. When a new policy version is published, every memory that depends on the old one is flagged, to be checked again or removed. How policy versions stay in step across the three records is still an open design question.

Can a lesson change a skill?

Yes, and one team does it every day. Warp, which makes a terminal for developers, runs two skills for each job.1 The base skill does the work, such as reviewing a pull request. The improver skill runs on a schedule. It compares what the agent suggested with what people actually did, and proposes a small edit to the base skill as a pull request. A person reviews it and merges it. Three of Warp's rules match this chapter:

  • Skills change on purpose; memory is written as the agent works. A skill is stable, and each change to it is a decision.
  • Take feedback only from people who know the work. Feedback can be wrong. Luis's words about NA- documents were broader than the facts (31.6).
  • The loop must produce a change, not a report. A list of mistakes improves nothing until someone turns it into a change they can merge.

In this chapter's terms, the improver is a dream whose candidate is a skill edit, and the pull request is the approval of stage 6. It still needs stages 4 and 5. Every run loads the skill, so a skill edit needs a check against policy and a regression run, like a note injected into every run (31.6).

What are DSoR, SSoR and KSoR?

Panaversity's designs for the three records. Panaversity, which publishes this book, is developing one open-source framework for each record. They are its own proposals, at different stages, and Part V builds each one.

RecordIn one lineAt Brightline, it wouldStatus, November 2026
DSoR, the action layer2Sits between workers and a company's real systems, and checks every fact for itselfRefuse "ready to pay" on a Cedar Ridge invoice over $2,500.00 with no approval rowA written specification, no code yet
SSoR, the case record3Keeps one append-only file per piece of work: what happened, what was decided and whyKeep NA-2245's file: each attempt, each decision and what is still owedAn idea, described in a README
KSoR, the knowledge record4Holds the rules people and workers share, changed only through review and approvalHold the Cedar Ridge credit rules that Luis approvedAvailable as open-source code. This book is published from it

The chapter's reference page describes each one in more detail.

How does a worker use all three?

It reads the case file, checks the rules and the facts, records its decision, then acts. For NA-2288 at Cedar Ridge: the worker reads the case file for NA-2288 in SSoR. It checks the credit rule in KSoR, and in DSoR the open balance of the invoice its line text names. It records its decision, "apply as a credit, code SS", in SSoR. It applies the credit through DSoR, which checks Luis's rule for itself. And the result comes back as a new entry in the case file.

Is this the only way to build it?

No. What is required is a set of capabilities, not three services. Clear role boundaries, governed outside actions, a case state that survives a crash, authoritative knowledge and accountability for outcomes. Existing databases, workflow engines, policy services and audit systems can provide them. Three separate services is one modular way. Whether it is better is a question still to be measured.

The framing is not unique to this book. OpenAI's Frontier platform also treats agents as AI coworkers that need shared business context, onboarding, learning from feedback, and their own identity with explicit permissions.5 Two labs agreeing supports the idea. It does not test it.

Key ideas of 31.11.

  • A job definition says what the worker is for. Each line of it is real only when something in the system enforces it.
  • Three governed records sit beneath the worker. The action layer says what it may do. The case record says where the work stands. The knowledge record says what the organization knows.
  • A lesson can go into memory, a skill, policy, or code. Memory never overrides policy.

Check yourself

Question 1 / 3

0 answered

Which part of the AP worker's job definition must be enforced by a check that no memory note or prompt can override?

  1. How Warp builds self-improving agents on Claude (Michael Segner, Claude, 26 August 2026).↑
  2. DSoR: Data System of Record (Panaversity, GitHub).↑
  3. SSoR: State System of Record (Panaversity, GitHub).↑
  4. KSoR: Knowledge System of Record (Panaversity, GitHub).↑
  5. Introducing OpenAI Frontier (OpenAI, 5 February 2026).↑
Owner
Panaversity