Skip to main content

decide

Function decide 

Source
pub fn decide(outcome: &MembershipOutcome, policy: &dyn OrgPolicy) -> PairAction
Expand description

Map a membership outcome + the receiver’s policy to a pairing action.

Fail-closed: NoClaim / RejectedManual. Among the verified org_dids, the strongest opted-in treatment wins (Auto > Notify); orgs the receiver does not trust (inbound_modeNone) are ignored. The result never exceeds ORG_VERIFIED.