Skip to main content
scorecard produces a 0–100 risk score from weighted factors. Each factor is a path into the run context with a list of cases mapping observed values to sub-scores. The final score is the weighted sum of sub-scores.

Configuration

How the score is computed

For each factor: evaluate the cases top-down, take the first match’s score as the sub-score. Then:
In the example above, weights total 100; the final score is the weighted average mapped onto a 0–100 scale.

extractSubScores

When true, each sub-score is also written to the run context under <outputField>_<factor_id> — e.g. risk_score_factor-1, risk_score_factor-2, risk_score_factor-3. Used to make the score’s components inspectable in downstream nodes and audit logs.

Scorecard vs AI synthesis

Production workflows commonly combine both — a scorecard handles the cleanly-structured factors, an AI synthesis layer handles the borderline cases that need narrative reasoning.