From 1d986748a133a0fa65ebeea72fe240ac892fa007 Mon Sep 17 00:00:00 2001 From: tegwick Date: Thu, 4 Jun 2026 08:29:01 +0200 Subject: [PATCH] chore: close WHI KPI card workplan Marks CUST-WP-0003 finished with implementation evidence after verifying the dashboard WHI card, docs, and reference navigation are already present and the hub tasks are done. --- workplans/CUST-WP-0003-whi-kpi-card.md | 49 ++++++++++++++++++++------ 1 file changed, 38 insertions(+), 11 deletions(-) diff --git a/workplans/CUST-WP-0003-whi-kpi-card.md b/workplans/CUST-WP-0003-whi-kpi-card.md index 87dffef..49da9c5 100644 --- a/workplans/CUST-WP-0003-whi-kpi-card.md +++ b/workplans/CUST-WP-0003-whi-kpi-card.md @@ -4,12 +4,12 @@ type: workplan title: "State Hub v0.4 — Workstream Health Index (WHI) KPI Card" domain: custodian repo: state-hub -status: active +status: finished owner: custodian topic_slug: custodian state_hub_workstream_id: 9cc32158-2f5c-4ef6-9713-aacce4623d5e created: "2026-02-26" -updated: "2026-05-17" +updated: "2026-06-04" --- # State Hub v0.4 — Workstream Health Index (WHI) KPI Card @@ -46,7 +46,7 @@ CPI penalty: `WHI = WHI * 0.5` if CPI=1. ```task id: CUST-WP-0003-T01 state_hub_task_id: 243646e0-b77a-41e7-ac51-82c5828e63d2 -status: todo +status: done priority: high ``` @@ -61,7 +61,7 @@ workplan design — open_workstreams is the confirmed data source.) ```task id: CUST-WP-0003-T02 state_hub_task_id: 6dbef71f-d2d7-44ee-abb8-279dbaeec505 -status: todo +status: done priority: high ``` @@ -76,7 +76,7 @@ build `idToDomain` map from `data[]` for CDDR. ```task id: CUST-WP-0003-T03 state_hub_task_id: f0d5c107-6029-4ad0-af00-645d35ce7db0 -status: todo +status: done priority: high ``` @@ -91,7 +91,7 @@ deps, no dependents) are valid and never form cycles. ```task id: CUST-WP-0003-T04 state_hub_task_id: 6da60567-cc46-4a32-9855-b07bafe2faeb -status: todo +status: done priority: high ``` @@ -107,7 +107,7 @@ Using the graph from P2.1: ```task id: CUST-WP-0003-T05 state_hub_task_id: 29b2dbbd-5d60-49b6-ae84-3dbf22167df7 -status: todo +status: done priority: high ``` @@ -125,7 +125,7 @@ Factor into `computeWHI(nodes, edges, idToDomain)` for reuse in per-domain scope ```task id: CUST-WP-0003-T06 state_hub_task_id: 8ce5ef74-5eb8-4259-9b11-dde13bf84a89 -status: todo +status: done priority: medium ``` @@ -142,7 +142,7 @@ Store as `[{domain, whi, br, pep, cpi, openCount}]`. Skip domains with ```task id: CUST-WP-0003-T07 state_hub_task_id: 91efba5c-3be2-4bfe-b5ef-1b261e9423f2 -status: todo +status: done priority: high ``` @@ -163,7 +163,7 @@ Inject via `injectTocTop("whi-kpi-box", _whiBox)`. Wire ```task id: CUST-WP-0003-T08 state_hub_task_id: 4c898472-e4ae-49a2-b6cd-7aa1a3c7604a -status: todo +status: done priority: medium ``` @@ -178,7 +178,7 @@ cycle detection, and how to improve a poor score. Update ```task id: CUST-WP-0003-T09 state_hub_task_id: 20976663-7ac9-4909-8029-a479190f52ff -status: todo +status: done priority: low ``` @@ -186,3 +186,30 @@ Confirm `withDocHelp(_whiBox, "/docs/workstream-health-index")` is wired (from P3). Add `{ name: "Workstream Health", path: "/docs/workstream-health-index" }` to the Reference pages array in `observablehq.config.js`. Verify Reference nav renders correctly in `npm run dev`. + +## Implementation Evidence - 2026-06-04 + +This workplan was stale: the WHI implementation already existed in the current +State Hub dashboard worktree, but all tasks were still marked `todo`. + +Evidence reviewed: + +- `dashboard/src/workstreams.md` derives dependency edges from `/state/deps`, + computes DD, BR, SPR, PEP, CDDR, CPI, the weighted WHI score, and per-domain + intra-domain WHI breakdown. +- The Workplans page injects the WHI KPI card through + `injectTocTop("whi-kpi-box", _whiBox)` and wires + `withDocHelp(_whiBox, "/docs/workstream-health-index")`. +- The card shows the global score, health label, submetric rows, cycle alert, + and domain breakdown. +- `dashboard/src/docs/workstream-health-index.md` documents the metric, + thresholds, formula, CPI penalty, domain breakdown, and improvement actions. +- `dashboard/src/reference.md` and `dashboard/observablehq.config.js` include + the Workstream Health reference page. +- Verification: + - `npm test` in `dashboard/` passed: 11 tests. + - `npm run build` in `dashboard/` passed: 61 pages built, including + `/workstreams` and `/docs/workstream-health-index`, with 49 links + validated. + +All CUST-WP-0003 tasks are therefore complete and the workplan is finished.