# Sleep Consolidation: A Repeated Correction Earns a Diagnosed, Tested Repair: v7.1 → v7.2

From v7.1 (12 Oct) to v7.2 (12 Oct): 10,104 words to 10,681 words, 3,191 words in new or rewritten paragraphs and 2,614 taken out, 111 paragraphs changed.

## Change note of v7.2

**Tighter text and a full reference trace across the four memory papers**

The abstract and introduction are cut by about a third. The failure journey in Appendix B is replaced by a longer reference trace: one correction followed step by step through all four memory papers of the series. The list of reasons a rule fails grows from five to six. A correction is now closed only when the next stage confirms it has stored the result.

## Changed paragraphs

Marks: [-removed-] {+added+}.

### Abstract

Tell a good new colleague something once and it sticks. If it slips, [-you say it again, and a good colleague asks why it slipped:-] {+they ask why:+} the note was in the wrong drawer, an old instruction said the opposite, or the lesson has to become a habit. In your [-own-] brain the cerebellum [-is where a practised movement-] turns [-automatic, and a night's sleep is when-] {+practice into habit,+} much of [-that settling happens.-] {+it while you sleep.+}

### Abstract

AI assistants are corrected [-every day,-] {+daily,+} and their owners keep repeating themselves. The [-model's weights-] {+model+} cannot change, so each lesson is written down as [-text. But-] {+text, and text binds weakly:+} the model weighs [-text-] {+it+} against everything else in [-front of it, a-] {+view, and+} long [-list of advice is-] {+lists are+} followed [-less well than a short one, and the clean-ups that keep the list short push old lessons out of sight.-] {+worse.+} When a written lesson fails, today's assistants write another note.

### Abstract

We propose that a repeated correction earns a diagnosed, tested repair instead of another note. [-Each rule keeps a row in a-] {+A+} ledger [-that-] records every time the agent broke [-it.-] {+each rule.+} A repeat triggers a diagnosis, and only a rule [-that was-] {+known to have been+} in view, clear and uncontradicted, and still [-broken,-] {+broken+} moves to a stronger form, ending in a {+tested+} check that runs before the [-action and is tested on the recorded slips.-] {+action.+}

### Abstract

[-For the owner, a correction is safe the moment he gives it: it is stored before the agent replies, and the agent says how far it has got, from captured to enforced. Nothing that every turn reads changes without his approval, only he may loosen a rule, and the file the agent reads on every turn stays short without dropping a rule he had to repeat. This is a design; the last section names the tests, against today's scoped rules and correction-made hooks, that would show whether it works.-]

### Abstract

{+A correction is stored before the agent replies, and the agent never claims more than it did. Nothing every turn reads changes without the owner's approval, and only he may loosen a rule. This is a design, with the tests that would decide it.+}

### Abstract

If it holds, you teach your assistant a thing once, and [-when-] a [-lesson slips anyway, the-] slip [-is repaired where it happened and never simply-] {+gets repaired, not+} written down again.

### 1.1 What the brain suggests

The brain learns at two speeds. In the complementary learning systems account (McClelland et al., 1995), [-a fast learner,-] the [-hippocampus,-] {+hippocampus+} records an episode at [-once,-] {+once+} and [-a slow learner,-] the [-neocortex,-] {+neocortex+} folds many episodes into durable knowledge, much of it during sleep. The cerebellum adds the step that matters most here: a movement you once had to think through becomes one you no longer think [-about. Sleep-] {+about, and sleep+} helps with that too; [-people who practise-] a finger sequence {+practised+} in the evening [-play it-] {+is played+} faster the next morning [-without further practice-] (Walker et al., 2002).

### 1.1 What the brain suggests

Learning to ride a bicycle passes through three forms of one lesson: an instruction you recall ("look ahead, not at the wheel"), a reminder you hold in mind while riding, and balance, which acts before you could [-think of it.-] {+think.+} An agent can hold a lesson in the same three forms: a note it finds when it searches, text it keeps in front of it, and a check that runs at the moment of action whether the model remembers or not. That last form gives this stage its name in the series, [-CEREBELLUM. Like every brain name in the series it is-] {+CEREBELLUM:+} an aid to reasoning, not a model of the brain.

### 1.2 Why the obvious fixes fail

**Text binds weakly.** [-A model weighs its instructions against everything else in the turn.-] Claude Code's documentation says its memory files are treated "as context, not enforced [-configuration", and that-] {+configuration";+} to block an action [-regardless of what-] {+whatever+} the model [-decides you use-] {+decides, it points to+} a hook (Anthropic, 2026a). Safety engineering ranks rules people must remember below controls built into the [-equipment, because the former "require significant and ongoing effort"-] {+equipment+} (NIOSH).

### 1.2 Why the obvious fixes fail

**Text competes for attention.** On IFScale, accuracy falls as [-the number of-] instructions [-in a prompt grows,-] {+are added,+} and earlier [-instructions-] {+ones+} are followed more than later ones (Jaroslawicz et al., 2025). A file that grows by one lesson a day gets worse at all of them.

### 1.2 Why the obvious fixes fail

[-**Learning only at night is late.** A correction given in the morning can be needed again that afternoon.-]

### 1.2 Why the obvious fixes fail

[-**Pruning by age or size throws away rules that still matter.** Keeping the always-loaded file short is right. Choosing what leaves it by date or by bytes moves a rule out of sight, and a rule the agent no longer sees gives it no reason to look it up.-]

### 1.2 Why the obvious fixes fail

{+**Learning only at night is late,** and **pruning by age or size** moves rules that still matter out of sight, where nothing prompts a search for them.+}

### 1.2 Why the obvious fixes fail

**The learner learns from the wrong signal.** An outage is not fixed by {+advice,+} a [-paragraph of advice, text a harness wraps around the owner's words-] {+harness's wrapper+} is not the owner speaking, and [-an outcome column that-] {+a slip on a rule the model may+} never [-changes teaches nothing.-] {+have received says nothing about the rule.+}

### 1.3 What this paper proposes

The [-claim, in one sentence:-] {+claim:+} **a repeated correction earns a diagnosed, tested repair instead of another note.** Its [-parts:-] {+parts, which Figure 1 follows on the opening's rule:+}

### 1.3 What this paper proposes

1. A rule ledger that counts [-incidents,-] each [-one an action that broke a rule, once,-] {+broken rule once per incident,+} whichever path saw [-it, across every place a rule can live-] {+it+} (§4). 2. A diagnosis before any escalation: [-five-] {+six+} reasons a written rule fails, [-five repairs, and-] only one of [-them-] {+which earns+} a stronger form (§5). 3. Two [-speeds, with-] {+speeds:+} a correction stored before the agent acknowledges [-it-] {+it,+} and [-learned within-] {+an event closed only on+} the [-same session-] {+next stage's durable acknowledgement+} (§6). 4. [-An always-loaded file kept short without dropping a rule the owner had to repeat,-] {+Budgets with+} defined behaviour when [-it is-] full, {+for the always-loaded file and the per-session tail,+} and an approval table in which only the owner loosens (§7). 5. Books for every learning [-loop: receipts, tuning-] {+loop (§9),+} and [-evaluation data kept apart, and retirement priced in-] the [-owner's minutes (§9). 6. The series acceptance test: one correction followed to enforcement through every failure the four stages can meet (§10, Appendix-] {+series' end-to-end reference trace (Appendix+} B).

### 1.3 What this paper proposes

[-Figure 1 follows the opening's rule through this design, and §10 tells it in full.-]

### 1.3 What this paper proposes

![One rule's life: the reply-language rule of §1. Taught on day 0, it is {+held for approval and+} active [-within the session and-] {+in its session; approved, it+} loads on every [-turn once approved.-] {+turn.+} The second slip is traced to an older, contradicting line, which is [-scoped; the rule stays put.-] {+scoped.+} The third happens with the rule {+known to be+} in view, clear and unopposed, so a check is drafted, run in shadow and [-enforced; once its receipts show it working,-] {+enforced, and+} the always-loaded line is freed. Days are [-illustrative.](images/fig1-journey.png){width=100%}-] {+illustrative.](images/fig1-journey-v72.png){width=100%}+}

### 2. Related work

**Lessons kept as text.** Reflexion (Shinn et al., 2023) has an agent write a reflection after a failed attempt and read it on the next try. ACE (Zhang et al., 2025) [-maintains-] {+keeps+} a playbook of itemised lessons that a curator edits in small [-steps;-] {+steps, all of them text;+} a row of our ledger is one such [-item. In ACE every lesson stays text. Here-] {+item, but+} a lesson that keeps failing [-is diagnosed and-] may leave text (§5).

### 2. Related work

**Learning while idle.** Sleep-time compute (Lin et al., 2025) lets an agent think about its context before a question arrives. Letta runs the idea as "dreaming": background subagents review recent conversations and consolidate [-lessons into memory, triggered-] {+lessons,+} after a set number of agent steps or at compaction, [-with an optional second agent that revises proposed updates-] without asking the user (Letta, [-2026a). Its background subagents edit an isolated copy of memory-] {+2026a); they work in git worktrees, so the main agent is not blocked+} (Letta, [-2026b), as our-] {+2026b). Our+} night pass [-does-] {+also works on its own copy+} (§4.3); we add the owner's approval (§7.4).

### 2. Related work

**Products that write lessons down.** Claude Code loads its instruction files and its own auto-memory notes, including "corrections you give Claude", at the start of every session; rules can be scoped to file paths so they load only when matching files are touched; and a prompt audit reports outdated or conflicting instructions with proposed edits, changing nothing until the user asks (Anthropic, 2026a). The Claude memory tool gives a model a client-side directory [-it reads and writes-] {+that persists+} across conversations (Anthropic, 2025). LangMem's prompt optimiser takes conversations with optional feedback and returns [-a rewritten-] {+an updated+} system prompt (LangChain, 2025). Between them they supply our rungs 0 to 2, scoped loading and an owner-approved audit; their documentation describes no count of [-how often-] a written [-lesson failed-] {+lesson's failures+} and no diagnosis of where it should live next.

### 2. Related work

**Checks made from corrections.** Claude Code's PreToolUse hooks run before a tool call and can deny it, ask the user, or replace its arguments (Anthropic, 2026b). The hookify plugin, run with no arguments, reads the recent conversation for behaviour the user corrected and writes rules that warn or block on the next shell command, file edit, stop or prompt (Anthropic, 2026c). It is the closest shipping relative of our top rung; its documentation describes no recurrence count and no approval step. HASP (Liu et al., 2026) turns advisory textual skills into program functions that fire on failure-prone states, and Self-Harness (Zhang et al., 2026) mines an agent's traces for recurring failures and edits its harness after regression [-tests. We-] {+tests; we+} take {+from them+} the move [-from text-] to an executable check and the test before acceptance. Our contribution is the piece between them: **a diagnosis-and-recurrence ledger across enforcement levels**, which counts each broken rule per incident wherever [-the rule-] {+it+} lives, diagnoses why its current form failed, and uses that to decide promotion, repair and pruning. We did not find a design that does this; the parts exist.

### 3.1 The owner's correction is the label

Every reader here sees only the owner's own [-words,-] {+words: the owner spans of+} the owner_words field the keeping stage writes [-when a turn is appended-] {+at append+} (J1 §4.1, what goes in and with whose [-name), never the wrapper a harness puts around them.-] {+name).+} Text from a web page, a document or another agent is never a correction, {+nor is a span he quotes,+} so [-content-] {+text he pasted or+} the agent [-merely-] read cannot plant a rule. Signals 1 and 2 come from one classifier of owner [-sentences,-] {+spans,+} shared by three [-stages: the keeping stage uses it to keep instructions word for word, this stage to find corrections,-] {+stages+} and [-the writing stage to stamp facts as told by the owner. This stage owns its contract-] {+owned here+} (Appendix [-A.1). One labelled sample serves all three,-] {+A.1),+} with an operating point [-calibrated-] per [-task,-] {+reader,+} because a missed instruction and a false correction cost different things. When the classifier fails, the entry is marked untagged and the nightly pass reads it; untagged never means "no correction". A session flagged temporary yields nothing here: no [-correction-] event, incident, mention or evidence (J1 §4.7, sessions that are never [-kept). The fast path and the auditor's Gather step both skip it (§6.1, §6.2).-] {+kept).+}

### 3.2 Sort by cause before writing a rule

| Cause | Example | What it becomes | |---|---|---| | Rule gap | The agent could have done right and had no rule, or ignored one | A rule {+proposal+} in the ledger | | Missing capability | No tool or skill exists for the job | A task to build one | | Environment | An outage, a rate limit, a restart | A repair, never a rule | | Model limit | The task was beyond the model that ran it | A routing record: next time, a stronger model | | Wrong fact | "The call is on Thursday", when the store says Wednesday | A supersede or retraction through the writing stage (J14 §7.3, three ways a fact ends), never a rule |

### 3.3 A correction carries its reason

A correction records what happened, what should have happened, and why the owner cares. A [-rule obeyed without its reason cannot be stretched to a new case or retired when its case is gone; a-] rule that carries its purpose extends to cases its wording missed and tells the auditor when it no longer applies. Each rule also states when it must not [-apply. A-] {+apply; a+} safety rule with no such limit tends to grow until it blocks useful work.

### 4.1 One row per rule

A fact says what is true and lives in the writing paper's [-memory-] store. A rule says what to [-do-] {+do,+} and has a ledger of its [-own,-] {+own+} because what [-we need to know-] {+matters+} about it is where it lives, whether it [-binds,-] {+binds+} and how often it failed.

### 4.1 One row per rule

{+An **eligible opportunity** is an action where the rule's trigger holds: every reply to the owner, for the language rule. A check counts its own; for a text rule the auditor counts them in the session record. Violations per eligible opportunity, not raw repeats, are what §9 and §12 measure.+}

### 4.1 One row per rule

{+**The ledger proposes; the writing stage accepts.** The ledger is a file outside the writing stage's store: the ground truth for incidents and diagnoses, and a non-authoritative store of learning proposals. Rule text becomes **accepted** only when the writing stage's gate returns a write receipt or a visible hold for it (J14 §5.4, receipts), and the row keeps that receipt beside its revision. It is not the finding paper's read ledger, which tracks what the context window already holds.+}

### 4.1 One row per rule

| Field | What it holds | Why it is there | |---|---|---| | ID and revision | Stable rule ID; a revision per change | Safe concurrent writes (§4.3) | | Statement, purpose | The rule in one sentence, and why the owner wants it | What to do; when it is obsolete | | Applies when / not when | Trigger and exception | Defines an eligible opportunity; keeps the rule narrow | | Evidence | Session-record addresses of the slips and corrections | Positive tests for a check; erasable at the source | | Home | Current rung, and the file or check that carries it | Where to look when it fails | | Incidents | Each action that broke the rule after it existed, with its [-rung-] {+rung, diagnosis+} and [-diagnosis-] {+exposure (§5.4)+} | Drives repair and promotion [-(§5.4)-] | | Receipts | [-Each-] {+The writing stage's receipt for each revision; each+} time its check fired, and what happened | [-Tells-] {+Accepted or not;+} a working check from a silent one | | Cost | Tokens per turn on rung 2; false alarms on rung 3 | Spends the attention budget (§7.1) | | Status | [-Provisional,-] {+Proposed, held, accepted, provisional,+} active, [-enforced, held,-] {+enforced (or degraded),+} dormant, retired, with approvals | The audit trail (§7.4) |

### 4.1 One row per rule

[-An **eligible opportunity** is an action where the rule's trigger holds: every reply to the owner, for the language rule. A check counts its own; for a text rule the auditor counts them in the session record. Violations per eligible opportunity, not raw repeats, are what §9 and §12 measure, because a rule that stops recurring may simply have stopped being needed.-]

### 4.1 One row per rule

[-The ledger is a file, and the file is the ground truth; any index over it can be rebuilt. It is not the finding paper's read ledger, which tracks what the context window already holds.-]

### 4.2 Incidents, not mentions

A climb is only as good as the count behind it, so the ledger counts [-**incidents**, and an incident's ID-] {+**incidents**. Two identities are kept apart. A **correction ID**+} is the [-session-record-] {+address of the owner's message plus the index of the owner span (J1 §4.2; c-1873/0, c-1873/1), so one message can carry several corrections, each with its own event. An **incident ID** is the+} address of the agent action that broke the rule. [-Every correction event names the owner's entry (its correction ID) and, when one can be found, the action it complains about.-] Inserting an incident is idempotent on the pair of rule ID and incident ID, so [-the fast path and the night pass can-] {+a slip seen by+} both [-see one correction and the second insert does nothing.-] {+paths counts once.+} A harmless restatement ("as I said, Finnish please", after a reply in Finnish) points at no broken action and is recorded as a mention: it says the rule matters to him and never moves it. An incident counts toward a repair only if the action came after the revision that should have prevented it.

### 4.2 Incidents, not mentions

**Matching is the hard part.** A recurrence counted as a new rule hides the climb; two rules merged into one produce a rule too broad to follow. Matching goes by meaning, through a small model that answers in typed [-choices, the same kind-] {+choices like+} the writing [-stage uses to-] {+stage's+} judge [-facts-] (J14 §6.3, the judge), with its own [-calibration. Deciding whether two sentences state one rule is a different task from deciding whether a fact replaces another,-] {+labelled sample, thresholds+} and {+an "unsure" band the auditor reviews that night, because+} its errors cost differently: a false "same" [-inflates a count and-] can promote a rule, a false "new" hides one. [-So matching has its own labelled sample, its own thresholds, and an "unsure" band the auditor reviews that night.-] *Same* adds an incident or a [-mention to the row;-] {+mention;+} *adds detail* sharpens [-its-] {+the+} statement or exception; *the owner changed the rule* writes a new revision, the old [-statement-] {+one+} kept, struck and dated; *conflicts* becomes a question in the morning report (§7.5); *new* opens a [-row. When the rule's text is later written into a file, it also passes the writing stage's gate, against that file's topic and the always-loaded rules.-] {+row.+}

### 4.3 Concurrent writes, isolated nights, and erasure

[-Every write to a row is a compare-and-swap on its revision, the commit the writing paper defines for facts (J14 §7.2, compare and swap). The fast path and the auditor never overwrite each other; the loser re-reads and retries, which is safe because insertion is idempotent. The auditor works on an isolated copy of the ledger and of the files it proposes to change, as Letta's background subagents do, and publishes only what passes the filters and approvals of §7.4.-]

### 4.3 Concurrent writes, isolated nights, and erasure

{+Every write to a row is a compare-and-swap on its revision (J14 §7.2, publish a snapshot, or nothing); the loser re-reads and retries, which is safe because insertion is idempotent. The auditor works on its own copy of the ledger and of the files it proposes to change, and records the erasure epoch it read; if the epoch has moved by publication time, it re-reads instead of publishing.+}

### 4.3 Concurrent writes, isolated nights, and erasure

Rows are never removed for [-age. They-] {+age; they+} are erased on request. The writing stage owns the deletion manifest [-across every derived artifact-] (J14 §7.7, erase and [-quarantine);-] {+quarantine) and the schema of dependency links (J14 §8.1, three fields and the links);+} this stage {+writes links for its own artifacts (each rule revision to its incidents and evidence, each fixture to its entries) and+} exposes one [-interface for its share.-] {+deletion interface.+} Given a record address or a subject, it {+follows the links, never a search, and+} returns a status [-for each place it holds:-] {+per place:+} evidence (kept as addresses, so the record's tombstone [-already-] hides the words; J1 §4.4, erase and quarantine); check fixtures copied from the record [-(removed; the check returns to the auditor as "tests incomplete");-] {+(removed);+} rule statements containing the erased words (rewritten or retired, which counts as the owner's own loosening, since he asked; a rule left with no evidence goes back to him); receipts; pending report items; the labelled history of §8.2; and past revisions of all of these. A place it cannot reach is named, never reported [-done. The night pass reads the record only through the tombstone-aware reader. Before a candidate becomes evidence, it calls the gate's suppression check, which answers only match or no match; the identity itself stays where only the gate can read it (J14 §7.7, erase and quarantine). So an erased correction cannot return as evidence the next night. Content flagged as an attack is quarantined instead: kept, marked untrusted, and never usable as evidence for a rule.-] {+done.+}

### 4.3 Concurrent writes, isolated nights, and erasure

{+A check whose positive fixtures are erased cannot be re-tested, so it enters a visible degraded state, *enforced, degraded: tests incomplete*, and runs its declared degraded action (§5.3), which the owner approved with the check, until he decides. It neither keeps acting on evidence that no longer exists nor switches itself off.+}

### 4.3 Concurrent writes, isolated nights, and erasure

{+The night pass reads the record only through the tombstone-aware reader and asks the gate's suppression check (held or clear, J14 §7.7) before a candidate becomes evidence, so an erased correction cannot return the next night. Content flagged as an attack is quarantined: kept, marked untrusted, never evidence.+}

### 5. The binding ladder

[-![The binding ladder. Each rung binds harder and costs more. A rule moves up only when the diagnosis of §5.4 finds it was in view, clear and uncontradicted, and still broken; it moves down only with the owner's approval.](images/fig2-ladder-v71.png){width=100%}-]

### 5.1 The four rungs

**Rung 1: task text.** A line in the skill or recipe file that loads when that kind of task runs. [-Owners ask for it by name ("save it in the recipe"), and for-] {+For+} most procedural lessons it is the right first home.

### 5.1 The four rungs

**Rung 2: always-loaded text.** A line in the file the agent reads on every turn. It is always [-in view,-] {+sent+} and [-it-] costs attention on every [-turn whether it matters there-] {+turn, needed+} or not.

### 5.1 The four rungs

Two status words of the series belong to this stage. A rule is **active** where it is loaded in the situation it governs: rung 1 while its task runs, rung 2 on every turn, a provisional line in its session. It is **enforced** when a check in the path carries [-it.-] {+it, and **enforced, degraded** while that check runs its fallback.+} A rung-0 note is retrievable, not [-active.-] {+active. The statuses are dimensions, not a chain: a provisional line is active before any stage has accepted it.+}

### 5.1 The four rungs

{+![The binding ladder. Each rung binds harder and costs more. A rule moves up only when the diagnosis of §5.4 finds it was known to be in view, clear and uncontradicted, and still broken; it moves down only with the owner's approval.](images/fig2-ladder-v72.png){width=100%}+}

### 5.2 Where a rule enters, and why it climbs one rung at a time

Each rung up lowers $p_k$ and raises $u_k$: on rung 2 the cost is attention, on rung 3 building and maintaining the check and the false alarms that block legitimate work. Most rules are taught once and never slip again, so a higher rung only adds cost. We do not know $p_k$ in advance, but an incident on a rung that was in [-force-] {+force, known to be in view+} and unobstructed is direct evidence that $p_k$ is high there. Climbing one rung per such incident pays the higher price only for rules that have shown they need it.

### 5.2 Where a rule enters, and why it climbs one rung at a time

Money is not what limits rung 2. In the series' notation (J2 §7.1, a read costs a turn) a cached token [-is read at-] {+costs+} $r$ times the base input price, [-with-] $r$ from 0.025 to [-0.1 on current models.-] {+0.1.+} A 40-token line read on an assumed 300 turns a day [-for 30 days-] is 360,000 cached tokens a [-month, or $360{,}000\,r$ base tokens;-] {+month;+} at the [-series'-] large-model price $\pi_\ell$ of \$4 per million input tokens [-(J2 §7.1),-] that is 4 to 14 [-cents a month.-] {+cents.+} The scarce resource is [-the model's-] attention (§1.2), so the budget of §7.1 is counted in lines and tokens.

### 5.3 What a check looks like

A check is deterministic wherever the slip is visible in the action itself: a command, a file path, a recipient, the format of a draft. Where the slip needs judgement (the language of a reply, an explanation pitched too high), the check is a small model that answers with a typed choice before the action goes out. Either way it writes a receipt every time it fires: what it saw, what it did, and whether the owner overrode [-it. Rewriting the action or asking one short question often serves the owner better than blocking.-] {+it.+}

### 5.3 What a check looks like

A check is built from the ledger's evidence: the recorded slips are its positive tests, and recent similar actions that went well are its negative tests. [-It must catch every recorded slip and stay silent on the negatives.-] It was built from those cases, so passing them proves little about new traffic. Before it may act, it runs in **shadow**, writing receipts on live actions without acting, for a week or 50 eligible opportunities, whichever is longer (proposed). Its false-alarm share [-there, on actions nobody used to build it,-] {+there+} is the number the owner approves on. A check against irreversible harm skips the shadow and asks the owner instead of blocking until it has a record.

### 5.3 What a check looks like

{+**Every check declares how it fails.** With its tests, a check carries a timeout and a **degraded action**, approved with it: ask (the default), block (the default for irreversible harm), or a named fallback such as a deterministic rule. A model check that times out, returns a choice outside its type or cannot be reached takes that action and writes a receipt marked degraded; so does a check whose tests can no longer run (§4.3). While degraded, the rule reports *enforced, degraded* and the morning report carries it as an alarm. The declaration matters because the default can be to pass: a Claude Code hook that times out lets the tool call through unless it is set to block on failure (Anthropic, 2026b).+}

### 5.4 When a rule recurs, ask why before climbing

| Why the rule failed | Repair | |---|---| {+| Exposure unknown: sent, unconfirmed by the window controller; or a response a provider's API compacted midway without a pause, recorded as unprotected (J1 §6.4, §7.4) | Repair or instrument delivery; never climb |+} | It was not loaded where the slip happened | Move it to a home that loads there | | Another line contradicted it | Narrow or remove that line, with the owner's approval (§7.4) | | It was too vague to act on | Rewrite it with its trigger and an example | | It was buried in a long file | Shorten the file; order it by harm (§7.1) | | [-It was loaded,-] {+Known to be in view,+} clear and uncontradicted, and still ignored | Climb one rung |

### 5.4 When a rule recurs, ask why before climbing

{+Each incident records the controller's knowledge level at the time of the slip, which the keeping stage writes on every receipt: **known input** when the runtime built the model's input, **sent, unconfirmed** when a provider's tool or API controls the window and may have compacted the rule away (J1 §6.6, the adapter contract). A slip in either case is never evidence for climbing.+}

### 5.4 When a rule recurs, ask why before climbing

[-In the opening story, the second slip came from a missing load and the third from a contradiction: the repairs were a move and a narrowing, and only a later slip with nothing else to blame would justify a check.-] A rule can also come down (Figure 2): a check whose receipts show false alarms or overrides, or a rule unused for months that never recurred. Every such move is a proposal until the owner approves it (§7.4). Nothing comes down for being old or long.

### 5.4 When a rule recurs, ask why before climbing

![Two speeds, on the correction of §1. The owner's sentence is stored as [-correction c-1873-] {+c-1873/0+} before the agent [-replies. After-] {+replies; after+} the answer, a reflection turn takes [-the event-] {+it+} from the queue once and [-records-] {+proposes+} rule R-42, {+held for approval and+} active for the [-rest of the session.-] {+session as a provisional line.+} At night the auditor works on its own [-copy of the ledger,-] {+copy,+} and the morning report carries its [-proposals to the owner.](images/fig3-speeds-v71.png){width=100%}-] {+proposals.](images/fig3-speeds-v72.png){width=100%}+}

### 6.1 The fast path

**A correction is stored before it is answered.** [-When-] {+Once+} the owner's turn is {+durably+} appended to the session [-record durably, with its owner_words and an address,-] {+record,+} before the model call that answers it, the correction is *captured* (J1 §4.6, when a turn is captured). In the same step, [-a sentence-] {+each owner span+} the classifier tags as a [-correction, in a session not flagged temporary,-] {+correction+} writes [-a correction-] {+its own+} event, keyed by its correction ID, to a durable [-queue.-] {+queue, and the span enters the per-turn tail of the session, verbatim, under the tail's budget (§7.4).+} A [-crash, a quota stop-] {+crash+} or [-a-] restart after that point loses [-nothing,-] {+nothing: on restart the fast path re-reads the record from its last queued address,+} and [-redelivery is harmless because-] every consumer is idempotent on the [-ID.-] {+ID, so each span is replayed once and two spans never merge.+} The reply [-then-] says only what is true: [-"noted, pending" is honest;-] {+"captured, acceptance pending", never+} "I'll remember [-that" is not, until a status says so. Until the event is processed, the owner's sentence rides verbatim in the per-turn tail of the session, so a second relevant request in the meantime sees it at the cost of its own tokens (J2 §7.4, where it goes).-] {+that".+}

### 6.1 The fast path

[-**A reflection turn runs after the answer.** Kept out of the task turn, it neither delays the answer nor competes with it. It takes events from the queue in order, reads the owner's words around each, sorts the correction by cause (§3.2) and matches it to the ledger (§4.2). The rule row is committed with a write receipt in the writing stage's format (J14 Appendix A.2, a write receipt), and the rule is *accepted*. The receipt triggers the finding stage's overlay of fresh writes, and the rule becomes *retrievable* only when the overlay acknowledges its ID and revision. Until then its status is "accepted, not yet retrievable" (J2 §8.2, becoming retrievable, Table 2). Writes to rungs 0 and 1 happen at once. A rule about every reply that the owner gave himself becomes a provisional line (§7.4), active for the rest of the session. Everything else becomes a proposal. The turn reports only the writes it can read back, so it can never claim a fix it did not make.-]

### 6.1 The fast path

{+**A reflection turn runs after the answer.** Kept out of the task turn, it neither delays the answer nor competes with it. It takes events in order, reads the owner's words around each, sorts the correction by cause (§3.2), matches it to the ledger (§4.2), and sends the result where it belongs: a supersede to the writing stage, a task, a repair or a routing record to its own file, a rule proposal to the writing stage's gate.+}

### 6.1 The fast path

{+**An event closes only on the next stage's durable acknowledgement.** The event is marked processed when its destination acknowledges the resulting state: a write receipt (*accepted*) or a visible hold from the writing stage, or a task or routing record read back. A pending receipt from a judge outage is not an acknowledgement (J14 §5.3, when something fails): the event stays open and its sentence stays in the tail. While its event is open, a correction in the tail overrides the stored fact it corrects, even one the finding stage still serves. The tail line leaves separately: when the finding stage's overlay acknowledges the item as *retrievable* (J2 §8.2, becoming retrievable), when a rule in force contradicts it (§7.3), or, for a universal rule held for approval, at approval or the session's end. Appendix B walks two corrections in one message through each of these.+}

### 6.2 The slow path: the nightly auditor

1. **Gather.** The ledger; the day's session records, temporary ones [-skipped (§3.1),-] {+skipped,+} read {+from the owner's own words+} for corrections the fast path missed, untagged entries and [-unprocessed events, from the owner's own words only;-] {+open events;+} the receipts of every check; the outcomes of scheduled jobs. 2. **Count.** Confirm unsure matches, merge duplicate rows, and insert incidents, idempotently. 3. **Decide.** Diagnose each new incident (§5.4) and pick the repair. Draft checks with their tests. Propose demotions where receipts show false alarms. 4. **Prune and report.** Propose removing from rung 2 only what a higher rung now carries (§7.2), and assemble the morning report (§7.5).

### 6.2 The slow path: the nightly auditor

[-Pruning comes last because it needs the night's decisions; run first, it could remove a rule the same night was about to pin. The auditor reads the ledger and the turns around each correction, not every transcript in full, so its input grows with the number of corrections, not with the day's traffic.-]

### 6.2 The slow path: the nightly auditor

[-The other night jobs belong to their own stages: the writing stage's consolidation of facts (J14 §4.2, the nightly pass) and the finding stage's index builds (J2 §8, built ahead, kept current). The report is assembled after they finish, so their holds reach the owner the same morning.-]

### 6.2 The slow path: the nightly auditor

{+The auditor reads the ledger and the turns around each correction, so its input grows with the corrections, not the day's traffic. The writing stage's nightly pass (J14 §4.2, what the nightly pass picks out) and the finding stage's index builds (J2 §8, built ahead, kept current) run first, so their holds reach the owner the same morning.+}

### 7.1 A budget measured in attention, and what happens when it is full

Pins can fill the budget, since some rules resist [-checking and may stay on rung 2 for good. When they do,-] {+checking. Then+} the file is **saturated**, and the design does not resolve it alone. Admission stops: the new rule stays a provisional line in [-its session-] {+the tail+} and is shown as held, budget full. The conflict goes to the owner [-in the morning report-] with the options it allows: load one pinned rule only where it applies (rung 1, when its trigger is narrow enough); grant an explicit budget exception of so many lines, recorded with its cost; approve a check for one pinned rule, which frees its line; or move a rule down himself. A pinned rule never leaves the file silently, because it is a rule the owner had to repeat.

### 7.2 Prune by binding

When a rule moves down, the finding stage indexes it as an owned asset (J2 §4.2, the asset index), with use keys cut from its trigger and from the slips in its evidence (J2 §5, four keys), and while its area is active a pointer to it stays in the index file, the always-loaded head of the store (J2 §4.3, the index file). The use keys are what find it [-again. The finding stage's guaranteed slot for a named item (J2 §6.4, a guaranteed slot) cannot, because-] {+again, since+} nobody names a rule he believes the agent already follows.

### 7.2 Prune by binding

[-Pruning by date or size looks safe because the archived rule can still be retrieved. But retrieval needs a cue, and a rule the agent no longer sees gives it none: the lesson is kept and still forgotten.-]

### 7.3 One voice

The rules every turn reads must not contradict each other. Every promotion to rung 2 runs the writing stage's contradiction check against the whole always-loaded set, and a clash is held for the owner (J14 §6.2, relations and outcomes); neither line wins by being newer. {+A provisional line that a rule in force contradicts is withdrawn from the tail and held.+} When [-that-] {+the+} check cannot run because its judge is down, changes to always-loaded lines stay [-held, as the writing stage's own failure rules require-] {+held+} (J14 §5.3, when something fails).

### 7.4 Approval, and who may loosen

Approval follows risk: what is cheap and undone in one step happens at once; what every turn reads, or what can block his work, waits for the [-owner.-] {+owner (Table 4).+}

### 7.4 Approval, and who may loosen

[-| From → to | Trigger | Decided by | Takes effect | |---|---|---|---| | none → rung 0 or 1 | A rule-gap correction | Fast path or auditor | At once; undone in one step | | none → provisional | The owner's own universal instruction | Fast path | At once, per-turn tail only; expires unless approved | | provisional → rung 2 (active) | Approval | Owner | Next session | | rung k → k+1 | Incident diagnosed "loaded, clear, still ignored" | Owner, for rungs 2 and 3 | Next session; a check after its shadow run | | none → check (enforced) | Irreversible harm, at the first correction | Owner | After approval; asks until then | | rung 3 → 2, or block → ask | False alarms or overrides in receipts | Proposal; owner | After approval; he may override any single action meanwhile | | rung 2 → 1 or 0 | A check carries it, or no trigger for two months and no incident ever | Proposal; owner | Next session | | any → held | Budget full, conflict, judge down | Automatic | Until the owner answers | | any → retired | Purpose or guarded tool gone | Proposal; owner | After approval; the row stays | | any → erased | The owner asks for erasure | Owner | At once; a status per place (§4.3) |-]

### 7.4 Approval, and who may loosen

[-: Every state a rule can be in, and who may move it. Tightening at rungs 0 and 1 is automatic; every loosening waits for the owner.-]

### 7.4 Approval, and who may loosen

The provisional line lets a universal rule taught in the morning work that afternoon. It rides in the per-turn tail, next to the owner's message, until he approves it; writing it into the always-loaded file would change a line he has not approved and move the cached [-prefix, so every later turn would pay to rewrite the rest-] {+prefix+} (J2 §7.4, where it [-goes). It is capped at a few lines, so it cannot grow into a second always-loaded file.-] {+goes).+}

### 7.4 Approval, and who may loosen

{+**The tail has a budget too** (we propose eight lines and 400 tokens). Owner sentences whose events are open, provisional universal rules and rules waiting on a saturated file compete for it, ranked by the harm of a slip (§7.1), the newer winning a tie. A line that does not fit displaces the lowest-ranked one, or stays out if it ranks lowest itself; a line about irreversible harm is never displaced. Nothing displaced is lost, since its event stays queued and its proposal in the ledger; it is only out of force this session, so the agent names it ("noted; not in force this session: too many pending rules") and the report lists it. A slip on a displaced line is diagnosed "not loaded", and its repair is the budget, which goes to the owner.+}

### 7.4 Approval, and who may loosen

Before the owner sees a proposal, it passes two filters. The first is deterministic and no model can override it (Wahi, 2026): [-the check's-] tests and shadow run pass, the budget holds, [-and-] the contradiction check finds nothing. The second is a doubt pass: a reviewer from [-a different-] {+another+} model family, in a fresh context, sees only the proposal, its evidence and the [-current-] always-loaded file, and argues against it. The model that writes to rungs 2 and 3 is the strongest available, [-and its quality is measured-] {+judged+} by how often its changes are [-later-] reverted.

### 7.4 Approval, and who may loosen

{+| From → to | Trigger | Decided by | Takes effect | |---|---|---|---| | none → rung 0 or 1 | A rule-gap correction | Proposed here; accepted by J14's gate | On its receipt; undone in one step | | none → provisional | The owner's own universal instruction | Fast path | At once, in the tail only; expires unless approved | | provisional → rung 2 (active) | Approval | Owner | Next session | | rung k → k+1 | Incident diagnosed "known to be in view, clear, still ignored" | Owner, for rungs 2 and 3 | Next session; a check after its shadow run | | none → check (enforced) | Irreversible harm, at the first correction | Owner | After approval; asks until then | | enforced → degraded | Timeout, invalid output, outage, tests erased | Automatic, to the declared action | At once; an alarm until fixed or decided | | rung 3 → 2, or block → ask | False alarms or overrides in receipts | Proposal; owner | After approval; he may override any action meanwhile | | rung 2 → 1 or 0 | A check carries it, or no trigger for two months and no incident ever | Proposal; owner | Next session | | any → held | Budget full, conflict, judge down | Automatic | Until the owner answers | | any → retired | Purpose or guarded tool gone | Proposal; owner | After approval; the row stays | | any → erased | The owner asks for erasure | Owner | At once; a status per place (§4.3) |+}

### 7.4 Approval, and who may loosen

{+: Every state a rule can be in, and who may move it. Tightening at rungs 0 and 1 is automatic once the gate accepts; every loosening waits for the owner, and a degraded check runs only a fallback he approved.+}

### 7.5 The morning report: one channel to the owner

Every memory stage sometimes needs the [-owner.-] {+owner, and one channel serves them all.+} This [-one-] {+stage+} asks for approvals. The finding stage shows the diff of each index file it publishes (J2 §4.3, the index file), whose lines that carry rules are this [-stage's and need approval.-] {+stage's.+} The writing stage brings [-the most: writes that clash with an always-loaded rule-] {+clashes+} and conflicts [-with no clear winner-] (J14 §6.2, relations and [-outcomes);-] {+outcomes),+} closures below its [-bar, kept as "possibly superseded" proposals-] {+bar+} (J14 §7.5, only a judge [-closes); the backlog of-] {+closes),+} its pending [-area-] {+backlog+} (J14 §5.3, when something [-fails);-] {+fails), incomplete+} erasures [-still marked "erase incomplete"-] (J14 §7.7, erase and [-quarantine);-] {+quarantine) and+} merge [-and-] {+or+} split proposals (J14 §9.2, one topic per [-file); nightly candidates past the per-topic cap (J14 §4.2, what the nightly pass picks out); and clashes found in the owner's own hand edits (J14 §5.2, every writer, one gate). One channel serves them all, so the owner is not asked from several places.-] {+file).+}

### 7.5 The morning report: one channel to the owner

Each item is one line: what is waiting, its evidence, and the answers it accepts. The answer goes back to the stage that raised [-the item,-] {+it,+} which applies it through its own path; the report never changes a file. Items are ordered by what waiting costs: alarms first (a missing receipt, §9.1; a {+degraded check, §5.3; a+} burst of [-closures that paused the writing stage's automatic closing,-] {+closures,+} J14 §7.6, closure alarms), then second incidents, {+displaced tail lines,+} holds on always-loaded lines, incomplete erasures, conflicts and the remaining proposals. The report is capped at about ten items, [-because it is-] paid for in the owner's minutes; what does not fit waits with its age shown, and an unanswered item never becomes a yes by expiring. A stage with nothing to ask says so in one line, and a night with no report is an alarm.

### 8.1 Procedures live in their recipe

Most lessons about how to do a task belong in the file that describes it, on rung 1. A correction that points at a step edits that step. [-A step that fails more often than the rest of its recipe is flagged, and its failure rate compared before and after on later runs.-] A recurring kind of task that the agent solves well is kept as a skill file, as Voyager keeps working procedures (Wang et al., 2023), found the way the finding stage finds any owned asset, and retired when its outcomes decay.

### 8.1 Procedures live in their recipe

Two guards keep procedure learning honest. [-Before a-] {+A+} lane [-runs, it checks that-] {+runs only if+} its input saw the work: the owner's turns in its [-input, divided by the owner's turns-] {+input over those+} in the session [-record,-] {+record+} must be close to one (we propose 0.9). And a strategy that fails three times in a day (proposed) switches to a hand-written fallback instead of receiving another [-patch, with its recovery time recorded.-] {+patch.+}

### 8.2 Texts that machines run on

The instructions of scheduled jobs and [-the short texts a-] {+of+} small [-classifier answers before an action are read by models on every run, and they-] {+classifiers+} can learn from outcomes too. Each is scored against the owner's labels, [-with-] environmental failures removed (§3.2); for the worst, a model drafts [-a few rewrites; a rewrite-] {+rewrites, and one+} is promoted only if it wins on the untouched evaluation stream and loses nothing on the regression suite [-(§9.2). This is-] {+(§9.2):+} the GEPA and DSPy family of optimisers (§2), pointed at one owner's [-real-] corrections.

### 9.1 A receipt for every run, and a zero means zero

This is [-one case of-] a [-rule the whole-] series [-follows,-] {+rule,+} stated here [-once;-] {+once and cited by+} the other [-three papers cite it. **A-] {+papers: **a+} zero means zero.** A count of [-none, an empty table or a quiet log-] {+none+} must mean that its producer ran and found nothing, and an empty result is [-a valid result.-] {+valid.+} A missing producer, a dropped event, a probe on a path the work never [-takes,-] {+takes+} or a tool never offered [-must read-] {+reads+} as "did not run", never as zero. So the alarm is never a zero [-count. It-] {+count; it+} is a missing receipt, or a {+missed+} **planted [-opportunity** that was missed:-] {+opportunity**:+} a known correction replayed through the path at a set interval, which the loop must find. The rule lives [-in this paper-] {+here+} because a false zero costs most in a loop that learns from what it observes: fed by a silent producer, it learns that nothing goes wrong. For the same reason a learner checks that its outcome field varies; if every row says "done", it flags itself as [-broken instead of reporting a confident estimate.-] {+broken.+}

### 9.2 Three streams, kept apart

[-Every-] {+Each+} learner [-here tunes something:-] {+here, from+} the classifier's operating [-points, the matcher's thresholds, a check's tests,-] {+points to+} a text's [-wording. Each-] {+wording,+} keeps three sets of cases apart: a **development replay** it may tune on, a **regression suite** it must always pass, and an **untouched evaluation stream**, the most recent weeks, that decides acceptance. The component that proposes a change never sees the evaluation stream's answers, following PROCTOR's frozen holdouts and roles that draft changes they cannot apply (Wahi, 2026). [-The stream-] {+It+} includes cases built to reveal [-leakage and false success,-] {+leakage,+} such as a slip whose [-correct-] answer the proposer [-has seen-] {+saw+} in development. For a check, the recorded slips are too few to hold out, which is why its acceptance number comes from the shadow run (§5.3). The writing and finding papers apply the same three-way split to their own learners.

### 9.3 Retiring a loop that stops paying

A loop past its point of diminishing returns should switch [-off. Each loop-] {+off, so each+} keeps an account in [-one unit,-] the owner's [-minutes, so gain and cost can be compared.-] {+minutes.+} **Gain** is the drop in violations per eligible opportunity on the rules it changed, measured against rules it has not [-yet-] treated (§12, test 2), times the eligible opportunities, times the minutes a re-teach costs him. **Cost** is the minutes he spends on the loop's report items, the minutes lost to false blocks and overrides, and its token spend converted at a rate he sets. When the gain stays below the cost for three weeks in a row (proposed), the loop goes dormant and says so in the report. A dormant loop wakes when a new kind of correction appears, his correction rate rises, or he asks.

### 9.3 Retiring a loop that stops paying

![A learning loop's account, with illustrative numbers in one unit. Its weekly gain falls as the rules it can fix get fixed, while its cost stays flat. After three weeks below cost it goes dormant; a new kind of correction wakes [-it. The shape, not the values, is the point.](images/fig4-retire-v71.png){width=82%}-] {+it.](images/fig4-retire-v71.png){width=82%}+}

### 10. One correction, start to finish

Back to the Monday of §1, [-under this design,-] with the status the agent may name at each step.

### 10. One correction, start to finish

The owner writes in [-Finnish-] {+Finnish, gets English,+} and [-gets English. He-] corrects it. His turn is appended to the session record [-durably, with its owner_words and an address,-] before the model call that answers it: *captured*. The same append queues the correction as [-c-1873. The agent answers-] {+c-1873/0 and puts his sentence+} in [-Finnish and says-] the [-correction is noted.-] {+tail.+} After the answer, the reflection turn sorts [-it-] {+the correction+} as a rule gap, finds no match, and [-opens rule-] {+proposes+} R-42: reply in the language of the owner's message, because he reads fastest in the language he chose, except in drafts for someone [-else, which follow that person's language. The row-] {+else. A rule about every reply+} is [-*accepted* and, as a-] {+an always-loaded line, so the writing stage holds it for the owner; the hold closes the event, and the+} provisional line [-in-] {+keeps R-42 *active* for+} the [-per-turn tail, *active*-] {+session. The agent may say: "held for your approval; applied+} for the rest of [-the session. Seconds later the finding stage's overlay acknowledges R-42@1, and only then is it *retrievable*. The next-] {+this session". Next+} morning he [-approves it,-] {+approves: the gate's receipt makes it *accepted*, the overlay's acknowledgement *retrievable*,+} and it loads on every turn from the next session.

### 10. One correction, start to finish

Ten days later the agent answers in English again. The reflection turn records an incident on R-42, keyed to that [-reply, and flags it.-] {+reply; the runtime built that turn's input, so the exposure is known input.+} That night the auditor [-diagnoses it:-] {+finds+} the [-line was loaded and clear, but-] {+cause:+} an older [-line-] {+always-loaded line,+} written for a scheduled [-job tells the agent-] {+job, says+} to answer in English. The repair is to scope that line to its [-job. That-] {+job; that+} changes an always-loaded line, so the [-morning-] report shows [-both lines;-] {+both, and+} he picks the scoped version. The rule does not climb.

### 10. One correction, start to finish

A month later it slips a third time, [-with the rule loaded,-] {+known to be in view,+} clear and unopposed. The auditor drafts a check: before a reply goes out, a small model compares its language with [-the language-] {+that+} of the owner's last message and rewrites on a [-mismatch.-] {+mismatch, with a two-second timeout and "send and flag" as its degraded action, since a reply in the wrong language can be undone.+} Its positive tests are the three [-recorded-] slips; its [-negatives are-] {+negatives,+} the last two hundred replies and the drafts [-for third parties that are-] meant to differ. It passes, runs a week in shadow with no false alarm, survives the doubt pass, and he approves it: [-the rule is-] *enforced*. [-Over the next weeks the-] {+The+} check {+then+} fires twice and rewrites twice, with no override, so the auditor proposes freeing the rung-2 line; he approves, and a pointer [-to the check-] stays in the index file (Figure 1). If [-the owner-] {+he+} ever has to say it again, the receipts show whether the check [-missed-] {+missed, never ran+} or [-never ran, and that is-] {+ran degraded:+} a new incident with a cause.

### 10. One correction, start to finish

[-**The same correction under failure** is the series' acceptance test, which this stage owns; Appendix B gives the cases.-]

### 10. One correction, start to finish

{+Appendix B runs the same machinery through every failure the four stages can meet at once.+}

### 11. Conclusions

An agent whose model cannot change learns through the texts and checks around [-it, and text alone binds weakly.-] {+it.+} This design treats the owner's corrections as labels, counts each broken rule once per incident, [-diagnoses why its current form failed,-] and repairs [-that cause;-] {+the cause of each slip;+} only a rule [-that was-] {+known to have been+} in view, clear and unopposed, and still [-broken,-] {+broken+} earns a stronger [-form, and only a tested check carries it out of the always-loaded file.-] {+form.+} The aim is [-still-] the cyclist's balance: a lesson taught once that then runs on its [-own, and a slip that is repaired instead of noted.-] {+own.+}

### 11. Conclusions

- **It is only as good as its correction detector.** [-A missed correction is a rule never written; a-] {+Misses and+} false [-one adds noise. Both-] {+alarms+} are {+both+} measurable (§12). - **Checks can be [-wrong.**-] {+wrong, or down.**+} A check that blocks useful work trades one [-kind of-] correction for [-another.-] {+another, and a degraded check protects only as well as its fallback.+} Shadow runs, [-receipts, overrides-] {+receipts+} and demotion bound the damage without removing it. - **Approvals cost the owner time.** If [-the-] proposals outgrow his mornings, the gate becomes the bottleneck it was built to protect. - **The cost model is unmeasured.** [-The-] {+Until the ledger estimates the+} $p_k$ of [-§5.2 are what the ledger will estimate; until then,-] {+§5.2,+} one rung per diagnosed incident is a reasoned default, not a fitted policy. - **Some rules resist checking,** such as "explain it more simply", and may stay on rung 2 for [-good, which is why saturation needs-] {+good (§7.1). - **An opaque window weakens diagnosis.** Where+} the [-owner (§7.1).-] {+controller cannot confirm what the model received, slips land in "exposure unknown" and the climb waits.+} - **Planted rules.** [-Only the owner's words can create a rule, and rungs 2 and 3 need his approval, but a-] {+A+} rule on rung 0 or 1 built from a [-correction he-] {+sentence the owner+} did not mean as [-one-] {+a correction+} can still mislead within its task. - **Models change.** [-A rule tuned to one model may be wrong for the next, so every-] {+Every+} model change replays the checks' tests and the rung-2 rules [-(Appendix B).-] {+before it serves.+} - **One owner.** The mechanisms should carry over to other owners; the particular rules will not.

### 12. Next steps

TinkerClaw, the agent harness this series designs for, will build [-this design-] and test [-it, and an updated-] {+this design; a later+} version of this paper will report [-what-] the [-tests found.-] {+results.+} Every test tunes on the development replay and decides on the untouched stream [-(§9.2). These are the tests that would settle what is not yet known:-] {+(§9.2).+}

### 12. Next steps

1. **Pilot.** Six rules the owner has [-already-] given more than once; three get a check, three stay as always-loaded text, for four weeks. [-Six rules-] {+It+} cannot show that the policy [-works; the pilot shows-] {+works, only+} that [-eligible-] opportunities, violations, owner minutes and false blocks can be counted. 2. **The ledger against today's [-alternatives.** Each recurring-] {+alternatives, in parallel arms.** A+} rule is assigned [-at random-] {+on the day it is corrected a second time, randomised in blocks by harm class+} to one [-arm:-] {+of four arms:+} always-loaded text only; scoped rules with a periodic owner-approved prompt audit, as Claude Code offers; checks the owner creates from the conversation when he chooses, as hookify offers; or this design. [-Rules enter this design at staggered, randomly ordered dates,-] {+Its treatment date, when its arm's mechanism first acts, is recorded separately, and its outcomes count from there. All arms run in the same calendar weeks,+} so [-each is its own control before its date and-] a model or workload change hits [-both sides.-] {+them together. Rules share one always-loaded file, so a repair in one arm (scoping a contradicting line, shortening the file) can help another arm's rules: every shared-file intervention is logged with the lines it touched, and the other arms' violations in the two weeks either side of it estimate the spillover.+} The [-outcome is-] {+main outcomes are+} violations per eligible opportunity, with the model and task mix [-recorded per opportunity, beside-] {+recorded, and+} owner minutes on approvals and false blocks. The design predicts fewer violations than the text and scoped-rule arms, at no more owner minutes than the hook arm. 3. **Why rules fail.** For every incident, record the diagnosis of [-§5.4;-] {+§5.4 and the exposure;+} the owner labels a sample blind. If [-"loaded,-] {+"known to be in view,+} clear and still ignored" is rare, most of the gain comes from moving and narrowing lines, not from checks. 4. [-**Durability-] {+**The reference trace** of Appendix B, on every build, with this stage's steps: 2 (one event per span, each replayed once after a restart, tail displacement), 3 (a ledger row is a proposal), 4 (events stay open on pending receipts; the deadline alarm; the tail governs), 7–8 (processed on the receipt, tail line dropped on the overlay's acknowledgement), 9 (withdrawn on a clash)+} and [-counting.** Restart-] {+11 (a status per place). The same harness runs the cases the trace does not walk: compaction right+} after [-the agent acknowledges-] a [-correction;-] {+correction,+} a [-second relevant request before the reflection finishes; one-] {+model change, a temporary session, a rule planted in a web page, a missing receipt. 5. **Counting.** One+} correction seen by both paths; a harmless restatement; a genuine later violation. Pass: [-no event lost,-] one incident for the violation, none for the duplicate or the restatement. [-5. **Saturation.** Fill the budget with pinned rules, then let-] {+6. **Budgets under load.** A queue backlog, three universal corrections in one session and+} a [-new universal rule recur.-] {+saturated always-loaded file, at once.+} Pass: no pinned rule [-leaves, a hold with its options reaches-] {+leaves; every displaced line is named to+} the [-owner,-] {+owner in the turn+} and {+in the report;+} nothing is [-dropped. 6.-] {+lost from the queue or the ledger. 7.+} **Pruning by binding against pruning by age,** over sixty days: violations per eligible opportunity of rules moved down by each policy. [-7.-] {+8.+} **Checks.** False-alarm share in shadow; then fires, true catches and owner overrides live. [-A check above-] {+Then cut+} a [-set false-alarm bar is proposed for demotion. 8.-] {+model check's provider immediately before an irreversible action. Pass: the declared action runs, the receipt says degraded, the rule reports "enforced, degraded", and the report raises an alarm. 9.+} **Correction detection.** Precision and recall of the shared classifier at each reader's operating point, on a hand-labelled sample, with and without the wrapper removed. [-9.-] {+10.+} **Erasure.** Erase a correction and run the night. Pass: every place of §4.3 reports a status, and probes by paraphrase find the erased words in no rule, fixture, receipt or rewritten text. [-10. **The series replay**-] {+Then erase the only positive fixture+} of [-Appendix B, on every build.-] {+an active check. Pass: it shows "tests incomplete" at once and runs its approved degraded action until the owner decides.+} 11. **Procedures and writers.** The input coverage of §8.1, the held-out win rate of promoted texts, and the revert rate of rung-2 edits per model. 12. **Weekly headline:** the owner's correction rate, and the rules he has repeated that no diagnosed repair has yet addressed.

### 12. Next steps

[-One further idea is worth trying:-] {+Worth trying too:+} a small model trained on the ledger's pairs of slip and correct [-behaviour to spot the next slip,-] {+behaviour,+} a rung-3 check made from the owner's own history.

### A.1 The owner-sentence classifier

| Part | Contract | [-|---|---|-] {+|-----|----------------------|+} | Input | The [-owner_words-] {+owner-authority spans+} of one appended [-entry-] {+entry, with the span addresses J1 assigns+} (J1 §4.1, [-what goes in), split into sentences, with-] {+§4.2), and+} the address of the agent turn it [-answers-] {+answers. Quoted spans are never sent, so never classified+} | | Output | [-Per sentence:-] {+For each span given:+} a label (instruction, correction, praise, none), a [-confidence, the sentence span-] {+confidence+} and the classifier version; for a correction, the address of the action it complains about when one can be found | | Readers | Keeping: keeps instructions and corrections word for word. Learning: queues corrections (§6.1). Writing: stamps facts told by the owner | | Calibration | One labelled sample; an operating point per reader. Keeping favours recall (a lost instruction is lost); learning favours precision (a false correction opens a row) | | Failure | Timeout or error: the entry is stored "untagged"; keeping treats every [-sentence-] {+owner span+} as an instruction; learning reads it at night; nothing reads "untagged" as "no correction" | | Change | A new model or threshold is a new version, passed on the regression suite before it serves (§9.2) |

### A.2 Worked records

```text correction_event [-c-1873-] {+c-1873/0+} # ID = [-address of the-] owner's entry {++ span index+} about_action: a-1872 # the reply in English queued: day 0, before the [-reply;-] {+reply+} deadline: end of session [-state: processed by the reflection turn, day 0-] {+or +30 min, whichever is first closed_by: W-2209, a visible hold (rung 2 awaits approval)+}

### A.2 Worked records

incident a-5120 # ID = address of the reply that broke R-42 rule: R-42 rev 1 reported_by: [-c-5121-] {+c-5121/0+} rung_at_time: 2 {+exposure: known input (the runtime built the window)+} diagnosis: contradicted by line L-7 (a scheduled-job rule) repair: L-7 scoped to its job; approved day [-11-] {+11 ```+}

### A.2 Worked records

{+```text+} rule R-42 rev 3 statement: reply in the language of the owner's message purpose: he reads fastest in the language he chose applies_when: every reply to the owner not_when: drafts for someone else follow that person's language evidence: a-1872, a-5120, a-9031 incidents: a-5120 (contradiction), a-9031 (ignored: climb) mentions: 1 {+receipts: rev 1 held day 0 (W-2209), accepted day 1 (W-2210)+} home: check K-9 since day 48; rung-2 line freed day 66 [-receipts: K-9-] {+check K-9: timeout 2 s; degraded action: send and flag+} fired 2, rewrote 2, overridden {+0, degraded+} 0 status: enforced ```

### A.3 The fast path in pseudocode

```text on_append(entry): # inside the keeping stage's append if entry.session.temporary: return # J1 §4.7: nothing kept {+spans = entry.owner_spans # J1 §4.1-4.2; quoted: never sent+} tags = [-classify(entry.owner_words)-] {+classify(spans)+} # A.1; "untagged" on failure for c in tags.corrections: # durable before the [-reply: queue.put_once(id=entry.address,-] {+reply cid = (entry.address, c.span) # correction ID = J1's span address queue.put_once(id=cid,+} about=c.about_action, [-deadline=end_of_session) tail.add_pending(c.sentence)-] {+deadline=min(end_of_session, now + 30 min)) tail.admit(cid, c.words)+} # [-verbatim until processed-] {+§7.4: may displace; owner told+}

### A.3 The fast path in pseudocode

[-reflect(event): # after the answer; at-least-once if ledger.processed(event.id): return cause = sort_by_cause(event) # §3.2 if cause != RULE_GAP: route(cause, event) # task, repair, J14 else: row = match(event) # §4.2; unsure -> night review if row.is_new: row.add_evidence(event.about_action) elif event.about_action and after(event.about_action, row.revision): ledger.insert_incident(row.id, event.about_action) else: ledger.add_mention(row.id, event.id) write rungs 0-1 now; propose the rest # compare-and-swap emit write receipt # J14 A.2; triggers the overlay read back each write ledger.mark_processed(event.id); tail.remove_pending(event.id) ```-]

### Appendix B. The correction's journey under failure

[-## Appendix B. The correction's journey under failure-]

### Appendix B. The correction's journey under failure

[-The series acceptance test: one correction, with one ID, replayed through each case below. A case passes when every transition completes or stops in the named state, and no stage reports success because it handed work to another.-]

### Appendix B. The correction's journey under failure

[-| Case | What must happen | What the agent may say | |---|---|---| | The append fails, or a crash comes before capture | No correction event exists yet; the turn shows as not captured and is retried from memory, recovered on restart, or reported lost (J1 §4.6, when a turn is captured; J1 tests T8 to T10) | "Not captured"; then "captured" or "lost", never "noted" | | Compaction right after the correction | The owner's sentence survives word for word (J1 §5.2, word for word or a pointer); the queued event and the pending tail line are untouched | "Noted, pending" until processed | | The writing stage's judge is down | The ledger row commits and is accepted; a rung-0 note waits in the pending area, unchecked; a change to an always-loaded line stays held (J14 §5.3, when something fails, Table 1); the provisional line still rides in the tail | "Rule accepted; the note is pending; the file change is held" | | Restart after the reply, before the reflection | The event survives; the reflection runs on restart, once; the overlay is replayed from the write receipts (J2 §8.2, Table 2) | "Pending" until processed; then the status reached | | A second relevant request before the reflection | The pending sentence in the tail governs the reply | "Pending; applied from your words" | | Concurrent writers (both paths, or two sessions) | Compare-and-swap on the row; one incident | One row, one incident | | The overlay append fails | The finding stage retries; the rule row stays queued with its write receipt (J2 §8.2, becoming retrievable, Table 2) | "Accepted, not yet retrievable" | | A re-index by the finding stage | The rule stays findable through the fresh-writes overlay until the build includes it (J2 §8.2, Table 2) | "Retrievable" throughout | | A model change | Checks' tests and rung-2 rules replayed on the new model before it serves; failures go to the morning report | Statuses stand unless a replay fails | | Privacy erasure | Every place of §4.3 reports a status; the next night cannot rebuild the correction | "Erased", or the places still pending, by name | | A rule planted in a web page or another agent's text | Not owner_words, so never a correction; quarantined if flagged as an attack | Nothing learned | | A temporary session | No correction event, incident, mention or evidence; the record is deleted when the session ends (J1 §4.7, sessions that are never kept) | "Not kept: this session is temporary" | | A loop's receipt is missing | Alarm at the top of the morning report | "Did not report", never "nothing to say" |-]

### Appendix B. The correction's journey under failure

[-: The replay matrix.-]

### A.3 The fast path in pseudocode

{+on_restart(): # rebuild events lost in a crash for entry in record.since(queue.last_address): on_append(entry)+}

### A.3 The fast path in pseudocode

{+reflect(event): # after the answer; at-least-once if ledger.processed(event.id): return cause = sort_by_cause(event) # §3.2 if cause != RULE_GAP: ack = route(cause, event) # J14 supersede, task, routing else: row = match(event) # §4.2; unsure -> night review record new row, incident (idempotent) or mention # swap on rev ack = gate.submit(row.proposal) # J14: receipt, pending, hold if ack.durable: # accepted, visible hold, record ledger.mark_processed(event.id, ack) # pending is not durable: event and tail line stay; deadline runs+}

### A.3 The fast path in pseudocode

{+on_ack(ack): # tail lines leave only on these if ack.retrievable: tail.remove(ack.cid) # J2 overlay if ack.clash: tail.withdraw(ack.cid) # §7.3; held # a held universal rule keeps its line until approval or session end ```+}

### Appendix B. The reference trace

{+## Appendix B. The reference trace+}

### Appendix B. The reference trace

{+The series' executable contract: for one adversarial journey it fixes what each stage stores, which acknowledgement lets the stage before it close its work, and the only words the agent may say. The other three papers cite its step numbers. One owner message, s1012#204, holds two corrections: /0, "Ada's mobile is now +44 7700 900 123, not the old one" (old fact F-0412@1), and /1, "from now on, copy me on every supplier draft". The write judge is down. While the proposals wait, the owner edits always-loaded rule R-15 by hand. The judge returns. Later he erases /0 while an older index build runs, and a narrower subagent asks by name for both items. Snapshots are S-n; the erasure epoch starts at E7; W-n are write receipts, O-1 an overlay receipt, D-1 a deletion receipt; the live index B-54 was built from S-100 at E7. Statuses are dimensions: R-43 is active in the tail from step 2 to step 9 and never retrievable as a rule in force.+}

### Appendix B. The reference trace

{+**Where it must end.** The record holds #204/0 as a tombstone and #204/1 intact. F-0587 is a tombstone, F-0412@1–2 superseded, nothing pending for /0. The ledger holds R-15@4 and R-43@1 held, events /0 (address only) and /1 processed; the tail is empty; the always-loaded file holds R-15@4, no R-43. B-54 serves and never held F-0587. Receipts carry IDs and addresses only. Ada's key is rotated, plaintext backups are listed in D-1, a restore replays erasures to E8 before anything is readable, and a later write carrying the number is held. The subagent sees R-43 as a hold and nothing about the mobile.+}

### Appendix B. The reference trace

{+| # | Stage | What happens, what is stored | Closes on | Agent may say; failure branch | |--|----|-------------------|--------|-----------------| | 1 | J1 | Entry #204 appended: owner_words, a classifier tag per owner span; a quoted span (e.g. a pasted "ignore the previous rule") gets no tag and never yields a correction event; not temporary, no prohibited class | Durable flush with address, before the model call | Nothing, then "captured". Append fails: "not captured", retry; crash: reconcile by sequence map, or "lost" | | 2 | J5 | Events /0 and /1 queued, one per span (put_once on the correction ID); both sentences admitted to the tail, displacing its lowest-harm line if full, owner told | Queue durable before the reply | "Captured, acceptance pending". Restart between the two: both rebuilt from the record by on_restart(), which re-reads from the last queued address (A.3), each replayed once, never merged | | 3 | J5 | /0 a wrong fact, routed to J14 as a supersede of F-0412. /1 a rule gap: R-43@1 in the ledger, a proposal for rung 1 (the supplier-drafts recipe), evidence #204/1 | Nothing; both events open | Same. Calling the ledger row "accepted" is a defect | | 4 | J14 | Judge down. Read set S-101: contacts.md@41, supplier-drafts.md@12, R-15@3, E7. New number F-0587 to the pending area (W-1); closure of F-0412 held, old fact live (W-2); R-43's line pending (W-3) | Pending receipts are not acceptance: J5 keeps both events and tail lines | Same. Past J5's deadline: alarm in the report. A request meanwhile: the tail sentence governs, not F-0412; pull shows the pending line "unchecked", push never | | 5 | J14, J5 | Owner edits R-15 in s1013: R-15@4 "supplier drafts from the sales address, nobody in copy", applied unchecked (W-4); ledger R-15 rev 4, rev 3 struck; S-102 | W-4 | In s1013: "accepted, unchecked until the judge returns". A racing write loses the swap and re-reads | | 6 | J14 | Judge returns with a verdict on S-101: discarded (R-15 moved 3→4); judgement and policy rerun on S-102 for W-1 to W-3 | Nothing | Nothing new. Publishing the S-101 verdict, which would commit R-43 beside a rule that forbids it, is a defect | | 7 | J14 | F-0587@1 accepted (owner's words allow auto-close); F-0412@2 superseded; S-103; W-5 names S-102, S-103, E7 and /0; links from both revisions to #204/0 | W-5: J5 marks /0 processed | "Accepted, not yet retrievable". Swap on the read set of S-102 (contacts.md@41, R-15@4, the scope and quarantine marks) and E7, three tries, then held; epoch moved: refuse, re-read, re-judge | | 8 | J2 | Overlay rows F-0587@1 and F-0412@2; the revision map (J2 §8.2) hides F-0412@1 in B-54; scope from the source (owner-private, topic suppliers); O-1 keyed by W-5 | O-1: J5 drops the /0 tail line | "Retrievable". Append fails: retry; the tail line stays | | 9 | J14, J5, J2 | R-43's line held: clashes with R-15@4 (W-6), one report item. J5: /1 processed, R-43@1 held, tail line withdrawn. J2: R-43 recorded as a hold | W-6 (a visible hold) | "Held for your approval: clashes with R-15". No report next morning: alarm | | 10 | J2 | Night build B-55 starts; manifest S-103, E7, encoder, schema | Nothing | Nothing | | 11 | J14; J1, J2, J5 report | Owner erases /0. Epoch E7→E8 first; D-1 from the links of #204/0. J14: F-0587 tombstoned; F-0412@2 stays superseded, never reopens; W-1 line and W-2 hold dropped; the number's keyed hash joins the suppression identity. J1: span 0 redacted, span 1 kept, markers rebuilt, tail copies in the controller transcript redacted, window rebuilt with an eviction event, provider copy named. J2: overlay rows, use keys and the read-ledger range dropped. J5: event /0 kept as an address only | Each place: done, not present, or out of reach (named) | "Erase incomplete", then "all reachable copies removed; not reachable:" and the names. A place that cannot report stays "erase incomplete" in the report | | 12 | J2 | B-55 finishes: swap refused (E7 ≠ E8), discarded; B-54 and the overlay serve; B-56 due from S-104 at E8 | J2's D-1 row closes after the refusal | Nothing. Swapping anyway is a defect; the revision map (J2 §8.2) must still hide F-0587 | | 13 | J2 | Subagent s1012.sa3 (topic suppliers; no audit, no show-hidden) names "Ada's mobile" and R-43. Filtered read service only; named items pass authorisation → quarantine and privacy → temporal visibility before slots; the pull receipt names S-104, E8 and counts | Nothing | If asked: R-43 "held for your approval". Nothing for F-0587 (no entry, pointer, tombstone or count; the count goes to the receipt, readable only with audit permission; a show-hidden reader sees only the count of J2's filter step 3, J2 §8.1); F-0412 hidden. Anything else is a defect |+}

### Appendix B. The reference trace

{+: The reference trace, step by step.+}

### Appendix B. The reference trace

_J-series paper J5 | Version [-7.1-] {+7.2+} | 2026-10-12_
