Skip to main content
AI ProductivityAutomationAgent Systems

How to split AI workflow memory by type, not one giant context blob

A practical framework for AI workflow memory that separates state, facts, approvals, and retrieval context so agents stay cheaper, clearer, and safer over time.

Niels KaspersNiels Kaspers
September 3, 2026
9 min read
How to split AI workflow memory by type, not one giant context blob

TL;DR

AI workflow memory gets better when you stop treating all context like one transcript and split durable facts, task state, approvals, retrieval context, and traces into different jobs.

If you want the short answer, AI workflow memory works better when you stop storing everything in one growing transcript.

The useful split is usually this:

  • durable facts
  • current task state
  • approvals and decisions
  • retrieval context
  • verification traces

Those are all forms of context. They are not the same memory job.

When teams collapse them into one giant blob, the agent has to keep re-reading stale history, reconstructing state from prose, and carrying noise that no longer helps the next action. That is where cost, latency, and weird failure modes start to compound.

Why this matters now

The recent memory conversation is getting more specific.

The July 29, 2026 paper Filesystem-Based Memory for LLM Agents studies a pattern many builders already use: a memory filesystem the agent can read, write, and reorganize through normal tools. The authors found that organization can materially reduce retrieval cost as the store grows, even if keeping that store healthy is harder than it looks.

The August 28, 2026 paper SKILL.state pushes the argument further. Instead of replaying an ever-growing conversation, it keeps only an immutable procedure, the current structured execution state, and the latest observation. The paper reports better long-horizon performance with bounded prompt size because the agent is not reconstructing the world from old text every turn.

The June 8, 2026 paper Less Context, Better Agents lands a related operational point. On a long-horizon enterprise workflow, full history was worse than pruning and summarizing the recent relevant context. More history did not mean better execution.

Oracle's current Agent Memory documentation makes the product version of the same case: short-term memory and long-term memory should not be treated as one flat thing, and scoped retrieval matters. Their August 10, 2026 engineering write-up adds a stronger systems framing: agent memory is a data-management problem, not only a prompt-management problem.

That matches what I trust in practice. Once a workflow runs across multiple steps, tools, approvals, and sessions, memory stops being a copywriting problem. It becomes architecture.

The mistake: one transcript pretending to be memory

A single transcript is attractive because it is easy.

You append tool calls, notes, summaries, user preferences, prior approvals, retrieval snippets, and reasoning into one place. Then you hope a bigger context window or a better summary will rescue the setup later.

Sometimes it works for short runs.

It starts breaking when the workflow gets longer.

The agent now has to answer five different questions from the same pile:

  • What is true in general?
  • What is true right now?
  • What was approved?
  • What evidence was retrieved for this step?
  • What happened during execution that should be reviewable later?

Those questions deserve different storage and retrieval rules.

The split I would use

1. Durable facts

This is the slow-changing layer.

It includes user preferences, stable environment facts, entity definitions, reusable constraints, and other information that should survive across sessions.

Examples:

  • a team's preferred publishing tone
  • a product's pricing model
  • a repo's default branch
  • a known policy rule

Durable facts should be easy to update, scoped correctly, and retrievable without replaying old conversations.

2. Current task state

This is the live working state for the workflow in front of you.

It includes the current step, unresolved questions, selected files, active hypotheses, progress markers, and the latest known task shape.

This is where many teams go wrong. They leave state buried in prose. Then every step requires the model to infer the latest state from historical narration.

The cleaner approach looks more like the SKILL.state framing: keep structured state explicit enough that the next action can be chosen from the current world, not from a transcript archaeology exercise.

3. Approvals and decisions

Approvals are not just another note.

They are authority changes.

If a human approved a publish action, rejected a direction, chose a tradeoff, or changed the workflow boundary, that should live in a decision layer that is easy to inspect later.

This sits naturally next to What should stay human in an AI workflow today? and When should an AI agent call tools versus ask a human?. The practical point is simple: the workflow should not rediscover an approval from a paragraph buried 40 turns back.

4. Retrieval context

Retrieved context is evidence for a step, not identity.

That means retrieved snippets, search results, docs, or temporary notes should usually be treated as per-step or per-task context with expiration rules. Some of it may later become a durable fact. Most of it should not.

If retrieval context gets stored as if it were permanent truth, stale citations and outdated assumptions start polluting future runs.

5. Verification traces

This is the reviewable record.

