Expand description
Host session state the observe hook records for the rest of the engine.
The observe hook (hook_handlers::observe) learns which model and which
transcript the host is running from its payloads and persists them in the
data dir; the context radar, ledger, telemetry and conversation reader load
them back. Both directions live here so the file formats have one owner and
engine readers do not depend on the hook layer.
Functions§
- load_
active_ transcript - load_
detected_ model - The model the host last reported, with its context window.
Nonewhen nothing was recorded or the record is older than two hours. - persist_
detected_ model - Persist the host’s current model (skips background models) to
detected_model.json. - persist_
transcript_ path - Persist the host’s active transcript path and session identity to
active_transcript.json.