2026-11-19 · Design checkpoint before post-interview analysis

2026-11-19 · Design checkpoint before post-interview analysis

A checkpoint before a feature, as AGENTS.md asks: the specification, the roadmap and issues #38 and #47 read again against the code as it is. Nothing here is built yet; this entry says what will be, in what order, and what was set aside.

What the researcher gets

From a transcript they have corrected, one choice, Analyse this interview, beside the existing Use this text. It asks one thing, What is your research about?, in a sentence or two, and offers the default model. The answer is a page with a short summary, the themes of the interview, its keywords and the passages worth quoting. Every theme and every quotation shows the speaker’s words with their name and the time; a click plays the recording there. Nothing is shown as a quotation unless Kalamu found those exact words in the transcript.

Everything else is folded under one More choices: a list of the researcher’s own themes to look for, another model, the language of the answer. The default path has one box and one button (plain first).

What the code already has

What is missing

  1. No answer can hold evidence. A field’s answer is a value and a reason. A group of entries (FieldKind::Entries) must be a schema’s only field, and makes the job read its source record by record: it cannot carry themes beside a summary.
  2. A snapshot does not know its turns. Snapshot.lines holds the turns only when every piece has times, with their spacing tidied, and nothing says where a turn sits in the frozen text. The times written in the text are those of a piece of the recording, not of the recording.
  3. An analysis reads its text whole: no windows, no consolidation.
  4. No export writes one row per quotation.

Where issue #38 no longer matches the code: workflows now chain jobs (it says pipelines cannot); speakers’ names already hold for a whole recording; nested entries cannot be reused as it suggests (point 1).

Decisions

An interview analysis is an analysis job

Not a new task, and not a third kind of request made from the review (18 November): that lifecycle is for one call about a piece being reviewed. An analysis job over a snapshot is already resumable, cached, costed, in the provenance and tied to its document. A new task would touch every exporter’s supports, every model’s tasks in the catalogue and the engine’s rules, for nothing a field kind does not give.

One new kind of field: entries that cite the text

FieldKind::Cited { fields, max }: a list of entries, each with its own small fields (a theme’s name and description; a quotation’s reason) and one or more quotations. Unlike Entries it sits beside other fields and changes nothing in how the source is read.

One kind serves the three findings (themes, keywords in context, quotations), and later the screening of documents with verified passages (#51) and the dates and places proposed with their evidence (#54), which wait on exactly this.

Engine::call’s lines argument becomes what it is one case of: a check an answer must pass, given by the caller, with the reason sent back to the model. Numbered lines and cited quotations are its two first implementations.

Turns in the snapshot (what #38 needs of #47)

Snapshot.turns: Vec<Turn { start, end, speaker, start_ms, end_ms }>: each turn’s place in the frozen text, in characters, with its times on the recording’s clock when it has them. Built with the text in snapshot::build, so the two cannot disagree. A transcript without times still has turns (its speaker lines, or its paragraphs). A turn’s number is its place in the list; with the snapshot’s id that is the stable identity #47 asked for. lines stays for the translation that reads it. A snapshot made before has no turns, and an interview analysis always makes its own.

The research profile is the job’s question, at first

The sentence typed in the box becomes part of the job’s user prompt, which the cache key already covers: another question is another analysis, the same question costs nothing twice. A list of the researcher’s own themes travels the same way. Saved profiles (a project’s question and themes, reused over its interviews) are a later slice, in prompts beside pipelines, not a new store.

One request first; windows after

An hour of interview is about 55,000 characters, some 15,000 tokens: every model the catalogue offers reads it in one request. The first slice analyses a transcript whole, up to a length the catalogue’s limits allow, and says plainly when one is too long: the dialog in place of the cost, Start waiting for another model, and the engine refusing such a job when it is created (see Built after the first slice). Windows of whole turns and a consolidation step come second, on the pattern of the table of contents (Setup.merge, a Whole piece keyed by its parts): the consolidation receives findings whose quotations are already checked and may only group them by their numbers; a window that failed is named in the result (which minutes were not analysed) rather than passed over.

Review, and what is exported

Privacy

The transcript’s text and the question go to the provider chosen, as for any analysis of a text; with a model on this computer nothing leaves it. docs/privacy.md names the question among what is sent, with a new date, when the first slice ships.

Order of work

  1. Foundations (no visible change): turns in snapshots; the answer check as a hook; AnalysisReview.svelte (592 lines), NewJob.svelte (874) and prompts/defaults.rs (697) brought under 500 lines before anything is added to them.
  2. First slice: Cited in core, its schema and reading in providers, the check and the re-ask in engine; the preset analysis.interview; Analyse this interview and its one box; the cards with play; the three exports; golden files; a mock view; the documents.
  3. Second slice: windows and consolidation with coverage; the researcher’s own themes; saved profiles; a quotation added by hand.
  4. Later: themes across the interviews of a project, with the dictionary’s patterns.

What building it changed

Recorded after the foundations and the first slice were built, where the code settled something differently from the lines above.

Set aside

Checkpoint findings beside this feature