Expand description
6-layer validation + RAR self-correction (PRD §19, §8.6).
§Validation Pipeline
Results pass through 6 validators in sequence:
| Layer | Validator | What it checks |
|---|---|---|
| V1 | AuthorityScorer | Domain reputation, SSL, redirect chains |
| V2 | ContentValidator | Paywall detection, relevance, min length |
| V3 | TemporalValidator | Freshness with exponential decay |
| V4 | CrossSourceVerifier | Cross-source claim agreement |
| V5 | ExtractionValidator | Truncation, encoding errors, segments |
| V6 | OutputValidator | Citation reachability, content hash drift |
The ConfidenceCalibrator aggregates all layer scores into a single
calibrated confidence score. The RarEngine drives 5-checkpoint
self-correction (R1–R5) when confidence falls below threshold.
Re-exports§
pub use authority::AuthorityScorer;pub use calibration::ConfidenceCalibrator;pub use cross_source::CrossSourceVerifier;pub use cross_source::SourceContent;pub use rar::RarConfig;pub use rar::RarEngine;pub use rar::RarState;pub use temporal::TemporalValidator;pub use types::*;
Modules§
- authority
- V1 Authority scoring — domain reputation, SSL, redirect analysis (PRD §19, §21).
- calibration
- Confidence calibration — weighted aggregation of 6 layer scores (PRD §19).
- content
- V2 Content validation — relevance, paywall detection, minimum length (PRD §19).
- cross_
source - V4 Cross-source verification — claim clustering, contradiction detection, consensus scoring.
- extraction
- V5 Extraction quality validation — completeness, truncation, segments (PRD §19).
- output
- V6 Output integrity validation — citation reachability, content hash (PRD §19).
- rar
- RAR (Reflection-Augmented Research) self-correction loop (PRD §8.6).
- temporal
- V3 Temporal/freshness validation — exponential decay scoring (PRD §19, §21).
- types
- Shared validation types for the 6-layer pipeline (PRD §19).