31.6 From proposal to trusted lesson
- Approved by
- Panaversity ·
In everyday life. A pharmacy's new hire notices that one brand of syringe often jams, and suggests switching brands for the whole chain. Nobody switches on her word. The manager asks how many times, at which stores. A buyer checks the jam is not a storage problem. A few stores try the new brand for a month and check that nothing else got worse. Only then does head office change the order, and it keeps the old supplier's number in case.
What you will learn. The seven stages a lesson passes before runs rely on it, and the two rules that keep a run's memory steady. You practise them in Lab 31, Tasks 5 to 8.
Why it matters. A dream's proposal is plausible, not proven. This is the stage that separates rewriting memory from improving it.
What are the seven stages?
This is the promotion protocol. Each stage has a question, and a candidate moves on only with a yes:
| Stage | The question | Cedar Ridge's NA- lesson |
|---|---|---|
| 1. Observation | Did something real happen, in a session we can point to? | Six sessions where the worker asked about an NA- document and Luis said "apply it", and a flag |
| 2. Candidate | What exactly is proposed? Is the fact kept apart from the guessed cause? | Seen: each NA- document named its invoice in the line text, with code SS, RT or PC, and each was a credit. The dream proposed: "Apply each NA- document to the invoice it names. Never hold it." It used Luis's words, not the codes it saw |
| 3. Evidence | Which sessions, tool results or documents support it, and how many independent ones? | Sessions 01, 03, 07, 08 and 10. Session 04 is a retry of 03, so it counts once. Five independent sessions |
| 4. Validation | Is it true, within its scope, and safe? Checked against an authoritative source, not the worker's word | credits.md:5 and :6: a credit memo lowers what Cedar Ridge owes, so apply it. Luis confirmed the codes seen. The scope is Northfield at Cedar Ridge. Nobody asked about a code nobody had seen |
| 5. Regression test | Does it fix the target cases, and break nothing that passed before? | Its 3 target cases now pass. All 11 cases that passed before still pass |
| 6. Approval and publication | Who approves, given its risk? Then publish a new, read-only version | High tier, because it decides whether money is credited, so Luis approved it (31.7). Published as v4 on Tuesday, October 20 |
| 7. Monitoring and rollback | Do later runs show a new failure? Then roll back | A freight charge taken as a credit on Monday, October 26. Rolled back. See below |
The gate in Figure 31.1 is stages 3 to 6: evidence, validation (the check against policy), the regression test and approval. Stage 5 runs Brightline's golden set: 16 cases from October, each with the answer a person checked. Golden sets are Chapter 24's subject.
In stage 2, the dream took Luis's words from Monday, October 12: "Northfield's NA- documents are credits." Those words are broader than what the sessions showed, which was three codes. That gap matters later.
Two sessions are independent only if they handle different cases with different inputs, and neither started the other. A retry of the same run counts once. Decide that rule, and every other threshold, before you look at any candidate, and write it down. Brightline's thresholds, in docs/promotion-rules.md, were written on Monday, October 19, before the first dream ran.

