R293 · AI's effect on people › Human verification of AI output

Would a person need to read the papers? Routing and the citation gate in a verifiable research agent

Read the original

Authors Hao Hoang

provenancehuman-verificationretrievalharness-designagent-architecture

The design problem

Build an agent that answers research-and-development questions such that a reviewer can check every claim. The verifiability requirement is the whole constraint; without it this is an ordinary retrieval-augmented system.

The naive build has five moving parts: a scholarly search API, a PDF parser, a domain database (clinical trials, patents, chemical or protein records), a model to read and write, and the glue holding them together. Each part is a deployment surface, a failure mode and a version to keep current.

The design worth studying collapses that into two paths and one gate.

The router: one question

The router asks a single question of each incoming request:

Would a person need to read the papers to answer this?

No — the retrieval path. A plain-language question goes in; ranked papers come out with their metadata (authors, abstract, citation count, identifier, link to an open-access copy). Seconds per call, cents or fractions of cents per call. Cheap enough to sit inside an agent's inner loop and be called repeatedly without a budget conversation.

Yes — the deep-work path. The request is briefed the way you would brief a research assistant: it plans, reads the papers and the user's own files, analyses, and returns a cited answer, optionally with generated artifacts. Minutes per call, orders of magnitude more expensive.

That single question is doing a lot of work. It is a cost router, a latency router and a capability router at once, and getting it right is most of the remaining design. Everything downstream is comparatively mechanical.

Why the routing is the hard part

The router has to decide, before any reading happens, whether reading will be necessary — which is close to deciding how hard the question is before answering it. Three failure directions:

The practical mitigation is to make the router's decision an explicit, logged, reviewable field rather than an emergent property of a prompt — and to measure under-routing specifically, because it is the one that produces wrong answers rather than expensive ones.

The citation gate

This is the part the builder should own rather than delegate, and it is the part that satisfies the original constraint.

Every claim must resolve to a source before it reaches the user. A claim that does not resolve goes back for another pass — it does not reach the reviewer.

Two things make this a gate rather than a formatting step:

  1. Resolution is checked, not asserted. A citation that exists is not a citation that supports the claim. The gate has to confirm the source exists, is reachable, and contains the asserted content — the third being the expensive and frequently skipped part.

  2. Failure is reinjection, not annotation. An unsupported claim is fed back into the loop as the next thing to fix. Marking it "unsourced" and shipping it transfers the work to the reviewer, which defeats the purpose: the reviewer's time is the scarce resource the whole system exists to protect.

The gate is also where you decide what "a claim" is. Sentence-level is the usual granularity and the usual mistake — a sentence can contain a supported fact and an unsupported inference. Clause-level is more honest and more expensive.

Three axes to interrogate any build of this

The tradeoff the collapse hides

"Five parts become two calls" is the design's selling point and its main risk. Consolidating onto one provider's endpoints does not remove the complexity; it relocates it to a place you cannot inspect or swap.

What you inherit: their retrieval ranking and its biases, their citation resolution and its false positives, their coverage boundaries, their rate limits, their outages, their pricing changes. What you lose: the ability to replace one weak component, to evaluate the retrieval step in isolation, and to run anything on your own infrastructure.

The honest framing is a build-versus-buy decision at the integration layer, with the usual shape: buying is right while the vendor's quality exceeds what you would build and your volume is below where their pricing hurts. It stops being right at the point where retrieval quality becomes your product differentiator — and in a verifiable-research product, retrieval quality is close to being the product.

A mitigation worth designing in from the start: keep the citation gate independent of the retrieval vendor. If the gate validates against sources rather than against the vendor's own claim that it cited something, the gate survives a vendor change and keeps the vendor honest in the meantime.

Failure modes

FailureMechanismMitigation
Confident answer built from abstractsUnder-routing a read-requiring questionLog and measure the router's decision; audit a sample of cheap-path answers against full texts
Budget consumed on lookupsOver-routing to the deep pathPrice-aware routing with an explicit per-request cost ceiling
Citation exists but does not support the claimGate checks existence, not contentVerify the claim against the cited span, not the reference list
Unsupported claims shipped with a caveatGate annotates instead of reinjectingMake a failed gate a loop iteration, not a label
Reviewer becomes the verifierEverything above, combinedMeasure reviewer corrections per output as the system's real quality metric
Apparent hang on long tasksNo progress visibleStream the plan and intermediate state
Retry storms on long tasksUsers kill and restart invisible workIdempotent job submission plus visible progress
Vendor coverage gap invisible in outputConsolidated API silently lacks a source typeTest coverage explicitly for each source class you depend on

Review checklist

  1. Write down the router's question explicitly, and log its decision per request as a first-class field.

  2. Measure under-routing: sample cheap-path answers and check them against full texts.

  3. State the cost ratio between the two paths, and the share of traffic each takes. If the deep path takes most traffic, the router is decorative.

  4. Confirm the citation gate validates claim-to-span, not claim-to-reference-list.

  5. Confirm a failed gate reinjects rather than annotates.

  6. Decide and document the granularity of "a claim" — sentence or clause — and accept the cost of the honest answer.

  7. Keep the gate independent of the retrieval provider, so it survives a swap.

  8. Verify each source class you claim to cover with an actual query, not by reading marketing copy.

  9. Stream plan and progress on anything over a few seconds; make job submission idempotent.

  10. Track reviewer corrections per output over time. That number, not retrieval recall, says whether the system works.

A note on verifying vendor claims

Worth stating plainly, because it is the recurring lesson in this area: when a design is presented on top of a named commercial API, check the published documentation before adopting the specifics. Coverage lists, endpoint names, per-call prices and streaming behaviour described in a write-up frequently do not match what the provider's own introduction and pricing pages say — and a per-call price off by an order of magnitude inverts the routing economics the design rests on.

The architecture above survives that check. The vendor specifics are the part to verify yourself.

Connections

See R293 on the knowledge map

Part of the Research notes on nowucca.com. Figures and claims are the source's own unless the summary says otherwise.