Task Statement 5.1·Domain 5 — 15% of exam
Context Window Management
Manage conversation context to preserve critical information across long interactions
Official Exam Guide Objectives
The objectives below are quoted from Anthropic's Claude Certified Architect – Foundations exam guide, v1.1. Read the exam guide summary for the full blueprint.
Task 5.1: Manage conversation context to preserve critical information across long interactions.
Knowledge of
- Progressive summarization risks: condensing numerical values, percentages, dates, and customer-stated expectations into vague summaries
- The "lost in the middle" effect: models reliably process information at the beginning and end of long inputs but may omit findings from middle sections
- How tool results accumulate in context and consume tokens disproportionately to their relevance (e.g., 40+ fields per order lookup when only 5 are relevant)
- The importance of passing complete conversation history in subsequent API requests to maintain conversational coherence
Skills in
- Extracting transactional facts (amounts, dates, order numbers, statuses) into a persistent "case facts" block included in each prompt, outside summarized history
- Extracting and persisting structured issue data (order IDs, amounts, statuses) into a separate context layer for multi-issue sessions
- Trimming verbose tool outputs to only relevant fields before they accumulate in context (e.g., keeping only return-relevant fields from order lookups)
- Placing key findings summaries at the beginning of aggregated inputs and organizing detailed results with explicit section headers to mitigate position effects
- Requiring subagents to include metadata (dates, source locations, methodological context) in structured outputs to support accurate downstream synthesis
- Modifying upstream agents to return structured data (key facts, citations, relevance scores) instead of verbose content and reasoning chains when downstream agents have limited context budgets
What You Need to Know
What reaches the context window decides whether a Claude-based system holds together. Multi-turn conversations, multi-agent pipelines, long-document extraction — each one lives or dies on that. The failures are not abstract either: the support agent that has forgotten the refund amount, the research pipeline that drops its citations, the extraction that loses precision on exactly the fields anyone cared about.
The one idea that ties this task statement together: context is a lossy channel, so design a lane the loss cannot reach. Every request carries two layers. One is structured, never summarised and rebuilt by your code each time; the other is the conversation narrative, which may be summarised or compacted as it grows.
┌──────────────────────────────────────────────────────────────┐
│ CASE FACTS (structured, never summarised, re-sent verbatim) │
│ order #8891 · refund $247.83 · ordered 2024-03-03 │
│ status pending_refund · customer said: "resolved by Friday" │
└──────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────┐
│ CONVERSATION HISTORY (may be summarised or compacted) │
│ "…the customer explained the headphones arrived faulty…" │
└──────────────────────────────────────────────────────────────┘Summarisation is allowed to eat the prose. It is never allowed to eat the facts, because the facts live in a layer it does not touch.
The Progressive Summarisation Trap
Long conversations tempt you into compressing earlier turns to recover budget. It is a trap, and a specific one: summarisation destroys precisely the categories of information that transactional systems depend on — figures, dates, percentages, and the expectations a customer has stated aloud.
Here is how it plays out. A customer contacts support about a refund:
Turn 3: "I'd like a refund of $247.83 for order #8891 placed on March 3rd"After summarisation, this becomes:
Summary: "Customer wants a refund for a recent order"Everything needed to actually issue the refund — the amount, the order, the date — has gone, and what remains is a description of the conversation rather than its content. This is not an unlucky example. Summarising is lossy in exactly this direction by construction: specifics are what compression removes. Put shortly, precise values become adjectives:
| Said early in the conversation | What a later summary keeps |
|---|---|
| "Refund $247.83 for order #8891" | "the customer wants a refund" |
| "Ordered 3 March; the return window closes on the 2nd of next month" | "ordered recently" |
| "I need this resolved before Friday, I'm travelling" | "the customer is in a hurry" |
| "Two of the three items were damaged" | "some items were damaged" |
| "My loyalty discount is 15%" | "a discount applies" |
Each row becomes a failure the customer sees: the wrong refund amount, a miscalculated eligibility date, a missed promise, a partial refund for the wrong quantity, a discount applied at the wrong rate. The fourth category the exam guide names, customer-stated expectations, is the easiest to forget, because it is not a field in any tool result.
The fix: persistent case facts blocks. Pull the transactional facts — amounts, dates, order numbers, statuses — into a structured block carried in every prompt and held outside the summarised history. Nothing ever compresses it, so it survives whatever happens to the conversation around it. Record what the customer said they expect verbatim, in quotation marks, rather than as your paraphrase of it.
{
"caseFactsBlock": {
"customerId": "C-4421",
"issues": [
{
"orderId": "#8891",
"orderDate": "2024-03-03",
"returnWindowEnds": "2024-04-02",
"refundAmount": "$247.83",
"status": "pending_refund",
"itemDescription": "Wireless headphones — defective"
}
],
"customerStatedExpectations": ["I need this resolved before Friday, I'm travelling"]
}
}Where one conversation covers several problems at once, give each its own entry in that layer rather than letting them share a narrative. Kept separate, one issue's order number cannot migrate onto another during compression — which is what cross-contamination looks like in practice. The same one-record-per-concern structure is what lets a multi-concern request be decomposed and worked issue by issue (Task 1.4).
Three properties that make the block work
- Structured. A field, not a sentence, so nothing paraphrases it. The schema is fixed in advance: the same fields every turn, not whichever ones the model judges relevant this time, which would let a fact present at turn three vanish by turn seven. Beyond the raw transaction values, it is the natural home for anything else the agent's next decision depends on: a derived date such as when the return window closes, each issue's resolution so far, whether the customer's identity has been verified, and which policy is being applied.
- Rebuilt from current state on every request. Your code derives the block from tool results and updates it whenever a tool result or an agreed decision changes something. It is not a snapshot taken once at session start: a block built at turn two keeps asserting the turn-two status after the refund is approved, and it still reads as authoritative while it is wrong. And because the API keeps no session state, a block that is not re-sent is simply absent.
- Marked authoritative. A header tells the model these values override anything in the narrative.
The facts come from your code, not from asking the model to remember them: paraphrase drifts, and a fact carried only in narrative has no authoritative copy. Place the block where the summariser cannot reach it, which rules out the obvious-seeming spot inside the session's original first user message, since that is exactly what a summariser condenses once history grows. Instead, your code assembles every request as block first, then the (possibly summarised) history, then the newest turn. Leading with the block also puts it in the part of a long input the model processes most reliably (see the lost-in-the-middle effect below). Because its contents change as the case moves on, it belongs after any prompt-caching breakpoint, not inside the cached static prefix.
def render_case_facts(facts: dict) -> str:
# Called on every request, from current structured state.
lines = ["## CASE FACTS (authoritative; never summarise or paraphrase)"]
for issue in facts["issues"]:
lines.append(f"- order {issue['orderId']} [{issue['status']}] "
f"amount={issue['refundAmount']} ordered={issue['orderDate']}")
for quote in facts["customerStatedExpectations"]:
lines.append(f'- customer stated (verbatim): "{quote}"')
return "\n".join(lines)The invariant: the block is regenerated from structured state each time, so its accuracy never depends on surviving in the history. To prove it works rather than assume it, run the same conversation with and without the block past the point where summarisation fires, then ask for the exact amount, order number and date. Checking that replies stay fluent proves nothing, because fluency survives summarisation either way; that is what makes the trap dangerous.
Case facts survive where narrative summarises freely, step 1: Turn 3 — the customer states the specifics
The "Lost in the Middle" Effect
Position matters. What sits at the start and end of a long input is attended to reliably; what sits in the middle can be weighted lightly or missed altogether. The effect is well documented across large language models, and it governs how aggregated input should be laid out.
The fix is structural, not prompt-based. Lead with a summary of the key findings, then present the detail under explicit headers, and put the task itself at the end. Feeding a synthesis agent the output of three research subagents means opening with the conclusions and following with the material they came from, each part clearly bounded, so the two reliable regions carry the conclusions and the instruction while the middle holds only detail that the headers make navigable.
## Key Findings Summary
- Source A: 12% market growth in renewable sector (2023)
- Source B: Patent filings increased 34% year-on-year
- Source C: Regulatory framework delayed until Q3 2025
- Conflict: A and C disagree on 2024 installations; not reconciled
- Gap: no usable data for offshore wind
## Detailed Findings
### Source A: Market Analysis Report (published 2024-01)
[Full details here...]
### Source B: Patent Database Analysis (published 2024-02)
[Full details here...]
### Source C: Regulatory Review (published 2024-03)
[Full details here...]
## Task
Produce the synthesis. Preserve every source label. Do not resolve the conflict.Three details make this layout work rather than merely look tidy:
- The summary carries the specifics. Each line states the number and the source label. A summary that paraphrases the detail below it ("growth was strong") puts no more signal at the top than there was in the middle.
- Conflicts and gaps go up front too. A disagreement between sources or a missing area is exactly the kind of finding that gets lost if it surfaces only inside one source's section.
- Headers are for navigation, not appearance. They let the model treat the middle as labelled sections instead of one undifferentiated block, and they give both the instruction and the output a way to point at a section ("see Source B").
Anthropic's long-context prompting guidance points the same way for the end of the input: put long documents near the top and the query after them, noting that "Queries at the end can improve response quality by up to 30 percent in tests, especially with complex, multidocument inputs."
Lost in the middle is not attention dilution
The two are easy to confuse and have different fixes. Lost in the middle is about position within one input: the findings are all there, but the ones in the middle are under-weighted, so you reorder and add headers. Attention dilution (Task 1.6) is about too many targets in one pass, such as one review covering fourteen files, so you split the work into separate passes. Reordering a fourteen-file review does not fix dilution, and splitting a three-source synthesis into passes is the wrong tool for a position effect.
Position is fixed by layout, not by an instruction, step 1: Three sources, an instruction to pay attention to everything
Tool Result Trimming
Tool output drains the budget quietly. An order lookup may return forty-odd fields — audit timestamps, warehouse codes, carrier identifiers, fulfilment centre references — where five bear on the refund being discussed. The other thirty-five do not merely cost tokens once; they sit in the history and are re-sent on every subsequent turn.
Trim verbose tool outputs to only relevant fields before they accumulate in context. Left undone, a multi-turn system silts up with stale output until nothing else fits. This is structural, not tidying.
const RELEVANT_FIELDS = [
"order_id", "order_date", "total_amount", "return_eligible", "item_description",
];
function trimOrderResult(rawResult: Record<string, unknown>, relevantFields = RELEVANT_FIELDS) {
return Object.fromEntries(
Object.entries(rawResult).filter(([k]) => relevantFields.includes(k))
);
}The requirement is only that the trim happens before the result joins the conversation. Once it is in the history it is re-sent and paid for on every turn that follows, until something clears it. Where to put it is itself tested:
| Where the trim runs | Verdict |
|---|---|
A PostToolUse hook that replaces the result through updatedToolOutput (Task 1.5) | Strongest general answer: one place covers every tool, and the model never reasons over the untrimmed payload. The replacement must keep the tool's output shape |
| Inside the MCP server or tool | Right when you own the server and every caller wants the same fields; otherwise you repeat it per server and strip fields other callers need |
In your own agentic loop, before appending the tool_result | Fine for a hand-written loop |
| A clean-up pass after the result is appended, or at summarisation time | Too late: the full result was already sent and counted on the turn it arrived, and on every turn until the clean-up |
| After the agent finishes | Far too late: the context was consumed during the run |
Trim by relevance to the task, not by size. Dropping delivered_at because it looks like boilerplate breaks the return-window calculation. When different requests need different fields (a return needs delivery date and returnable line items, a billing query needs payment and tax, a shipping query needs carrier and tracking), keep one field list per intent rather than one global list that silently strips what the other tasks act on. Apply the same rule inside nested records: an order's line items carry their own long field lists, and only a handful (item, quantity, amount, whether it is returnable) bear on a return.
Trim before the result enters history — not after, step 1: An order lookup returns 40+ fields, untrimmed
Full Conversation History
The Claude API holds no state between requests, so each one carries the entire conversation. Drop earlier messages and the model loses the thread, because there is no server-side session quietly remembering them on your behalf. The symptoms are recognisable in a stem: the agent contradicts what it said earlier, asks again for information the customer already gave, and forgets commitments.
Which sets up the tension this task statement exists to resolve: coherence wants everything, and the window grows with every turn. The case facts block is what reconciles them — narrative can be summarised freely once the facts that matter are held somewhere summarisation does not reach. Put shortly, compress by restructuring, not by deleting:
| Wrong way to save tokens | Right way |
|---|---|
| Drop the first ten turns | Summarise the narrative; keep the case facts block verbatim |
| Cut tool results down after they are in the history | Trim them to relevant fields on arrival |
| Ask the model to "remember" the key facts | Rebuild them from structured state on every request |
| Let old turns fall away silently | Compact deliberately (/compact in Claude Code, Task 5.4) and re-send the facts block |
Upstream Agent Optimisation
In a multi-agent pipeline, what an upstream agent finds natural to return is rarely what a downstream agent needs. Reasoning chains and raw content arrive at a synthesis agent whose budget is finite, and the reasoning is unusable to it — it cannot act on how another agent reached a conclusion, only on the conclusion.
Modify upstream agents to return structured data — the claims, their sources, relevance scores — in place of prose and deliberation. Require the metadata that downstream work depends on, including dates, source locations and methodological context, so synthesis has what it needs to be accurate rather than merely fluent.
{
"findings": [
{
"claim": "Renewable energy investment grew 12% in 2023",
"source": "IEA World Energy Report 2024",
"sourceUrl": "https://example.com/report",
"sourceLocation": "Chapter 2, Table 2.1",
"methodology": "Survey of announced project spending",
"relevanceScore": 0.92,
"publicationDate": "2024-01-15"
}
]
}The saving in tokens is the obvious benefit and not the largest one. The upstream agent has already done the reading; forwarding its raw material makes the downstream agent redo that work on a fraction of the budget. A downstream agent handed structure reads fields; handed prose, it re-derives them, and every re-derivation is a chance to get one wrong.
The metadata requirement is what makes the compression safe. Structured findings stripped of their dates, source locations and method are the summarisation trap again, one agent further down the pipeline: the claim survives, but nothing that would let synthesis weigh it, date it or attribute it (Task 5.6).
Handed structure, it reads fields — handed prose, it re-derives, step 1: Upstream agent emits its reasoning chain
Prompt Caching
Caching addresses context economics from the other side: rather than reducing what the model reads, it stops you paying to reprocess the parts that never change. A cache_control breakpoint marks a stable prefix, the API keeps that prefix in processed form, and subsequent requests reuse it at a fraction of the input cost.
Matching runs from the beginning of the prompt forward, prefix by prefix, which makes layout decisive. Anything constant goes first — system instructions, tool definitions, long reference material — with the breakpoint closing that block. Anything that varies per request, the user's message above all, comes after it.
// The cache breakpoint goes on the last stable block. Everything volatile
// (the user's question) sits after it, so the prefix stays byte-identical.
const response = await client.messages.create({
model: "claude-sonnet-5-5",
max_tokens: 4096,
system: [
{ type: "text", text: LONG_STATIC_INSTRUCTIONS },
{ type: "text", text: REFERENCE_DOC, cache_control: { type: "ephemeral" } },
],
messages: [{ role: "user", content: dynamicUserMessage }],
});Order it the other way and the benefit vanishes completely rather than partially: a single varying token ahead of the static block changes the prefix, so nothing matches and every request pays in full. The window is short as well — an ephemeral breakpoint survives roughly five minutes from last use, which makes caching a tool for bursts of related requests rather than for material reused across a working day.
Deep Dive
Context window sizes per model, and the 1M-token default
The numbers behind the budget. The current models (Claude Opus 5.5, Sonnet 5.5, Haiku 5.5 and Fable 5.2, alongside Fable 5.1, Fable 5, Opus 5, Sonnet 5 and the Mythos models) all have a 1,000,000-token context window, as do Opus 4.6 to 4.8 and Sonnet 4.6. Older models, including Opus 4.5, Sonnet 4.5 and Haiku 4.5, have 200k. For every model with a 1M window, 1M is the default: there is no beta header to opt in, and long-context requests bill at standard pricing, except on Haiku 5.5, where prompts over 100,000 tokens cost more. Max output on the synchronous Messages API is 128k tokens on the 1M-window models (64k for Opus 4.5, Sonnet 4.5 and Haiku 4.5); on the Message Batches API, Opus 5.5, Opus 5, Sonnet 5.5, Sonnet 5, Haiku 5.5, Opus 4.6 to 4.8 and Sonnet 4.6 support up to 300k output tokens with the output-300k-2026-03-24 beta header.
Sourcesplatform.claude.com › overviewplatform.claude.com › context-windowsfetched 2026-11-19
What counts toward the context window
The context window is "all the text a language model can reference when generating a response, including the response itself" — a working memory distinct from training data. Concretely, everything in the request counts: the system prompt, every message in messages (including tool results, images, and documents), and the tool definitions. The model's output for the turn — including its extended thinking — counts too. Cached prompt prefixes still occupy the window; prompt caching changes what you pay for those tokens, not whether they count. This is why untrimmed tool results (Task 5.1's central example) are a budget problem even when they're cheap to reprocess.
Sourceplatform.claude.com › context-windowsfetched 2026-07-30
Overflow behaviour: 400 error vs model_context_window_exceeded
If the input alone already exceeds the model's context window, the API returns a 400 invalid_request_error ("prompt is too long") on every model — there is no silent truncation. On Claude 4.5 models and newer, if input tokens plus max_tokens together exceed the window, the request is instead accepted, and if generation reaches the limit it stops with stop_reason: "model_context_window_exceeded" (earlier models return a validation error instead). To avoid both failure modes, the docs recommend the token counting API (POST /v1/messages/count_tokens) to estimate usage before sending a request; that endpoint is "free to use but subject to requests per minute rate limits", and token counting and message creation have "separate and independent rate limits".
Sourcesplatform.claude.com › context-windowsplatform.claude.com › token-countingfetched 2026-07-30
Context rot: why more context is not automatically better
"As token count grows, accuracy and recall degrade, a phenomenon known as context rot. This makes curating what's in context just as important as how much space is available" — straight from the docs, and echoed by Anthropic's engineering team: context must be "treated as a finite resource with diminishing marginal returns" because LLMs draw on a limited "attention budget" that every added token depletes. Two causes are named: the n² pairwise attention relationships between tokens get stretched thin as sequences lengthen, and models simply see fewer long sequences than short ones in training. This is the mechanism behind the lost-in-the-middle effect and the reason a bigger context window is not a substitute for trimming and structuring what goes into it.
Sourcesplatform.claude.com › context-windowsanthropic.com › effective-context-engineering-for-ai-agentsfetched 2026-07-30
Context awareness: automatic token-budget tracking
Claude Sonnet 5, Sonnet 4.6, Sonnet 4.5, and Haiku 4.5 have built-in "context awareness": these models track their own remaining context window (their "token budget") throughout a conversation via budget tags the API injects automatically — there is nothing to enable. This lets the model itself factor "how much room is left" into decisions such as when to compress its own output or wrap up a turn, independent of any case-facts or trimming pattern the developer builds on top.
Sourceplatform.claude.com › context-windowsfetched 2026-07-30
Compaction: the official long-horizon technique, and its risk
Anthropic names the pattern this lesson's case-facts block is a variant of: compaction is "the practice of taking a conversation nearing the context window limit, summarizing its contents, and reinitiating a new context window with the summary." It is one of three long-horizon techniques (alongside structured note-taking and sub-agent architectures) for work that outlasts a single context window. The risk is explicit: "overly aggressive compaction can result in the loss of subtle but critical context whose importance only becomes apparent later" — exactly the failure mode this lesson calls the progressive summarisation trap. The lightest-touch form is "tool result clearing", which the post calls "one of the safest lightest touch forms of compaction" and notes was "most recently launched as a feature on the Claude Developer Platform". Separately, the API docs describe a beta server-side compaction feature, available for Claude 4.6 and later models, that "automatically summarizes earlier parts of the conversation on the server, so the conversation can continue past the context window limit".
Sourcesanthropic.com › effective-context-engineering-for-ai-agentsplatform.claude.com › context-windowsfetched 2026-07-30
Quick Reference
| Fact | Value |
|---|---|
| Context window — current 5.x models (Opus 5.5, Sonnet 5.5, Haiku 5.5, Fable 5.2 and earlier 5.x), Opus 4.6–4.8, Sonnet 4.6 | 1,000,000 tokens (default, no beta header) |
| Context window — Opus 4.5, Sonnet 4.5, Haiku 4.5 | 200,000 tokens |
| Max output — 1M-window models | 128k tokens (300k via Batches API beta header on Opus 5.5/5, Sonnet 5.5/5, Haiku 5.5, Opus 4.6–4.8, Sonnet 4.6) |
| What counts toward the window | System prompt + all messages (incl. tool results/images/docs) + tool definitions + output (incl. thinking) |
| Cached tokens | Still count toward the window; caching changes cost, not window usage |
| Input alone > window | 400 invalid_request_error ("prompt is too long") |
| Input + max_tokens > window (4.5+ models) | Request accepted; stops with stop_reason: "model_context_window_exceeded" |
| Stay-within-limits tool | Token counting API, POST /v1/messages/count_tokens (free, separate rate limit) |
| Context rot | Accuracy/recall degrade as token count grows — curate, don't just expand |
| Context awareness | Sonnet 5/4.6/4.5 and Haiku 4.5 auto-track remaining token budget; nothing to enable |
| Compaction | Summarise a conversation nearing the limit, reinitiate with the summary; risk = losing subtle context |
| Lightest-touch compaction | Tool result clearing (Developer Platform feature) |
| Server-side compaction | Beta, Claude 4.6+, summarises earlier turns server-side to continue past the limit |
| Context editing (beta) | Tool result clearing and thinking block clearing, for more specialised needs than compaction |
| Request layout | Case facts block → (summarised) history → newest turn; for aggregated input: key findings → headed detail → task |
| Where to trim tool output | Before it enters history: PostToolUse hook with updatedToolOutput, the tool or MCP server, or your own loop; by task relevance, not size |
| Lost in the middle vs attention dilution | Position in one input → reorder + headers; too many targets in one pass → split into passes |
Exam Traps
More wrong answers, and why each fails
| Tempting answer | Why it fails | Choose instead |
|---|---|---|
| Tell the model to ignore the tool-result fields the task does not need | The fields are still sent, counted against the window and re-sent next turn; the constraint is payload, not attention | Trim the result before it enters history |
| Move the most important source to the end, since the end is attended to reliably | It rescues one source and moves the problem onto whichever source now sits in the middle | Key findings summary first, headed detail, task last |
| Interleave the sources paragraph by paragraph so none sits in the middle alone | Spreads every source thin and destroys the section boundaries synthesis needs to attribute claims | One explicit header per source under a leading summary |
| Put the case facts block at the very end, after the current turn | It sits behind the history it is meant to outrank and inside whatever gets rewritten | Facts block first, then history, then the newest turn |
| Upstream agents return compact findings with no dates, locations or method | Saves tokens but reintroduces the summarisation loss: synthesis cannot weigh, date or attribute the claims | Structured findings that carry their metadata |
| A new summarisation service, a classifier or a bigger model to stop facts going missing | Over-engineering for a layout problem, and a bigger window does not stop context rot | Case facts block, trimming and structured layout, built in code |
How This Is Tested
Stems describe a system that is already misbehaving; the answer is almost always a change to what reaches the context, and where.
| Stem signal | Answer | Wrong-answer pattern beside it |
|---|---|---|
| "By turn 20 the agent quotes the wrong refund amount" or "forgets the date the customer gave" | Persistent case facts block, rebuilt each request, outside the summarised history | Better summarisation prompt; a larger context window; asking the model to remember |
| Several issues in one session, and an order number turns up on the wrong issue | One structured record per issue in a separate context layer | One shared narrative summary of the whole session |
| "The synthesis omits findings that sat in the middle of the aggregated input" | Key findings summary first, explicit section headers, task at the end | An instruction to "consider every section equally"; splitting into passes |
| "Order lookups return 40+ fields; the context fills after a handful of lookups" | Trim to task-relevant fields before they accumulate, ideally in a PostToolUse hook | Instructing the model to ignore fields; trimming after the run; trimming by size |
| "The synthesis agent runs out of context" or "loses which source said what" | Upstream agents return structured findings (key facts, citations, relevance scores) with dates, source locations and method | Passing full pages plus the upstream reasoning; compact output with no metadata |
| "Should we drop the oldest turns to save tokens?" | No: send the full history, summarise the narrative and keep the facts verbatim | Truncating turns; relying on a server-side session that does not exist |
| A prompt that is too long, or a job moved to a smaller-window model | Count and curate against that model's window (input alone over the window is a 400) | Adding a non-existent long-context beta header |
Practice Scenario
Your agent builds its case facts block from the first lookup_order result at turn two. At turn six the customer raises a second order, and the first order's status moves to refund_approved. By turn nine the agent is still quoting the original pending status and has never mentioned the second order, although both changes appear in the transcript. What's the most effective first step?
Practice Questions
Exam simulator
Question 1 of 13
Scenario · Customer Support Resolution Agent
Early in a long chat, a customer said the replacement must arrive before 14 June because it is a wedding gift, and accepted a £18.40 credit for the delay. Your pipeline folds older turns into a running summary. At turn 15 the agent offers standard 7–10 day delivery and "a credit for the inconvenience" with no amount. What change would most effectively prevent this?
Sources
- Claude Certified Architect Foundations Exam Guide — Domain 5, Task Statement 5.1 — Anthropic
- Anthropic API Documentation — Messages — Anthropic
- Anthropic Prompt Engineering — Long Context Tips — Anthropic
- Models overview — Anthropic
- Context Windows — Anthropic
- Effective Context Engineering for AI Agents — Anthropic
- Claude Docs — Token Counting — Anthropic