CCA-F start here · Trap gym · The context meter

The context meter

A long chat starts forgetting what it promised. The tempting answers add room: a bigger context window, longer summaries. The exam wants structure instead. Keep the facts that matter where no summary can touch them, cut what nobody reads, and put the key points where Claude reads best.

D5 Context Management & ReliabilityExam guide 5.1 and 5.4About 15 minutes

At a glance: Keep exact facts such as amounts, dates and promises in a case-facts block and trim tool results to the fields you need; a bigger context window or a running summary blurs the numbers.

Start here: the hospital handover

A patient stays on a ward for a week. Every shift, one nurse hands over to the next.

Retell it. “40 mg at 6 pm, allergic to penicillin” becomes “had some pain relief earlier” after two handovers. After four, nobody mentions it. Each retelling is shorter than the last, and the numbers go first.
Write it on the chart. Doses, times and allergies go on the chart at the foot of the bed. Nobody retells the chart; they read it. It stays exact however many shifts go by.

Two more habits keep the handover useful. Nobody staples every lab printout into it; they copy the three values that matter. And the allergy goes at the top in a box marked Allergies, not on page 9 of a thick folder. A bigger folder would not help: it only gives page 9 more pages around it.

Claude's context window works the same way. When a chat gets near the limit, older turns are replaced by a summary: the retelling. A case-facts block is the chart. Trimming tool results is copying three values instead of stapling the printout. Key facts first, with headers, is the allergy box at the top.

The context window: what Claude reads on every turn Systemprompt Case-factsblock Summary ofolder turns Recentturns Latest toolresult kept word for wordby your code rewritten each pass;/compact rewrites it now trim to thefields used start: read well middle: easy to miss in a long context end: read well A bigger window makes the bar longer. The middle grows with it.
The one question to ask: which facts must come out exact, and where do they live right now?

Words in the question that tell you which side you're on

Structure problem (the usual case)

  • “after the summary”, “offers a smaller refund than it promised”
  • “forgets which items”, “the numbers were right earlier”
  • “about forty fields; the agent uses five”
  • “the whole spec fits”, “misses the middle sections”
  • “refers to typical patterns instead of the classes it found”

Tempting “more room” answers

  • switch to a model with a larger context window
  • make the summary longer or more detailed
  • summarise more often
  • tell Claude to pay attention to the whole input
  • start a fresh session and explain again

Try it: fill the context meter

Pick a situation, then a strategy. The meter fills turn by turn. When it passes 90%, older turns are replaced by a summary. At the end you see which facts are still exact and what the agent actually says.

1. The situation

2. Your strategy

Token sizes and blur rates are illustrative, chosen to show the shape. They are not measurements. Each fact gets the same dice under every strategy, so the strategies differ only in how they work. The exam guide's point is that summaries condense numbers, dates and expectations into vague text, and that the middle of a long context is the part most easily missed.

Things to try: long refund dispute with a bigger window, then a case-facts block. Then many order lookups with trim tool results, and watch the meter stay low. Then one long input with a bigger window: nothing changes, because it already fit.

The three traps

TrapWhat the wrong option looks likeWhy it loses
More room“Switch to a model with a larger context window”, “raise the limit before summarising”It postpones the summary, then the facts sit in the middle of a longer context. Every turn also re-sends more.
Better retelling“Make the summary longer and more detailed”, “tell the summariser to keep all numbers”Still a model rewriting the facts, pass after pass. Fewer slips, not none. Exact facts need a home outside the summary.
Right fix, wrong problemTrim tool results when the middle of one input is missed; a case-facts block when tool results flood the window; /compact in an Agent SDK appEach fix acts on one place in the window. Match it to where the facts are being lost.

Practice: three exam-style questions

Answer first, then open “Think it through”.

Rule to remember

Facts that must stay exact go in a block no summary touches. Cut what nobody reads. Key points first, with headers. More room is never the fix.

Exam guide 5.1: “Progressive summarization risks condensing numbers, %, dates, customer expectations into vague summaries.” and “Extract transactional facts into a persistent "case facts" block; trim verbose tool outputs to relevant fields; place key summaries at the beginning + explicit section headers.” Exam guide 5.4: “Scratchpad files persist key findings across boundaries; subagent delegation isolates verbose output.”

← All traps