An IT operations agent is working an incident: a customer-facing service has been slow since the morning. It reads the last hour of logs, sees a burst of connection-pool timeouts, and writes in its notes: "likely cause, pool size too small after yesterday's config change." It is a reasonable first guess. The agent goes on to check three other things, the session crosses a compaction, and the summary keeps the line about the pool. By the afternoon the incident ticket says "root cause: connection pool sizing", the fix is a config rollback, and the slowness continues. The pool timeouts were a symptom. The guess was never wrong as a guess. It became wrong when it outlived the step it was made for and was read as a conclusion.

Thesis: Working context is everything one agent holds for its next step: tool results, scratch reasoning, the files it has read, its guesses. It has no authority beyond that step. Rederive it from the source when it is needed again, write down what must cross a boundary before the boundary arrives, promote a note to another agent or to the work's direction only on purpose and with its evidence, and let the rest go. Context that stays alive has to let most of itself die.


Shared State Needs One Writer settled what may pass between agents: decisions and references, never one agent's working context. This chapter takes that working context on its own, the last of the four kinds of context: what it holds, why every stored copy of it is ephemeral, and the only routes out of it. Four Kinds of Context sketched this incident in a few sentences; here it is told with more detail and followed through. The incident, its service and its queries are invented for the example; the compaction counts are from my own records.

What Working Context Holds

Four Kinds of Context called working context the largest kind by volume and the smallest by authority. In a long agent session it is most of the history, and it comes in three forms.

  • Tool results. The file read, the query output, the log lines, the API response.
  • Scratch reasoning. The agent's own notes, its plan for the next few calls, its hypotheses.
  • Intermediate artefacts. Draft text, partial diffs, the list it is working through.

None of it binds anything. A tool result is evidence about the world when it was fetched; a guess is only a guess; a plan covers the calls it was made for.

The durability tiers in my notes from August, which Direction Is Not Law used for goals and decisions, have a third tier below both: ephemeral, with a time to live of zero and the reader's obligation "must rederive, act amnesic". I listed state, tasks, messages and events in it, not working context by name; placing working context there is my mapping now, because everything in it is a fact about a moment. In practice the obligation means treating a stored copy as a pointer to the artifact, and going to read the artifact.

A Stored Copy Goes Stale the Moment It Is Taken

A tool result describes the world at one instant. Every later call carries that instant forward as if it were now.

The smallest case is the agent's own work. It reads a file at step 3 and edits it at step 20. From step 20 on, the step-3 read describes a file that no longer exists, and every later call still carries it, with the same standing as the edit. The same is true of everything an agent reads from a live system: the ticket status, the row count, the config value. What Context Engineering Means calls this failure stale: "The fact is in the window and no longer true." The model cannot tell a stale fact from a live one, because both are text. The defence is a rule: working context is read again from its source when it matters again, not trusted from the copy.

Trust the copy Rederive from the source
What the next step reads The tool result from an hour ago The file, ticket or record now
Cost Nothing extra this call One more tool call
Failure Acts on a state that has moved Pays a round trip it may not have needed
When it is right The source cannot have changed: an immutable id, a released version Anything that can change

Write It Down Before the Boundary

Working context is disposable; some of what it produced is not. A path the next step must edit, an id the work cites, a finding confirmed with evidence, an open obligation such as a watcher left running or a follow-up promised to someone: these outlive the step, and they cannot be left in the history to be rescued later.

What Compaction Actually Destroys measured why. One live session kept 5 of its 101 file paths across a compaction boundary, and on a test fixture a prose instruction that lifted decisions to 100% moved planted citations not at all (0 of 15). Much of the prose survives the boundary and almost none of the identifiers do, so anything that must cross has to be written down before the boundary, not recovered from the summary after. The Files Are the Memory takes the rule to its end: disk is memory, context is scratch.

The session plugin I built keeps those exact references in its written record (the objective, the decisions in force, the decisions superseded, the references the work rests on), outside the conversation, and puts the record back in front of the agent after a compaction, normally with a note that the record, not the summary, is authoritative. Offering the record to the summariser is not enough: across 23 compactions in my own sessions, the summaries together named fewer than half of the decisions in force, a count of decision ids, not of what the agent did next; Compaction at the Pivot has the numbers and their limits. The conclusion is the same as for working context itself: after a boundary, read the record, not the summary of it.

