The argument
- Working context, handoffs, and durable memory are different objects with different lifetimes.
- Each needs a named event that makes it stale and a named process allowed to promote it.
- A larger context window gives an agent room; a lifecycle gives that room structure.
A test passed. Then a file changed. A branch forked. The session ended and another began. Which of those facts should the next model request carry, and which are already out of date?
That question is more useful to me than asking how much conversation fits into a context window. In CLIO, the context architecture I lead across IOWarp, context is part of the system, and that makes its lifetime a design question.
Four kinds of information across one task
| Test passes | File changes | Branch forks | Session ends | Next session | |
|---|---|---|---|---|---|
| The test resultOne fact in the working context | In use | Stale | Stale | ||
| Working contextObjective, relevant code, current decisions | In use | In use | In use | In use | |
| HandoffWhat remains, why, and where to look | Kept | In use | |||
| MemoryA lesson worth retrieving later | For review | In use |
-
A test passes. The result belongs in the working context because it describes the files as they are now.
-
A file changes. The earlier pass no longer describes the code; it remains history, not current evidence.
-
A branch forks. Each branch keeps its own working context. A fork can recall earlier notes without inheriting permission to resume its parent's pending handoff.
-
The session ends. What must continue goes into a handoff bound to its branch and decisions; a lesson worth keeping becomes a memory proposal for review.
-
The next session resumes from the handoff, retrieves reviewed memory, and rebuilds a working context for the task at hand.
Different information needs different lifetimes
The active task needs a small working set: the objective, the relevant code, current decisions, and the checks still to run. A handoff needs enough to continue that task after a transition. Durable memory needs a lesson worth retrieving in another session.
Those are different objects. Saving all of them as one long transcript makes later retrieval expensive and leaves the receiving agent to infer which statements are still authoritative. Compressing all of them into one summary can discard the detail that makes a result inspectable.
The systems technique is to give each object a lifecycle. Working context shrinks as the task moves. A handoff is bound to the branch and decisions that produced it. A memory proposal is reviewed before it becomes a recurring influence. An old note can remain useful history without becoming a current instruction.
Finding a capability without carrying the whole library
Tools and skills have the same problem. A repository may need one specialized procedure from a large collection. Putting every procedure and tool description into every request spends context before the agent knows what matters.
The alternative is to make discovery explicit: start with a small attached toolkit and discover secondary capabilities when a task needs them. That is more than a shorter prompt. It is a decision about what the agent can discover, what it has already loaded, and which actions still require admission. Removing a resource from discovery cannot erase instructions an earlier turn has already read, and that limit matters when designing controls for a running system.
A handoff is a continuation contract
A useful handoff says what remains, why a choice was made, and where to inspect the work. It should not ask the next agent to trust the previous agent’s confidence.
So a handoff should be bound to the branch and decisions under which it was prepared. A fork can recall earlier notes, but it should not inherit permission to continue its parent’s pending transition. Recovery should take an explicit step, not an encouraging paragraph saying that everything is ready.
There is a practical lesson here for students building agents. Start by naming the information that must survive, the event that makes it stale, and the person or process allowed to promote it. Those choices are an architecture before any storage engine enters the picture.
A larger context window is still useful. It gives us room. Lifecycles give that room structure. The research direction is to make these boundaries work across the much larger scientific workflows that CLIO serves.