Deep-Research Agents › The anatomy of a deep-research trace

Michael BrenndoerferDecember 1, 20262 min read
Language AI HandbookAll chapters
Part 49 of 67Long-Horizon Agents and Interoperability
Chapter 375Deep-Research Agents › The anatomy of a deep-research trace
Reading section 3 of 17 · The anatomy of a deep-research trace · 2 minSection 3 of 17 · 2 min

Section 3 of 17 · 2 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

Before writing a single line of code, it helps to name the artifacts a deep-research agent produces. Every design decision downstream depends on being able to inspect and audit these. Naming the artifacts first is a form of specification. Once we know exactly what a trace contains, the pipeline is just the machinery that fills in each artifact correctly.

  • Question: the user's information need, ideally normalized enough to be decomposable.
  • Sub-questions: the decomposition of the question into independently answerable pieces.
  • Search queries: every query issued, in order, with the timestamp and tool used.
  • Retrieved documents: the raw results of each search, with the rank and any snippets.
  • Selected sources: the subset of retrieved documents that were actually read, with a quality score and reason for inclusion.
  • Evidence spans: exact quoted passages from selected sources that bear on a claim, with character offsets into the source.
  • Claims: atomic factual assertions, each linked to one or more evidence spans.
  • Citation checks: whether each evidence span is verbatim in its source (existence), and whether the source actually supports the claim (support).
  • Abstentions: claims or sub-questions where evidence was insufficient, with a reason.
  • Answer: the final prose, with inline citation markers referring to evidence spans.

In an append-only trace, store a new revision while retaining the earlier actions and claims. Reproducing it also requires the archived source bytes, queries, and versioned retriever. This notebook keeps its intermediate objects in memory; a deployment would need an append-only store and access controls.

A quick word on terminology, since it overlaps with things we already know. In RAG Prompt Engineering: Context Placement & Citation Strategies we saw how to prompt a generator to cite context chunks. That technique produces inline citations like "[[3]]" that point into a provided context block. Deep-research citations are similar in form but stricter in semantics: each citation points to a specific evidence span with verified exact boundaries, and the system enforces that every factual claim carries at least one. The difference is the difference between a footnote a student adds to look diligent and a footnote a fact-checker can follow to a specific sentence on a specific page. The citation format is the trivial part. Verifying that each citation is warranted is where the design effort goes.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy