Skip to content

End-to-End Flow ​

This page draws the complete chain from raw input to traceable report and memory consolidation in one place: six stages, one main data flow, plus the event log and egress audit that run through all of them. Implementation details for each stage live on the corresponding architecture page.

The full chain ​

Responsibility boundaries of the six stages:

StageInput → outputKey invariantDetails
① Ingest & importresume / docs / headings → structured chunks & topicsparse failure never blocks import; structuring merges, not overwritesRetrieval
② Indexchunks → FTS5 + vectorsembedding in a dedicated worker; old index stays searchable, short final tx swaps atomicallyBackground Reindex
③ Prepare & questionplan + retrieval → questionsfirst question up front; topic dedup within a session; coding questions must give testsAgent Kernel
④ Interview loopquestion + answer → scoreasking and scoring separated; sandbox denies network & data dir; failed runs marked unavailableCode Sandbox
⑤ Report & signscores + evidence → signed reportsingle assembly point; derived fields filled before signing; citations verifiableProvenance & Storage
⑥ Provenance & consolidationcall chain → lineage graph + memoryevery conclusion leads back to source; memory feeds the next retrievalProvenance & Storage

Two side-lines that run through everything ​

Beyond the main data flow, two side-lines span every stage:

  • Event log (control flow): every model call, tool call and state change in every stage writes append-only events / runs / tool_calls; checkpoints replay, interrupts resume. Session state is a projection of the event log, not a mutable object.
  • Egress audit (evidence flow): whenever any stage calls a real provider (③ question gen, ④ scoring/voice, ① resume structuring), it first writes an egress record (target host, data class, billing), then sends the request; queryable via /egress and /usage. Storage and keys always stay on your machine.

Sequence of one complete interview ​

The real call order between components from import to a landed report (with a real provider key; keyless mock follows the same order):

How to read it:

  1. Indexing is decoupled from interviewing: import-triggered embedding / index swap happens in a background worker; interview requests are never blocked (Background Reindex).
  2. The first question doesn't wait for all: Planner and the first question go first; the rest fill in in the background under the session lock (Agent Kernel).
  3. Analysis and scoring run in parallel: Turn Analyst and the Judge panel run together; code-run results feed only the Judge (Code Sandbox).
  4. Record before egress: every provider call writes egress first and the call itself writes outbox, finally projected into the lineage graph (Provenance & Storage).

For the structural layers and module map see Architecture Overview.

Local-first · inference egresses on demand · fully traceable