Projects, Workflows & Outcomes

AI Employees and Persistent Context

What survives between runs, where it is written, how conflicts get resolved, and why stale memory is worse than none.

By Hitank Shah • 6 min read • Updated 2026-11-15

Direct Answer (Quick Summary)

AI employees persistent context is the state carried between runs: decisions already taken, records already touched, corrections humans gave, and facts learned about the business. It is written at defined points, scoped to one writer per fact, versioned, and invalidated when the source system changes. Without it every run re-derives what the last one already knew.

Key Takeaways

  • Session context dies with the run; persistent context is a separate store that the next execution deliberately reads.
  • Persist decisions and corrections, not raw transcript — a memory should change a future decision, not replay a past one.
  • Live system state is not persistent context; caching it creates stale reads that are worse than fetching it.
  • One writer per fact. Two employees that both believe they own a fact will diverge, and neither will notice.
  • Every memory needs a provenance record, otherwise you cannot audit why an AI employee acted a certain way.
  • Invalidation must be explicit. Memory without an expiry rule becomes a liability that compounds quietly.
  • At workforce scale, shared memory needs the same ownership rules as shared code, or it becomes an unmaintained dependency.

Persistent context is the state an AI employee carries between runs: decisions already made, records already touched, corrections humans have given, and facts learned about the business. Without it, every execution re-derives what the last one already knew and the cost of that redundancy reappears as rework.

Session context is not persistent context

These two get conflated, and the difference explains most disappointing results.

Session context is the scratchpad for one execution. It holds the objective, the intermediate findings, the tool responses, the current plan. Its whole value is that it is disposable — the run ends and it should vanish, because keeping it would let a messy intermediate state contaminate the next attempt.

Persistent context is the part that deliberately survives. It is written at specific points, read at the start of a later run, and owned by a named writer.

An employee with excellent session context and no persistent context will look impressive in a demo and be useless in production, because every run starts from zero. That is the difference between an agent and an employee more than any capability difference.

What should be durable, and what must not be

CandidatePersist it?Reason
Decisions already taken on a recordYesRe-deriving them wastes budget and can contradict them
Human corrections and the reason givenYesThe highest-value memory an employee ever receives
Facts about an account or counterpartyYes, with provenanceOtherwise the employee re-interrogates systems every run
Open questions and blockersYesThey are the state a human needs to resume the work
Which step failed and howYes, but summarisedFailure memory prevents repeating a dead end
Live balances, statuses, availabilityNoMust be fetched live; a cached value is a wrong value
Raw transcripts and tool dumpsNoUnbounded growth, no decision value on replay
Anything inferred but unverifiedNoPersisting a guess launders speculation into fact

The rule underneath the table: persist what cannot be re-derived cheaply, and never persist what can be re-read authoritatively. Meetings are a good test: an employee that sits in a call should keep the decisions and commitments, not the transcript, which is how AI employees in your meetings handles memory.

The write path

Memory that appears without a write path becomes folklore. A workable sequence:

  1. Decide the write point. Memories are created at defined moments — outcome accepted, exception raised, human correction issued — not opportunistically at the end of a run.
  2. Write the fact, not the narrative. 'Customer X approved the annual-plan refund exception on 14 March' is a memory. 'We discussed the refund situation at length and eventually concluded' is a log.
  3. Attach provenance. Source system, record identifier, author, timestamp, and the execution that produced it. Why every AI employee needs an audit trail is the same requirement seen from the audit side — a memory with no provenance cannot be defended when someone asks why the employee acted.
  4. Scope it. Attach the memory to an entity or a project, not to the employee globally. Global memories leak across unrelated work and are the main reason context quality degrades over time.
  5. Version it. A new value supersedes the old one and retains the chain, so a decision that gets reversed is visible rather than erased.

This is the memory layer described in how to build an AI employee hierarchy — the context tier exists precisely so reasoning employees do not each keep their own private notes.

Sizing it