Tool outputs, checks, test results, diff summaries, and validation evidence should be preserved in a way a human can audit without replaying every reasoning trace.

That is different from asking the model to keep all chain-of-thought forever. The useful artifact is usually the evidence trail, not the full internal monologue.

It also connects well with How to audit an AI workflow before it turns into agent debt. The workflow earns trust when the trace shows what changed, what was checked, and where a human would intervene.

A practical memory map

Here is the simplest version I would ship first:

Durable memory

Use for facts, preferences, policy rules, and named entities that should persist beyond the current session.

Working state

Use for current progress, active task fields, step counters, selected assets, unresolved blockers, and next-action fields.

Decision log

Use for approvals, rejections, scope changes, and human judgment that should not be inferred again later.

Retrieval cache

Use for step-local sources, search snippets, and temporary evidence with clear expiration.

Audit layer

Use for outputs worth checking later: commands run, tests passed, files changed, links verified, or publish actions taken.

If you build nothing else, build that separation.

What changes when you split memory this way

The workflow gets cheaper

The prompt stops growing just because the run got longer.

That is the big operational lesson from both the recent papers and real workflows: bounded, relevant context usually beats complete but noisy history.

The workflow gets easier to debug

When something breaks, you can ask whether the problem came from bad facts, stale task state, an approval boundary, weak retrieval, or missing verification. In a single transcript, those failures blur together.

The workflow gets safer

Approvals, scopes, and human decisions become explicit records instead of loose paragraphs. That matters whenever the agent can publish, spend, delete, or contact someone.

The workflow gets more composable

Different agents or workflow stages can use the memory they actually need instead of inheriting the whole conversation. That is often the difference between a useful system and a bloated one.

The first-party lesson I trust most

In the operator workflows I find most reliable, the system does not ask one memory layer to do every job.

The workflow needs one shape for long-lived facts, another for task progress, another for human approvals, and another for evidence worth reviewing. That is true whether the surrounding system uses files, JSON state, scoped search, or a more formal memory service.

On this site, the adjacent pages already point to the same boundary from different angles: How to design approval gates that do not kill automation speed is about intervention design, while the August 19 report on AI workflow memory: what to store, what to forget, and what to verify is about retention discipline. This page is the architectural layer between them.

What not to do

Do not store every tool response forever

Most tool output is too verbose and too local to deserve permanent prompt space.

Do not treat retrieved text as durable truth by default

Retrieved evidence should expire unless it is promoted deliberately.

Do not bury approvals in chat history

Authority changes should be explicit and inspectable.

Do not confuse summaries with state

A summary can help. It is not a substitute for a canonical current-state representation.

Do not assume a bigger context window fixes stale state

A larger window can make the pile larger. It does not automatically make the memory cleaner.

A checklist I would use

Interactive

AI workflow memory checklist

Use this before you let a transcript pretend to be your memory architecture.

Completion

0%0/5 done

This is the gap between understanding the article and actually using it.

  • Use this block as the practical summary, not just the article ending.
  • If one item feels vague, the article probably needs sharper guidance.
  • A short checklist beats a long recap when the reader needs to act.

My take

The next step for agent reliability is not only better prompts or bigger windows.

It is better memory boundaries.

If your agent keeps dragging one giant context blob from step to step, it is doing state management the hard way. Split the memory by job. Keep the current state canonical. Keep retrieval scoped. Keep approvals explicit. Keep traces reviewable.

That is how the workflow stays useful after the demo.

FAQ

What is AI workflow memory?

AI workflow memory is the context a system preserves across steps or sessions so it can continue a task, remember facts, respect prior decisions, and retrieve the right evidence later.

Why is one giant context blob a problem?

Because it mixes stable facts, current state, approvals, and temporary evidence into one growing transcript, which raises cost and makes stale-state failures harder to avoid.

What should be stored in durable memory?

Store stable facts, preferences, policy rules, and entity information that should still matter after the current task ends.

What should stay out of durable memory?

Most temporary retrieval snippets, verbose tool output, and step-local context should stay scoped to the task unless you deliberately promote it.

Is a summary enough for long-horizon agents?

Not usually. Summaries help reduce noise, but they do not replace a canonical structured state for what is true right now.

Niels Kaspers

Written by Niels Kaspers

Principal PM, Growth at Picsart

More insight pages

Get in touch

Have questions or want to discuss this topic? Let me know.