Structs§
- Detached
Observation Stats - Counters of the detached observation writer, for doctor and health.
- Lean
CtxEvent
Enums§
Functions§
- detached_
observation_ stats - emit
- Backward-compatible spelling for the explicit legacy compatibility adapter.
- emit_
agent_ action - emit_
cache_ hit - emit_
compatibility - Persist a legacy event as a canonical local observation.
- emit_
policy_ violation - emit_
profile_ changed - emit_
role_ changed - emit_
threshold_ adapted - emit_
tool_ call - emit_
verification_ warning - enable_
detached_ observations - Route
emit_compatibilitythrough the detached writer for the rest of this process. Called once by a serving process before it accepts requests; one-shot CLI commands keep synchronous persistence. - events_
since - flush_
detached_ observations - Wait until every observation queued before this call is persisted, or
timeoutpasses. Returns whether the queue drained. Used at shutdown so a serving process does not lose its last observations. - latest_
events - load_
events_ from_ file - Compatibility reader: an unavailable canonical store returns no events, never apparently current history. Use the fallible API to inspect the error.
- load_
served_ events load_events_from_filefor a surface that SHOWS events — paths, names, free text — to a host or a model, for a reader working inproject(the project of the running request whenNone). Every event passes the serve-time rule of the observation store (ObservationGate): an event that names a file is shown only while that file is admitted now; one without a source on record follows the originless rule. Historical JSONL records and rows written before admission existed are asked the same way. Counts and timestamps need no gate: useload_events_from_file.- try_
load_ events_ from_ file - Merge immutable historical JSONL with validated canonical observations.