Decision Tier

Case study Part 4 of 6 · the loop, built

The loop, built

An open question is hard to judge paragraphs against, because you don't yet know what the answer looks like. A draft answer fixes that. Handing Jev the question and a first draft, then asking how each paragraph relates to that draft, gave the strongest gain we measured in the pipeline. So the best recipe isn't a funnel from code to Jev to LLM. The LLM sits in the middle and sends Jev back once.

The recipe

  1. JevCodeRead everything

    Jev scores every paragraph with the rely statement. Code adds a grep sweep for the names in the question.

  2. JevGrow passages

    For each top paragraph, Jev decides how far the passage runs, up to three rounds each way.

  3. LLMWrite a draft

    Sonnet answers from those passages.

  4. JevCodeReread with the draft

    Jev rereads the top 2,000 with the draft in its state. Code blends the two rankings and drops what was already read.

  5. LLMWrite the answer

    The top 20 to 40 new paragraphs are grown and added, and Sonnet writes the final answer. Then stop.

rely   = jev(every paragraph, RELY, question)        # $0.233 for 28,167 paragraphsnames  = grep(names in the question)                 # free, catches exact mentionsfirst  = grow(top(rely) + names)                     # Jev decides each passage boundarydraft  = write(question, first)second = jev(top 2,000 of rely, SECOND, question + draft)   # about $0.02blend  = sum over both rankings of 1 / (60 + rank)   # reciprocal rank fusionnew    = top 20 to 40 of blend, minus firstmore   = grow(new)answer = write(question, first + more)# no third pass: it adds nothing

Assembled, not yet scored as a whole. Each piece below was tested, but not this exact sequence. The answer test started from the keyword-gated first pass in part 1, then added paragraphs from the full-read blend. This full-read-first version has run on one real question and was not scored against gold. Reading everything first should help, based on part 2, but that's an inference.

The two statements, verbatim

The first pass asks about the question. The second asks about the draft:

This paragraph states something an answer to the question in `question` would rely on.

Compared with the answer in `answer`, this paragraph adds something missing, contradicts or corrects it, or expands on it, in a way that matters for the question in `question`.

Strip citations from the draft before it goes in the state. The combined statement matters: single statements about adding, correcting or expanding did little, and "corrects" alone lost ground on held-out questions. Blending matters too: the combined statement alone found 21 missed facts where the blend found 28.

What the second pass found

The baseline here is the obvious alternative: just read further down the same list. All 4,128 paragraphs on any method's list were graded together by one grader, blind to method. "Missed" means facts the first answer didn't state.

Paragraphs addedMissed facts found of 65, reading furtherMissed facts found, blendQuestions better / worse
20152810 / 0
40203110 / 2
6024327 / 2

Replaying the saved scores, rereading only the top 2,000 found as many missed facts as rereading the full corpus, for about $0.02 against $0.29. Then we tested real answers, with one writer and one scorer across all arms. This test started from the keyword-gated first pass, used a saved first answer as the draft, and used the full $0.29 reread:

Evidence given to the writerFacts stated of 148
First-pass evidence103
Plus the next 20 on the list108
Plus 20 from the draft-aware blend116
Plus 20 more from a third pass115
Second pass, plus 20 from search terms the writer suggested118

These totals can't be compared with the 27 of 51 in part 1. Writers here ran to about 670 words against a 500-word limit, and the scorer changed. Comparisons between arms in one table hold.

Passages: let Jev find the edges

A hot paragraph doesn't automatically pull in its neighbours. Jev decides each boundary. Across the first-pass runs, 960 hot paragraphs became 858 passages of 2.95 paragraphs on average, and 32% stayed single. Turning growth off lost 13.4 points of evidence.

Fixed neighbours are the tempting alternative, and they aren't the main problem. Always adding one paragraph each side would add about 67 paragraphs and 33k characters to each answer. Here's where the 36 facts missing from first-pass evidence were (112 of the 148 were already in):

Where the missing fact wasFacts
Next to the evidence3
Two paragraphs away4
Further along the same document7
In a document with no evidence yet16
No graded paragraph6

Reading a new document finds more than reading around the one you have.

Knowing when to stop

The natural router is a question to Jev: is this evidence enough? On the textbook corpus it barely noticed when a whole intended source was removed: pooled AUC about 0.55, with a median drop of 0.013 against a between-question spread of 0.123. Scores for each part of the question can point at a gap once one exists, but only with a full copy to compare against, which production doesn't have. So we don't route on sufficiency. One second pass, then stop, was the rule that held up. In part 5, Opus stopped when results stopped being new, which is a different test that works for an LLM reading the results.

The sources are now the constraint

Why do useful paragraphs rank low? Opus read about 180 of them and gave a rough count:

ReasonShare
Table rows or footnotes with their headers cut off35%
Answers a late part of a many-part question20%
Spoken or garbled transcript17%
Refers to the subject only indirectly10%

Most of that concerns what Jev is shown, not how it's asked, which is why wording did so little. An audit of paragraph structure agrees:

SourceSplit mid-sentenceOther unfinished endingsRead
Wire releases0.1%2.2%Clean
Press room0.8%26.8%Flattened tables and contact lines
Partner filings0.2%16.9%Table rows lose column headers; stale section headings
Podcast transcripts7.0%1.1%No speakers or headings; misheard names

The same rule holds as in the cascade: a decision model judges what's in front of it. It can't recover a column header that isn't in the state. Rebuilding tables and transcripts is the next step, and it changes every paragraph id, so baselines must be rerun.

Next: Opus runs the search: what happens when the LLM chooses its own steps.