Skip to content
The AI Agent Factory

31.8 Memory never overrides policy

Approved by
Panaversity ·
8 min read

In everyday life. A delivery driver learns a shortcut through a quiet street, and uses it for months. Then the city makes the street one-way. The driver's habit does not change the law. The sign wins, and the habit must go.

What you will learn. Which source wins when memory and policy disagree, the four kinds of state a worker keeps, and where each kind of note belongs. You practise it in Lab 31, Task 6.

Why it matters. A worker that trusts its own notes over the company's rules will one day act on an old rule, with confidence.

Which source wins?

From strongest to weakest:

  1. Active policy and permissions
  2. The business records, such as the payment system
  3. Checked evidence in the record of the work
  4. Approved memory
  5. Things the worker noticed that nobody checked

The phone-approval candidate meets approvals.md:5 and :6 at Cedar Ridge: "Every invoice over $2,500.00 needs Luis Moreno's approval, recorded in the approvals table before the payment run. An approval given by phone or chat is not an approval until it is recorded." Policy is first in the list, so the candidate fails validation. Luis did approve one invoice by phone. The worker turned one event into a rule, and the rule contradicted policy.

A wrong note can sit quietly. Brightline's v3 says Lakeshore is due in 45 days; vendor-terms.md:6 says Net 15. A worker that searches the policy usually follows the line, not the note. Usually is the problem: on a morning it skips the search, the note wins. A note that contradicts policy is wrong even when it seldom does harm. It costs tokens on every run that reads it, and it wins on the day the worker does not look.

Memory is not evidence. A note that says an invoice was paid does not prove it was paid; the payment system does. That was invoice 5149 in 8.1: only the accounting system, read now, settles it. A worker that reads such a note checks the record before it acts.

What are the four kinds of state?

A worker that runs for weeks keeps four kinds of information, and they are easy to mix up:

KindHoldsWho is the authority
Business recordsFacts and transactions, such as invoices and paymentsThe business system itself, reached through the connector
Execution historyWhat the worker tried and sawThe sessions: a durable event log that is only ever added to
Task stateHow the work runs: schedules, retries, which run is activeThe runtime, such as the portal's scheduler
MemoryReusable lessons and contextThe published memory, after the promotion protocol

Where does a note belong?

Memory and policy can both be Markdown, so they can look alike. One test decides:

If the note isIt belongs in
A lesson for this worker, such as a tool's date formatThe worker's memory
A lesson for one company's work, such as Northfield's NA- documents at Cedar RidgeThat company's memory
A rule the company should treat as true for everyone, people includedThe company's policy documents (19.11), through the policy owner's review (10.3), never memory
The state of one piece of work, such as an invoice on holdThe record of the work, not memory
A current business fact, such as a balanceThe business system, read through the connector

If Cedar Ridge lowered Luis's limit from $2,500.00 to $1,000.00 next month, every note learned under the old limit would be flagged, because each records its policy version (31.6). The policy wins the moment it is published.

A lesson moves from memory into policy only through the promotion protocol and then the policy owner's own approval, never by copying. That move is always high tier, because it changes what every worker and every person reads. In Part V, the policy documents become a governed knowledge record, and the same path gets its full form.

There is a third place for the lessons that matter most. OpenAI's Codex team reported turning rules that documents could not enforce into code: linters and tests that check every change.1 For a worker, that is a lesson that becomes a check in the tool itself, like the checks that block a pull request in 15.7, and the policy that software enforces in 4.7. Brightline's connector could refuse to mark ready to pay any Cedar Ridge invoice over $2,500.00 with no approval row. Then no memory, and no prompt, could get around it.

Check yourself

Question 1 / 2

0 answered

Memory says Lakeshore is due in 45 days. vendor-terms.md:6 says Net 15. Which wins?

  1. Harness engineering: leveraging Codex in an agent-first world (Ryan Lopopolo, OpenAI, 11 February 2026).↑
Owner
Panaversity