Determine if a validation result should trigger a rollback.
Rollback threshold: confidence < 0.5
The validation result to check
True if transformation should be rolled back
Determine if a validation result should trigger a warning.
Warning threshold: 0.5 <= confidence < 0.8
The validation result to check
True if transformation should generate a warning
Validate a transformation result.
Performs 4 validation checks:
The transformation result to validate
Optionalcontext: TransformContextWithDecisionOptional context with AI decision data
Validation result with issues and confidence score
Transformation Result Validator
Validates transformation results to detect silent failures (modified but 0 changes), syntax errors left after the transform, high-confidence failures, and slow transformations. Calculates confidence scores and provides rollback/warning recommendations.
Performance: <1ms validation overhead per result Accuracy: >95% silent failure detection, <5% false positive rate