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:
| Stage | Input → output | Key invariant | Details |
|---|---|---|---|
| ① Ingest & import | resume / docs / headings → structured chunks & topics | parse failure never blocks import; structuring merges, not overwrites | Retrieval |
| ② Index | chunks → FTS5 + vectors | embedding in a dedicated worker; old index stays searchable, short final tx swaps atomically | Background Reindex |
| ③ Prepare & question | plan + retrieval → questions | first question up front; topic dedup within a session; coding questions must give tests | Agent Kernel |
| ④ Interview loop | question + answer → score | asking and scoring separated; sandbox denies network & data dir; failed runs marked unavailable | Code Sandbox |
| ⑤ Report & sign | scores + evidence → signed report | single assembly point; derived fields filled before signing; citations verifiable | Provenance & Storage |
| ⑥ Provenance & consolidation | call chain → lineage graph + memory | every conclusion leads back to source; memory feeds the next retrieval | Provenance & 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
egressrecord (target host, data class, billing), then sends the request; queryable via/egressand/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:
- Indexing is decoupled from interviewing: import-triggered embedding / index swap happens in a background worker; interview requests are never blocked (Background Reindex).
- 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).
- Analysis and scoring run in parallel: Turn Analyst and the Judge panel run together; code-run results feed only the Judge (Code Sandbox).
- Record before egress: every provider call writes
egressfirst and the call itself writes outbox, finally projected into the lineage graph (Provenance & Storage).
For the structural layers and module map see Architecture Overview.