Companion to: brd.md · Audience: engineers implementing the scorecard engine
Status: Draft for engineering approval
Every formula here is total: it has a defined result for every input, including the ones that break the formulas in the source documents. Where a source formula fails, the failure is named.
BSC scoring is a sibling of the existing OKR helpers, not a replacement for them. Nothing below changes how OKR cycles score.
| New | Mirrors | Responsibility |
|---|---|---|
BscScoreCalculator |
OkrProgressCalculator |
one KPI's actual → a 0–100 score, by KPI type |
BscScoreRollup |
OkrProgressCalculator.ObjectiveProgress |
KPI → objective → perspective → final, weighted and normalised |
BscWeightAllocator |
reuses OkrWeightAllocator |
fixed/auto weight allocation; see §6 |
BscReviewResponseHelper |
OkrReviewResponseHelper |
final score → ReviewResponse.ObjectivePercentage with Component = OKR (see BRD BR-3.3 — no new component) |
All are pure static functions over entities, with no repository access — the property that makes the existing helpers testable and keeps stored progress and rendered percentages from ever disagreeing.
PercentageConverterToday's normalisation is:
// Core.Backend.Shared/Helpers/PercentageConverter.cs
CurrentProgressToPercentage(startValue, endValue, currentProgress)
endValue == 0 -> 0
startValue == endValue -> (currentProgress / startValue) * 100
otherwise -> clamp(0..100, (current - start) / (end - start) * 100)
That is exactly one of the eight BSC behaviours — Type 1 with a baseline. It has no concept of direction, threshold, ceiling, all-or-nothing, or a signed axis. Extending it would push eight behaviours into a function that OKR scoring also depends on. BscScoreCalculator sits beside it and calls it where the semantics genuinely match.
| Input | Source | Notes |
|---|---|---|
start |
EmployeeTarget.StartValue |
baseline; defaults to 0 |
target |
EmployeeTarget.EndValue |
absent for Type 8 |
actual |
ManagerProgress ?? CurrentProgress |
which column is authoritative is set per KPI — see BRD §11 |
kpiType |
EmployeeKeyResult.KpiType |
1–8 |
threshold |
EmployeeKeyResult.Threshold |
required for Types 6 and 7 |
ceiling |
EmployeeKeyResult.CeilingValue |
optional; Types 1, 4, 6 only |
weight |
EmployeeKeyResult.Weight |
0–100 within parent |
Notation. clamp(x) = max(0, min(100, x)). All scores are decimals on a 0–100 scale, rounded to 2 dp only at display.
Meet or beat the target and you get the full score; below target scales in proportion.