Reference · print this · read before the exam

Decision Cheat-Sheet

Every "when you see X, pick Y" rule in one place. The exam is trade-off judgment — these are the trade-offs.

The two master heuristics 1. Guarantee needed → deterministic code (hook, prerequisite gate, forced order). Prompts/few-shot are probabilistic — never the answer when the stem says "guarantee," "must," "reliability," "financial."

2. Quality/calibration problem → proportionate first step = better descriptions / explicit criteria / few-shot, BEFORE infrastructure (classifiers, routing layers, sentiment, self-reported confidence). Watch for "first step" / "most effective" framing.

Domain 1 — Agentic Architecture

Loop controlstop_reason: continue on tool_use, stop on end_turn. NOT prose/iteration-cap/text-presence.
Tool result ignored next turnYou didn't append it to history (stateless API).
Coverage gaps + subagents all succeededCoordinator decomposition too narrow (upstream, not downstream).
Subagent ignores prior findingsContext isolated — pass it explicitly in the prompt.
Parallel subagentsMultiple Task calls in ONE response. Delegating at all → allowedTools has "Task".
Must verify before financial opProgrammatic prerequisite gate (deterministic), not prompt.
Normalize heterogeneous tool dataPostToolUse hook.
Block over-threshold actionTool-call interception hook.
Human handoff (no transcript access)Structured summary: ID, root cause, amount, recommended action.
Predictable multi-aspect workPrompt chaining. Open-ended discovery → dynamic decomposition.
Resume vs freshPrior valid → resume; stale tool results → fresh + summary; divergent branches → fork.

Domain 2 — Tool Design & MCP

Similar tools confusedFirst step: expand descriptions (purpose, inputs, examples, boundaries).
Generic tool misusedSplit into purpose-specific tools; or rename+re-describe.
Tool failureStructured error: category + isRetryable + readable msg.
Policy violation errorBusiness, not retryable, explain. Timeout → transient, retry.
Zero matchesSuccess with empty set ≠ access failure.
18 tools, poor selectionScope per role (least privilege); scoped cross-role tool for common case.
Model returns text not tooltool_choice: "any". Specific tool first → forced selection.
Shared server + secret.mcp.json + ${ENV}. Personal → ~/.claude.json.
Agent explores to find dataExpose an MCP resource (catalog).
Content search / filename / non-unique EditGrep / Glob / Read+Write.

Domain 3 — Claude Code Config

Teammate missing shared instructionsThey're in user-level config (not shared) → move to project.
Convention across scattered filesGlob rule in .claude/rules/ (not per-dir CLAUDE.md).
Team-wide slash command.claude/commands/ (config.json array doesn't exist).
Verbose skill clutters chatcontext: fork. Restrict tools → allowed-tools. Missing args → argument-hint.
Always-on standard vs run-sometimesCLAUDE.md vs skill.
Large/architectural/multi-approachPlan mode (now, if complexity is stated). Simple scoped → direct.
Verbose discovery exhausts contextExplore subagent (returns summary).
CI job hangs-p/--print. Structured findings → --output-format json+--json-schema.
Objective review of generated codeIndependent instance (not self-review, not bigger window).
Interacting vs independent fixesOne message vs sequential.

Domain 4 — Prompt Engineering & Output

Too many false positivesExplicit categorical criteria (not "be conservative"/confidence filter).
Inconsistent format / ambiguous judgment2–4 few-shot examples showing the boundary.
Guaranteed schema-valid outputtool_use + JSON schema (kills syntax errors, NOT semantic).
Sums wrong / value in wrong fieldSemantic — validation flow (calculated vs stated), not schema.
Model fabricates absent fieldMake field nullable/optional.
Retry works? Yes for format/structure; NO when info absent from source.
Latency-tolerant / overnightBatches API (50% off, no SLA, no multi-turn tools, custom_id). Blocking → sync.
Batch failuresResubmit by custom_id, chunk oversized.
Big review uneven/contradictoryPer-file + cross-file passes (window size irrelevant).

Domain 5 — Context & Reliability

Facts going vague in long sessionCase-facts block in every prompt.
Long input, middle droppedKey summary first + section headers.
Verbose tool outputTrim to relevant fields.
Codebase session degradingScratchpad files + subagent delegation + summarize between phases; crash → manifest.
Escalate?Human requested (now), policy gap/ambiguous, can't progress. NOT sentiment / self-confidence.
Multiple customer matchesAsk for more identifiers; don't guess.
Subagent failure propagationStructured context; local recovery first; partials up; annotate gaps; never silent-suppress or kill workflow.
Automate high-confidence extraction?First segment accuracy by doc type + field (aggregate hides gaps).
Route review attentionField-level confidence CALIBRATED on labeled set + stratified sampling. (Calibrated ≠ self-reported.)
Conflicting credible sourcesPresent both w/ attribution; check dates; don't pick/average/drop.
Distractor archetypes — reject on sight (unless the stem truly calls for them) Train a classifier / build a routing layer (over-engineering). Rely on sentiment or self-reported confidence (uncalibrated). Bigger context window fixes attention (it doesn't). Blame a downstream agent (look upstream). Prompt/few-shot when a guarantee is required (use a hook). A fabricated feature (--batch, CLAUDE_HEADLESS, config.json commands array).