Essay

The Recent Log Is Not the Same as State

Long-running assistants can get workflow state wrong even when they have the recent messages. A small experiment in helping LLMs remember what is still true.

Sue StranburgJune 1, 20266 min
Long-running assistants need beliefs with lifecycle, not assumptions fossilized by context.

Long-running AI assistants do not only fail because they lack context.

Sometimes they have the recent messages. They have the tool output. They have the last few steps of the workflow.

And they still get the state wrong.

They say the task is complete when validation is still pending. They treat a fix as successful before it has been tested. They forget that approval is still required. They lose track of which assumptions are still allowed to act.

That is not just a memory problem. It is a state problem.

A recent log shows what happened. It does not necessarily tell the model what is still true.

A small experiment

Given the same assistant workflow trace, I compared two systems:

System A received the recent log only — the last 20 turns of the session.

System B received the same recent log, plus an operational belief overlay.

An operational belief is a maintained claim about workflow state: what has been attempted, what is pending, what has been validated, and what has been contradicted. The overlay carried active beliefs such as fix_attempted, validation_pending, pipeline_running, action_blocked, and report_ready.

anatomy of one operational belief
validation_pending
“validation has not yet been observed for the most recent fix”
STATEactive (born turn 12, refreshed turn 15)WARRANT2 supporting observations from the session logAUTHORITYasserted_by_assistantLIFECYCLEactive until a successful validation is observed, or until decay
The overlay at any turn contains the active subset of all tracked belief types. The label names what is being tracked; the claim is what is actually being asserted; warrant + lifecycle determine whether the assertion still holds.

The overlay was not a free-form summary written by the answer model. It was a precomputed structured state layer built from session events, tool results, and lifecycle rules.

The overlay did not replace the log. It was additive. Same evidence, plus maintained operational state.

I used a bounded recent-log window because the point was not whether a model can reread an entire transcript, but whether a maintained state layer adds value beyond recent context. A longer log is not the same as cleaner state; it preserves old assumptions too.

The questions were locked before any answers were generated. There were 75, sampled from real Claude assistant-session logs and stratified across five workflow-state categories — validation, repeated failure, action authorization, completion, and pause-or-proceed readiness. Each question targeted a specific session and a specific turn T, and asked a meta-question about what was true at that point — for example: “At turn 132, are there outstanding pending actions the assistant should acknowledge before declaring completion?” Both systems used the same generation model and the same prompt; only the grounding payload differed.

The question was simple:

Can an LLM answer workflow-state questions more accurately when it is given explicit operational beliefs?

The answer, on this corpus, was yes.

The result

An “operational-state error” was scored two ways. A programmatic oracle determined ground truth from what actually happened in the session log forward — did validation actually run? did approval actually arrive? did the same failure signature recur? A separate judge model classified what each answer asserted. An error counted only when the log showed the mistake could actually occur and the answer made that mistake.

Two of the 75 belief-overlay contexts couldn't be generated because the overlay exceeded the account's per-minute token limit (more on that below); the comparison uses the 73 paired questions where both systems produced answers.

On those 73 paired questions, the raw-log system made operational-state errors 11.0% of the time. The system with the belief overlay made errors 5.5% of the time.

11.0% → 5.5%
aggregate operational error
27% → 7%
false-completion claims
+15 pts
traceability edge

The largest improvement was on false-completion claims. The raw-log system incorrectly claimed completion in 27% of applicable paired cases. With the operational belief overlay, that dropped to 7%.

That matters because false completion is one of the most familiar failure modes in coding assistants:

  • “I fixed it.”
  • “It's done.”
  • “The pipeline passed.”
  • “This is ready.”

But under the surface, validation may still be pending, the pipeline may still be running, or a blocker may still be active.

The assistant is not always lying. It is often acting from stale operational state.

Preference and a real implementation problem

The preference results were narrower but aligned. A blind judge preferred the belief-overlay answers on traceability: the answers were better at pointing to specific operational state. Appropriate caution was mostly tied, which is also useful to know. The overlay did not simply make the model sound more cautious. It helped reduce specific state errors.

The experiment also surfaced a real implementation problem. Two belief-overlay contexts were too large to generate under the account's token-per-minute limit. That is not a reason to discard the approach. It is the next design constraint: operational belief overlays need prioritization and ranking before production use.

What this is, and isn't

The takeaway is not that this solves agents.

It does not.

The takeaway is narrower and, I think, more useful:

Long-running assistants need a maintained representation of what they currently believe is still true.

Not just memory.
Not just retrieval.
Not just a longer context window.

They need beliefs with lifecycle, not assumptions fossilized by context.

related reading
Belief Stack v0.1 specificationThe architectural pattern this experiment instantiates: claim + warrant + lifecycle, operating disciplinesTKOS log-replay case studyEarlier substrate work over 164 Claude sessions; established the operational state typology this experiment now grounds an LLM inThe Hidden State Problem in Coding AssistantsThe diagnostic predecessor — naming why long-running assistants lose operational state in the first placeThe LLM That Forgot TimeA small clock glitch dissected as a complete sweep of the architectural gaps that produce stale-state behavior

Follow the research

Occasional updates on Belief Stack, TopicSpace case studies, and runtime belief-state evaluation.

I'll send notes when there's a new spec, case study, methodology update, or major finding — not a weekly newsletter for the sake of it.

Powered by Buttondown.