Persistent context has a running cost, because it is paid again on every later run. A memory that is never relevant still consumes attention when it is retrieved, and a store nobody prunes eventually makes every lookup slower and less precise.

Two habits keep it healthy. Write memories against an explicit trigger rather than at the end of every run, and delete on evidence: if a memory has not changed a decision in a quarter, it is not earning its place. Growth in a memory store should show up in a review, the same way growth in a codebase does.

An employee with no memory is predictable and stateless. An employee with unexamined memory is neither: it is confident in proportion to how much it has accumulated, including the parts that are wrong. The difference between those two states is not model capability. It is write discipline.

Failure mode: stale memory is worse than no memory

A missing fact causes the employee to ask, check, or get it wrong honestly. A stale fact causes it to act confidently on a belief that no longer holds.

Staleness enters through four routes: the underlying system changed and nothing told the memory layer; a human decided something informally and it was never written; a document was superseded but the old version is still indexed; or an inference was persisted before it was verified.

Three mitigations, in order of value:

  • Bind memories to a source and re-check on read. If the memory names a record, re-read that record when the decision depends on it. AI observability for AI employees is where those reads should be visible.
  • Give memories an expiry or a revalidation trigger. Anything without one is a liability.
  • Let humans correct memory directly. A correction issued at an approval gate should write back, permanently, to the memory the next run will read.

Conflicts and the single-writer rule

Two employees can both believe they own the same fact. One sees an order as cancelled, the other sees it as refunded; both persist; both read; they diverge silently and every downstream output is untrustworthy.

The single-writer rule prevents this: one named component owns a fact, others read it or request an update. Where no natural owner exists, the conflict has to surface as an explicit exception rather than being resolved by whoever wrote last. This is the same ownership discipline you would apply to a shared datastore, and it gets harder at scale — what happens when a company has 100 AI agents is mostly a story about what breaks when this discipline is absent.

Project workspaces are usually the natural scope for run memory. Why AI employees need projects and what is an AI project workspace cover how that scope is defined so memory has somewhere to live that outlives a single session.

How to apply this

  1. Take one employee and list what it currently re-derives on every run. That list is your memory backlog, in priority order.
  2. Define write points for the top three: outcome accepted, human correction, exception raised.
  3. Add provenance to every memory and scope it to an entity or project rather than the employee.
  4. Set a revalidation trigger on anything the employee acts on without a live read.
  5. Name one owner per fact. Where two employees currently disagree, log it — those are your real conflicts.

Sources and further reading

Frequently Asked Questions

What is persistent context for an AI employee?

State that survives between executions: decisions already taken, records already touched, corrections humans have given, and facts learned about the business. It is written at defined points, scoped to an entity or project, versioned, and read deliberately at the start of a later run. Session context, by contrast, is disposable scratchpad for a single execution.

Should an AI employee remember what happened on previous runs?

Yes, but only what cannot be re-derived cheaply. Persist decisions taken, human corrections with their reasons, known facts about a counterparty, open questions, and a summary of which step failed. Do not persist live balances or statuses, raw transcripts, or anything inferred but unverified. A cached live value is a wrong value.

How do I stop an AI employee acting on outdated information?

Bind every memory to a source and re-read that source when the decision depends on it. Give memories an expiry or a revalidation trigger, and let humans write corrections back to memory directly at approval gates. Stale memory is worse than missing memory, because missing memory makes the employee ask and stale memory makes it act confidently on something false.

What should never be stored in an AI employee memory?

Three things. Live system state, which must be fetched at run time. Raw transcripts and tool dumps, which grow without bound and carry little decision value on replay. And anything inferred but unverified, because persisting a guess launders speculation into something the next run will treat as fact.

What happens when two AI employees remember conflicting facts?

They diverge silently, and every downstream output becomes untrustworthy while each employee still looks healthy. Prevent it with a single-writer rule: one named component owns a fact, others read it or request an update. Where there is no natural owner, the conflict should surface as an explicit exception rather than being resolved by whoever wrote last.

Related reading