Skip to main content

apply_outcome

Function apply_outcome 

Source
pub fn apply_outcome(
    knowledge: &KnowledgeBase,
    outcome: &Outcome,
) -> Result<Option<KnowledgeWrite>, VerificationError>
Expand description

Applies verifier-owned hypothesis state transitions to the knowledge base.

Success confirms a hypothesis. FalsePositive and ConfirmedNegative reject it. Other outcomes are audit records only and leave hypothesis state unchanged.

This compatibility entry point has no VerificationCase, so it cannot enforce a knowledge-only case’s transition policy. Call it only for outcomes already authorized to transition their hypothesis. It also has no snapshot token and therefore cannot detect recalibration between verification and application. Terminal transitions remain monotonic: same-state replay is idempotent and an opposite terminal transition is rejected. Prefer VerificationReport::apply whenever the report is available.