Skip to content
CCAR-F Prep

Task Statement 4.6·Domain 4 — 20% of exam

Multi-Instance and Multi-Pass Review

Design multi-instance and multi-pass review architectures

Jump to practice →

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 4.6: Design multi-instance and multi-pass review architectures

Knowledge of

  • Self-review limitations: a model retains reasoning context from generation, making it less likely to question its own decisions in the same session
  • Independent review instances (without prior reasoning context) are more effective at catching subtle issues than self-review instructions or extended thinking
  • Multi-pass review: splitting large reviews into per-file local analysis passes plus cross-file integration passes to avoid attention dilution and contradictory findings

Skills in

  • Using a second independent Claude instance to review generated code without the generator's reasoning context
  • Splitting large multi-file reviews into focused per-file passes for local issues plus separate integration passes for cross-file data flow analysis
  • Running verification passes where the model self-reports confidence alongside each finding to enable calibrated review routing

What You Need to Know

A model asked to review what it has just written is not approaching the work neutrally — it still holds the reasoning that produced it, and reasoning it has already justified is reasoning it is inclined to defend. That is not a defect to prompt around. It is a property to design around.

Three Separate Design Questions

The task statement bundles three decisions, and exam items usually test one at a time. Keep them apart when you read a stem:

QuestionWrong answerRight answer
Who reviews?The session that generated the workAn independent instance with no generating context
How much goes into one pass?All the files at onceOne file per pass, then one cross-file integration pass
What happens to each finding?Filtered or routed on a raw self-reported scoreRouted by severity and confidence, with the threshold calibrated on labelled data

A stem about a reviewer that approves its own bug is about the first question; a stem about uneven depth across 14 files is about the second. Answering one with the other's fix (a fresh session for dilution, per-file passes for self-review bias) is a common way to pick a plausible wrong option.

The Self-Review Limitation

Within one session, the chain that produced the output is still present: why each approach was taken, why a finding was rated where it was, why particular values were selected. In code generation that means the session is carrying:

  • the assumptions it made ("callers always pass a non-empty list")
  • the trade-offs it chose ("no locking; this path is single-threaded")
  • the cases it decided were out of scope
  • a general commitment to the reasoning that produced the output

Asked to review, the model reads its own justifications alongside the output, and confirmation is the path of least resistance. It reads the code as intended. The bugs live in the code as written, which is where an outside reader starts.

An independent instance — a separate invocation carrying none of that history — has only the artefact to go on. It evaluates the code, the findings, the extraction as they stand, with no prior commitment to explain away. That absence of context is precisely what makes it better at finding what the first pass missed.

The exam tests this directly. Offered a set of ways to improve review quality, the option that scores is the one that moves the review to a separate instance. Instructing the same session to take more care, or giving it more room to think, both leave the justifications in place — and those are the problem. Independence is also cheap: a second non-interactive claude -p run, a second SDK call or a separate CI job, which is part of why it beats every same-session alternative on this exam.

In the examples below, client is an Anthropic SDK client and generated_code is the output of an earlier generation call.

// Anti-pattern: self-review in the same session
const generation = await client.messages.create({
  model: "claude-sonnet-5-5",
  max_tokens: 4096,
  messages: [
    { role: "user", content: "Write a function to process orders" },
    { role: "assistant", content: generatedCode },
    { role: "user", content: "Now review your code for bugs" }
    // Model retains its reasoning — less likely to find its own mistakes
  ]
});

// Correct: independent review instance
const review = await client.messages.create({
  model: "claude-sonnet-5-5",
  max_tokens: 4096,
  messages: [
    {
      role: "user",
      content: `Review this code for bugs, security issues, and edge cases:\n\n${generatedCode}`
    }
    // Fresh instance — no prior reasoning context
  ]
});
Self-review defends; an independent instance judges A session asked to write a function to process orders, then asked in the same conversation to review its own code for bugs, still holds the reasoning that produced it — why this approach, why these values — and that reasoning is defended rather than questioned, so the review returns few findings. An independent instance breaks the chain: Session A writes the code and Session B, a separate invocation carrying none of that history, receives only the code and the instruction to review it for bugs, security issues and edge cases. With only the artefact to go on and no prior commitment to explain away, Session B returns real findings. Self-review, same session "write a function to process orders" generated code reasoning: approach chosen, values selected "now review your code for bugs" reasoning still present ✕ few findings — the reasoning is defended, not questioned Independent instance Session A — writes the code its own reasoning, kept here clean break Session B — only the code no reasoning carried over "review this code for bugs, security issues, and edge cases" ✓ real findings — bugs, security issues, edge cases only the artefact to go on — nothing to explain away
1 / 6Swipe diagram ↔

