Skip to main content

Module scoring

Module scoring 

Source
Expand description

Scoring and the MAESTRO cross-layer compound-risk pass.

Faithful port of SEVERITY_DEDUCTIONS, calculateScore, computeSummary and auditCrossLayerRisk from src/auditor.ts.

Functions§

calculate_score
score = 100 − Σ deductions, saturating at 0.
compute_summary
Tally findings by severity and count auto-fixable ones.
cross_layer_risk
MAESTRO cross-layer compound-risk pass.
severity_deduction
Per-severity score deduction. CRITICAL 15 / HIGH 8 / MEDIUM 3 / LOW 1 / INFO 0.