Skip to main content

Module journal

Module journal 

Source
Expand description

A lane run’s harness operation journal in the format-4 session (crates/session-journal run): the run is admitted with its prompt, each turn’s stream is journaled as it arrives, assistant messages and tool results commit as entries, and the run finishes with its outcome. Print, JSON and RPC runs write the same records.

Structs§

RunJournal
One run’s journal writer. A failed write stops further writes and is reported when the run ends.

Functions§

frame_source
A stream event as the frame encoder reads it. A delta becomes its type, index and delta alone: serializing the event whole copied the response so far (partial) once per delta, quadratic in the response’s length.
update_fields
What a message_update lane-watch event carries (Rust-only; protocol::watch::stream_fold folds it): the provider frame, without its partial message, a tool call’s start naming the call; and the usage so far. Never the message: the response so far, sent once per delta, made streaming quadratic in its length.