2026-11-20 · Screening: long documents, the answer in the rows, the question asked again
Context
The first increment of research-question screening (20 November, #51) left three things a researcher with hundreds of documents meets at once: one document too long for the model refused the whole job; the answer, its reason and its passages could be read only by opening each document’s review; and a question asked of a project’s documents could not be asked again of the documents added since. The long interviews read in parts (20 November) had meanwhile built what the first needs.
Decision
A long document read in parts, as a long interview is
The windows of whole turns were already generic: every analysis with a cited field on a model
with a catalogue limit is given Setup.windows and the step that brings the parts together, and
a document read from pages is frozen with its paragraphs as numbered turns. A long document was
in fact already read in parts; what was wrong was the wording, one reading of the answers, and
the one refusal left.
- Words for a document.
cited::REQUESTtold the model of turns, times, speakers and “the words said”. A text whose turns have no speaker and no time (a page’s paragraphs, a text file’s) is now sentREQUEST_PASSAGESand, for one part, this part holds passages 12 to 20 (cited::request_for,cited::part_request, incore/analysis/cited/request.rs). A transcript is sent exactly what it always was. Neither request enters a cache key (the key holds the numbered text,cited_turns:<sha256>), so the wording changes no key, of an interview or of a document. - The step’s instructions fit both.
Preset::consolidation_snapshot’s instructions say the parts are made of whole numbered turns, a speaker’s turn in a transcript, a passage in a document, and that each quotation comes with its turn, its speaker and time or its page; the step’s input gives a quotation’spagewhen it has one (left out otherwise, so an interview’s input is unchanged). These instructions are frozen in the step’s prompt, which enters only the step’s own key: a long interview analysed from now on brings its parts together under a new step key, and its parts’ keys are unchanged. No released build had made such a step. - Relevance brought together coherently, by the prompt. The step’s instructions say a choice is answered for the whole text as the prompt’s own instructions say for a text read in parts; the screening prompt says it: Relevant if any part read is, else Partly relevant if any part is, else Unsure if any part is, Not relevant only if every part read is. Changing the prompt changes the keys of screenings made with it from now on, as any change of a prompt does. Rejected: enforcing the order in code. The engine never names a prompt, and a choice in general (a tone, say) has no order; a rule written for a choice’s values would be the screening’s, hidden in the engine.
- The answers of a document read in parts are the step’s.
projects::answeredread the first finished piece of a document, which for a long one was its first part: the filter and the answers table would have shown one part’s relevance. It now skips the parts (PieceRef::is_window), as the reviews, exports, search and dictionary already did. - Pages survive. The step can only refer to quotations by number, and Kalamu puts each back
as the part kept it, its page included; the review names a part not read by the pages it
covers (Pages 4 to 7 could not be read), from
CitedSource.pages, each turn’s page; the files name itpart 3 (pages 4–7), orpart 3 (passages 48–71)for a text file. - A document one passage of which the model cannot read is left out, not the job refused.
The estimate lists every such text (
EstimateRow.too_longis now a list, each with itssource), and prices the job without them, as a job that leaves them out costs. The screening dialog names them with the documents left out for having no text, Left out, too long for Gemma 4 E4B even read in parts: …, and creates the job over the others. The engine still refuses a job holding such a text (job.text_too_long), so New job and the interview dialog, which send what the researcher chose, are unchanged. Rejected: failing that document’s piece at run time, which would have shown a researcher a failed job for a choice the dialog could make before Start.
The answer in the table’s rows, while it is filtered
- Only while a filter by an answer is on. Simple first: the table of a researcher who never
screens, or who has not chosen an answer, is the table they know. Choosing an answer is the
moment they ask to read answers, and then each row shows, under the document’s title, the
answer in the interface language, its reason and its passages with their page
(
DocumentAnswer.svelte), and Keep and Set aside for that document. Rejected: always showing it, which would have lengthened every row of every project with an analysis, a long table becoming three times longer for a researcher who wanted only to find a document; and a column of its own, which a table of six columns has no room for at a laptop’s width. - Generic, from what the project already reads.
DocumentAnswercarries the analysis that gave it, itsreason(the choice’s own reason when the field asks for one, else the analysis’s first text answered: a screening’s Reason) and itspassages(every quotation of its cited fields, as corrected, each with its page). No field is known by name: a tone analysis with an explanation shows its explanation the same way. - Keep and Set aside from the row, as the selection bar’s: the tag given, the other taken
off, the model’s answer untouched. Pressed again, the decision is taken off (a toast says so),
so a slip is undone where it was made. They are buttons in the row’s order, reached by Tab
after the document’s title and opened by Enter or Space, each named with the document’s title
for a screen reader (Keep “Bulletin, May 1957”) and pressed (
aria-pressed) when given. A decision from a row keeps the documents chosen; the selection bar’s still clears them. Rejected: keys of their own (K, S) on a focused row, which a researcher would have to learn and a screen reader announces nowhere.
The question kept with the project, asked again of new documents
- Kept by the jobs that asked it, not stored again. A screening’s question is already its
set-up’s
question, frozen with the job and tied to the project through its documents. The analyses of a project that asked the same question with the same prompt, provider and model (answered::alike) are one group: one entry in the filter, their answers together, a document’s newest answer counting, the newest job naming the group. No table, migration, command or store trait is added, and the project file another branch is writing carries the question with the jobs it already carries. - The documents not read against it (
ChoiceAnswers.unread): the project’s documents that group has no answer for and that have a text to be read in, as the dialog would choose it (document_texts: a preferred or only reading, or a text file’s own words). A document added since, and one whose reading failed (never taken for Not relevant), are both there; one with no text yet, or several readings and none preferred, is not, so the line never offers what the dialog would leave out. - One line, one button. Under the filters, 3 documents have not been read against “…”
yet. and Read the new documents against this question, shown only when there are some. It
opens the screening dialog over those documents alone, with the question, the prompt, the
model and the languages it was asked with (
ChoiceAnswers.provider,model,languages), so the cost said is theirs and Start asks the consent it always asks. It is two clicks, not one: nothing is sent before the researcher has seen what it costs. The new job’s answers join the group as soon as it is tied to the project, and Export this table writes every document the question was asked of, whichever of its jobs the filter names (tabled). - Only the new documents are paid for. The dialog sends them alone. Had it sent every document again, the cache would have served the ones already read under the same question, prompt and model; the engine test proves both. Rejected: one job over all the documents again, served from the cache. It would have hidden the researcher’s corrections made in the first job behind the second job’s uncorrected answers (corrections belong to a job), and a prompt updated by a new release since would have made every document be paid for again.
- Privacy. Nothing new is kept or sent: the question was already kept in the job and sent with each document’s text.
Consequences
EstimateRow.too_longis a list; the interview dialog reads its first entry.DocumentAnswercarries the analysis, the reason and the passages;ChoiceAnswersthe model, the languages and the documents not read; the project view grows by the passages of every analysis with a choice, read from what the project view already loaded.DocumentTable.sveltepassed 500 lines: the filter by an answer and its export moved toAnswerFilter.svelte, the line asking again toAskAgain.svelte, the row’s answer toDocumentAnswer.svelte.projects’ answers table moved totabled.rs.- The French of the screening section now has its no-break spaces before
:,?,!and inside « », which the first increment’s strings lacked.
Left
- The question kept with a prompt, for another project (the interview’s Keep this).
- The filter remembered on the computer with the tag and the sort.
- Keep and Set aside from the review itself.
- A document whose text was read again since the question was asked is not offered again: its answer stands for the text it read.