The files were read. Why is the answer about the wrong timeout?
Maya asks why a request times out at 30 seconds when its default is 10 seconds.
In our fictional three-file repository, defaults.py supplies the default, client.py overrides it, and retries.py contains an unrelated retry timeout. An explorer reads all three. Maya sees only the planner’s fluent answer—about retries.
Successful reads in a separate context do not establish that usable findings reached the planner. The paper reports hand-off failures that usually ended in fluent, confident answers, not visible errors. §2.2; §6.4, The Deep Agent signature
Looking only at the planner also misses work: delegated sub-agents issued 68.8% of Deep tool calls. §5.3, Tool usage
About the timeout example
Every file, evidence token, timeout value, candidate answer, and assigned score in this example is a teaching fixture—not a recovered benchmark run. It demonstrates a possible failure, not its measured frequency.
A comparison, not a new search algorithm
This empirical comparison finds indexed retrieval stronger and cheaper for single-question, read-only repository QA, while trace coding identifies often-silent evidence hand-off failures as the largest category of delegated-agent failures. §5.1; §5.2; §6.4; §7
The authors did not invent a better search algorithm: they compared two complete agent setups and inspected how their answers went wrong. Keeping exploration outside the planner’s context can protect that context, but usable findings still have to reach the answerer. §1; §2.2; Construct validity
In Maya’s case, both needed facts are found, then omitted from the returned findings. The planner explains the wrong timeout. That illustrates the diagnosis—not a guarantee that indexed retrieval will answer Maya correctly.
What distinguishes this comparison?
Earlier comparisons used flat agents, studied conversational memory, or measured line localization for patching. This study compares hierarchical delegation with indexed ReAct across four answering models, jointly measuring quality, cost, behavior, and failures. §3, Related Work
Follow what reaches the answerer's context
Both architectures contain a ReAct loop: reason, call a tool, observe its result, and repeat. Deep adds planning and delegation; it is not a different kind of answering model. §2.2
Both work on the target repository, with a fresh conversation per question. Semantic retrieves nearby embedded chunks and can read files; those results enter its own answering context. Similarity can find a timeout without an exact identifier match—or find the wrong timeout. §2.2; §4
Teaching example. Discovery and delivery are separate events. Figure 1; §2.2
Exact tools and retrieval configuration
Semantic: get_repo_structure, search_rag, read_file. No shell, writing, or planning tools. Deep: write_todos, task, grep, ls, glob, read_file. Planner and explorer use the same model—not a cheap/strong split. Appendix A.1–A.2
Semantic uses 500-token chunks, 50-token overlap, text-embedding-3-small with 1,536 dimensions and L2 normalization, and a separate Chroma index per repository. Cosine similarity selects ten chunks per search call. Appendix B.1–B.3
Found two facts, delivered zero
The planner lacks A and B in this trace. Finding is not transfer between separate contexts. A visible failure is not required: coordination breakdowns usually ended with fluent, confident answers. The toy illustrates one such outcome.
Fictional deterministic run. Required evidence is {A,B}. The default fixture is Deep / complete discovery / lost hand-off. The candidate and scores below are assigned, not generated by an LLM.
- Delegate. Required {A,B}; planner evidence {}. The question is sent to a separate exploration context.
- Discover. Explorer {A,B,C}; required facts found 2 of 2; planner {}. Finding is not yet transfer.
- Return. Returned {C}; required facts delivered 0 of 2. The injected lost hand-off omits A and B.
- Answer. Planner {C}; “The 30-second value is the retry timeout in retries.py.” The fixture assigns a fluent wrong-entity answer when required evidence is missing.
- Grade. Scores [2,2,4,10,2]; sum 20; total 40/100; Fail. Clarity alone does not rescue the assigned answer.
Both required facts were found, neither reached the planner, and the fluent wrong-entity answer scores 40/100 (Fail).
The paper grades final answers against references, then codes Fail traces. Under its definitions, this illustrative mechanism is coordination breakdown; the symptom is wrong entity or mechanism. These are separate diagnoses. §4.4; §6.1–6.2; Appendix D.2
The same wrong answer can have different causes
Both answers concern the wrong entity. X loses relevant evidence already found; Y never finds it. Identical wording does not imply identical mechanisms. Evidence unseen by X’s planner does not ground its answer.
Failure coding separates mechanism, the behavioral cause in the trace, from symptom, what is wrong with the answer. “Wrong entity” is not a diagnosis of where evidence went missing. §6.1–6.2
Same discovery, different evidence boundary
Input on both sides: Maya’s question and complete discovery {A,B,C}.
Semantic exposes {A,B,C} directly to the answerer: supported fixture answer, 100/100.
Deep exposes only {C}: wrong-entity fixture answer, 40/100.
One difference in this illustration: evidence available to the answerer. Deep with a usable hand-off also succeeds here. This is not the paper’s ablation and does not claim Semantic cannot lose or misread evidence.
§2.2; Construct validityLocalization is not transfer
Same input question and repository. Semantic’s localization-miss case finds only {C}. Deep’s complete-but-lost case finds {A,B,C} but returns only {C}.
Both emit the same retry-timeout answer, total 40. The difference is whether the relevant evidence was ever found—not the final wording.
§6.1–6.2The full taxonomy and the integration boundary
Six mechanisms: coordination breakdown; retrieval or localization miss; insufficient grounding; evidence misinterpreted; non-terminating loop; evidence-gathering failure.
Five symptoms: no answer; premise denial; wrong entity or mechanism; factually incorrect; incomplete or shallow.
Coordination breakdown includes failure to produce or integrate a usable result. The toy shows return-side omission only. A planner ignoring usable returned evidence is also inside the paper’s definition. §6.2
Repair the right stage
Repair Maya’s answer at the stage where evidence is lost. Then produce the same wrong answer through a different mechanism.
DETERMINISTIC TEACHING EXAMPLE · NOT A PERFORMANCE PREDICTOR
Applies to Deep’s returned findings.
Try these tasks
- From the default, change only the hand-off to usable. What reaches the planner now?
- Load “Search never finds it.” Switch to Deep and repair its hand-off. Why is the answer still wrong?
- With complete discovery and a lost hand-off, switch Deep to Semantic. Explain why this is not proof that delegation caused the benchmark gap.
Discovered {A,B,C} · required found 2/2
Returned {C} · required available 0/2
“The 30-second value is the retry timeout in retries.py.”
Assigned scores [2,2,4,10,2] · 40/100 · Fail
Mechanism: coordination breakdown
Symptom: wrong entity or mechanism
The invariant: the answerer sees returned evidence—not the union of every agent’s context. A usable hand-off cannot manufacture facts that were never found. §2.2
What this small model leaves out
There are no embeddings, grep calls, file execution, language models, or automatic judges here. Discovery and evidence loss are injected settings, not measured probabilities or independent experimental variables in the paper. Candidate wording and scores are assigned. Missing evidence does not force a real LLM to answer this way.
The toy covers two mechanisms and one failed-answer symptom. It models neither dollars, latency, tool budgets nor score distributions. If discovery is “miss” and hand-off is “lost,” it labels the failure a localization miss by fixture convention—not an author-specified precedence rule.
Our inference: this fixture can expose where evidence disappears, but cannot estimate failure frequencies or reproduce the benchmark gap.
What Pass actually means
Claude Sonnet 4.6 evaluates the final answer against a reference on five integer dimensions, each from 0 to 10. Pass is a judge verdict—not a unit-test result. §4.4; Appendix D.1
The evaluator equally weights five scores, then rescales their sum to a 0–100 reporting total. This is not the agent’s optimization objective. Appendix D.2
| Symbol | Meaning | Worked fixture |
|---|---|---|
| Aggregate score, 0–100 | 40 | |
| Technical facts and mechanisms | 2 | |
| Addresses all question parts | 2 | |
| Focus without fluff | 4 | |
| Structure and readability | 10 | |
| Sound logic supported by code evidence | 2 | |
| Rescales a maximum sum of 50 to 100 | 2 |
Worked fixture: twice the sum of [2,2,4,10,2] gives 40/100. Clear wording is just one of five dimensions.
Pass: total at least 70. Partial: at least 50 but below 70. Fail: below 50. Partial is neither Pass nor Fail. Appendix D.2
Glossary
- Repository-level code question answering
- Locating relevant code across a repository and combining it into a coherent answer. §2.1
- Context pollution / context rot
- Loss of accuracy as irrelevant material crowds useful evidence in working context—not merely exceeding the maximum length. §2.1
- Semantic
- Indexed-retrieval ReAct, with structure lookup, retrieval, and file reading. Appendix A.1
- Deep
- A planning orchestrator and an isolated-context explorer returning condensed findings. §2.2; Appendix A.2
- Coordination breakdown
- Hand-off fails to produce or integrate a usable result; only Deep can receive this code. §6.2
- Mechanism / symptom
- Behavioral cause in the trace / what is wrong with the final answer. §6.1
- Pass / Partial / Fail
- Judge total at least 70 / at least 50 but below 70 / below 50. Taxonomy percentages use Fail runs. §6.1; Appendix D.2
- $/Pass
- Effective spending per answer reaching Pass, rather than per attempted question. §5.2
Read the numbers without changing their denominators
Deep Fail runs only. The taxonomy codes Fail, below 50. Partial answers are not in that set; neither all questions nor all non-Pass answers is the denominator. §6.1; Table 5; Appendix D.2
The same 720 questions over 15 Python repositories were answered in both architectures, separately for each of four models. Paired comparisons hold the answering model and question fixed. Pooled Pass: 65.2% Semantic / 46.2% Deep. Pooled Fail: 21.9% / 34.4%. Semantic also had the higher mean score for every model. §4.3–4.4; §5.1
414 of 990 Deep Fail runs: coordination breakdown (41.8%).
338 of 631 Semantic Fail runs: localization miss (53.6%).
Pooled reported cost per Pass was $0.32 Semantic / $0.74 Deep, about 2.3 times higher for Deep. Its extra spending did not buy higher measured accuracy. §5.2
The taxonomy covers 1,621 Fail runs: 631 Semantic and 990 Deep. Its largest categories differ: localization for Semantic, coordination for Deep. The prose reports fluent, confident output in 91% of coordination-breakdown cases. Delegation calls themselves are only 7.0% of Deep calls, yet their sub-agent trajectories contain 68.8% of all Deep calls. That is a call share, not a token or dollar share. Figure 17; §6.1; Table 5; §6.4
Experiment matrix and paired effects
Four models × two architectures; 48 questions per repository, 720 per condition; fresh isolated threads with only the target repository. Temperature 0.0 for answerers and judge. Each question has a 900-second wall-clock cap and an 80-step graph recursion cap; capped runs stay as failures, not retries. §4; §4.2–4.3; Appendix C.1
| Model | Pass advantage (pp) | Cliff’s delta |
|---|---|---|
| Gemini 2.5 Flash | 5.6 | 0.137 |
| Gemini 2.5 Pro | 10.0 | 0.138 |
| Qwen3-235B | 10.6 | 0.235 |
| Gemini 3 Flash | 49.6 | 0.760 |
All four exact McNemar tests on Pass and all four Wilcoxon signed-rank tests on scores remain significant after Benjamini–Hochberg false-discovery-rate correction. Effect sizes include Cliff’s delta and paired standardized mean difference; bootstrap intervals express uncertainty. Resampling whole repositories also leaves all four score-difference intervals above zero. Direction is consistent; magnitude is not uniform. §4.4; Table 4; Conclusion validity
Threshold robustness—not a synthetic curve
Sweeping the Pass threshold from 50 to 90 preserves Semantic’s lead for every model at every tested threshold; the smallest gap anywhere is 3.8 percentage points. The gap’s magnitude changes with the cutoff. No per-question scores are supplied here to recreate the curve faithfully, so there is no interpolated slider. §5.1; Figure 4
How reliable are grading and trace coding?
Three external engineers, blinded to model and architecture, rated 800 answers, 100 per condition. Panel-internal Fleiss’ kappa: 0.81. Human-majority versus judge Cohen’s kappa: 0.74. Score Pearson correlation: 0.83; mean absolute difference: 5.2 points. Verdict kappa was lower for Deep: 0.69 versus 0.78 for Semantic. §4.4; Table 2
Kappa checks verdict agreement beyond chance. Score correlation checks co-movement, not identical scores; the absolute difference makes that distinction concrete.
Two authors independently checked 400 failures. Their kappa was 0.78 for mechanism and 0.86 for symptom; consensus versus automatic coding was 0.82. They resolved disagreements after reviewing full traces. These checks support the labels, not perfect ground truth. §6.1
Tokens, prices, and index construction
Visible prompt/completion columns omit reasoning tokens, which are included in dollars at the output rate. You cannot reconstruct costs from those columns alone. Cumulative input across many calls is work, not one giant peak context window. Prices also change. §4.2; Table 3
Estimated index construction: $0.43. Agent inference: $1591.06. Charging all indexing to one Semantic condition adds about $0.0006 per question, without changing the comparisons. These are measured-token-and-price estimates, not end-to-end engineering costs. Appendix E; Table 6
What these results do not show: a universal architecture ranking, a forecast of correctness on production questions, or delegation’s isolated causal effect. They describe these models, these harnesses, and this benchmark. Construct and External validity
Where this result stops deciding
- One LangChain harness per paradigm. Tools and orchestration co-vary; alternative harnesses, prompts, and summary contracts could shift the gap. No alternative-harness sensitivity study was run. Construct validity
- Fresh read-only questions cannot measure long-session context hygiene, editing, or code execution. §7; §9
- Fixed snapshots favor indexing. The $0.43 construction estimate does not price the operational burden of change detection, invalidation, re-embedding, or staleness. Live exploration matters where an index is impractical or already stale. §7; Appendix E
- One benchmark, four models, Python only. Contamination is not excluded. Repository sizes use current default branches as proxies for benchmark snapshots. External validity
- There is no compute-matched baseline. A retrieval/delegation router is future work, not an evaluated contribution. §7; §9
- More tokens and tool calls correlate with lower scores; harder questions can require more work and score lower. Shortening traces is not established as an accuracy-improving intervention. §5.2
- Automatic grading and coding remain fallible after human validation, with weaker judge agreement on Deep answers. Latency is environment-sensitive. §4.4; Internal validity
Our inference: the deterministic fixture teaches where evidence can disappear. It cannot estimate how often that happens, predict a real LLM’s answer from a set, or recreate the empirical accuracy gap.
A statistical wording caution
Our inference: the evaluation text uses family-wise-error language for Benjamini–Hochberg correction. We describe the named procedure as false-discovery-rate correction, without claiming the stronger family-wise guarantee. §4.4; Conclusion validity
Open questions
- Does context hygiene become worth the hand-off risk in long multi-task sessions?
- How much do alternative harnesses, prompts, and summary contracts change the gap?
- What happens with matched token budgets?
- How should an evaluated hybrid router decide when to retrieve or delegate?
- How do rapidly changing or non-indexable environments alter quality and operational cost?
Explain it to a colleague
Answer each in your head before opening it.
Reconstruct the mechanism
Reconstruct the worked failure from repository to verdict. Where are the two relevant facts lost? What extra artifact distinguishes this from a localization miss?
Answer and why
The explorer discovers {A,B,C}; returned findings contain only {C}; the planner emits the fluent retry-timeout answer. Assigned scores [2,2,4,10,2] give 40 and Fail. A trace showing discovery and return states distinguishes this coordination breakdown from never finding A and B.
Separate contexts make the transfer consequential. The final wrong-entity answer alone cannot tell you whether relevant evidence was previously found. §2.2; §6.1–6.2
Transfer the diagnosis
Fictional case: a permissions explorer finds the exact access-check function and returns a usable excerpt. The planner ignores it and answers about a different check. Predict the mechanism and symptom.
Answer and why
Mechanism: coordination breakdown, because usable delegated results were not integrated. Symptom: wrong entity or mechanism. The paper includes failure to produce or integrate usable results; the toy implements only return-side loss. Successful transfer is not proof of successful integration. §6.2
Bound the deployment recommendation
Your team wants to replace a delegated agent used for day-long editing over a rapidly changing filesystem. What would you carry over, and what comparison would you run first?
Answer and why
Carry over the need to measure end-to-end quality, all planner and explorer work, and evidence hand-offs—not a universal mandate to remove delegation. Run representative long-session editing comparisons including freshness, index maintenance, alternative harnesses, and preferably matched budgets.
This study does not establish a winner there: its measured advantage concerns isolated read-only questions on fixed indexable snapshots. Long-session hygiene, editing, execution, and live freshness are outside that design. §7; Construct validity; §9