The earlier post covered how context rot shows up in agentic workflows and the architecture patterns that resist it. This one is about the day after go-live.
In production, context rot rarely looks like a clean outage. It looks like a slow slide: answers get vaguer, tool choice gets noisier, and support tickets start saying “it used to be better.” By the time someone opens a dashboard, the window is already full of the wrong things.
What production symptoms actually look like
Latency creep without traffic growth. More tokens in, more tokens out, same user volume. The model is chewing through history, tool dumps, and recovered “memory” that should have stayed outside the prompt.
Inconsistent tool selection. The same intent routes to different tools across runs. That is often semantic degradation: critical constraints got compacted away, so the model invents a plausible path.
Silent policy drift. Guardrails still “exist” in the system prompt — until compaction or a long thread pushes them out of the effective attention budget. Users see confident actions that violate rules you thought were hard-coded.
Eval scores that only fail on long sessions. Unit prompts pass. Multi-turn production traces fail after N steps. That N is your real context budget, not the vendor’s advertised window.
Support language that points at “memory.” “It forgot the account,” “it ignored the earlier decision,” “it repeated a step we already closed.” Those are context-lifecycle failures, not model IQ failures.
Budgets beat bigger windows
Treat context like capacity planning, not like disk that “should be fine.”
| Budget | What it covers | Rough production target |
|---|---|---|
| System | Role, non-negotiable policies, output contract | Small, stable, versioned |
| Task | Current goal + constraints for this run | 1–3 KB class |
| Working set | Last few tool results that still matter | Hard cap; drop or summarize older |
| Retrieved | RAG / docs / tickets on demand | Fetch per step, never preload the corpus |
| Headroom | Space left to reason | Keep a real reserve (do not run hot at 80%+) |
If you cannot name those five numbers for a deployed agent, you do not have an AI Ops posture yet — you have a hope that the window is large enough.
What to monitor after ship
Beyond token cost:
- Prompt composition mix — share of system vs history vs tools vs retrieval per request. Spikes in history or tools are early rot signals.
- Effective context utilization — estimated fill ratio before the model call. Alert before you sit permanently above ~70%.
- Tool-call entropy — diversity of tools chosen for near-duplicate intents. Rising entropy often precedes visible quality loss.
- Policy-hit rate — how often constrained actions still match the policy checker after the model acts (or in a shadow judge). Drop = drift.
- Session length vs quality — quality and task-success plotted against turn count. The knee of that curve is your operational session limit.
- Compaction / summarize events — count and content class of what got dropped. If policies or IDs appear in drop logs, you have a design bug.
Wire these next to the usual golden signals (latency, errors, cost). Context health is a reliability signal.
Remediation that works in production
Truncate with intent, not with “keep the last N messages.” Prefer structured working-state (IDs, decisions, open tasks) over raw chat replay.
Move durable state out of the prompt. Workflow ID, customer/account keys, prior decisions, and artifacts belong in a store. The model gets a pointer and a short summary, not the archive.
Version the system prompt like config. Promote with the same discipline as an API. Diff it. Rollback it. Do not hot-edit production prose while incidents are open.
Split long jobs. A 40-step agent thread is a process, not a conversation. Checkpoint, spawn a fresh context for the next phase, and pass only the handoff packet.
Kill or reset sessions that cross the quality knee. It is kinder to start clean than to keep a rotting thread alive for “continuity.”
Shadow-eval long traces. Sample production sessions past turn N and score them offline. Catch regressions before the ticket volume becomes the metric.
How this fits pilot → production
Pilots forgive fat contexts because demos are short. Production does not. The teams that hold up in enterprise finance are usually the ones who:
- budget context like capacity,
- externalize state early,
- monitor composition and session quality,
- remediate with resets and architecture — not with “try a bigger model.”
Bigger windows delay the pain. They do not remove the need for AI Ops around context.
If you are already in production and quality is sliding with session length, start with composition metrics and a hard working-set cap. Architecture patterns help; day-two telemetry is what tells you the rot has started.