The interview problem

Practice prompt

Build a research assistant that investigates a broad question using several concurrent workers, then returns a cited report. It must respect a fixed work budget, survive failed tools and distinguish supported findings from unresolved claims.

Engineering-inspired original practice, prompted by Anthropic's June 13, 2025 research-system article. This is not a reported interview question and does not reproduce that production architecture. Reviewed September 26, 2026. All budgets below are illustrative.

1. Decide when delegation helps

Clarify output depth, permissible sources, freshness, citations and deadline. Assume read-only research over public pages and authorized workspace documents, with no purchases, outbound messages or arbitrary code execution. A narrow factual lookup should use one worker. Parallel research is useful when subquestions can be investigated independently and the resulting evidence can be reconciled.

Spend 5 interview minutes on the contract, 10 on task state, 10 on evidence, 10 on budgets and 10 on failure recovery. Define a useful outcome as a report whose important claims are supported, whose uncertainty is visible, and whose source coverage matches the user's question. More tool calls are not inherently better research.

2. Persist tasks outside model context

A proposed POST /research-runs creates a run with question, source permissions, deadline and maximum resource budget. A planner emits bounded subquestions with explicit acceptance criteria and exclusions. Store the task graph in a database, including dependencies, attempts, leases, status, budget reservations and evidence references. Workers receive the relevant task context, not every other worker's transcript.

Logical flow: request → plan and budget allocation → independent evidence workers → claim reconciliation → synthesis → citation checks. A coordinator schedules ready tasks and persists milestones. It does not rely on remembering the workflow in a long prompt. A task result is a structured set of claims, evidence references, unresolved issues and coverage notes.

Use attempt generations and conditional completion writes so a slow worker cannot overwrite a newer attempt. Coordinator restart reloads durable state and reconciles leases. Re-executing a search may be harmless to correctness but still costs resources, so record tool-call identities and known results before deciding whether to retry.

3. Keep provenance attached to claims

Store source URL or document identity, retrieval time, publication/event dates when available, a content version or digest, and the specific supporting passage location. Distinguish what a source directly says from what a worker infers. Preserve only excerpts needed for support within appropriate retention and copyright limits; avoid turning the research store into a copied archive of publishers' content.

Normalize duplicate URLs and track syndication or shared origins. Three pages repeating one press release provide one underlying claim, not three independent confirmations. When sources disagree, preserve the disagreement and compare dates, definitions and scope rather than asking a majority vote of agents.

A citation checker verifies that linked evidence supports the nearby claim, not just that the URL exists. It also checks that numerical units, dates and qualifiers survived synthesis. Private evidence must retain its access restrictions; a final report shared with a broader audience cannot cite or disclose facts the recipient is not authorized to see.

4. Reserve the budget before fan-out

Suppose a run has a 120,000-token accounting budget that includes model inputs and outputs. Reserve 10,000 for planning, 20,000 for synthesis and checking, and 10,000 for contingency. Four workers can each receive at most 20,000, using the remaining 80,000. These are accounting limits, not context-window sizes. Repeated context sent on every call consumes budget again.

Before dispatch, reserve the maximum permitted output plus known input cost against the run ledger. Reconcile actual usage afterward and release unused reservations. Include tool charges or call quotas in separate dimensions; a token budget alone does not bound every cost. Cancel new work when the deadline or any hard budget is exhausted, retaining funds for a clear partial report.

If independent workers each need 90 seconds, planning needs 15 and synthesis/checking needs 30, the ideal parallel critical path is 135 seconds versus 405 seconds for sequential execution. Shared search limits, queueing and dependencies reduce that gain. If 100 simultaneous runs each request four workers and the system has 40 execution slots, 400 workers cannot all start immediately. Use per-run concurrency limits and fair scheduling.

5. Stop loops without discarding useful work

Track progress as newly supported claims, new relevant sources or resolved contradictions. Repeating semantically identical searches without new evidence consumes a bounded retry allowance. Set maximum delegation depth and task count; workers must not create unlimited descendants outside the coordinator's budget. Timeouts and explicit uncertainty are valid outcomes.

If a source is unavailable, retain that gap and try an authorized alternative. Do not substitute a snippet as full verification or bypass a login restriction. A worker failure may trigger one bounded retry or reassignment; completed sibling results remain available. If the deadline arrives, synthesize verified partial findings with a coverage statement instead of pretending the task is complete.

Treat source text as untrusted evidence, including instructions embedded in retrieved pages. The worker's tool permissions derive from the user's task and execution policy, never from a page telling it to send files or contact someone. Separate reading tools from side-effecting tools and enforce authorization outside model-generated plans.

6. Evaluate coverage, support and efficiency

Build tasks with independently reviewed claim sets and required evidence categories. Score supported-claim precision, important-claim coverage, citation correctness, contradiction handling, freshness and resource consumption. Use time-bounded source snapshots for reproducible comparisons, then separately test live-web drift. A reference answer is not necessarily exhaustive or current.

Compare against a single-worker baseline at equal total budget, not an arbitrarily cheaper baseline. Repeat trials because planning and search are stochastic. Inspect failure traces for duplicate research, unsupported synthesis, inaccessible sources and budget overruns. Report quality by task type so simple lookups cannot hide poor performance on genuinely broad questions.

More workers can increase breadth but also redundancy and reconciliation burden. Prefer a small fixed pool initially; add adaptive delegation only if measurement shows benefit. The final artifact should show what was established, what remains uncertain and which evidence supports each important conclusion.

7. Defend the difficult case

Foundation: explain why citations can be present but wrong. Senior: recover from coordinator failure without duplicating every search. Staff: keep one huge investigation from consuming all capacity while maintaining evidence access boundaries.

Score 0–2 each for durable task state, evidence provenance, enforceable budgets, bounded recovery and meaningful evaluation. Two points require a mechanism and limitation. Continue with agent evaluation design and execution isolation.

Sources and next steps

The proposed interfaces, failure protocol, calculations and rubric are our own educational design.

Continue your preparation

Choose a connected learning path or browse more ML system design questions. Read our editorial method and attribution policy.