Skip to main content

eval_graduated_capacity

Function eval_graduated_capacity 

Source
pub fn eval_graduated_capacity(
    competence: GraduatedCompetence,
    endorsements: &[KinshipEndorsement],
    min_endorsement_weight: f32,
    required_quorum: usize,
    elder_veto: bool,
) -> CapacityStatus
Expand description

Evaluate graduated capacity under Gillick competence and supported decision-making.

Rules:

  1. If an authorized elder or parent asserts an active veto (elder_veto == true), capacity is UnderDuress (voidable / suspended) to safeguard the dependent.
  2. If the agent’s individual understanding_score >= decision_complexity, they possess autonomous Gillick competence (CapacityStatus::Intact).
  3. If individual competence is insufficient, supported decision-making is evaluated: endorsers with weight >= min_endorsement_weight are counted. If the count reaches required_quorum and the collective support bridges the gap, returns CapacityStatus::Intact.
  4. Otherwise returns CapacityStatus::Impaired.