Semantic Validator
The SemanticValidator enforces epistemic type contracts on model outputs, ensuring responses conform to declared AXON semantic types.What It Validates
The validator enforces five categories of semantic rules:- Type Category Matching —
FactualClaim≠Opinion - Confidence Floor Enforcement —
confidence >= threshold - Structured Field Presence — Required fields exist
- Range Validation —
RiskScore∈ [0.0, 1.0] - Epistemic Exclusion — Mutually exclusive types
Implementation
Built-in Type Registry
Epistemic Types (Mutually Exclusive)
Opinion can never satisfy a FactualClaim.
Analysis Types (with Ranges)
Validation Rules
1. Type Category Matching
Rule: Output must match the expected semantic type category.2. Confidence Floor Enforcement
Rule: Confidence score must meet the minimum threshold.3. Structured Field Presence
Rule: All required fields must exist in structured output.4. Range Validation
Rule: Numeric values must fall within declared ranges.Violation Structure
ValidationResult
Integration with Executor
The Executor calls the validator after anchor checking:Custom Types
The validator supports user-defined types with custom field requirements:Validation + Retry
When validation fails, the RetryEngine injects failure context:Trace Integration
Validation results are fully traced:Next Steps
Retry Engine
See how validation failures trigger adaptive retry
Type Checker
Compare with compile-time epistemic validation
Tracer
Understand execution observability
