By Abhijith N M · Reviewed 24 October 2026 · Editorial standards
An incident-response agent has worked one outage for 45 turns. Its context is 180,000 tokens. Latency per turn has risen from 9 seconds to 22, and after turn 40 it asks for a service name it was given at turn 6. The on-call engineer proposes raising reasoning effort to fix the quality drop.
The proposal treats two different problems as one. Reasoning effort controls how much work the model does on a turn. The context lifecycle controls what the model can still see. The missing service name is a lifecycle problem, and more effort will not bring it back.
Reasoning effort, also called a thinking budget, is the number of tokens the model may spend reasoning before it answers. Turning it up improves answers that need multi-step judgement and adds latency to every turn it applies to.
Context lifecycle is the set of rules for what stays in the window: what you edit out, what you persist to memory, what you compact into a summary, and when you start a new session. Turning it up keeps facts available and adds work outside the model call.
The two knobs fail differently. Too little effort gives a shallow answer from complete facts. A stale context gives a confident answer from incomplete facts, and the model cannot tell which facts are missing because it cannot see that they ever existed.
Set effort per request from the job that turn performs, not from the name of the agent. A single budget for a 45-turn incident pays thinking tokens on the 30 turns that only fetch and acknowledge.
| Turn type | Effort | Why |
|---|---|---|
| Acknowledge, route, label | Low | The label space is small and the answer is checked in code |
| Fetch a fact from a tool or memory | Low | The work is deterministic lookup, not judgement |
| Diagnose across symptoms | High | Several constraints must be weighed at once |
| Draft the final recommendation or postmortem | High | The answer carries the audit and the blame |
| Summarise a resolved branch | Low | Fidelity matters, judgement does not |
Effort is not monotone in quality. On a well-specified extraction, a larger budget adds seconds and changes nothing. On the turn that names a root cause from five symptoms and two dashboards, it changes the answer. Measure the quality delta per second of latency before you raise the default.
The gathering turn collects facts with tool calls; its accuracy comes from calling the right tool, not from thinking harder. The naming turn is where effort pays, and it is one turn in the incident, not forty-five.
When the window fills, you have four tools. They solve different problems and cost differently, so choose by what is missing rather than by which one is easiest to switch on.
| Option | What it does | Best for | What it costs |
|---|---|---|---|
| Context editing | Drops stale tool output and resolved branches | Tool-heavy sessions with dead output | You can drop evidence: log it first |
| Memory tool | Keeps facts outside the window, recalled by key | Facts needed across sessions | A retrieval contract and a staleness rule |
| Compaction | Summarises older history | Long conversations whose detail fades | A lossy summary that is itself a model call |
| Fresh session | Restarts with a distilled brief | A finished phase and a new one | Continuity, unless the brief is complete |
These combine in a real design. A common pattern edits tool output every turn, persists each decision to memory, compacts when the window passes a threshold, and starts a new session at a phase boundary with the brief assembled from memory.
Read the flow as a diagnosis. At turn 41 the question is not what to do in general; it is which of three things is missing. The branch tells you which knob to turn, and turning the wrong one is expensive in both directions.
Three more failures recur. Raising effort to compensate for a stale context produces a better-argued wrong answer, more slowly. Memory without a retention rule grows until recall returns stale facts with the same confidence. And a fresh session without a brief repeats the first twenty turns.
You inherit the 45-turn incident agent. Write a one-page turn policy that another on-call engineer could follow at 03:00 without asking you anything.
Then test it against turn 41. Which branch of the flow does your policy take, and does it restore the service name without adding 13 seconds to every later turn?
Key takeaways
Effort governs how hard the model thinks; lifecycle governs what it can see.
Allocate effort by turn type; reserve the high budget for diagnosis.
Higher effort is not monotone: on extraction it buys latency and nothing else.
Choose editing, memory, compaction or a fresh session by what is missing.
Persist decisions and evidence before you drop context.
Written and edited by the nexGenCoders team. Spotted a mistake? Tell us and we will fix it.
Don't lose this lesson
Create a free account to save your progress, keep your streak, and work toward a shareable certificate.