#[non_exhaustive]pub enum RunLogError {
Store(String),
NotFound(RunId),
Projection(String),
Replay(String),
NoLlmCall,
ReplayMismatch {
step: u32,
kind: StepKind,
expected: String,
actual: String,
},
ReplayStep {
step: u32,
source: Box<dyn Error + Send + Sync>,
},
Compaction(String),
CaptureBackend {
source: Box<dyn Error + Send + Sync>,
},
CaptureCodec {
source: Box<dyn Error + Send + Sync>,
},
}Expand description
Errors raised by klieo-runlog operations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Store(String)
Backend store failure (I/O, serialisation, SQL).
NotFound(RunId)
get/delete requested a run_id that does not exist.
Projection(String)
Projection from Episode stream into a RunLog aggregate failed.
Replay(String)
use ReplayMismatch, ReplayStep, or NoLlmCall
Free-form structural replay failure retained for back-compat; all in-crate paths now emit a typed variant instead.
NoLlmCall
The RunLog carried no LlmCall step, so strict replay has no final
assistant text to return.
ReplayMismatch
A replay double produced output that differs from the recording — the
strict replay path’s stop condition. Carries both sides so callers
inspect the divergence without parsing the Display string.
Fields
ReplayStep
A replay double failed to produce output for a step (the LLM/tool call
errored or a scripted double exhausted) — distinct from a value
mismatch, which surfaces as ReplayMismatch rather than an error.
Fields
Compaction(String)
Compaction policy failed (e.g. LLM summariser returned non-text).
CaptureBackend
A capture-persistence backend operation (KvStore put/get/keys/delete)
failed. Carries the backend error as a typed source.
Fields
CaptureCodec
A capture blob failed to serialize on persist or deserialize on load (e.g. a corrupt or truncated stored value).
Trait Implementations§
Source§impl Debug for RunLogError
impl Debug for RunLogError
Source§impl Display for RunLogError
impl Display for RunLogError
Source§impl Error for RunLogError
impl Error for RunLogError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()