Validation
The validation module provides the core type system for pipeline stage results.
Related Chapters
- Pipeline - State machine integration
- Constraints - Kasuari constraint types
- Verify - Multi-model confidence calculation
- Legal Verification - Tax rule disposition
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.