pub fn score_candidate(
model: &EnergyModel,
residuals: &[ResidualEvent],
) -> Result<EnergyScore>Expand description
Compute the canonical quadratic energy for a candidate’s residual vector
against a declared EnergyModel.
Admissibility-outcome residuals (CapabilityDenied, BudgetExhausted) are
routed to the blocked channel and excluded from V. Every consistency
residual SHALL have a declared weight; a missing weight is an error rather
than an implicit weight of 1.