--- title: Workstream Health Index โ€” Reference --- # Workstream Health Index (WHI) The **Workstream Health Index** is a composite score in the range [0, 1] that measures how well the workstream network is structured for parallel execution and stable progress. It is displayed as a live KPI card in the right margin of the Workstreams page and recomputes on every poll (every 15 seconds). **1.0 = ideal independence ยท 0.0 = severe systemic dysfunction** --- ## Health states | Score | Color | Label | Meaning | |---|---|---|---| | โ‰ฅ 0.75 | ๐ŸŸข green | Healthy | Parallel execution effective, delays localized | | 0.50 โ€“ 0.74 | ๐ŸŸ  orange | Optimizable | Noticeable coordination cost; review decomposition | | < 0.50 | ๐Ÿ”ด red | Critical | Serial execution dominates; immediate replanning required | --- ## The six base metrics ### DD โ€” Dependency Density ``` DD = total dependency edges / (active + blocked workstreams) ``` Measures structural coupling. Low DD means independent, parallelizable work. Completed and archived workstreams are excluded โ€” they no longer constrain progress. | DD | Warning | |---|---| | > 1.0 | ๐Ÿ”ด red โ€” more than one dependency per workstream on average | | 0.5 โ€“ 1.0 | ๐ŸŸ  orange | | โ‰ค 0.5 | ok | --- ### BR โ€” Blocked Ratio ``` BR = blocked workstreams / (active + blocked workstreams) ``` Measures immediate operational impact. BR โ‰ˆ 0 means flow is unobstructed. | BR | Warning | |---|---| | > 40% | ๐Ÿ”ด red | | 20โ€“40% | ๐ŸŸ  orange | | โ‰ค 20% | ok | --- ### SPR โ€” Single-Point Risk ``` SPR = max dependents on one incomplete workstream / (active + blocked) ``` Detects concentration of blocking power. High SPR means one delay propagates widely โ€” a structural SPOF. | SPR | Warning | |---|---| | > 40% | ๐Ÿ”ด red | | 25โ€“40% | ๐ŸŸ  orange | | โ‰ค 25% | ok | --- ### PEP โ€” Parallel Execution Potential ``` PEP = ready or active workstreams with all deps finished / (ready + active + blocked) ``` Estimates how much work can proceed right now. A workstream is eligible if its stored workstation label is `ready` or `active` and the flow/dependency checks report no unmet dependency assertion; practically, every workstream it depends on has reached `finished` or `archived`. | PEP | Warning | |---|---| | < 30% | ๐Ÿ”ด red | | 30โ€“60% | ๐ŸŸ  orange | | โ‰ฅ 60% | ok | --- ### CDDR โ€” Cross-Domain Dependency Ratio ``` CDDR = dependency edges crossing domain boundaries / total edges ``` Measures architectural entanglement. High CDDR indicates loss of modularity across the six project domains. | CDDR | Warning | |---|---| | > 40% | ๐ŸŸ  orange | --- ### CPI โ€” Cycle Presence Indicator ``` CPI = 0 โ†’ no cycles CPI = 1 โ†’ at least one circular dependency detected ``` Detected via DFS with inStack colouring. Any cycle means no feasible execution order exists โ€” a structural deadlock. When CPI = 1, the final WHI score is **halved** as a hard penalty. --- ## Aggregation formula ``` DDnorm = min(1, DD / 1.0) โ† saturates at DD_critical = 1.0 WHI = 0.30 ร— (1 โˆ’ DDnorm) + 0.25 ร— (1 โˆ’ BR) + 0.15 ร— (1 โˆ’ SPR) + 0.20 ร— PEP + 0.10 ร— (1 โˆ’ CDDR) if CPI = 1: WHI = WHI ร— 0.5 ``` Result is clamped to [0, 1]. --- ## Domain breakdown The card also shows a per-domain WHI computed using **intra-domain workstreams and intra-domain edges only**. This measures each domain's internal autonomy โ€” how well its workstreams are decomposed relative to each other, independent of cross-domain dependencies. A domain with WHI = 100% is fully self-contained and parallelizable internally. Its global contribution to the program-level WHI may still be reduced by cross-domain dependencies (captured in CDDR). The domain breakdown is shown when at least two domains have active workstreams. --- ## How to improve a poor score | Symptom | Action | |---|---| | High DD | Decompose tightly coupled workstreams; remove unnecessary dependencies | | High BR | Unblock workstreams โ€” resolve the blocking condition, or mark dependency as finished if done | | High SPR | Split the bottleneck workstream into independent deliverables | | Low PEP | Complete prerequisite workstreams or re-sequence work | | High CDDR | Refactor cross-domain dependencies into shared contracts or invert the dependency | | CPI = 1 | Find and break the cycle โ€” identify which dependency edge is incorrect and remove it | --- ## What WHI is not WHI measures **structural health of the work graph** โ€” not individual performance, not velocity, not burn-down rate. A team can be moving fast with a poor WHI (serially but quickly), or slowly with a perfect WHI (fully parallel but under-resourced). Use WHI alongside velocity metrics, not instead of them. --- *Specification: `state-hub/dashboard/src/docs/workstream-kpi.md`*