dashboard: chrome-indicators — the standing indicator stack gets its real source #214

Closed
opened 2026-07-30 23:20:43 +00:00 by ben · 1 comment
Owner

Parent

Monitoring spec #18 (the chrome's standing indicators, ADR 0094). Gap audit 2026-07-30 (post #191–#195 sweep). Not on #183's journey — hardening filed alongside the blocker set, confirmed by Ben.

What's true today

  • The dashboard bootstrap always constructs the fake indicator source — the only implementation in the repo — regardless of transport, unlike its alert and reachability siblings which branch to live. The spec has an alert-count endpoint but nothing for standing indicators.
  • The stack therefore renders empty forever — including the degraded-coverage indicator DDR 0101 expects the recovery-readiness card to raise into the chrome.

What to build

A standing-indicators read on the spec (the needs-attention truths the chrome carries: degraded coverage, pending devices, members awaiting — the server already knows each), a live source implementing the existing seam, and transport-branched wiring exactly like the alert source's.

Acceptance criteria

  • Given the whole composition with a standing condition (e.g. degraded backup coverage), When the chrome mounts live, Then the real indicator shows — and clears when the condition does
  • Given the resting composition, Then an honestly empty stack
  • Given the fake, Then it survives only where the tests inject it

Task manifest

task: dashboard:chrome-indicators
implements_seam: "the chrome's IndicatorSource (ADR 0094, DDR 0101's degraded-coverage raise) over a real spec read"
interface: "the nav chrome's standing indicators, live"
seam: "a live-HTTP vitest: condition on the server → indicator in the chrome"
acceptance:
  - given: a standing condition; when: the chrome mounts over live transport; then: the real indicator, never the fake
depends_on: []
out_of_scope: [alert badge (already live), new indicator kinds beyond the server's existing truths]
needs_human_decision: []

Blocks

None — evidence-adjacent polish for B·4/B·6, not gating.

## Parent Monitoring spec #18 (the chrome's standing indicators, ADR 0094). Gap audit 2026-07-30 (post #191–#195 sweep). Not on #183's journey — hardening filed alongside the blocker set, confirmed by Ben. ## What's true today - The dashboard bootstrap always constructs the fake indicator source — the only implementation in the repo — regardless of transport, unlike its alert and reachability siblings which branch to live. The spec has an alert-count endpoint but nothing for standing indicators. - The stack therefore renders empty forever — including the degraded-coverage indicator DDR 0101 expects the recovery-readiness card to raise into the chrome. ## What to build A standing-indicators read on the spec (the needs-attention truths the chrome carries: degraded coverage, pending devices, members awaiting — the server already knows each), a live source implementing the existing seam, and transport-branched wiring exactly like the alert source's. ## Acceptance criteria - [ ] Given the whole composition with a standing condition (e.g. degraded backup coverage), When the chrome mounts live, Then the real indicator shows — and clears when the condition does - [ ] Given the resting composition, Then an honestly empty stack - [ ] Given the fake, Then it survives only where the tests inject it ## Task manifest ```yaml task: dashboard:chrome-indicators implements_seam: "the chrome's IndicatorSource (ADR 0094, DDR 0101's degraded-coverage raise) over a real spec read" interface: "the nav chrome's standing indicators, live" seam: "a live-HTTP vitest: condition on the server → indicator in the chrome" acceptance: - given: a standing condition; when: the chrome mounts over live transport; then: the real indicator, never the fake depends_on: [] out_of_scope: [alert badge (already live), new indicator kinds beyond the server's existing truths] needs_human_decision: [] ``` ## Blocks None — evidence-adjacent polish for B·4/B·6, not gating.
Author
Owner

Done in 177ff72 (on origin/main).

What was true: the dashboard bootstrap always constructed FakeIndicatorSource for the chrome's standing-indicator stack regardless of transport — unlike its alert/reachability siblings which branch to live — so the stack rendered empty forever, including the degraded-coverage indicator DDR 0101 §4 expects rescue to raise into the chrome.

Fix: bootstrapDashboard now wires the slot transport-branched, exactly like the alert source: over a live transport it reads rescue's recovery-readiness (recoveryIndicatorSource, #110 / DDR 0101 §4) over the same live deps.backups.recovery client the Backups card uses — one query over the owning feature's store (ADR 0094). The fake is constructed only on the transport-less (test) branch, so no fake indicator ships in a live frame (ADR 0100). The boot now exposes the resolved indicatorSource so a served entry (#199) can drive its refresh.

No spec/Go change needed: the recovery-readiness endpoint already carries the StandingIndicator, and the whole composition already serves it — control-plane/.../main_test.go asserts resting degraded coverage raises rescue's chrome indicator. So the standing-indicators read the issue asked for already exists on the spec; the only gap was the chrome slot's wiring.

Seam: dashboard/tests/unit/chromeIndicatorsLive.test.ts (live-HTTP vitest). Acceptance:

  • ✅ A degraded readiness on a real Node control plane → the real recovery-coverage-degraded indicator in the mounted chrome; it self-clears when the served condition does.
  • ✅ The resting composition rests on an honestly empty stack (the fake defaults empty).
  • ✅ The fake survives only on the transport-less test branch — the live transport branch wires the real source (asserted not-a-Fake).

Checks: dashboard vue-tsc + repo eslint clean; vitest green (692 tests, 67 files).

Done in `177ff72` (on `origin/main`). **What was true:** the dashboard bootstrap always constructed `FakeIndicatorSource` for the chrome's standing-indicator stack regardless of transport — unlike its alert/reachability siblings which branch to live — so the stack rendered empty forever, including the degraded-coverage indicator DDR 0101 §4 expects rescue to raise into the chrome. **Fix:** `bootstrapDashboard` now wires the slot transport-branched, exactly like the alert source: over a live transport it reads rescue's recovery-readiness (`recoveryIndicatorSource`, #110 / DDR 0101 §4) over the same live `deps.backups.recovery` client the Backups card uses — one query over the owning feature's store (ADR 0094). The fake is constructed only on the transport-less (test) branch, so no fake indicator ships in a live frame (ADR 0100). The boot now exposes the resolved `indicatorSource` so a served entry (#199) can drive its `refresh`. **No spec/Go change needed:** the recovery-readiness endpoint already carries the `StandingIndicator`, and the whole composition already serves it — `control-plane/.../main_test.go` asserts resting degraded coverage raises rescue's chrome indicator. So the standing-indicators read the issue asked for already exists on the spec; the only gap was the chrome slot's wiring. **Seam:** `dashboard/tests/unit/chromeIndicatorsLive.test.ts` (live-HTTP vitest). Acceptance: - ✅ A degraded readiness on a real Node control plane → the real `recovery-coverage-degraded` indicator in the mounted chrome; it self-clears when the served condition does. - ✅ The resting composition rests on an honestly empty stack (the fake defaults empty). - ✅ The fake survives only on the transport-less test branch — the live transport branch wires the real source (asserted not-a-Fake). Checks: dashboard `vue-tsc` + repo `eslint` clean; vitest green (692 tests, 67 files).
ben closed this issue 2026-07-31 00:29:20 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#214
No description provided.