Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Validation

The validation module provides the core type system for pipeline stage results.

Disposition

#![allow(unused)]
fn main() {
pub enum Disposition {
    Unrecoverable,  // Fatal error, cannot proceed
    Recoverable,    // Error that can be fixed
    Advisory,       // Warning or suggestion
}
}

Issue

#![allow(unused)]
fn main() {
pub struct Issue {
    pub disposition: Disposition,
    pub message: String,
    pub source: IssueSource,
}
}

MetaCtx

Metadata context that accumulates through pipeline stages:

#![allow(unused)]
fn main() {
pub struct MetaCtx {
    pub accumulated_confidence: f32,  // Compounded from all stages
    pub stage_history: Vec<StageResult>,
    // ...
}
}

Confidence compounds multiplicatively: next.confidence = current.confidence * stage.confidence

StageResult

Captures the outcome of a pipeline stage with issues and confidence score.