Series archive

A paper says its method improved retrieval. The research question asks whether the improvement held on out-of-domain documents. The retrieved paragraph gives the score and omits the test split. You can ask the model to cite its sources more carefully. The next useful observation, though, may be the methods section that the first search missed.

The March research-agent case study describes a system that gives the model a map of relevant sections and lets it ask to expand nodes. That example gets at the shift from prompt engineering to loop engineering. The prompt influences what the model proposes. The loop determines what it can observe next, which requests run, and when the system has enough evidence to finish.

What changed when the model got a second move? Link to heading

The original retrieval-augmented generation paper coupled generation to a retriever and an external document index. ReAct made another arrangement explicit: an observation from one action can redirect the next action. Modern tool APIs make a request easier to parse, while a protocol such as MCP defines how a host connects to tools and other capabilities. Each step solves a different problem. Retrieved text supplies knowledge, an action loop makes retrieval responsive to what happened, and a protocol gives programs a common interface. RAG · ReAct · MCP architecture

The model can decide that it needs a methods section. The harness must decide whether that section identifier resolves in the permitted corpus, whether a search call remains, and what to do if the document has changed. Those are facts about the running application. A well-written prompt can help the model propose a useful action. Code can enforce the action’s scope and record whether it actually happened. Anthropic, Building effective agents · Identity and workload access

Follow the decision that matters Link to heading

This reconstructed trace illustrates one possible run of the research system.

Diagram source
flowchart TD
    A["Question and candidate passages"] --> L{"Turns and time remaining?"}
    L -->|Yes| B["Model proposes an action"]
    L -->|No| F["Return the evidence gap"]
    B --> C{"What action?"}
    C -->|Fetch evidence| D["Check scope and budget"]
    D -->|Allowed| E["Fetch passage and log result"]
    E --> L
    D -->|Search budget exhausted| F
    D -->|Scope denied| J["Record the denial"]
    J --> L
    C -->|Answer| G["Check citations and unresolved conditions"]
    G -->|Evidence supports the answer| H["Return the answer"]
    G -->|Gap remains| I["Return the gap to the model"]
    I --> L

Suppose a model requests section 4.2 of paper P17. The loop resolves the section against the corpus version available to this run. It records both the action and what came back, for example “section 4.2, paragraphs 3–4, only the in-domain split was reported.” The next model call can answer the narrower question, look for a separate out-of-domain experiment, or report that the papers it inspected do not establish the result. A fetch that times out is another observation. The application can decide whether a retry fits its remaining budget. A separate turn limit and deadline bound both tool retries and repeated unsupported answers.

A trace records A trace lets us check
Question, corpus version, initial candidate IDs Was a relevant source available and surfaced?
Proposed action, resolved target, returned text span, outcome Did the request reach the intended evidence?
Stop reason, final claims, cited source spans Did the answer resolve the question or explicitly report the gap?

A citation resolver can mechanically check that an ID points to a source. The check for whether that source supports the claim requires a separate rubric or review. In this example, a real link to the score paragraph is an inadequate answer about the test split. Keeping those checks separate makes it possible to tell retrieval failure from a confident answer based on the wrong evidence. March case study · Anthropic, Demystifying evals

A compact record for this example could look like this:

request     fetch_section(paper="P17", section="4.2")
observation ok · P17 §4.2 ¶3–4 · only the in-domain split was reported
stop        requested split unverified · search budget exhausted

The last line belongs to the run, rather than to the source. It tells a reviewer whether the system reached a conclusion or ran out of opportunity to check it.

What is worth putting in the loop? Link to heading

A fixed sequence works when the steps are known in advance. Use conditional tool access when the next useful step depends on the observation. Then inspect whether the model makes that choice well enough to justify the extra calls. A harness ablation preprint found that context management was especially helpful under tighter context budgets in its experiments with four models across two coding benchmarks, largely because it prevented overflow. That is a reason to compare failure traces when choosing among the architectures in the framework guide . The improvement may come from keeping the run alive long enough to finish. Anthropic, Building effective agents · Harness ablation preprint

The next question is whether one model session should make every decision. Part 2 follows the same task when a lead agent can send work to other sessions.