Promotion Is the Only Way Out

The failure in the opening was not that the agent guessed. It was that the guess left working context without anyone deciding it should.

There are three routes out of working context, and each should be a deliberate act. Four Kinds of Context drew the first two as its promotion figure; the third keeps a note across sessions.

  • To coordination, when another agent needs it: as a finding with its evidence, appended by the agent that found it. Shared State Needs One Writer covers who may write it.
  • To direction, when it changes what the work is for: as a proposal the owner of the work ratifies. An agent's conclusion about the objective is a working note until then (Direction Is Not Law).
  • To durable memory, when it is worth keeping across sessions. The Three-Tier Context System gives the ladder: "Insights → decisions → docs → rules", each step earned.

Without those routes, working context leaks by default, and compaction is the usual vehicle. When Context Turns Against You ranks a summary below the record: "A summary is derived, never authoritative." When the summary is the only place a hypothesis was written down, the hypothesis arrives on the other side of the boundary stripped of its "likely", reading like a fact. That is what happened to the pool.

Let the Rest Go

Everything that is neither promoted nor written down should leave, and leaving is a feature, not a loss. A tool result the model has read and can fetch again is cost on every later call and a stale copy waiting to be trusted. How an Agent Builds Its Context lists the levers that do the discarding: clearing old tool results, compaction, and subagents, which keep a whole branch of exploration out of the parent's history and hand back only a summary.

The order matters. Write down what must cross, promote what others need, then discard. Discard first and the identifiers go with the noise; never discard and the window fills with copies of a world that has moved on.

An Enterprise Illustration

Back to the incident. Typed as working context, the agent's session runs differently.

The log lines it read stay in its window and nowhere else. The hypothesis goes in its scratch notes, labelled as a hypothesis, with what would confirm it: "pool size: check whether timeouts precede or follow the latency rise." When the agent checks and finds the latency rise comes first, it drops the hypothesis; the note never reaches anyone.

What must cross the boundary is written to the incident record before the compaction, not after: the service name, the time window, the dashboards and log queries by their exact ids, the two causes ruled out and the evidence for each. The ticket's root-cause field is written only when a finding is confirmed, by the agent that confirmed it, with the query that shows it. After the compaction the agent re-reads the incident record and the current dashboards, not its own summary of them, and the old log lines are gone from the window, as they should be.

When the Opposite Wins

Rederiving has a price. Every re-read is a tool call, with its latency and tokens, and for a source that has not changed it buys nothing. Prompt caching makes resending a long history cheap per call, though Anatomy of a Turn is clear that caching "changes the price, not the presence": the stale copy is still in the input.

Some work also needs its history. The Files Are the Memory names the cases: a loop short enough to finish well before context degrades, the rare task that is cumulative in a way that does not compress, and exploration, where you are still learning the shape of the problem and should let the context grow before writing anything down. In all three, treating the window as scratch costs more than it saves.

The rule holds where the session is long, the sources move and something has to cross a boundary. That describes most agent work worth running unattended.

What to Do Next

  • Label hypotheses as hypotheses. Have the agent write a guess with what would confirm it, so a later reader, or a summary, cannot mistake it for a finding.
  • Re-read, don't recall. For anything that can change, the step that depends on it fetches it again. Keep copies only of what cannot change.
  • Write before the boundary. Exact paths, ids, confirmed findings and open obligations go to a file or the record as they happen. After a compaction, read that record first.
  • Make promotion explicit. Decide the one route by which a working note becomes a shared finding and the one by which a finding becomes direction. Nothing leaves working context any other way.
  • Discard on purpose. Clear tool results the agent can fetch again, and send exploration to a subagent that returns only its conclusion.
  • Treat the summary as derived. A compaction summary informs the next step. Anything it says that should bind the work must also be in a record with its own writer.

Next: Compaction at the Pivot, what to do with the record and the window when the plan changes. Related reading: Four Kinds of Context for how working context compares with the other kinds; The Files Are the Memory for disk as memory and context as scratch; What Compaction Actually Destroys for what a boundary drops; and Your Tool Schemas Are the Bloat for the always-on cost that crowds working context out.