include/entropic/types/validation.h¶
include/entropic/types/validation.h
Enums
ValidationVerdict
Result of the full validation pipeline (critique + optional revision).
Encapsulates the final output after zero or more revision attempts. Returned by ConstitutionalValidator::validate() and exposed through the C API as JSON via entropic_validation_last_result(). Outcome of a validation pipeline run. Lets callers distinguish clean pass from safety-valve revert and from max-revisions-exhausted. Surfaces through ON_COMPLETE hook context and async task status so consumers know whether the returned content is trustworthy. (E1 / 2.0.6-rc17)
passed0rejected_reverted_lengthrejected_max_revisionsskippedpaused_pending_consumerpassed_consumer_override
entropic::CritiqueResult
Structured result from a single critique generation pass.
bool entropic::CritiqueResult::compliant
true if output passes all rules
std::vector<Violation> entropic::CritiqueResult::violations
List of constitutional violations.
std::string entropic::CritiqueResult::revised
Revised text (may be empty)
std::string entropic::CritiqueResult::raw_json
Raw critique JSON for audit logging.
entropic::ValidationResult
std::string entropic::ValidationResult::content
Final output (original or revised)
bool entropic::ValidationResult::was_revised
true if content differs from original
int entropic::ValidationResult::revision_count
Number of revision attempts made.
CritiqueResult entropic::ValidationResult::final_critique
Last critique result.
ValidationVerdict entropic::ValidationResult::verdict
Structured outcome (2.0.6-rc17)
int entropic::ValidationResult::attempt_n
gh#30 (v2.1.5): attempt index this result corresponds to.
0 = original generation, 1 = first revision, etc. Same value as revision_count when the verdict is revised / rejected_*.
entropic::Violation
A single constitutional violation found during critique.
std::string entropic::Violation::rule
Name of the violated constitutional rule.
std::string entropic::Violation::excerpt
Excerpt from the output that violates the rule.
std::string entropic::Violation::explanation
Why this excerpt violates the rule.