Series in the AI archive · Part 3 · Inference

In the April RAG evaluation , Zoom could ask for more evidence when its first pass left the answer under-supported. That decision is a small example of agency. The model proposes what to do next, the surrounding program decides whether and how to do it, and the result can change the next model call. The design question is where to put the judgment calls and where to keep the steps predictable.

From retrieved context to an action–observation loop Link to heading

The original retrieval-augmented generation paper combines a learned model with an external document index. Toolformer studies how a language model can learn to insert useful API calls. ReAct interleaves reasoning, actions, and observations, giving the model opportunities to change course. Those papers address different pieces of a system. One supplies information, one studies how to learn when to use a tool, and one makes feedback part of the execution loop. RAG · Toolformer · ReAct

A harness is the code that runs the loop. It decides which context and tools the model receives. It validates a proposed call, executes it under the available identity, records the outcome, and prepares the next input. A protocol such as MCP gives hosts and servers a common interface. The application’s permissions and stopping rules still need an owner. In a research agent, reading a source and ingesting it into a shared store can have different permissions. MCP architecture · Authentication and workload identity

A worked trace from a research question to a citation Link to heading

This example draws on the March and April designs. It illustrates how a final synthesis step could use exact evidence spans. March case study · April evaluation

Step What the model contributes What the harness can record
Find candidates It reads a question about an experimental method and sees a small map of likely paper sections. Deterministic retrieval produces candidate section IDs and scores.
Ask for evidence The visible snippet gives the result but omits the evaluation conditions. The model requests the methods section. The harness validates the section ID, fetches the permitted text, and records the source span.
Check sufficiency The model gets the new observation and can answer, request another passage within the budget, or report a gap. The harness records the evidence returned and enforces the call limit.
Cite The harness could supply the synthesis call with the relevant text and source ID. The source ID can be resolved to the passage. A reviewer can check whether it supports the claim.

A tool schema can constrain the shape of the request. That helps the harness parse it. A valid section ID still leaves a question about whether the section answers the research question. Both checks matter, and each requires different evidence.

Keep the state that another call can use Link to heading

The KV cache speeds up reuse of a token prefix. The model’s current context contains the selected tokens for one call. The shared store holds source IDs and passages that survive individual calls or worker sessions. In the March implementation, workers logged source IDs. The synthesis call received worker summaries and a document catalog. In a design that supplies original spans at synthesis, the source IDs could help recover a qualifier that compaction removes. Synthesis inputs KV cache · March case study · Lost in the Middle

Anthropic’s 2026 case study describes a planner, generator, and evaluator with structured handoffs. That gives a concrete architecture to examine when work outlives one session. A September 2026 preprint varies planning, action space, and context management in a shared coding harness. Its results support measuring these components separately, including whether context management prevents overflows under a tighter budget. Adding workers also creates another handoff to evaluate. In the research agent, I would check whether workers find independent supporting passages and whether the synthesizer can still resolve each source. Anthropic harness case study · Harness ablation preprint

Test whether more evidence helps Link to heading

The April tables compare full pipelines. To test whether the trigger helps, give each question the same starting passages. Compare stopping there, always adding the next five passages, and adding them only when requested. Count supported answers and extra calls in each case. The paired evaluation plan explains what to hold fixed and how to interpret the outcomes.

This is the same question that runs through the series. Architecture determines what the model can carry forward, training shapes what it tends to do, and serving sets the cost of asking again. The harness determines what the model can observe and act on. A useful evaluation shows which of those changes made the outcome better and how much it cost.