pub enum RunRecord {
Header {
identity: RunIdentity,
meta: Box<RunMeta>,
},
OwnershipChanged {
machine_id: String,
world_id: String,
at: i64,
},
Inference {
stage: String,
iteration: usize,
request: InferenceRequestRecord,
response: InferenceResponseRecord,
at: i64,
},
ToolBatch {
calls: Vec<ToolCallRecord>,
at: i64,
},
ContextCheckpoint {
snapshot: ContextSnapshot,
at: i64,
},
ContextDiff {
delta: ContextDelta,
at: i64,
},
Message {
message: MessageRecord,
at: i64,
},
StatusChanged {
status: RunStatus,
at: i64,
},
Checkpoint {
meta: Box<RunMeta>,
context: ContextSnapshot,
at: i64,
},
Progress {
meta: Box<RunMeta>,
delta: ContextDelta,
at: i64,
},
}Expand description
One entry in the run journal. Folding the sequence reconstructs the run.
Variants§
Header
The run’s identity + static metadata. Always the first record.
Fields
identity: RunIdentityOwnership/identity.
OwnershipChanged
Ownership handed to a different world/machine (e.g. resumed elsewhere).
Fields
Inference
One inference: what went out and what came back.
Fields
request: InferenceRequestRecordThe request digest.
response: InferenceResponseRecordThe response.
ToolBatch
A batch of tool calls and their results.
ContextCheckpoint
A full context-window snapshot that subsequent diffs rebase on.
ContextDiff
A context-window change since the previous snapshot/diff.
Message
An inbound message.
StatusChanged
A run-status change.
Checkpoint
A full resumable checkpoint: the updated metadata + the full window, so a reader can continue without folding the whole journal.
Fields
context: ContextSnapshotThe full window snapshot as of this checkpoint.
Progress
A step forward: the updated metadata plus a diff of the context window
since the previous point. This is the compact per-tick record the writer
emits between full checkpoints - meta is small, and the context (the bulk)
is carried as a ContextDelta rather than a full snapshot.