pub fn validate_assertion_promotion(
current: &ContextualAssertion,
target_type: StatementType,
target_verification: VerificationStatus,
human_adjudicator_did: Option<&str>,
corroborating: &[ContextualAssertion],
) -> Result<ContextualAssertion, String>Expand description
Validate a proposed transition in StatementType or VerificationStatus:
- An
InferenceorAllegationcan NEVER be promoted to anObservation(an observation is direct primary witness/device data, never synthesized by repetition). - Repetition or multiple dependent inferences sharing a
root_source_idNEVER auto-promote anAllegationorInferenceinto anAdjudicatedFindingorVerifiedstatus. - Promoting to
StatementType::AdjudicatedFindingorVerificationStatus::Adjudicatedrequires an explicithuman_adjudicator_didand at least one independent corroborating record (or formal human adjudication record).