Self-review defends; an independent instance judges, step 1: Write a function to process orders

What the independent reviewer should and should not receive

Independence means no generating reasoning, not no context at all. A reviewer with nothing to judge against drifts away from what you care about, so give it the material a careful outside reviewer would ask for:

Give the reviewerWithhold
The final code or diffThe generator's chain of reasoning
The requirement or ticket it implementsThe generator's justifications for its choices
Project conventions and review criteria (in Claude Code, CLAUDE.md is the guide's named mechanism for giving CI-invoked runs this context)"The author says this is safe because…"
Test resultsAny summary of the above, however short

Passing the generator's rationale, even condensed, re-imports the commitment you were escaping: the reviewer evaluates the justification instead of the result. This is the same contamination that makes one session a poor place to try two competing approaches (Task 1.7).

Multi-Pass Review Architecture

Put a multi-file PR, a broad audit or a long extraction through one pass and attention dilution sets in. It announces itself the same way every time:

  • Close, specific commentary on some files and summaries on others
  • Plain defects passed over somewhere in the middle of the set
  • The same construct raised as a problem in one file and accepted without comment in another

The third symptom is the diagnostic signature. Uneven depth could, in principle, reflect uneven code; the same pattern judged two ways in one review cannot. It shows that no single stable frame was applied to every file.

Splitting the work into passes that each answer one kind of question resolves it. This is the prompt-chaining pattern from Task 1.6 ("analyze each file individually, then run a cross-file integration pass") seen from the review side:

Pass 1: Per-file local analysis. One file per invocation, reviewed on its own terms. Because nothing else is competing for the budget, the depth of the tenth file matches the depth of the first.

Pass 2: Cross-file integration. With the per-file work complete, a further pass receives those findings and looks for what only exists between files: data flowing between modules, API usage that diverges across services, dependency conflicts, and disagreements among the findings themselves.

PassQuestion it answersTypical finds
Per-file"Within this file alone, what is wrong?"Null dereferences, unhandled errors, boundary bugs, local security issues
Integration"Across these files, what breaks?"Caller and callee signatures drifting apart, a shared invariant changed in one place, inconsistent error handling, duplicated logic, contradictory per-file verdicts

Both passes are required. Per-file passes alone miss everything that crosses a file boundary; an integration pass alone reproduces the diluted single pass and misses local bugs.

In the examples below, files is the list of changed files and async_client is the SDK's async client. Each per-file call returns its findings as text, which the integration pass receives together.

// Pass 1: Per-file analysis
const responses = await Promise.all(
  files.map(file =>
    client.messages.create({
      model: "claude-sonnet-5-5",
      max_tokens: 4096,
      messages: [{
        role: "user",
        content: `Review this file for local issues (bugs, security, logic errors):\n\n${file.content}`
      }]
    })
  )
);
const perFileFindings = responses.map(r => r.content[0].text);

// Pass 2: Cross-file integration
const integrationReview = await client.messages.create({
  model: "claude-sonnet-5-5",
  max_tokens: 4096,
  messages: [{
    role: "user",
    content: `Each file has already been reviewed in isolation. Report only issues ` +
      `arising from interactions between files; do not restate per-file findings:\n` +
      `- Data flow inconsistencies between modules\n` +
      `- Contradictory patterns flagged in different files\n` +
      `- API contract violations across service boundaries\n\n` +
      `Findings:\n${JSON.stringify(perFileFindings)}`
  }]
});

Each symptom maps onto a part of this. Uneven depth disappears because no file shares its pass. Cross-file problems get found because one pass exists to look for nothing else. Contradictions surface rather than shipping, because comparing the findings is now an explicit step.

Attention dilution, and the split that fixes it A single review pass over ten files produces detailed commentary on the first and last file but superficial marks on the files between them, misses a bug planted in file six, and flags the same code pattern as a problem in one file while approving identical code in another. Splitting the review into one focused pass per file, each with nothing else competing for its attention, gives every file the same depth and catches the previously missed bug. A separate integration pass then receives all the per-file findings and looks specifically for what a single file could never reveal on its own: data flowing between modules, and contradictions between the findings themselves. Single pass, 10 files f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f1 & f10: detailed — f2–f9: superficial ✕ f6's bug — uncaught, missed in the middle ✕ same pattern — flagged in f6, approved in f7 Per-file passes + integration f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 10 separate passes — one file each, uniform depth ✓ f6's bug caught integration pass — reads all findings each pass answers a single question
1 / 6Swipe diagram ↔

Attention dilution, and the split that fixes it, step 1: One pass over 10 files — depth uneven from the start

What each pass receives

The split only works if each pass is given what its question needs and nothing that competes with it:

  • A per-file call gets its own file only. Not the whole diff "for context", not its neighbours in the diff, not a summary of the other files, and not an earlier run's findings for it. Other files compete for the same attention budget, and earlier findings anchor the pass to what the diluted run already saw. Review criteria and conventions are fine: they frame the question rather than compete with the file.
  • The integration pass gets every per-file finding, as structured data. Structured fields (file, line, pattern, verdict) let it compare findings systematically; free prose cannot be compared field by field. Do not pre-filter to high severity: a contradiction is usually two findings that each looked minor locally.
  • The integration pass is told to skip local issues. The two passes ask different questions, so say so in the prompt ("assume each file has been reviewed in isolation; report only issues arising from interactions between files"). Without that line it re-reports local findings and you get duplicates.

Why Larger Context Windows Do Not Fix This

One distractor recurs: move to a higher-tier model with a larger context window. It follows naturally — if 14 files will not fit comfortably, supply more room. But capacity was never what failed: the files already fit, which is why the single pass ran at all. Attention distributes unevenly across whatever is present, and a larger window changes how much can be present rather than how evenly it is treated. The fall-off simply begins later. Only giving a file a pass of its own guarantees it a full share.

The same reasoning rules out more thinking or a higher effort setting on the single pass: that buys depth within a pass, not an even spread of attention across the files in it.

A bigger window doesn't fix attention dilution Moving a large multi-file review to a model with a bigger context window lets all ten files fit comfortably, but the uneven attention curve that produced the dilution symptoms is still there — it has simply shifted, peaking early and tapering late instead of favouring the first and last file, and a bug can still sit missed somewhere in the middle. Capacity was never what failed: attention distributes unevenly across whatever is present, and a larger window changes how much can be held, not how evenly it is treated. Per-file passes fix it regardless of window size, because a file reviewed in its own pass has nothing else competing for that attention. Bigger context window larger window — all 10 files fit f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 peaks early, tapers late — bug in f8 still missed capacity was never what failed Per-file passes ✓ uniform depth — whatever the window size only a pass of its own guarantees a full share
1 / 6Swipe diagram ↔

A bigger window doesn't fix attention dilution, step 1: A bigger context window — all 10 files fit comfortably

Confidence-Based Routing

Where a finding is uncertain, the model can attach its own confidence to it, which makes routing possible:

  • High confidence findings: go straight to the developer
  • Low confidence findings: divert to a person before anyone acts on them
  • Threshold calibration: decide where that line sits by measuring reported confidence against known-correct answers

Each finding carries the fields that later steps need: its location and a detected_pattern naming the construct that triggered it (for de-duplication and for measuring precision per pattern), a severity, a category (for measuring precision per category), and the confidence with its basis. The basis matters as much as the number: it is what lets you see later why the model was unsure.

{
  "file": "src/orders/lock.ts",
  "line": 88,
  "detected_pattern": "unlock_in_async_callback",
  "category": "correctness",
  "finding": "Potential race condition in order processing",
  "severity": "high",
  "confidence": 0.65,
  "reasoning": "The lock acquisition pattern appears correct but the unlock timing depends on an async callback whose ordering I cannot fully verify.",
  "route": "human_review"
}

Route on severity and confidence together

Confidence alone treats an uncertain typo and an uncertain security hole the same way. Routing on both spends scarce human attention where a wrong call costs most:

High severityLow severity
High confidencePost as a blocking inline commentPost as a non-blocking note
Low confidenceRoute to a human reviewer for triageLog only; keep for pattern analysis

"High" and "low" confidence here mean either side of a calibrated threshold, which is the next point.

Raw confidence is a routing signal, not a filter or a measurement

What that number reports is the model's sense of its own certainty, which is not the same thing as its accuracy. The two only become related through measurement: run examples whose answers you already know, observe how the reported confidence tracks correctness, and set the routing threshold from what you observe. Until then, any cut-off (0.80, 0.5, whatever a colleague suggests) is a placeholder: there is no conventional value, because how confidence tracks accuracy varies by task and corpus. One practical way to make the measurement is to group findings into confidence bands (0.6–0.7, 0.7–0.8 and so on), work out what share in each band the labels confirm as correct, and put the threshold at the lowest band whose share is acceptable for findings that reach a developer unchecked.

That measurement is the whole distinction the exam draws — between a raw score, which is uncalibrated and unfit to automate against, and a calibrated threshold validated on labelled data. Automating decisions on the former is an anti-pattern. Two uses are legitimate and one is not:

Use of self-reported confidenceVerdict
As the signal that routes each finding, once the threshold is calibratedCorrect: this is the skill the guide names
As raw material for calibration against a labelled setCorrect: emit it so it can be measured
As a precision filter inside the prompt ("only report high-confidence findings")Wrong: Task 4.1's guide text says such instructions "fail to improve precision compared to specific categorical criteria"

Official sample question 3 (Task 5.2) rejects the same move in an escalation setting. Its option B, "Have the agent self-report a confidence score (1-10) before each response and automatically route requests to humans when confidence falls below a threshold", fails because "LLM self-reported confidence is poorly calibrated—the agent is already incorrectly confident on hard cases."

What counts as labelled data

The labels must come from outside the model: human verdicts recorded against past findings, or recorded outcomes such as whether a developer acted on a posted comment. A second Claude instance re-checking findings is a useful independent verification pass, and it should see only the code and the finding (not the original score, which anchors it, and not the generating reasoning). But its verdict is another model's judgement, not ground truth, so it cannot be what a threshold is calibrated against. Task 5.5 extends the same calibration to field-level confidence in extraction.

Outcome data also shows where the reviewer misfires, which is the input to Task 4.1's criteria work. Going beyond the guide, a per-category tally of posted findings against findings acted on might read:

CategoryRaisedActed onPrecision
security22200.91
correctness50440.88
maintainability2240.18
performance84130.15

The two weak categories are what teach developers to ignore the two strong ones; the guide's remedy is to temporarily disable the high false-positive categories while their prompts are improved (Task 4.1), not to filter on confidence and not to delete the category. A disabled category can keep running in shadow mode (findings generated and logged, not posted), so its precision can be re-measured as the criteria are reworked. Breaking the tally down by detected_pattern names the construct that misfires inside a category, so the rework targets that rule.

A raw score needs calibration before it can route A finding reported at confidence 0.90 and a finding reported at confidence 0.55 look like they sort themselves — until an independent check shows the 0.90 finding is actually wrong and the 0.55 finding is actually right. Self-reported confidence is uncalibrated: certainty on findings that are wrong, hedging on findings that are correct. Running labelled examples through and plotting reported confidence against actual correctness produces a calibration curve, and a routing threshold set where the two genuinely track is what turns the raw score into something safe to automate against. Raw confidence Finding A confidence: 0.90 Finding B confidence: 0.55 ✕ actually wrong ✓ actually right certainty on wrong findings, hedging on right ones Calibrated threshold labelled examples run through reported confidence → threshold ✓ set where confidence actually tracks correctness only measurement turns a raw score into a routing signal
1 / 6Swipe diagram ↔

A raw score needs calibration before it can route, step 1: Finding A: confidence 0.90 — Finding B: confidence 0.55

Merging Findings and Re-running Reviews

Once several passes have produced findings, combining them is a deterministic job, so do it in your own code rather than asking a model to de-duplicate its own output, which reintroduces a judgement step where none is needed. Key each finding on its file, line and detected_pattern.

The same key handles re-runs after new commits. The guide's Task 3.6 skill is to include prior review findings in context and instruct Claude "to report only new or still-unaddressed issues to avoid duplicate comments". Both halves matter: prior findings passed without that instruction are simply reproduced. Your code then marks which surviving findings were already posted. In this sketch, prior is the list posted on the last run and each item in passes is one pass's list of findings:

def merge(prior: list[dict], *passes: list[dict]) -> list[dict]:
    key = lambda f: (f["file"], f["line"], f["detected_pattern"])
    posted_before = {key(f) for f in prior}
    merged: dict[tuple, dict] = {}
    for findings in passes:
        for f in findings:
            merged.setdefault(key(f), f)  # first report of a key wins
    return [{**f, "previously_reported": k in posted_before}
            for k, f in merged.items()]

The invariant: one finding per file, line and pattern, however many passes or runs reported it, and a finding already on the PR is flagged rather than posted again.

Putting It All Together

A production review architecture combines all three concepts:

  1. Generation: the first instance produces the code, extraction or analysis
  2. Per-file review: each unit is examined by an instance holding nothing but that unit
  3. Integration review: a further instance looks only for what sits between units
  4. Merge and de-duplicate: your code, keyed on file, line and pattern
  5. Route: by severity and confidence; whatever falls below the threshold reaches a person
  6. Post: only new or still-unaddressed findings (Task 3.6)
  7. Calibration loop: labelled data keeps that threshold honest as the system changes

It costs more than reviewing once, and the question is what a missed issue costs by comparison. Where the review gates a CI/CD pipeline, financial extraction or compliance analysis, what escapes it goes downstream — and the extra passes are cheap against that.

Deep Dive

Official guidance: fresh context is the mechanism, not a heuristic

Anthropic's own best-practices documentation states the principle this lesson teaches as settled guidance, not a tip: "A fresh context improves code review since Claude won't be biased toward code it just wrote." This is offered as one of several "quality-focused workflows" enabled by running multiple sessions — the exam's "independent instance" requirement is a direct restatement of this documented pattern, not an inference from first principles.

Sourcecode.claude.com › best-practicesfetched 2026-07-30

The Writer/Reviewer session pattern

The concrete architecture the docs describe: "use a Writer/Reviewer pattern... You can do something similar with tests: have one Claude write tests, then another write code to pass them." One session (or instance) generates the artefact; a second, separately-initialised session reviews it; the first then addresses the feedback. This is a two-instance loop, not a three-stage pipeline — the reviewer's only job is to evaluate, never to have also produced the thing it is evaluating.

Sourcecode.claude.com › best-practicesfetched 2026-07-30

Adversarial review sees only the diff and the criteria

Before treating work as done, the docs recommend a review step that deliberately withholds the generating reasoning: "A reviewer running in a fresh subagent context sees only the diff and the criteria you give it, not the reasoning that produced the change, so it evaluates the result on its own terms." This is the precise mechanism behind why self-review under-performs — it isn't that the same model is "worse," it's that it has extra information (its own justification) that a genuinely fresh reviewer never receives, and that extra information biases it toward confirmation.

Sourcecode.claude.com › best-practicesfetched 2026-07-30

Verification by a second opinion that tries to refute the result

The docs describe a specific pattern for high-stakes verification: "a verification subagent or a dynamic workflow that checks its own findings has a fresh model try to refute the result, so the agent doing the work isn't the one grading it." The framing — trying to refute, not merely re-confirm — is stronger than a neutral second look; it's an adversarial stance that surfaces the subtle issues a confirmatory pass would skate past.

Sourcecode.claude.com › best-practicesfetched 2026-07-30

Subagent context isolation is the architectural primitive underneath

The independent-instance pattern rests on the same isolation property that makes subagents useful generally: "subagents use their own isolated context windows, and only send relevant information back" to the coordinator. An independent review instance is this same primitive applied to review specifically — it never inherits the generating session's conversation history, so it cannot be biased by reasoning it never saw.

Sourceclaude.com › building-agents-with-the-claude-agent-sdkfetched 2026-07-30

LLM-as-judge is explicitly the weakest verification method

The Agent SDK guidance ranks verification methods and places model-judges-model near the bottom: "Verification via LLM-as-judge... is generally not a very robust method, and can have heavy latency tradeoffs." This matters directly for confidence-based routing in this task statement — a raw, self-reported confidence score is a form of the model judging itself, which is exactly the weak pattern this guidance warns against. It is one more reason routing thresholds must be calibrated against labelled data rather than trusted as reported.

Sourceclaude.com › building-agents-with-the-claude-agent-sdkfetched 2026-07-30

Calibration method: evaluate the end state with a rubric, starting small

Anthropic's multi-agent research system describes the calibration workflow this task statement's confidence-routing skill depends on. First, judge outcomes, not process: "Instead of judging whether the agent followed a specific process, evaluate whether it achieved the correct final state." Second, use a structured rubric rather than free-form grading: "an LLM judge that evaluated each output against criteria in a rubric: factual accuracy, citation accuracy, completeness, source quality, and tool efficiency." Third, start small — "about 20 queries representing real usage patterns" is enough to see the impact of a change — and keep a human in the loop regardless of automation, because "people testing agents find edge cases that evals miss."

Sourceanthropic.com › multi-agent-research-systemfetched 2026-07-30

Quick Reference

ItemValue / rule
Documented principle"A fresh context improves code review since Claude won't be biased toward code it just wrote"
Writer/Reviewer patternSession A generates → Session B reviews (fresh) → Session A addresses feedback
What an adversarial reviewer seesOnly the diff and the review criteria — never the generating reasoning
Also give an independent reviewerThe requirement, project conventions (CLAUDE.md in Claude Code) and test results
Verification-by-second-opinion goalA fresh model actively tries to refute the result, not just re-confirm it
Architectural basis for independenceSubagent context isolation — isolated context windows, no inherited history
Weakest documented verification methodLLM-as-judge — "not a very robust method," heavy latency tradeoffs
Attention dilution symptomsInconsistent depth, missed middle-file bugs, contradictory findings
Diagnostic signature of dilutionThe same pattern flagged in one file and approved in another
Fix for attention dilutionPer-file passes + a separate cross-file integration pass — NOT a bigger context window
Why bigger context windows don't fix itThe problem is attention quality, not context capacity
Per-file call inputIts own file only (plus criteria); no other files, summaries or earlier findings
Integration pass inputAll per-file findings as structured data, with an instruction to skip local issues
"Flag only what 2 of 3 passes agree on"Wrong: suppresses real bugs that are caught intermittently (sample question 12, option D)
Confidence-routing ruleSeverity × confidence: high/high blocks, high/low notes, low/high to a human, low/low logged
Raw self-reported confidenceUncalibrated — a form of the model judging itself; never an in-prompt filter
Calibration methodCompare reported confidence against labelled validation sets, not intuition
Labels come fromHuman verdicts or recorded outcomes — not a second model's opinion
Merge and de-duplicateIn your code, keyed on file + line + detected_pattern
Re-run after new commitsPrior findings in context + instruction to report only new or still-unaddressed issues
Evaluation judging principleJudge whether the correct final state was reached, not whether a specific process was followed
LLM-judge rubric exampleFactual accuracy, citation accuracy, completeness, source quality, tool efficiency
Starting eval set size~20 representative queries is enough to see the impact of a change
Manual testingStill essential even with automated evals — catches edge cases evals miss

Exam Traps

More wrong answers, and why each fails

Tempting answerWhy it failsChoose instead
Require developers to split large PRs into a few files eachMoves the burden to people and leaves the reviewer unchanged; the next legitimately large PR dilutes againPer-file passes plus an integration pass
Have the same session re-read the file before reviewing itRe-reading adds the file again; it does not remove the reasoning already in contextA fresh instance
Raise the effort or thinking budget on the single passMore depth per pass, not an even spread of attention across filesSplit the passes
Ask the model to de-duplicate or merge its own findingsA judgement step where a deterministic one will doMerge in code on file, line and pattern
Calibrate the threshold against a second model's verdictsCalibrates against another uncalibrated judgeHuman verdicts or recorded outcomes

How This Is Tested

Stem signalAnswerWrong-answer pattern beside it
The generating session reviews its own code and reports it clean; an outside reader finds a bug fastReview in an independent instanceA firmer "be critical" instruction; extended thinking; re-reading
14 files: uneven depth, a missed bug, one pattern judged two waysPer-file passes plus a separate integration passBigger context window; developers split PRs; 2-of-3 consensus
"Would a larger context window fix review quality?"No: attention quality, not capacity"All files will fit comfortably"
What should the reviewer subagent receive?The diff and the criteria (plus requirement, conventions, tests), no generating reasoningThe full transcript; a "condensed" summary of it
Limited human review capacity across many findingsRoute by severity and confidence, threshold calibrated on labelled dataOnly report high-confidence findings; a fixed 0.80 cut-off
A high-confidence finding was wrong, more than onceTreat the score as uncalibrated and measure itRaise the threshold; replace the model
Re-run after new commits produces duplicate commentsPrior findings plus "report only new or still-unaddressed issues"Prior findings alone; deleting old comments

Official sample question 12, option by option

The stem: "A pull request modifies 14 files across the stock tracking module. Your single-pass review analyzing all files together produces inconsistent results: detailed feedback for some files but superficial comments for others, obvious bugs missed, and contradictory feedback—flagging a pattern as problematic in one file while approving identical code elsewhere in the same PR. How should you restructure the review?"

OptionVerdictThe official explanation
A. "Split into focused passes: analyze each file individually for local issues, then run a separate integration-focused pass examining cross-file data flow."CorrectIt "directly addresses the root cause: attention dilution when processing many files at once. File-by-file analysis ensures consistent depth, while a separate integration pass catches cross-file issues."
B. "Require developers to split large PRs into smaller submissions of 3-4 files before the automated review runs."WrongIt "shifts burden to developers without improving the system."
C. "Switch to a higher-tier model with a larger context window to give all 14 files adequate attention in one pass."WrongIt "misunderstands that larger context windows don't solve attention quality issues."
D. "Run three independent review passes on the full PR and only flag issues that appear in at least two of the three runs."WrongIt "would actually suppress detection of real bugs by requiring consensus on issues that may only be caught intermittently."

The stem lists all three dilution symptoms, and the contradictory verdict is the one that settles it: no amount of room or repetition makes a single pass apply one frame to every file. D is the most tempting because "three independent passes" echoes this task's own vocabulary; but independence here would need separate files, not separate repetitions of the whole PR. The three wrong options belong to families that recur across the exam: B is a scope shift (the burden moves to people and the system is unchanged), C is plausible but mismatched (a real fix for a constraint, capacity, that is not the one failing), and D is suppression (a filter that discards true positives along with the noise).

Practice Scenario

Your reviewer was rebuilt to make one call per file across a 12-file pull request, but each call is handed the entire diff so the file can be judged in context. The symptoms are unchanged: depth still tails off after the early files, a defect in the middle was missed again, and the same helper drew opposite verdicts in two files. What's the most effective first step?

Practice Questions

Exam simulator

Question 1 of 14

Scenario · Structured Data Extraction

Your extractor processes 120-page contract bundles in a single pass. Fields from the early schedules are complete, the later schedules come back sparse, and the output gives payment terms of net 30 from the main agreement and net 60 from schedule 7 without noticing the conflict. What change would most effectively improve the extraction?

Sources