pub struct WalEvent {Show 16 fields
pub seq: u64,
pub ts: u64,
pub event_type: WalEventType,
pub job_id: String,
pub capability: Option<String>,
pub output: Option<Value>,
pub error: Option<String>,
pub telemetry_before: Option<Telemetry>,
pub telemetry_after: Option<Telemetry>,
pub process_before: Option<ProcessSummary>,
pub process_after: Option<ProcessSummary>,
pub cmd: Option<String>,
pub cmd_stdout: Option<String>,
pub cmd_stderr: Option<String>,
pub cmd_exit_code: Option<i32>,
pub cmd_corrected: Option<String>,
}Expand description
A single WAL event record.
Events are appended sequentially and identified by seq. The ts field
is a Unix timestamp in seconds. Optional fields (capability, output,
error, cmd_*) are skipped during serialization when None.
§Command Execution Events
When event_type is WalEventType::CommandExecuted, the cmd* fields
capture the shell command, its output, and any auto-correction applied.
These events are only written in debug builds (#[cfg(debug_assertions)]),
but the variant exists in release builds for reading old WALs.
Fields§
§seq: u64Sequence number (monotonically increasing within a writer session).
ts: u64Unix timestamp (seconds) when the event occurred.
event_type: WalEventTypeType of the event (job lifecycle stage or command execution).
job_id: StringThe job ID this event relates to.
capability: Option<String>Capability name, if applicable.
output: Option<Value>Output data from the capability, if applicable.
error: Option<String>Error message, if the event represents a failure.
telemetry_before: Option<Telemetry>Hardware telemetry snapshot before execution.
telemetry_after: Option<Telemetry>Hardware telemetry snapshot after execution.
process_before: Option<ProcessSummary>Process summary before execution.
process_after: Option<ProcessSummary>Process summary after execution.
cmd: Option<String>Shell command string (CommandExecuted events only).
cmd_stdout: Option<String>Captured stdout, truncated to 1KB (CommandExecuted events only).
cmd_stderr: Option<String>Captured stderr, truncated to 1KB (CommandExecuted events only).
cmd_exit_code: Option<i32>Exit code of the command (CommandExecuted events only).
cmd_corrected: Option<String>Auto-corrected command, if correction was applied (future Phase 2).