shell: unreachable-pair-hox-dx — the honest degraded states (HOx and DX) #38

Closed
opened 2026-07-25 04:55:03 +00:00 by ben · 1 comment
Owner

Parent

Feature spec: #22 (shell).

What to build

The two honest degradation states for an unreachable gateway (DDR 0096). Because the web dashboard is static files served by the gateway, a dead gateway has no dashboard to carry the news — so the states live on two surfaces and report only reachability from this seat (a client-side fact; the reachability probe is the app's already-running replica sync plus a control-plane ping — no seam change, no new monitoring channel).

HOx (docs/ux/wireframes/shell/shell-hox-operator-home-unreachable.html) is the operator app's standing fallback seat. When the config replica goes stale or the gateway stops answering, operator home becomes HOx: the health pill reads "Not answering", and the replica-staleness line is promoted from a checklist item to the headline (staleness is the app-health signal, ADR 0032), stating when the replica last synced and that the gateway hasn't answered since. "Rescue tools" is the prominent action, Tier-1 material (operator key + config replica) is named as standing by on this seat (ADR 0006), and "Open dashboard" is demoted and honestly labelled unavailable ("the dashboard lives on the gateway and is down with it", with a "try anyway"). Opening rescue tools begins break-glass with Tier-1 standing by (edge HOx → P8-S3); HOx claims no diagnosis of why. When the gateway answers again and the replica syncs, the seat rests back to HO (edge HOx → HO) on its own — no restart needed.

DX (docs/ux/wireframes/shell/shell-dx-community-unreachable.html) is for a loaded dashboard page that loses its control plane mid-session. The SPA replaces everything with one full-screen DX state (edge DN → DX) — the numbers that were on screen are gone, not greyed — showing "Not answering", when the last good response was, and what it means ("the gateway, or the path to it, isn't responding; this page is served by the gateway itself"). DX claims no diagnosis of why and never keeps rendering a stale green (the lie DDR 0071 forbids monitoring to tell, here read as: absence of API signal is never a stale green). "Open the operator app" opens the standing fallback seat at HOx (edge DX → HOx) where rescue lives; DX also offers "Try again" and names the app as keeping its own config replica.

Acceptance criteria

  • (story 4) Given the config replica has gone stale or the gateway stops answering, When operator home renders, Then it becomes HOx: the health pill reads "Not answering", and the replica-staleness line is promoted from a checklist item to the headline (staleness is the app-health signal, ADR 0032), stating when the replica last synced and that the gateway hasn't answered since.
  • (story 4) Given HOx, When I look for the next action, Then "Rescue tools" is the prominent action and Tier-1 material (operator key + config replica) is named as standing by on this seat (ADR 0006), while "Open dashboard" is demoted and honestly labelled unavailable ("the dashboard lives on the gateway and is down with it", with a "try anyway").
  • (story 4) Given HOx, When I open rescue tools, Then break-glass begins with Tier-1 material standing by (edge HOx → P8-S3); HOx claims no diagnosis of why — reachability from this seat is all it observes.
  • (story 5) Given HOx, When the gateway answers again and the replica syncs, Then the seat rests back to HO (edge HOx → HO), the health pill returns to healthy, and rescue tools go quiet again.
  • (story 27) Given a loaded dashboard page, When the control plane stops answering mid-session, Then the SPA replaces everything with one full-screen DX state (edge DN → DX) — the numbers that were on screen are gone, not greyed — showing "Not answering", when the last good response was, and what it means ("the gateway, or the path to it, isn't responding; this page is served by the gateway itself").
  • (story 27) Given DX, When it renders, Then it claims no diagnosis of why (reachability from this seat is all it observes; fleet-health truth stays monitoring's) and never keeps rendering a stale green (absence of API signal is never a stale green).
  • (story 28) Given DX, When I choose "Open the operator app", Then the standing fallback seat opens at HOx (edge DX → HOx) where rescue lives; DX also offers "Try again" and names the app as keeping its own config replica.

Blocked by

  • #28 — HOx is a state of the app's operator home
  • #29 — DX replaces the dashboard frame

Task manifest

task: shell:unreachable-pair-hox-dx
implements_flow: shell
implements_edge: HO→HOx, HOx→HO, HOx→P8-S3, DN→DX, DX→HOx
wireframe:
  - docs/ux/wireframes/shell/shell-hox-operator-home-unreachable.html
  - docs/ux/wireframes/shell/shell-dx-community-unreachable.html
interface: the HOx and DX honest-degraded states, driven by a client-side reachability probe (the app's existing replica sync + a control-plane ping) — no seam change, no new monitoring channel; HOx/DX report reachability from this seat only
seam: HOx/DX component tests — faked reachability probe (replica staleness + control-plane ping); asserts the HOx staleness-headline + rescue-prominence + demoted-dashboard, rest-back-to-HO on recovery, DX's full-screen replace (no stale green, numbers gone not greyed), and DX → HOx routing
acceptance:
  - given: the config replica goes stale or the gateway stops answering
    when: operator home renders
    then: HOx shows "Not answering", the replica-staleness line as the headline (ADR 0032), rescue prominent with Tier-1 standing by, and "Open dashboard" demoted/honest; rescue begins break-glass (HOx → P8-S3)
  - given: HOx
    when: the gateway answers again and the replica syncs
    then: the seat rests back to HO on its own, pill healthy, rescue quiet
  - given: a loaded dashboard page
    when: the control plane stops answering mid-session
    then: the SPA replaces everything with one full-screen DX (numbers gone not greyed), showing "Not answering", last-good-response time, and what it means; never a stale green, no diagnosis of why
  - given: DX
    when: I choose "Open the operator app"
    then: the app opens at HOx where rescue lives; DX also offers "Try again" and names the app's own config replica
depends_on: [app-side-shell, ui-kit-mount-slot-contract]
out_of_scope: [break-glass itself (rescue's P8), diagnosing why the gateway is unreachable (rescue's/monitoring's), monitoring's fleet-health truth, the healthy HO/DN surfaces (own slices)]
needs_human_decision: []
## Parent Feature spec: #22 (shell). ## What to build The two honest degradation states for an unreachable gateway (DDR 0096). Because the web dashboard is static files served by the gateway, a dead gateway has no dashboard to carry the news — so the states live on two surfaces and report only *reachability from this seat* (a client-side fact; the reachability probe is the app's already-running replica sync plus a control-plane ping — no seam change, no new monitoring channel). **HOx** (`docs/ux/wireframes/shell/shell-hox-operator-home-unreachable.html`) is the operator app's standing fallback seat. When the config replica goes stale or the gateway stops answering, operator home becomes HOx: the health pill reads "Not answering", and the replica-staleness line is promoted from a checklist item to the headline (staleness *is* the app-health signal, ADR 0032), stating when the replica last synced and that the gateway hasn't answered since. "Rescue tools" is the prominent action, Tier-1 material (operator key + config replica) is named as standing by on this seat (ADR 0006), and "Open dashboard" is demoted and honestly labelled unavailable ("the dashboard lives on the gateway and is down with it", with a "try anyway"). Opening rescue tools begins break-glass with Tier-1 standing by (edge HOx → P8-S3); HOx claims no diagnosis of *why*. When the gateway answers again and the replica syncs, the seat rests back to HO (edge HOx → HO) on its own — no restart needed. **DX** (`docs/ux/wireframes/shell/shell-dx-community-unreachable.html`) is for a *loaded* dashboard page that loses its control plane mid-session. The SPA replaces everything with one full-screen DX state (edge DN → DX) — the numbers that were on screen are gone, not greyed — showing "Not answering", when the last good response was, and what it means ("the gateway, or the path to it, isn't responding; this page is served by the gateway itself"). DX claims no diagnosis of why and never keeps rendering a stale green (the lie DDR 0071 forbids monitoring to tell, here read as: absence of *API* signal is never a stale green). "Open the operator app" opens the standing fallback seat at HOx (edge DX → HOx) where rescue lives; DX also offers "Try again" and names the app as keeping its own config replica. ## Acceptance criteria - [ ] (story 4) Given the config replica has gone stale or the gateway stops answering, When operator home renders, Then it becomes HOx: the health pill reads "Not answering", and the replica-staleness line is promoted from a checklist item to the headline (staleness *is* the app-health signal, ADR 0032), stating when the replica last synced and that the gateway hasn't answered since. - [ ] (story 4) Given HOx, When I look for the next action, Then "Rescue tools" is the prominent action and Tier-1 material (operator key + config replica) is named as standing by on this seat (ADR 0006), while "Open dashboard" is demoted and honestly labelled unavailable ("the dashboard lives on the gateway and is down with it", with a "try anyway"). - [ ] (story 4) Given HOx, When I open rescue tools, Then break-glass begins with Tier-1 material standing by (edge HOx → P8-S3); HOx claims no diagnosis of *why* — reachability from this seat is all it observes. - [ ] (story 5) Given HOx, When the gateway answers again and the replica syncs, Then the seat rests back to HO (edge HOx → HO), the health pill returns to healthy, and rescue tools go quiet again. - [ ] (story 27) Given a loaded dashboard page, When the control plane stops answering mid-session, Then the SPA replaces everything with one full-screen DX state (edge DN → DX) — the numbers that were on screen are gone, not greyed — showing "Not answering", when the last good response was, and what it means ("the gateway, or the path to it, isn't responding; this page is served by the gateway itself"). - [ ] (story 27) Given DX, When it renders, Then it claims no diagnosis of *why* (reachability from this seat is all it observes; fleet-health truth stays monitoring's) and never keeps rendering a stale green (absence of *API* signal is never a stale green). - [ ] (story 28) Given DX, When I choose "Open the operator app", Then the standing fallback seat opens at HOx (edge DX → HOx) where rescue lives; DX also offers "Try again" and names the app as keeping its own config replica. ## Blocked by - #28 — HOx is a state of the app's operator home - #29 — DX replaces the dashboard frame ## Task manifest ```yaml task: shell:unreachable-pair-hox-dx implements_flow: shell implements_edge: HO→HOx, HOx→HO, HOx→P8-S3, DN→DX, DX→HOx wireframe: - docs/ux/wireframes/shell/shell-hox-operator-home-unreachable.html - docs/ux/wireframes/shell/shell-dx-community-unreachable.html interface: the HOx and DX honest-degraded states, driven by a client-side reachability probe (the app's existing replica sync + a control-plane ping) — no seam change, no new monitoring channel; HOx/DX report reachability from this seat only seam: HOx/DX component tests — faked reachability probe (replica staleness + control-plane ping); asserts the HOx staleness-headline + rescue-prominence + demoted-dashboard, rest-back-to-HO on recovery, DX's full-screen replace (no stale green, numbers gone not greyed), and DX → HOx routing acceptance: - given: the config replica goes stale or the gateway stops answering when: operator home renders then: HOx shows "Not answering", the replica-staleness line as the headline (ADR 0032), rescue prominent with Tier-1 standing by, and "Open dashboard" demoted/honest; rescue begins break-glass (HOx → P8-S3) - given: HOx when: the gateway answers again and the replica syncs then: the seat rests back to HO on its own, pill healthy, rescue quiet - given: a loaded dashboard page when: the control plane stops answering mid-session then: the SPA replaces everything with one full-screen DX (numbers gone not greyed), showing "Not answering", last-good-response time, and what it means; never a stale green, no diagnosis of why - given: DX when: I choose "Open the operator app" then: the app opens at HOx where rescue lives; DX also offers "Try again" and names the app's own config replica depends_on: [app-side-shell, ui-kit-mount-slot-contract] out_of_scope: [break-glass itself (rescue's P8), diagnosing why the gateway is unreachable (rescue's/monitoring's), monitoring's fleet-health truth, the healthy HO/DN surfaces (own slices)] needs_human_decision: [] ```
Author
Owner

Done in commit edcccd8.

Built the two honest degraded states for an unreachable gateway (DDR 0096), driven by a client-side reachability probe (the app's replica sync + a control-plane ping) — no seam change, no new monitoring channel; both report reachability from this seat only, never a diagnosis of why.

HOx — app/src/components/shell/OperatorHomeUnreachableScreen.vue, rendered by OperatorHomeScreen when OperatorSeat.healthy === false (which now carries a new Reachability detail in app/src/lib/seat.ts): pill goes honest ("Not answering"); replica staleness promoted from a checklist line to the headline (ADR 0032); Rescue tools the prominent action with Tier-1 material named as standing by (ADR 0006, HOx → P8-S3); "Open dashboard" demoted + honestly unavailable with a "try anyway"; rests back to HO on its own when reachability recovers (HOx → HO, no restart).

DX — dashboard/src/components/CommunityUnreachableScreen.vue, rendered by DashboardShell in place of the whole nav chrome when a new client-side ReachabilitySource (dashboard/src/lib/reachability.ts) reports unreachable (DN → DX): numbers gone not greyed, never a stale green over a dead API (DDR 0071); shows "Not answering", last good response, what it means; "Open the operator app" routes to HOx via a new DashboardNavigator.openOperatorApp() (DX → HOx); "Try again" re-runs the probe; names the app's own config replica.

Evidence: 11 new app component tests (app/tests/unit/operatorHomeUnreachable.test.ts) + 8 new dashboard component tests (dashboard/tests/unit/communityUnreachable.test.ts) over faked reachability probes — all 68 app + 14 dashboard tests pass, vue-tsc + eslint clean. Every acceptance clause (stories 4, 5, 27, 28) covered. STATUS.md + docs/slices/shell.yaml (status: done) updated in the same commit.

Done in commit `edcccd8`. Built the two honest degraded states for an unreachable gateway (DDR 0096), driven by a client-side reachability probe (the app's replica sync + a control-plane ping) — no seam change, no new monitoring channel; both report reachability from this seat only, never a diagnosis of *why*. **HOx** — `app/src/components/shell/OperatorHomeUnreachableScreen.vue`, rendered by `OperatorHomeScreen` when `OperatorSeat.healthy === false` (which now carries a new `Reachability` detail in `app/src/lib/seat.ts`): pill goes honest ("Not answering"); replica staleness promoted from a checklist line to the headline (ADR 0032); Rescue tools the prominent action with Tier-1 material named as standing by (ADR 0006, HOx → P8-S3); "Open dashboard" demoted + honestly unavailable with a "try anyway"; rests back to HO on its own when reachability recovers (HOx → HO, no restart). **DX** — `dashboard/src/components/CommunityUnreachableScreen.vue`, rendered by `DashboardShell` in place of the whole nav chrome when a new client-side `ReachabilitySource` (`dashboard/src/lib/reachability.ts`) reports unreachable (DN → DX): numbers gone not greyed, never a stale green over a dead API (DDR 0071); shows "Not answering", last good response, what it means; "Open the operator app" routes to HOx via a new `DashboardNavigator.openOperatorApp()` (DX → HOx); "Try again" re-runs the probe; names the app's own config replica. **Evidence:** 11 new app component tests (`app/tests/unit/operatorHomeUnreachable.test.ts`) + 8 new dashboard component tests (`dashboard/tests/unit/communityUnreachable.test.ts`) over faked reachability probes — all 68 app + 14 dashboard tests pass, `vue-tsc` + `eslint` clean. Every acceptance clause (stories 4, 5, 27, 28) covered. STATUS.md + `docs/slices/shell.yaml` (`status: done`) updated in the same commit.
ben closed this issue 2026-07-25 09:09:59 +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.

Reference
Matou/idss#38
No description provided.