Figure 31.6. The seven stages. A lesson that skips 4 and 5 is a guess with a version number.
How much of this does a product do?
Little of the middle. Here is how far Claude Managed Agents covers each stage, from its documentation. The ratings are this chapter's own judgment, not a formal mapping:
| Stage | Covered by Managed Agents? |
|---|---|
| 1. Observation | Partly. Sessions are logged, and each memory records the session that wrote it |
| 2. Candidate | Partly. A dream proposes changes |
| 3. Evidence | Not confirmed. The talk describes proposals carrying example transcripts and counts; the product pages do not say |
| 4. Validation | No. Yours |
| 5. Regression test | No. Yours |
| 6. Approval and publication | Yes. Review before applying, and versioned memory |
| 7. Monitoring and rollback | Partly. Rollback is possible; monitoring is yours |
Validation and the regression test, the two stages that separate rewriting memory from improving it, are left entirely to you.
What does each candidate record?
One small file per candidate, kept through every stage, so anyone can audit it later:
| Field | Contents |
|---|---|
| Claim | The lesson, with the fact seen kept apart from the cause guessed |
| Scope | One worker, one company, or every company |
| Evidence | The sessions, tool results or documents behind it |
| Validation | The authoritative source checked, and what it said |
| Regression result | Target cases now passing, and any case that used to pass and now fails |
| Tier | Low, medium or high (31.7) |
| Approval | Automatic, or the person, with the time |
| Version | The version that publishes it, and the one it replaces |
What other rules does the protocol need?
The sources leave some questions open, and the protocol cannot run without an answer. These are the defaults. Change any of them, but write your choice down before you look at a candidate:
- A person's edit wins. If Ana edits
notes/brightline/vendors.mdwhile a dream is running, any proposal that touches that page is dropped. The next dream can propose it again, against her new text. A proposal is never merged with a person's edit automatically. - Each lesson records the policy version it was learned under. At Brightline, that is the commit of
docs/policies/it was checked against. When a policy changes, candidates that depend on the old version go back to validation, and published notes that depend on it are flagged, to be checked again or removed. - A rollback sends queued candidates back too. Any candidate built on the withdrawn version goes back to validation.
- Runs check what they load. Each published version has a manifest: the list of its notes, each with its candidate and its approval row. Only the publish script may publish a version, and a run mounts only a version whose manifest matches
approvals.csv. Because the version is read-only, the worker cannot change what it loads. A stronger option is to sign each manifest and check the signature before mounting.
Why does a run read one fixed version?
So that its memory does not change in the middle of its work. Each run reads the memory version that was published when it started, from start to end. Publishing v5 changes which version the next run reads. It never changes what a running session sees, even while a dream is running. At Brightline, each version is its own read-only folder, memory/published/v4/, and the run's first log line names it, as a plugin ships in numbered versions (16.6). Writing the version number down is not enough if the run reads from a folder that can change underneath it.
One exception: an urgent security fix. Say a published note turns out to be dangerous: it sends payments to the wrong bank account. Then the runs that read it are stopped, and started again on the fixed version.
Is publishing a lesson the same as loading it into every run?
No. They are two decisions. Publishing puts the lesson on a notes/ page, where the index points to it. Injecting it means adding it to instructions.md, which every run reads and pays for. The credit-memo lesson is published to notes/cedar-ridge/credit-memos.md. Only one line goes into the index. Injecting needs a stronger case, because it costs tokens on every run and shapes every task.
What does rolling back look like?
Publish an earlier version again, as a new version. History is never rewritten. On Monday, October 26, Northfield sent NA-2281 with code FR: a $410.00 freight charge on INV-7795, not a credit. v4 said every NA- document is a credit, so the worker applied it as one. Cedar Ridge would have paid Northfield $820.00 less than it owed: $410.00 taken off, instead of $410.00 added. Marco, who runs Cedar Ridge's payment run, caught it before the money went out. On Tuesday, October 27, Brightline published v3's content again as v5. With v3, the worker asks about NA- documents, which is slow but safe. The candidate went back to stage 2. Its new claim kept apart what was seen (codes SS, RT and PC, each a credit) and what was not (any other code: ask Luis), and said what credits.md:7 says about a second copy. It was published as v6 on Wednesday, October 28. The golden set gained the FR case, so the next regression run would catch the same mistake. No candidate was waiting on v4, so nothing else went back to validation.
A regression test is only as good as its cases. Every rollback should leave a new case behind.
How do you know the regression run is enough?
Read it with four ideas from Anthropic's guide to testing agents.1
- Two kinds of test. A capability eval asks what the worker cannot do yet. A regression eval asks whether it still does everything it did before. A candidate's target cases start as capability tests. Once the lesson is published, they graduate into the golden set, the regression eval. That is how the FR case joined it.
- Right every time, not once. A model's answers vary between runs. pass@k is the chance that at least one of k tries is right. pass^k is the chance that all k tries are right. A worker that pays invoices needs pass^k. A case that is right 3 times in 4 is right three times in a row only about 42% of the time (0.75 × 0.75 × 0.75). Lab 31's
npm run monitorruns each case three times and passes it on two of three. For a case that moves money, you may want all three. - Read the transcripts. When a case fails, the worker may be wrong, or the check may be. Only reading the run tells you which. Read some passing runs too: a weak check passes wrong answers.
- A set that always passes proves little. When every case passes, the set cannot show a change making things better. Keep adding the cases that real runs got wrong.
Check yourself
Question 1 / 4
0 answered
Which two stages separate rewriting memory from improving it?
Sources
- Owner
- Panaversity