Skip to main content

apply_assertion_challenge

Function apply_assertion_challenge 

Source
pub fn apply_assertion_challenge(
    assertions: &[ContextualAssertion],
    challenge: ChallengeRecord,
    downstream_decisions: &[DownstreamDecisionRef],
) -> (Vec<ContextualAssertion>, ChallengeRecord, Vec<DownstreamDecisionRef>)
Expand description

Apply a ChallengeRecord against target_assertion_id:

  • Preserves the original assertion record (transitioning it to AssertionStatus::Challenged and VerificationStatus::Disputed, and restricting sensitivity if it was an Allegation), alongside the ChallengeRecord.
  • Marks every downstream decision in downstream_decisions that depends on target_assertion_id (or on any assertion derived from it) with requires_review = true.