generated from coulomb/repo-seed
Add a live WHI card to the Workstreams page TOC sidebar. All six base metrics from the spec (workstream-kpi.md) computed client-side from existing data — no API or schema changes required. Computation (workstreams.md): - DD: dependency edges / open workstreams (normalised at DD_crit=1.0) - BR: blocked workstreams / open workstreams - SPR: max inbound deps on one incomplete workstream / open count - PEP: active workstreams with all deps completed / open count - CDDR: cross-domain edges / total edges - CPI: DFS cycle detection (back-edge = 1, halves WHI as hard penalty) - WHI = 0.30(1-DDnorm) + 0.25(1-BR) + 0.15(1-SPR) + 0.20·PEP + 0.10(1-CDDR) - Per-domain breakdown using intra-domain edges only Card UI: global WHI % with green/orange/red health label, sub-metric rows with per-spec warning thresholds, cycle alert panel, per-domain breakdown rows with coloured dots. Also add src/docs/workstream-health-index.md reference page (formula, thresholds, improvement guidance) and wire ? button on the card. Add "Workstream Health" to Reference nav. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
25 lines
1009 B
JavaScript
25 lines
1009 B
JavaScript
export default {
|
|
root: "src",
|
|
title: "Custodian State Hub",
|
|
pages: [
|
|
{ name: "Overview", path: "/" },
|
|
{ name: "Workstreams", path: "/workstreams" },
|
|
{ name: "Decisions", path: "/decisions" },
|
|
{ name: "Progress", path: "/progress" },
|
|
{
|
|
name: "Reference",
|
|
pages: [
|
|
{ name: "Live Data", path: "/docs/live-data" },
|
|
{ name: "Workstreams", path: "/docs/workstreams" },
|
|
{ name: "Workstream Health", path: "/docs/workstream-health-index" },
|
|
{ name: "Decisions", path: "/docs/decisions" },
|
|
{ name: "Decision Health", path: "/docs/decisions-kpi" },
|
|
{ name: "Progress Log", path: "/docs/progress-log" },
|
|
],
|
|
},
|
|
],
|
|
theme: ["air", "near-midnight"],
|
|
head: `<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🗄️</text></svg>">`,
|
|
footer: "Custodian State Hub — local-first, append-only, sovereignty-preserving.",
|
|
};
|