Shell — child spec: the resting frame of both apps (operator app + web dashboard) #22

Closed
opened 2026-07-25 00:14:46 +00:00 by ben · 1 comment
Owner

Parent

Wayfinder map: Matou/ourcloud#7 — shell's definition was locked on ticket #9 (2026-07-21), which widened it from the operator app's resting screens to the resting surfaces of both apps (the operator app and the web dashboard's resting frame) after #9 found the dashboard shell — nav chrome, Overview, resting Fleet list, Settings — missing from the imported designs. This child spec inherits the map's cross-feature constraints (clan substrate behind the clan seam; the enroll seam's connection-request + fleet-reporting faces; the self-managing cluster with the operator app as the break-glass seat, ADRs 0011/0005/0031; the theming seam; the cross-cutting UX rulings — advice never veto (ADR 0015), members not users (ADR 0034), logging cross-cutting with drill-in everywhere (ADR 0027), the app on its own channel (ADR 0033)) and links back to it as the parent artifact. Grilled 2026-07-24 (/grill-ux-with-docs) in auto-accept mode at Ben's instruction (the P4b/monitoring precedent); Ben signed off both gates on 2026-07-24 (ADRs 0094/0097/0098 + DDRs 0093/0095/0096/0099 accepted), keeping every agent-invented number and posture. The owed wireframes — the entire missing dashboard shell plus HOx/AU app-side — were authored and confirmed the same day.

Flow: docs/ux/flows/shell.mermaid — a navigation map, not a journey flow (DDR 0093 is the justification). Shell is the resting frame every journey starts from and returns to; it has no start, end, or outcome of its own, so many edges terminate in reference nodes owned by other features (that is the mount contract made visible). to-spec consumed the map's nodes and edges the same way it consumes a journey's; the resting states are the stories, and the mount edges are testable routing stories.

Wireframes: docs/ux/wireframes/shell/ (15 pages, all confirmed 2026-07-24) — app-side: W, HO, ✎ HOx, HD, A4, A5, ✎ AU; dashboard-side: ✎ DN, ✎ DO, ✎ DOx, ✎ DF, ✎ DF2, ✎ DS, ✎ DS2, ✎ DX.

Decisions: DDR 0093 (the flow artifact is a navigation map), ADR 0094 (the mount/slot contract — six fixed tabs + two chrome slots, static build-time composition in the UI kit, no plugin registry), DDR 0095 (Overview composes feature-owned truths; resting lists never empty; the first-run exit condition), DDR 0096 (the dashboard cannot report its own death — HOx/DX, the app as fallback seat), ADR 0097 (shell has no orchestrator — thin composition over existing seams, plus the additive enroll ListCodes + CodeView.CreatedBy read), ADR 0098 (the appupdate state machine — launch + 24 h check, signature-verified, apply is the operator's act, never self-restart, honest failed state), DDR 0099 (Settings' v1 inventory — brand kit, provisioning's Updates mounted under Settings, read-only community details, the explicit not-here list).

Problem Statement

Every other v1 feature is a journey — found a community, add a device, provision a service, remove a member, recover from a disaster. But an operator does not spend their day mid-journey; they spend it at rest, glancing at a frame that should tell them, honestly and without expertise, whether their community is fine and where to go if it isn't. That frame is two surfaces: the operator app on the operator's own machine (the seat that founds and break-glass-rescues, plus a lighter device-home seat on machines that merely help), and the web dashboard served by the community's own gateway (nav chrome, Overview, the resting Fleet list, Settings). Left undesigned, that frame fails in exactly the ways a low-skill, low-time operator can least afford: it shows blank tables on day one instead of guiding the first moves; it lets each feature invent its own banner and its own idea of "healthy"; it keeps rendering yesterday's green numbers after the gateway that produced them has died (the dashboard is served by the gateway — a dead gateway cannot say it is dead); and it either nags the operator to update the very seat they rescue with, or silently restarts it mid-operation. Shell exists so the resting frame is a designed, honest, composed thing — owning the chrome and the resting states, and owning nothing of the features' truths it renders.

Solution

Shell is the frame, and it holds one hard line: shell owns the chrome and the resting states; every truth it shows is another feature's, read through that feature's own seam. It stores nothing, derives nothing, and orchestrates nothing (ADR 0097 — the first Phase-1 feature with no orchestrator anywhere).

The dashboard frame (DN). Six fixed tabs — Overview / Fleet / Services / Members / Backups / Settings — each a named mount point where a feature's screens appear, wired by static build-time composition in the shared UI kit (ADR 0094). No runtime plugin registry, no shell-side store. Two chrome slots ride every page: the standing-indicator stack (any feature's evidence-based, non-dismissible indicator, first tenant provisioning's auto-security-off) and the raised-alert count (a query over monitoring's standing alerts). The v1 tab set is closed; a new tab is a code change, never runtime registration.

Overview, composed and never empty (DO/DOx, DDR 0095). Every number on Overview is a feature's truth rendered in shell's frame — health is monitoring's, coverage is backups', each needs-attention count is a query over its owner. Everything-fine is a shown state ("Nothing needs your attention"), never a blank. First-run (DOx) is the state founding hands off into — the gateway alone, nothing provisioned, nobody invited — designed as guided next steps, not an empty screen; it exits first-run when the fleet gains a second node or a provisioned service. The never-empty rule generalises: every resting list opens with the row founding already made — Fleet's gateway, the codes ledger's spent founding code, Members' founder.

The honest degraded seat (HOx/DX, DDR 0096). The web dashboard is static files served by the gateway, so a dead gateway means no dashboard at all — and no dashboard screen can carry that news. The operator app is the standing fallback seat that can: when the community is unreachable, operator home flips to HOx (health pill honest, replica-staleness the headline, rescue tools prominent, Tier-1 material named as standing by). When a loaded dashboard page loses its control plane mid-session, it shows one honest full-screen DX state — what is known, when the last good response was, and a route to the app — and never keeps rendering stale numbers as if current.

The app's own update (AU, ADR 0098). A quiet strip on every app resting screen (W/HO/HD) says a verified release is ready; the state machine is current → available → downloaded (verified) → applied | failed (→ retry). Signature is verified before a release may be applied; apply is always the operator's act and the app never restarts itself (the rescue seat must never vanish mid-operation); a security release makes the strip prominent — advice, never veto; a failed update is named, retryable, and leaves the current version working.

Settings, pinned (DS/DS2, DDR 0099). Three sections and a load-bearing not-here list: the brand kit (the theming seam's Settings caller — validate → preview → apply → coverage report), provisioning's Updates & update policy mounted under Settings, and read-only community details with the honest "changing this is a bigger step" note.

The standing ledgers and logs. The enrollment-codes ledger appears on both surfaces (app A4, dashboard DF2) as one ledger read two ways through enroll's ListCodes with CreatedBy attribution — shell reads, never mints. The logs viewer (A5) and per-surface drill-ins carry Open/Download everywhere (ADR 0027).

User Stories

Acceptance criteria are Given/When/Then, sourced from the nodes and edges of the navigation map docs/ux/flows/shell.mermaid, including the error, empty and degraded resting states. Because shell has no journey, the stories are of the form "at rest, the surface shows/offers X" and "from here, feature Y's journey begins" (DDR 0093).

The app seat — entry and the two homes (W / HO / HD)

  1. As someone opening the operator app for the first time, I want a Welcome screen with exactly the two entry actions, so that I found or join a community without meeting an admin surface I don't need yet.

    • Given no community configured on this seat, When the app opens, Then W (Welcome) shows exactly two actions — "Create a community" and "Join with a code" — and nothing else (ADR 0018: the entry choice lives on Welcome, not a home screen).
    • Given W, When I choose "Create a community", Then founding's journey begins (edge W → P1-S1); When I choose "Join with a code", Then device-add's app-side join begins (edge W → P3-S2).
  2. As an operator whose community already lives on this seat, I want the app to rest at the operator home, so that I land on status-plus-launcher, not a setup flow.

    • Given a community administered from this seat (ADR 0019), When the app opens, Then HO (Operator home) shows the community name and portal URL, a healthy status pill, "Open dashboard" as the visually dominant action, the standing rescue material (config replica synced, operator key active), and any local VM's lifecycle — with rescue tools present but quiet while healthy.
    • Given HO, When I choose "Open dashboard", Then everyday administration leaves the app for the dashboard (edge HO → DN, ADR 0011); When I choose "Rescue tools", Then break-glass begins (edge HO → P8-S3); When I choose "Logs", Then the logs viewer opens (edge HO → A5); When I choose "Enrollment codes", Then the app-side ledger opens (edge HO → A4).
  3. As the owner of a machine that merely helps run a community, I want a lighter device home, so that I see my machine's contribution without operator-only controls.

    • Given this machine is a device (helper) seat, When the app opens, Then HD (Device home) shows which community it helps run, its role and running services as read-only rows (name, plain state, last incident), and the local VM lifecycle as the one genuinely local act (manage: start/stop/resize/remove).
    • Given HD, When I drill in to this device's logs, Then A5 opens scoped to this device (edge HD → A5); managing services stays in the dashboard, not here.

The app seat degraded — community unreachable (HOx) — DDR 0096

  1. As an operator whose gateway has stopped answering, I want the operator app to say so plainly, so that I am never left staring at a stale-looking healthy home while my community is down.

    • 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.
    • 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").
    • 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.
  2. As an operator, I want the seat to rest healthy again on its own when the community comes back, so that I don't have to restart anything to clear a transient outage.

    • 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.

The app-update strip and AU screen (W/HO/HD → AU) — ADR 0098

  1. As an operator, I want a quiet strip telling me a new app version is ready, so that I learn about updates without being blocked or nagged.

    • Given a release has been fetched on the app's own channel (ADR 0033) and verified, When any app resting screen (W/HO/HD) renders, Then a quiet app-update strip appears — "A new version of this app is ready · See what's new" — never a block; nothing below available in the state machine has any surface.
    • Given the strip, When I choose "See what's new", Then the AU screen opens (edge HO → AU / W → AU / HD → AU).
  2. As an operator, I want to read the release notes and apply the update myself, so that my rescue seat never restarts itself out from under an operation.

    • Given AU with a downloaded, signature-verified release, When it renders, Then it shows current vs ready versions (with "downloaded · signature verified ✓"), the release notes rendered verbatim as shipped signed with the release (ADR 0068 discipline — the app never rewrites them), and an "Apply & restart" action beside "Not now".
    • Given AU, When I choose "Apply & restart", Then the update applies and the app restarts as my deliberate act (edge AU → HO); the app never restarts itself (ADR 0098 — the seat that founds and rescues must not vanish mid-operation).
  3. As an operator, I want a security release made prominent and named as such, so that I can prioritise it — while it stays advice, not a forced gate.

    • Given the ready release is a security release, When the strip renders, Then it is prominent (warn styling) and says so ("a security update for this app is ready"), and AU says so too — advice, never veto (ADR 0015); no v1 state blocks the seat on an update.
  4. As an operator, I want a failed update to be honest and recoverable, so that a bad update can never brick the seat I rescue with.

    • Given an apply that failed, When AU renders the failed state, Then it states plainly that nothing was changed and the current version keeps working, names what failed with a one-click log, and offers "Retry update" beside "Keep using " (edge AU → AU, the self-loop; the updater applies atomically or not at all — no partial state).
    • Given a release artifact that fails signature verification, When the state machine evaluates it, Then it becomes failed, is named, and is never offered for apply.

The dashboard frame — nav chrome and the mount/slot contract (DN) — ADR 0094

  1. As an operator, I want a consistent dashboard frame with the six fixed tabs, so that every part of administration lives in a predictable place.

    • Given the web dashboard loads, When the nav chrome (DN) renders, Then it shows the brand bar (wearing the community's compiled brand kit via tokens.css), the six fixed tabs in order — Overview / Fleet / Services / Members / Backups / Settings — the signed-in operator, and the two chrome slots; the selected tab's owner renders in the mount outlet.
    • Given the closed v1 tab set (ADR 0094), When the platform grows a catalogue port or a feature, Then no tab registers at runtime — a new tab is an OurCloud-side code change adding a declared entry to the static mount table.
  2. As a feature author, I want my screens to mount at my declared tab, so that shell frames my content without owning or re-testing its truth.

    • Given the static mount table, When a tab is selected, Then the owning feature's screens render in the mount outlet — Services mounts monitoring's status truth and provisioning's per-service surfaces (edge DN → P5-S1), Members mounts P6-S1 (edge DN → P6-S1), Backups mounts P7-S1 (edge DN → P7-S1) — while Overview / Fleet / Settings are shell's own resting surfaces.
    • Given a feature's screens, When design-verify runs, Then each feature's screens are asserted to appear at their declared mount point; shell asserts only that the truth is rendered at the declared mount, never re-testing the truth itself (ADR 0097).
  3. As a feature with a standing condition, I want to supply a non-dismissible indicator to shell's chrome slot, so that an operator sees it on every page while it stands and never after it clears.

    • Given a feature supplies a standing indicator (evidence-based, non-dismissible), When any dashboard page renders, Then it appears in the standing-indicator stack in severity-then-age order, names its owning feature's drill-in, and its content/evidence is read as a query over that feature's store — shell holds no copy (edge IND → DN; first tenant provisioning's auto-security-off, P4b-U5x).
    • Given the indicator's condition clears in the owning feature's store, When the page re-renders, Then the indicator is gone (it stands only while its condition stands — advice, never veto, never a dismissible nag).
  4. As an operator, I want the raised-alert count in the chrome to reflect monitoring's real alerts, so that a badge is never a shell-invented number that can disagree with monitoring.

    • Given monitoring's standing alerts, When the chrome renders the raised-alert count, Then it is a count-with-severity chip read as a query over monitoring's alert store (the CONTEXT.md Alert rule — the surface is a query, never a separate store), not a shell counter.
    • Given the alert-count chip, When I drill in, Then monitoring's alerts open (edge DN → P5-S1); when monitoring's alert store has zero raised alerts, the chip reflects that truthfully.

Overview — steady state (DO) — DDR 0095

  1. As an operator, I want an Overview that composes my community's health, coverage and pending decisions, so that one glance tells me whether anything needs me.

    • Given the dashboard at rest, When Overview (DO) renders, Then it shows a health headline (monitoring's aggregation summarised, e.g. "Chat down on rimu — 4 min · 3 other devices and 5 services healthy"), a coverage headline (backups' map with named gaps, e.g. "Photos has a single copy · 3 of 4 datasets backed up"), and a needs-attention queue — each a query over its owning feature's store; shell computes none of it.
    • Given Overview, When I drill in to health, Then monitoring opens (edge DO → P5-S1); When I drill in to coverage, Then backups opens (edge DO → P7-S1).
  2. As an operator, I want "everything is fine" to be a shown state, so that a calm community reads as positively healthy rather than as a blank or broken page.

    • Given nothing queued and all-healthy, When Overview renders, Then the needs-attention queue renders "Nothing needs your attention" as a first-class state — never a hidden section, never an empty screen.
  3. As an operator, I want each needs-attention item to route me straight into the feature that owns it, so that acting on a pending decision is one click from Overview.

    • Given a needs-attention item (a pending device from enroll's connection requests, a member awaiting approval from members' gate, a release waiting on a decision from provisioning's channel state, a raised alert from monitoring), When I act on it, Then shell routes into the owning feature's flow (edge DO → the owning feature; e.g. a pending device → device-add/provisioning set-up, a raised alert → monitoring drill-in) — each count being a query over its owner (DDR 0095).

Overview — first run (DOx) — DDR 0095

  1. As a brand-new operator whom founding just handed off, I want a guided first-run Overview, so that I know my next moves instead of facing empty tables.

    • Given the fleet is the gateway alone with nothing provisioned and nobody invited (founding's hand-off, P1's exit), When Overview renders, Then it is DOx: a first-class guided state showing the gateway standing (name, GATEWAY role, healthy — founding's hand-off ruling, ticket #9) and three guided next steps — add a device, choose services, invite members — not an empty screen.
    • Given DOx, When I choose a next step, Then the owning feature's journey begins (edge DOx → P2-S1 add device / DOx → P4-S1 provision a service / DOx → P6-S1 invite a member).
  2. As an operator, I want Overview to leave first-run once my community actually starts, so that the guided state doesn't linger after I've begun.

    • Given DOx, When the fleet gains a second node or a provisioned service (whichever comes first), Then Overview leaves first-run and rests at the steady DO composition.

Fleet — resting list (DF) — DDR 0095

  1. As an operator, I want a resting Fleet list of my devices with their roles and health, so that I can see and act on any node from one place.

    • Given the fleet, When the Fleet tab (DF) renders, Then it lists each device with name, role and a health chip, opening with the gateway as row one (never-empty rule, DDR 0095), and offers "+ Add device" and "Enrollment codes".
    • Given a degraded device, When DF renders, Then the degraded state is shown in-state within the list (the chip is monitoring's classification, e.g. "chat down — 4 min", "asleep (expected)"), not a separate screen; shell displays the chip, monitoring owns the truth.
  2. As an operator, I want the actions on the Fleet list to route into the owning features, so that adding, changing, or diagnosing a node happens in the right feature.

    • Given DF, When I choose "+ Add device", Then device-add's in-flow minting begins (edge DF → P2-S1); When I choose "change"/"set up" on a row, Then provisioning's standing surface for that node opens (edge DF → P4-S1, ADR 0063); When I drill in from a health chip, Then monitoring's drill-in opens (edge DF → P5-S3); When I choose "Enrollment codes", Then the dashboard codes ledger opens (edge DF → DF2).

The enrollment-codes ledger, both surfaces (A4 / DF2) — ADR 0097

  1. As a co-operator, I want a codes ledger that shows who issued each code, so that co-operators always see who handed out which house key.

    • Given the code ledger, When A4 (app) or DF2 (dashboard) renders, Then it lists each code with its masked value, scope, status (active/used/expired/revoked), created-by attribution, and expiry — read through enroll's Operator-face ListCodes with CodeView.CreatedBy (ADR 0097's one additive enroll amendment); shell reads, enroll owns.
    • Given the never-empty rule (DDR 0095), When the ledger renders, Then it opens with founding's spent gateway code (the first node enrolled through the one mechanism, ADR 0028) — never a blank table.
  2. As an operator, I want the ledger to mint and revoke through the right owners, so that shell never becomes a second minting path.

    • Given A4/DF2, When I choose "+ New code", Then device-add's in-flow generation begins (edge A4 → P2-S1 / DF2 → P2-S1) — shell never mints; When I choose "Revoke" on an active code, Then enroll's RevokeCode runs (the house-key discipline; edge A4 → A4 self-loop, ADR 0097).
    • Given the ledger appears on both surfaces, When a code's state changes, Then both windows reflect the one enroll ledger (A4 and DF2 are two views of one truth, not two stores).

Settings — the pinned inventory (DS / DS2) — DDR 0099

  1. As an operator, I want a Settings page with a small, predictable inventory, so that Settings doesn't become the dumping ground for every orphan control.

    • Given the Settings tab, When DS renders, Then it shows exactly three sections — Brand kit, Updates & update policy (provisioning's, mounted here), and read-only Community details — and nothing else (DDR 0099's pinned v1 inventory).
    • Given the not-here list is load-bearing, When an operator looks for alert contact / roles & credentials / backup policy / enrollment codes / the app's own update, Then each is absent from Settings because it is homed elsewhere (monitoring P5-S2 / members P6-S4 / backups P7-S2 / the Fleet ledger DF2 / the app's AU) — a community setting never governs the app (ADR 0033).
  2. As an operator, I want read-only community details with an honest "bigger step" note, so that I understand which facts I can't casually change and why.

    • Given DS, When Community details renders, Then it shows name, apex domain, DNS arrangement and community ID as read-only, with a note that changing the domain or DNS wiring is founding-scale work (registrar, certificates, sign-in origins — ADRs 0014/0049) and to contact support/see docs; renaming the display name is directed to the brand kit.
  3. As an operator, I want to edit my brand kit from Settings and see honestly where it reaches, so that I can rebrand post-founding and understand uneven coverage.

    • Given DS, When I choose "Edit brand kit", Then DS2 opens (edge DS → DS2) — the theming seam's Settings caller: edit name/logo/colours/greeting with inline Validate (contrast shortfalls are warnings, never blocks), a debounced compile-preview, and an "Apply" action.
    • Given DS2, When I apply, Then the kit commits, one Compile runs, every surface wears it, and the coverage Report renders honestly per surface (e.g. "colours reach the portal and Nextcloud; Mattermost shows your logo; the sign-in screen is name+logo only, by design — ADR 0038) (edge DS2 → DS).
  4. As an operator, I want provisioning's Updates and update policy mounted under Settings, so that fleet updates live with their policy without claiming a seventh tab.

    • Given DS, When the Updates section renders, Then it shows provisioning's update status and policy summary and mounts provisioning's P4b surfaces (edge DS → P4b-U1) — the tab set stays closed (ADR 0094); a pending release's attention path is the chrome (indicator / needs-attention), not a tab badge.

The dashboard cannot report its own death (DX) — DDR 0096

  1. As an operator whose gateway dies mid-session, I want the loaded dashboard to show one honest unreachable state, so that I am never shown stale numbers as if they were current.

    • 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").
    • 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 (the lie DDR 0071 forbids monitoring to tell, here read as: absence of API signal is never a stale green).
  2. As an operator, I want DX to route me to the operator app, so that when the dashboard is gone I reach the seat that can still act.

    • 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.

Logs, everywhere (A5) — ADR 0027

  1. As an operator or device owner, I want Open/Download logs reachable from every surface, so that the escalation path is always one click away without being the primary thing I read.
    • Given any resting surface or drill-in, When I open logs, Then A5 (or the surface's own log drill-in) shows the operation log with filter/search and a "Download bundle" that produces one shareable bundle for a remote helper (ADR 0027); secrets never enter logs by construction.
    • Given logs are the escalation path, When the operator rests, Then logs are never the primary diagnostic the operator must read — the plain-language surfaces are (the P1 persona promise stands).

The never-empty rule (cross-cutting) — DDR 0095

  1. As an operator, I want every resting list to open with what founding already made, so that I never meet a blank table anywhere at rest.
    • Given any resting list shell frames, When it renders at rest, Then it opens with founding's row — the Fleet list's gateway (DF), the codes ledger's spent founding code (A4/DF2), the Members tab's founder (mounted from members) — so "empty" is always rendered as "here is what exists, here is the next move".

Implementation Decisions

  • Shell has no orchestrator — the first Phase-1 feature with none (ADR 0097). There is no fifth control-plane seam, no helper/agent state machine, no shell-side store, and no aggregation endpoint. Every piece of data shell's surfaces show is another feature's truth read through that feature's existing seam. Inventing a shell orchestrator would manufacture a second owner for other features' state (the exact failure DDR 0095 forbids). Shell's own engineering is exactly two things: the shared UI-kit mount/slot contract and the appupdate state machine.
  • The mount/slot contract is static, build-time composition in the shared UI kit (ADR 0094). The six tabs are a closed static mount table (data, not runtime registration); each tab is a named mount point; a new tab is a code change adding a declared entry. Two chrome slots ride every page: the standing-indicator stack (severity-then-age order; each indicator's content/evidence a query over the owning feature's store) and the raised-alert count (a query over monitoring's alert store). Both Quasar surfaces consume the one UI kit; it also owns the existing data-attribute contract. Architecture diagram 02 records the UI kit's mount/slot contract (ADR 0042, done at grill time).
  • Overview composes, never computes (DDR 0095). Health headline = monitoring's aggregation summarised; coverage headline = backups' coverage map; needs-attention = a standing queue of operator-only decisions, each item a query over its owner (enroll connection requests, members' gate, provisioning's channel state, monitoring's alerts). Overview needs no new API shape — it consumes queries the features already expose at their seams (carried by the OpenAPI spec). Everything-fine is a shown state. First-run (DOx) shows the gateway standing plus guided next steps and exits when the fleet gains a second node or a provisioned service.
  • The never-empty rule (DDR 0095). Every resting list opens with founding's row: Fleet's gateway, the codes ledger's spent founding code, Members' founder. Degraded is a state within a resting list (monitoring-fed chips), not a separate screen.
  • The dashboard cannot report its own death; the app is the fallback seat (DDR 0096). Because the dashboard is static files served by the gateway (ADR 0036), a dead gateway has no dashboard to carry the news. Two states, two surfaces: never-reached → the app's HOx (health pill honest, replica-staleness the headline per ADR 0032, rescue prominent, Tier-1 standing by); loaded-then-lost → the dashboard's DX (one honest full-screen state, never stale-green, routes to the app). The app's reachability probe is trivial standing behaviour (the replica sync it already runs + a control-plane ping) — no seam change, no new monitoring channel. HOx/DX report only reachability from this seat (a client-side fact); why is rescue's and monitoring's to find.
  • The appupdate state machine — shell's one owned engineering seam (ADR 0098). current → available → downloaded (verified) → applied | failed (→ retry). Check on launch and every 24 h; checking is silent (nothing below available has a surface). Download in the background; signature verified before downloaded (a failed-verification artifact is failed, named, never offered). Apply is always the operator's act; the app never restarts itself. A security release makes the strip prominent — advice, never veto (ADR 0015). Failed is honest: current version keeps working, named, retryable; atomic apply is an invariant (the Electron updater's contract). The update vocabulary is provisioning's (Release, Release notes) — shell references, never redefines (ticket #9's double-spec guard). This is the app's own channel (ADR 0033), independent of every community's fleet policy; the device-side agent is untouched (it updates with the fleet's pinned release via /get, ADR 0054).
  • The additive enroll read (ADR 0097). The standing codes ledger needs to list what MintCode/RevokeCode write, with attribution. The enroll Operator face gains ListCodes and CodeView gains CreatedBy — recorded in docs/seams/agent-control-plane.md in the established additive style; nothing confirmed moves. A4 and DF2 are two views of this one ledger; shell never mints or holds a copy.
  • Settings' v1 inventory is pinned (DDR 0099). Three sections — brand kit (the brandkit seam's Settings caller, unchanged), provisioning's Updates & update policy mounted under Settings, read-only community details — plus an explicit not-here list (alert contact, roles/credentials, backup policy, enrollment codes, the app's own update), each already homed.
  • Modules built/modified: the shared UI kit (the chrome, the static mount table, the two chrome slots, plus its existing data-attribute contract); the Vue web dashboard shell surfaces (DN/DO/DOx/DF/DF2/DS/DS2/DX) as thin composition over feature queries; the operator app shell surfaces (W/HO/HOx/HD/A4/A5/AU) including the reachability probe and the appupdate state machine; the enroll Operator face gains ListCodes + CodeView.CreatedBy (additive). No new control-plane component (ADR 0097).

Testing Decisions

Honest to ADR 0097, shell has no single orchestrator seam — its stories execute against three surfaces, and shell's spec asserts only that truth is rendered at the declared mount, never re-testing the truth itself (that is each owning feature's spec).

  • What makes a good test here: assert external behaviour, not internals — that the mount table renders each feature at its declared tab; that a chrome slot shows an indicator while its condition stands in the owner's store and is gone when it clears; that the raised-alert count equals a query over monitoring's alert store (never a shell counter); that acting on a needs-attention item routes into the owning feature; that the appupdate state machine transitions correctly given a faked channel client (available → downloaded-verified → applied | failed; verify-before-apply; never self-restart); and that the codes ledger renders ListCodes output with CreatedBy attribution and never mints. Never assert the UI kit's internal component shapes or the probe's polling mechanics.

  • (a) The UI-kit mount/slot contract — shell's principal testable surface (ADR 0094/0097). The static mount table and slot behaviour live in the shared UI kit and are asserted as data + component-level tests (the mount table is diffable data; slot ordering is severity-then-age; a slot reads a faked owner store). design-verify checks each feature's screens appear at their declared mount point and checks the built shell surfaces against the 15-page wireframe set. This is a UI-kit contract, not a Go seam — saying so is the honest seam answer for a frame.

  • (b) The appupdate state machine (ADR 0098). Tested at its own small interface with the channel client faked (feed fetch, download, signature verify) — the same drive-the-orchestrator shape as founding/join/monitor (0052/0057/0069), at app scale. Assert every transition, the verify-before-downloaded gate, the apply-is-operator-only / never-self-restart posture, the security-release prominence, and the honest atomic failed → retry.

  • (c) Existing seams' reads — already covered by their own specs. The codes ledger executes enroll's ListCodes (RequestView-shaped read with CreatedBy); Settings' brand kit executes the brandkit verbs (Validate / compile-preview / Compile / Report), unchanged; Overview / Fleet chips / needs-attention execute feature read queries via the OpenAPI spec (monitoring, backups, provisioning, members, enroll). Shell tests assert the rendering-at-mount and the routing, not the truth those seams return.

  • Prior art to copy: the enroll ledger-read family for the codes ledger (the connection-request RequestView read discipline, extended by ListCodes/CreatedBy, ADR 0097); P4b's indicator-slot pattern tests (the standing-indicator slot, ADR 0068 — shell renders the slot, the feature supplies content/evidence); and monitoring's query-not-store assertions (the CONTEXT.md Alert rule — the surface is a query, never a separate store, spec #18) applied to the alert count and every Overview number.

  • One testing addition beyond the grill (mirroring founding, device-add, provisioning and monitoring): a non-gating real-lab shell smoke — on the clan-lab fleet, serve the real dashboard from a lab gateway and confirm the never-empty resting lists after founding (Fleet opens with the gateway row, the codes ledger with the spent founding code), then stop the control plane and observe both honest-degradation states: the dashboard's DX (one full-screen unreachable state, no stale green) and the app-side HOx (replica-staleness headline, rescue prominent). Explicitly not an acceptance gate; the mount/slot and appupdate tests are.

Out of Scope

  • Any feature's truth or journey. Shell renders health, coverage, alerts, members, backups, per-service surfaces and update rollouts, but owns none of them — each is its own feature's spec. Shell tests never re-test those truths.
  • A shell orchestrator / dashboard-summary aggregation endpoint (ADR 0097, rejected). No second store of feature truths; no fifth seam. Overview composes the features' own queries.
  • A runtime plugin/slot registry or dynamic tab discovery (ADR 0094, rejected). The v1 tab set and catalogue are fixed; composition is static and build-time.
  • The Services tab's resting content. Shell owns only the mount; the resting content is monitoring's status truth + provisioning's per-service surfaces (owner to confirm/assign at slice-map time — see needs_human_decision).
  • Alert contact, roles & credentials, backup policy, enrollment-code minting, the community's fleet-update mechanism. Each homed in its owning feature (monitoring / members / backups / device-add / provisioning); shell only renders/mounts/routes.
  • The device-side agent's update. It updates with the fleet's pinned release (/get, ADR 0054); the appupdate machine governs only the operator app (ADR 0033).
  • A blocking "you must update" gate or silent auto-apply on quit (ADR 0098, rejected). No v1 state bricks or silently restarts the seat.
  • Multi-community switcher beyond its placement. HO notes a switcher above the card when operating several communities; its full journey is not designed here.
  • Diagnosing why the gateway is unreachable. HOx/DX report reachability from this seat only; the cause is rescue's and monitoring's.

Further Notes

  • Seam gate — recorded, not re-confirmed live. Shell is the first feature whose seam answer is "no orchestrator" (ADR 0097). Ben's 2026-07-24 sign-off of the shell grill's seam gate stands as the seam confirmation for this spec — the confirmation is that ADR 0097 (thin composition over existing seams + the additive enroll read) and ADRs 0094/0098 (the UI-kit contract and the appupdate machine as shell's only owned engineering) are the correct testable surfaces. This is recorded as the standing sign-off, not a fresh live re-confirmation at spec time (unlike founding/device-add/provisioning/monitoring/members, shell has no single seam to re-walk).
  • The agent-invented numbers/postures, kept by Ben at sign-off: the appupdate check cadence (launch + 24 h) and the never-self-restart apply posture (ADR 0098); the read-only community details scope call (DDR 0099). Worth revisiting only if a future protocol break forces an update floor, or a v1 journey needs an editable community detail.
  • Cross-feature edges for the slice-map (shell is the biggest edge-hub — every dashboard feature depends on shell's frame existing; shell is an early DAG node, ticket #8):
    • Every dashboard feature → the frame. Services (monitoring + provisioning), Members, Backups, and the Fleet/Overview/Settings surfaces all mount into DN; each depends on the shared UI-kit mount/slot contract existing first.
    • provisioning → shell: the standing-indicator slot (first tenant, auto-security-off P4b-U5x), and Updates & update policy mounted under Settings (P4b-U1…U5 under DS, DDR 0099).
    • monitoring → shell: the raised-alert count in the chrome (query over monitoring's alert store), the health headline on Overview, and the health chips on the Fleet list (all monitoring's truth, shell renders).
    • members → shell: the Members tab mount (P6-S1), and the Members list's founder as row one (never-empty rule).
    • backups → shell: the Backups tab mount (P7-S1), and the coverage headline on Overview (backups' coverage map with named gaps).
    • device-add / enroll → shell: the Fleet-list "+ Add device"/"change"/"set up" routes (P2-S1 / P4-S1), the codes ledger on both surfaces via the additive ListCodes + CreatedBy read (ADR 0097), and pending devices in Overview's needs-attention.
    • founding → shell: the hand-off lands in DOx (first-run Overview) and seeds the never-empty rows (Fleet's gateway, the codes ledger's spent founding code).
    • rescue → shell: rescue's app screens are the exits from HOx and DX (edges HOx → P8-S3, DX → HOx → rescue); and rescue may claim the chrome's standing-indicator slot for a "recovery kit not exported" reminder — the shell grill recorded this as a coordination point, not an obligation (see needs_human_decision).
    • theming (brandkit) → shell: the DS2 brand-kit editor is the theming seam's Settings caller (Validate / compile-preview / Compile / Report), unchanged.
    • app-update channel → provisioning's vocabulary: the appupdate machine references provisioning's Release / Release notes vocabulary (ticket #9's double-spec guard — shell references, never redefines).
  • needs_human_decision carried forward (from the shell grill, for slice-map time):
    1. The Services tab's resting-content owner — shell owns only the mount; the resting content is monitoring's status truth + provisioning's per-service surfaces. Confirm this mount reading, or assign a single owner for the Services resting state, at slice-map time.
    2. Rescue's recovery-kit re-prompt indicator — whether rescue claims shell's standing-indicator slot for a "kit not exported" reminder is rescue's grill's call; recorded here as a coordination point between rescue and shell's chrome, to be resolved when the two specs meet at the slice-map.
  • Triage: filed no-triage (not ready-for-agent) — mirroring provisioning #17, monitoring #18 and members #19. The live swarm must not pick up a whole feature spec as an agent task; shell joins the Phase-2 slice-map with the other seven feature specs, and to-tickets will emit the implementable tasks afterward (shell early in the DAG, since every dashboard feature depends on its frame).
## Parent Wayfinder map: https://git.matou.nz/Matou/ourcloud/issues/7 — shell's definition was locked on ticket #9 (2026-07-21), which widened it from the operator app's resting screens to the resting surfaces of **both** apps (the operator app *and* the web dashboard's resting frame) after #9 found the dashboard shell — nav chrome, Overview, resting Fleet list, Settings — missing from the imported designs. This child spec inherits the map's cross-feature constraints (clan substrate behind the `clan` seam; the `enroll` seam's connection-request + fleet-reporting faces; the self-managing cluster with the operator app as the break-glass seat, ADRs 0011/0005/0031; the theming seam; the cross-cutting UX rulings — advice never veto (ADR 0015), members not users (ADR 0034), logging cross-cutting with drill-in everywhere (ADR 0027), the app on its own channel (ADR 0033)) and links back to it as the parent artifact. Grilled 2026-07-24 (`/grill-ux-with-docs`) in auto-accept mode at Ben's instruction (the P4b/monitoring precedent); **Ben signed off both gates on 2026-07-24** (ADRs 0094/0097/0098 + DDRs 0093/0095/0096/0099 `accepted`), keeping every agent-invented number and posture. The owed wireframes — the entire missing dashboard shell plus HOx/AU app-side — were authored and confirmed the same day. Flow: `docs/ux/flows/shell.mermaid` — a **navigation map**, not a journey flow (DDR 0093 is the justification). Shell is the resting frame every journey starts from and returns to; it has no start, end, or outcome of its own, so many edges terminate in reference nodes owned by other features (that is the mount contract made visible). `to-spec` consumed the map's nodes and edges the same way it consumes a journey's; the resting states are the stories, and the mount edges are testable routing stories. Wireframes: `docs/ux/wireframes/shell/` (15 pages, all confirmed 2026-07-24) — app-side: W, HO, ✎ HOx, HD, A4, A5, ✎ AU; dashboard-side: ✎ DN, ✎ DO, ✎ DOx, ✎ DF, ✎ DF2, ✎ DS, ✎ DS2, ✎ DX. Decisions: DDR 0093 (the flow artifact is a navigation map), ADR 0094 (the mount/slot contract — six fixed tabs + two chrome slots, static build-time composition in the UI kit, no plugin registry), DDR 0095 (Overview composes feature-owned truths; resting lists never empty; the first-run exit condition), DDR 0096 (the dashboard cannot report its own death — HOx/DX, the app as fallback seat), ADR 0097 (shell has no orchestrator — thin composition over existing seams, plus the additive `enroll` `ListCodes` + `CodeView.CreatedBy` read), ADR 0098 (the `appupdate` state machine — launch + 24 h check, signature-verified, apply is the operator's act, never self-restart, honest failed state), DDR 0099 (Settings' v1 inventory — brand kit, provisioning's Updates mounted under Settings, read-only community details, the explicit not-here list). ## Problem Statement Every other v1 feature is a journey — found a community, add a device, provision a service, remove a member, recover from a disaster. But an operator does not spend their day mid-journey; they spend it **at rest**, glancing at a frame that should tell them, honestly and without expertise, whether their community is fine and where to go if it isn't. That frame is two surfaces: the **operator app** on the operator's own machine (the seat that founds and break-glass-rescues, plus a lighter device-home seat on machines that merely help), and the **web dashboard** served by the community's own gateway (nav chrome, Overview, the resting Fleet list, Settings). Left undesigned, that frame fails in exactly the ways a low-skill, low-time operator can least afford: it shows blank tables on day one instead of guiding the first moves; it lets each feature invent its own banner and its own idea of "healthy"; it keeps rendering yesterday's green numbers after the gateway that produced them has died (the dashboard is *served by* the gateway — a dead gateway cannot say it is dead); and it either nags the operator to update the very seat they rescue with, or silently restarts it mid-operation. Shell exists so the resting frame is a designed, honest, composed thing — owning the chrome and the resting states, and owning *nothing* of the features' truths it renders. ## Solution Shell is the frame, and it holds one hard line: **shell owns the chrome and the resting states; every truth it shows is another feature's, read through that feature's own seam.** It stores nothing, derives nothing, and orchestrates nothing (ADR 0097 — the first Phase-1 feature with no orchestrator anywhere). **The dashboard frame (DN).** Six fixed tabs — Overview / Fleet / Services / Members / Backups / Settings — each a named **mount point** where a feature's screens appear, wired by static build-time composition in the shared UI kit (ADR 0094). No runtime plugin registry, no shell-side store. Two **chrome slots** ride every page: the standing-indicator stack (any feature's evidence-based, non-dismissible indicator, first tenant provisioning's auto-security-off) and the raised-alert count (a query over monitoring's standing alerts). The v1 tab set is closed; a new tab is a code change, never runtime registration. **Overview, composed and never empty (DO/DOx, DDR 0095).** Every number on Overview is a feature's truth rendered in shell's frame — health is monitoring's, coverage is backups', each needs-attention count is a query over its owner. Everything-fine is a *shown* state ("Nothing needs your attention"), never a blank. First-run (DOx) is the state founding hands off into — the gateway alone, nothing provisioned, nobody invited — designed as guided next steps, not an empty screen; it exits first-run when the fleet gains a second node or a provisioned service. The **never-empty rule** generalises: every resting list opens with the row founding already made — Fleet's gateway, the codes ledger's spent founding code, Members' founder. **The honest degraded seat (HOx/DX, DDR 0096).** The web dashboard is static files served by the gateway, so a dead gateway means no dashboard at all — and no dashboard screen can carry that news. The **operator app** is the standing fallback seat that can: when the community is unreachable, operator home flips to HOx (health pill honest, replica-staleness the headline, rescue tools prominent, Tier-1 material named as standing by). When a *loaded* dashboard page loses its control plane mid-session, it shows one honest full-screen DX state — what is known, when the last good response was, and a route to the app — and never keeps rendering stale numbers as if current. **The app's own update (AU, ADR 0098).** A quiet strip on every app resting screen (W/HO/HD) says a verified release is ready; the state machine is `current → available → downloaded (verified) → applied | failed (→ retry)`. Signature is verified before a release may be applied; **apply is always the operator's act** and the app never restarts itself (the rescue seat must never vanish mid-operation); a security release makes the strip prominent — advice, never veto; a failed update is named, retryable, and leaves the current version working. **Settings, pinned (DS/DS2, DDR 0099).** Three sections and a load-bearing not-here list: the brand kit (the theming seam's Settings caller — validate → preview → apply → coverage report), provisioning's Updates & update policy mounted under Settings, and read-only community details with the honest "changing this is a bigger step" note. **The standing ledgers and logs.** The enrollment-codes ledger appears on both surfaces (app A4, dashboard DF2) as one ledger read two ways through `enroll`'s `ListCodes` with `CreatedBy` attribution — shell reads, never mints. The logs viewer (A5) and per-surface drill-ins carry Open/Download everywhere (ADR 0027). ## User Stories Acceptance criteria are Given/When/Then, sourced from the nodes and edges of the navigation map `docs/ux/flows/shell.mermaid`, including the error, empty and degraded resting states. Because shell has no journey, the stories are of the form "at rest, the surface shows/offers X" and "from here, feature Y's journey begins" (DDR 0093). ### The app seat — entry and the two homes (W / HO / HD) 1. As someone opening the operator app for the first time, I want a Welcome screen with exactly the two entry actions, so that I found or join a community without meeting an admin surface I don't need yet. - Given no community configured on this seat, When the app opens, Then W (Welcome) shows exactly two actions — "Create a community" and "Join with a code" — and nothing else (ADR 0018: the entry choice lives on Welcome, not a home screen). - Given W, When I choose "Create a community", Then founding's journey begins (edge W → P1-S1); When I choose "Join with a code", Then device-add's app-side join begins (edge W → P3-S2). 2. As an operator whose community already lives on this seat, I want the app to rest at the operator home, so that I land on status-plus-launcher, not a setup flow. - Given a community administered from this seat (ADR 0019), When the app opens, Then HO (Operator home) shows the community name and portal URL, a healthy status pill, "Open dashboard" as the visually dominant action, the standing rescue material (config replica synced, operator key active), and any local VM's lifecycle — with rescue tools present but quiet while healthy. - Given HO, When I choose "Open dashboard", Then everyday administration leaves the app for the dashboard (edge HO → DN, ADR 0011); When I choose "Rescue tools", Then break-glass begins (edge HO → P8-S3); When I choose "Logs", Then the logs viewer opens (edge HO → A5); When I choose "Enrollment codes", Then the app-side ledger opens (edge HO → A4). 3. As the owner of a machine that merely helps run a community, I want a lighter device home, so that I see my machine's contribution without operator-only controls. - Given this machine is a device (helper) seat, When the app opens, Then HD (Device home) shows which community it helps run, its role and running services as **read-only** rows (name, plain state, last incident), and the local VM lifecycle as the one genuinely local act (manage: start/stop/resize/remove). - Given HD, When I drill in to this device's logs, Then A5 opens scoped to this device (edge HD → A5); managing services stays in the dashboard, not here. ### The app seat degraded — community unreachable (HOx) — DDR 0096 4. As an operator whose gateway has stopped answering, I want the operator app to say so plainly, so that I am never left staring at a stale-looking healthy home while my community is down. - 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. - 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"). - 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. 5. As an operator, I want the seat to rest healthy again on its own when the community comes back, so that I don't have to restart anything to clear a transient outage. - 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. ### The app-update strip and AU screen (W/HO/HD → AU) — ADR 0098 6. As an operator, I want a quiet strip telling me a new app version is ready, so that I learn about updates without being blocked or nagged. - Given a release has been fetched on the app's own channel (ADR 0033) and verified, When any app resting screen (W/HO/HD) renders, Then a quiet app-update strip appears — "A new version of this app is ready · See what's new" — never a block; nothing below `available` in the state machine has any surface. - Given the strip, When I choose "See what's new", Then the AU screen opens (edge HO → AU / W → AU / HD → AU). 7. As an operator, I want to read the release notes and apply the update myself, so that my rescue seat never restarts itself out from under an operation. - Given AU with a downloaded, signature-verified release, When it renders, Then it shows current vs ready versions (with "downloaded · signature verified ✓"), the release notes rendered **verbatim** as shipped signed with the release (ADR 0068 discipline — the app never rewrites them), and an "Apply & restart" action beside "Not now". - Given AU, When I choose "Apply & restart", Then the update applies and the app restarts as my deliberate act (edge AU → HO); the app **never** restarts itself (ADR 0098 — the seat that founds and rescues must not vanish mid-operation). 8. As an operator, I want a security release made prominent and named as such, so that I can prioritise it — while it stays advice, not a forced gate. - Given the ready release is a security release, When the strip renders, Then it is prominent (warn styling) and says so ("a security update for this app is ready"), and AU says so too — advice, never veto (ADR 0015); no v1 state blocks the seat on an update. 9. As an operator, I want a failed update to be honest and recoverable, so that a bad update can never brick the seat I rescue with. - Given an apply that failed, When AU renders the failed state, Then it states plainly that nothing was changed and the current version keeps working, names what failed with a one-click log, and offers "Retry update" beside "Keep using <current>" (edge AU → AU, the self-loop; the updater applies atomically or not at all — no partial state). - Given a release artifact that fails signature verification, When the state machine evaluates it, Then it becomes `failed`, is named, and is never offered for apply. ### The dashboard frame — nav chrome and the mount/slot contract (DN) — ADR 0094 10. As an operator, I want a consistent dashboard frame with the six fixed tabs, so that every part of administration lives in a predictable place. - Given the web dashboard loads, When the nav chrome (DN) renders, Then it shows the brand bar (wearing the community's compiled brand kit via `tokens.css`), the six fixed tabs in order — Overview / Fleet / Services / Members / Backups / Settings — the signed-in operator, and the two chrome slots; the selected tab's owner renders in the mount outlet. - Given the closed v1 tab set (ADR 0094), When the platform grows a catalogue port or a feature, Then no tab registers at runtime — a new tab is an OurCloud-side code change adding a declared entry to the static mount table. 11. As a feature author, I want my screens to mount at my declared tab, so that shell frames my content without owning or re-testing its truth. - Given the static mount table, When a tab is selected, Then the owning feature's screens render in the mount outlet — Services mounts monitoring's status truth and provisioning's per-service surfaces (edge DN → P5-S1), Members mounts P6-S1 (edge DN → P6-S1), Backups mounts P7-S1 (edge DN → P7-S1) — while Overview / Fleet / Settings are shell's own resting surfaces. - Given a feature's screens, When `design-verify` runs, Then each feature's screens are asserted to appear at their declared mount point; shell asserts only that the truth is *rendered at the declared mount*, never re-testing the truth itself (ADR 0097). 12. As a feature with a standing condition, I want to supply a non-dismissible indicator to shell's chrome slot, so that an operator sees it on every page while it stands and never after it clears. - Given a feature supplies a standing indicator (evidence-based, non-dismissible), When any dashboard page renders, Then it appears in the standing-indicator stack in severity-then-age order, names its owning feature's drill-in, and its content/evidence is read as a query over that feature's store — shell holds no copy (edge IND → DN; first tenant provisioning's auto-security-off, P4b-U5x). - Given the indicator's condition clears in the owning feature's store, When the page re-renders, Then the indicator is gone (it stands only while its condition stands — advice, never veto, never a dismissible nag). 13. As an operator, I want the raised-alert count in the chrome to reflect monitoring's real alerts, so that a badge is never a shell-invented number that can disagree with monitoring. - Given monitoring's standing alerts, When the chrome renders the raised-alert count, Then it is a count-with-severity chip read as a **query over monitoring's alert store** (the CONTEXT.md Alert rule — the surface is a query, never a separate store), not a shell counter. - Given the alert-count chip, When I drill in, Then monitoring's alerts open (edge DN → P5-S1); when monitoring's alert store has zero raised alerts, the chip reflects that truthfully. ### Overview — steady state (DO) — DDR 0095 14. As an operator, I want an Overview that composes my community's health, coverage and pending decisions, so that one glance tells me whether anything needs me. - Given the dashboard at rest, When Overview (DO) renders, Then it shows a health headline (monitoring's aggregation summarised, e.g. "Chat down on rimu — 4 min · 3 other devices and 5 services healthy"), a coverage headline (backups' map with named gaps, e.g. "Photos has a single copy · 3 of 4 datasets backed up"), and a needs-attention queue — each a query over its owning feature's store; shell computes none of it. - Given Overview, When I drill in to health, Then monitoring opens (edge DO → P5-S1); When I drill in to coverage, Then backups opens (edge DO → P7-S1). 15. As an operator, I want "everything is fine" to be a shown state, so that a calm community reads as positively healthy rather than as a blank or broken page. - Given nothing queued and all-healthy, When Overview renders, Then the needs-attention queue renders "Nothing needs your attention" as a first-class state — never a hidden section, never an empty screen. 16. As an operator, I want each needs-attention item to route me straight into the feature that owns it, so that acting on a pending decision is one click from Overview. - Given a needs-attention item (a pending device from `enroll`'s connection requests, a member awaiting approval from members' gate, a release waiting on a decision from provisioning's channel state, a raised alert from monitoring), When I act on it, Then shell routes into the owning feature's flow (edge DO → the owning feature; e.g. a pending device → device-add/provisioning set-up, a raised alert → monitoring drill-in) — each count being a query over its owner (DDR 0095). ### Overview — first run (DOx) — DDR 0095 17. As a brand-new operator whom founding just handed off, I want a guided first-run Overview, so that I know my next moves instead of facing empty tables. - Given the fleet is the gateway alone with nothing provisioned and nobody invited (founding's hand-off, P1's exit), When Overview renders, Then it is DOx: a first-class guided state showing the gateway standing (name, GATEWAY role, healthy — founding's hand-off ruling, ticket #9) and three guided next steps — add a device, choose services, invite members — not an empty screen. - Given DOx, When I choose a next step, Then the owning feature's journey begins (edge DOx → P2-S1 add device / DOx → P4-S1 provision a service / DOx → P6-S1 invite a member). 18. As an operator, I want Overview to leave first-run once my community actually starts, so that the guided state doesn't linger after I've begun. - Given DOx, When the fleet gains a second node **or** a provisioned service (whichever comes first), Then Overview leaves first-run and rests at the steady DO composition. ### Fleet — resting list (DF) — DDR 0095 19. As an operator, I want a resting Fleet list of my devices with their roles and health, so that I can see and act on any node from one place. - Given the fleet, When the Fleet tab (DF) renders, Then it lists each device with name, role and a health chip, opening with the gateway as row one (never-empty rule, DDR 0095), and offers "+ Add device" and "Enrollment codes". - Given a degraded device, When DF renders, Then the degraded state is shown **in-state within the list** (the chip is monitoring's classification, e.g. "chat down — 4 min", "asleep (expected)"), not a separate screen; shell displays the chip, monitoring owns the truth. 20. As an operator, I want the actions on the Fleet list to route into the owning features, so that adding, changing, or diagnosing a node happens in the right feature. - Given DF, When I choose "+ Add device", Then device-add's in-flow minting begins (edge DF → P2-S1); When I choose "change"/"set up" on a row, Then provisioning's standing surface for that node opens (edge DF → P4-S1, ADR 0063); When I drill in from a health chip, Then monitoring's drill-in opens (edge DF → P5-S3); When I choose "Enrollment codes", Then the dashboard codes ledger opens (edge DF → DF2). ### The enrollment-codes ledger, both surfaces (A4 / DF2) — ADR 0097 21. As a co-operator, I want a codes ledger that shows who issued each code, so that co-operators always see who handed out which house key. - Given the code ledger, When A4 (app) or DF2 (dashboard) renders, Then it lists each code with its masked value, scope, status (active/used/expired/revoked), **created-by attribution**, and expiry — read through `enroll`'s Operator-face `ListCodes` with `CodeView.CreatedBy` (ADR 0097's one additive `enroll` amendment); shell reads, `enroll` owns. - Given the never-empty rule (DDR 0095), When the ledger renders, Then it opens with founding's spent gateway code (the first node enrolled through the one mechanism, ADR 0028) — never a blank table. 22. As an operator, I want the ledger to mint and revoke through the right owners, so that shell never becomes a second minting path. - Given A4/DF2, When I choose "+ New code", Then device-add's in-flow generation begins (edge A4 → P2-S1 / DF2 → P2-S1) — shell never mints; When I choose "Revoke" on an active code, Then `enroll`'s `RevokeCode` runs (the house-key discipline; edge A4 → A4 self-loop, ADR 0097). - Given the ledger appears on both surfaces, When a code's state changes, Then both windows reflect the one `enroll` ledger (A4 and DF2 are two views of one truth, not two stores). ### Settings — the pinned inventory (DS / DS2) — DDR 0099 23. As an operator, I want a Settings page with a small, predictable inventory, so that Settings doesn't become the dumping ground for every orphan control. - Given the Settings tab, When DS renders, Then it shows exactly three sections — Brand kit, Updates & update policy (provisioning's, mounted here), and read-only Community details — and nothing else (DDR 0099's pinned v1 inventory). - Given the not-here list is load-bearing, When an operator looks for alert contact / roles & credentials / backup policy / enrollment codes / the app's own update, Then each is absent from Settings because it is homed elsewhere (monitoring P5-S2 / members P6-S4 / backups P7-S2 / the Fleet ledger DF2 / the app's AU) — a community setting never governs the app (ADR 0033). 24. As an operator, I want read-only community details with an honest "bigger step" note, so that I understand which facts I can't casually change and why. - Given DS, When Community details renders, Then it shows name, apex domain, DNS arrangement and community ID as read-only, with a note that changing the domain or DNS wiring is founding-scale work (registrar, certificates, sign-in origins — ADRs 0014/0049) and to contact support/see docs; renaming the display name is directed to the brand kit. 25. As an operator, I want to edit my brand kit from Settings and see honestly where it reaches, so that I can rebrand post-founding and understand uneven coverage. - Given DS, When I choose "Edit brand kit", Then DS2 opens (edge DS → DS2) — the theming seam's Settings caller: edit name/logo/colours/greeting with inline `Validate` (contrast shortfalls are warnings, never blocks), a debounced `compile-preview`, and an "Apply" action. - Given DS2, When I apply, Then the kit commits, one `Compile` runs, every surface wears it, and the coverage **Report** renders honestly per surface (e.g. "colours reach the portal and Nextcloud; Mattermost shows your logo; the sign-in screen is name+logo only, by design — ADR 0038) (edge DS2 → DS). 26. As an operator, I want provisioning's Updates and update policy mounted under Settings, so that fleet updates live with their policy without claiming a seventh tab. - Given DS, When the Updates section renders, Then it shows provisioning's update status and policy summary and mounts provisioning's P4b surfaces (edge DS → P4b-U1) — the tab set stays closed (ADR 0094); a pending release's attention path is the chrome (indicator / needs-attention), not a tab badge. ### The dashboard cannot report its own death (DX) — DDR 0096 27. As an operator whose gateway dies mid-session, I want the loaded dashboard to show one honest unreachable state, so that I am never shown stale numbers as if they were current. - 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"). - 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 (the lie DDR 0071 forbids monitoring to tell, here read as: absence of *API* signal is never a stale green). 28. As an operator, I want DX to route me to the operator app, so that when the dashboard is gone I reach the seat that can still act. - 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. ### Logs, everywhere (A5) — ADR 0027 29. As an operator or device owner, I want Open/Download logs reachable from every surface, so that the escalation path is always one click away without being the primary thing I read. - Given any resting surface or drill-in, When I open logs, Then A5 (or the surface's own log drill-in) shows the operation log with filter/search and a "Download bundle" that produces one shareable bundle for a remote helper (ADR 0027); secrets never enter logs by construction. - Given logs are the escalation path, When the operator rests, Then logs are never the primary diagnostic the operator must read — the plain-language surfaces are (the P1 persona promise stands). ### The never-empty rule (cross-cutting) — DDR 0095 30. As an operator, I want every resting list to open with what founding already made, so that I never meet a blank table anywhere at rest. - Given any resting list shell frames, When it renders at rest, Then it opens with founding's row — the Fleet list's gateway (DF), the codes ledger's spent founding code (A4/DF2), the Members tab's founder (mounted from members) — so "empty" is always rendered as "here is what exists, here is the next move". ## Implementation Decisions - **Shell has no orchestrator — the first Phase-1 feature with none (ADR 0097).** There is no fifth control-plane seam, no helper/agent state machine, no shell-side store, and no aggregation endpoint. Every piece of data shell's surfaces show is another feature's truth read through that feature's existing seam. Inventing a shell orchestrator would manufacture a second owner for other features' state (the exact failure DDR 0095 forbids). Shell's own engineering is exactly two things: the **shared UI-kit mount/slot contract** and the **`appupdate` state machine**. - **The mount/slot contract is static, build-time composition in the shared UI kit (ADR 0094).** The six tabs are a **closed static mount table** (data, not runtime registration); each tab is a named mount point; a new tab is a code change adding a declared entry. Two chrome slots ride every page: the standing-indicator stack (severity-then-age order; each indicator's content/evidence a query over the owning feature's store) and the raised-alert count (a query over monitoring's alert store). Both Quasar surfaces consume the one UI kit; it also owns the existing data-attribute contract. Architecture diagram 02 records the UI kit's mount/slot contract (ADR 0042, done at grill time). - **Overview composes, never computes (DDR 0095).** Health headline = monitoring's aggregation summarised; coverage headline = backups' coverage map; needs-attention = a standing queue of operator-only decisions, each item a query over its owner (`enroll` connection requests, members' gate, provisioning's channel state, monitoring's alerts). Overview needs no new API shape — it consumes queries the features already expose at their seams (carried by the OpenAPI spec). Everything-fine is a shown state. First-run (DOx) shows the gateway standing plus guided next steps and exits when the fleet gains a second node or a provisioned service. - **The never-empty rule (DDR 0095).** Every resting list opens with founding's row: Fleet's gateway, the codes ledger's spent founding code, Members' founder. Degraded is a state *within* a resting list (monitoring-fed chips), not a separate screen. - **The dashboard cannot report its own death; the app is the fallback seat (DDR 0096).** Because the dashboard is static files served by the gateway (ADR 0036), a dead gateway has no dashboard to carry the news. Two states, two surfaces: never-reached → the app's HOx (health pill honest, replica-staleness the headline per ADR 0032, rescue prominent, Tier-1 standing by); loaded-then-lost → the dashboard's DX (one honest full-screen state, never stale-green, routes to the app). The app's reachability probe is trivial standing behaviour (the replica sync it already runs + a control-plane ping) — **no seam change, no new monitoring channel**. HOx/DX report only *reachability from this seat* (a client-side fact); why is rescue's and monitoring's to find. - **The `appupdate` state machine — shell's one owned engineering seam (ADR 0098).** `current → available → downloaded (verified) → applied | failed (→ retry)`. Check on launch and every 24 h; checking is silent (nothing below `available` has a surface). Download in the background; **signature verified before `downloaded`** (a failed-verification artifact is `failed`, named, never offered). **Apply is always the operator's act; the app never restarts itself.** A security release makes the strip prominent — advice, never veto (ADR 0015). Failed is honest: current version keeps working, named, retryable; atomic apply is an invariant (the Electron updater's contract). The update vocabulary is provisioning's (**Release**, **Release notes**) — shell references, never redefines (ticket #9's double-spec guard). This is the app's own channel (ADR 0033), independent of every community's fleet policy; the device-side agent is untouched (it updates with the fleet's pinned release via `/get`, ADR 0054). - **The additive `enroll` read (ADR 0097).** The standing codes ledger needs to *list* what `MintCode`/`RevokeCode` write, with attribution. The `enroll` Operator face gains **`ListCodes`** and `CodeView` gains **`CreatedBy`** — recorded in `docs/seams/agent-control-plane.md` in the established additive style; nothing confirmed moves. A4 and DF2 are two views of this one ledger; shell never mints or holds a copy. - **Settings' v1 inventory is pinned (DDR 0099).** Three sections — brand kit (the `brandkit` seam's Settings caller, unchanged), provisioning's Updates & update policy mounted under Settings, read-only community details — plus an explicit not-here list (alert contact, roles/credentials, backup policy, enrollment codes, the app's own update), each already homed. - **Modules built/modified:** the **shared UI kit** (the chrome, the static mount table, the two chrome slots, plus its existing data-attribute contract); the **Vue web dashboard** shell surfaces (DN/DO/DOx/DF/DF2/DS/DS2/DX) as thin composition over feature queries; the **operator app** shell surfaces (W/HO/HOx/HD/A4/A5/AU) including the reachability probe and the `appupdate` state machine; the `enroll` Operator face gains `ListCodes` + `CodeView.CreatedBy` (additive). No new control-plane component (ADR 0097). ## Testing Decisions Honest to ADR 0097, shell has **no single orchestrator seam** — its stories execute against three surfaces, and shell's spec asserts only that truth is *rendered at the declared mount*, never re-testing the truth itself (that is each owning feature's spec). - **What makes a good test here:** assert external behaviour, not internals — that the mount table renders each feature at its declared tab; that a chrome slot shows an indicator while its condition stands in the owner's store and is gone when it clears; that the raised-alert count equals a query over monitoring's alert store (never a shell counter); that acting on a needs-attention item routes into the owning feature; that the `appupdate` state machine transitions correctly given a faked channel client (available → downloaded-verified → applied | failed; verify-before-apply; never self-restart); and that the codes ledger renders `ListCodes` output with `CreatedBy` attribution and never mints. Never assert the UI kit's internal component shapes or the probe's polling mechanics. - **(a) The UI-kit mount/slot contract — shell's principal testable surface (ADR 0094/0097).** The static mount table and slot behaviour live in the shared UI kit and are asserted as **data + component-level tests** (the mount table is diffable data; slot ordering is severity-then-age; a slot reads a faked owner store). `design-verify` checks each feature's screens appear at their declared mount point and checks the built shell surfaces against the 15-page wireframe set. This is a UI-kit contract, not a Go seam — saying so is the honest seam answer for a frame. - **(b) The `appupdate` state machine (ADR 0098).** Tested at its own small interface with the **channel client faked** (feed fetch, download, signature verify) — the same drive-the-orchestrator shape as `founding`/`join`/`monitor` (0052/0057/0069), at app scale. Assert every transition, the verify-before-`downloaded` gate, the apply-is-operator-only / never-self-restart posture, the security-release prominence, and the honest atomic `failed` → retry. - **(c) Existing seams' reads — already covered by their own specs.** The codes ledger executes `enroll`'s `ListCodes` (`RequestView`-shaped read with `CreatedBy`); Settings' brand kit executes the `brandkit` verbs (`Validate` / `compile-preview` / `Compile` / `Report`), unchanged; Overview / Fleet chips / needs-attention execute feature read queries via the OpenAPI spec (monitoring, backups, provisioning, members, `enroll`). Shell tests assert the rendering-at-mount and the routing, not the truth those seams return. - **Prior art to copy:** the **`enroll` ledger-read family** for the codes ledger (the connection-request `RequestView` read discipline, extended by `ListCodes`/`CreatedBy`, ADR 0097); **P4b's indicator-slot pattern tests** (the standing-indicator slot, ADR 0068 — shell renders the slot, the feature supplies content/evidence); and **monitoring's query-not-store assertions** (the CONTEXT.md Alert rule — the surface is a query, never a separate store, spec #18) applied to the alert count and every Overview number. - **One testing addition beyond the grill (mirroring founding, device-add, provisioning and monitoring):** a **non-gating real-lab shell smoke** — on the clan-lab fleet, serve the real dashboard from a lab gateway and confirm the never-empty resting lists after founding (Fleet opens with the gateway row, the codes ledger with the spent founding code), then **stop the control plane** and observe both honest-degradation states: the dashboard's DX (one full-screen unreachable state, no stale green) and the app-side HOx (replica-staleness headline, rescue prominent). Explicitly **not** an acceptance gate; the mount/slot and `appupdate` tests are. ## Out of Scope - **Any feature's truth or journey.** Shell renders health, coverage, alerts, members, backups, per-service surfaces and update rollouts, but owns none of them — each is its own feature's spec. Shell tests never re-test those truths. - **A shell orchestrator / dashboard-summary aggregation endpoint (ADR 0097, rejected).** No second store of feature truths; no fifth seam. Overview composes the features' own queries. - **A runtime plugin/slot registry or dynamic tab discovery (ADR 0094, rejected).** The v1 tab set and catalogue are fixed; composition is static and build-time. - **The Services tab's resting content.** Shell owns only the mount; the resting content is monitoring's status truth + provisioning's per-service surfaces (owner to confirm/assign at slice-map time — see `needs_human_decision`). - **Alert contact, roles & credentials, backup policy, enrollment-code minting, the community's fleet-update mechanism.** Each homed in its owning feature (monitoring / members / backups / device-add / provisioning); shell only renders/mounts/routes. - **The device-side agent's update.** It updates with the fleet's pinned release (`/get`, ADR 0054); the `appupdate` machine governs only the operator app (ADR 0033). - **A blocking "you must update" gate or silent auto-apply on quit (ADR 0098, rejected).** No v1 state bricks or silently restarts the seat. - **Multi-community switcher beyond its placement.** HO notes a switcher above the card when operating several communities; its full journey is not designed here. - **Diagnosing *why* the gateway is unreachable.** HOx/DX report reachability from this seat only; the cause is rescue's and monitoring's. ## Further Notes - **Seam gate — recorded, not re-confirmed live.** Shell is the first feature whose seam answer *is* "no orchestrator" (ADR 0097). Ben's 2026-07-24 sign-off of the shell grill's **seam gate** stands as the seam confirmation for this spec — the confirmation is that ADR 0097 (thin composition over existing seams + the additive `enroll` read) and ADRs 0094/0098 (the UI-kit contract and the `appupdate` machine as shell's only owned engineering) are the correct testable surfaces. This is recorded as the standing sign-off, **not** a fresh live re-confirmation at spec time (unlike founding/device-add/provisioning/monitoring/members, shell has no single seam to re-walk). - **The agent-invented numbers/postures, kept by Ben at sign-off:** the `appupdate` **check cadence** (launch + 24 h) and the **never-self-restart apply posture** (ADR 0098); the **read-only community details** scope call (DDR 0099). Worth revisiting only if a future protocol break forces an update floor, or a v1 journey needs an editable community detail. - **Cross-feature edges for the slice-map (shell is the biggest edge-hub — every dashboard feature depends on shell's frame existing; shell is an early DAG node, ticket #8):** - **Every dashboard feature → the frame.** Services (monitoring + provisioning), Members, Backups, and the Fleet/Overview/Settings surfaces all mount into DN; each depends on the shared UI-kit mount/slot contract existing first. - **provisioning → shell:** the standing-indicator slot (first tenant, auto-security-off P4b-U5x), and **Updates & update policy mounted under Settings** (P4b-U1…U5 under DS, DDR 0099). - **monitoring → shell:** the raised-alert count in the chrome (query over monitoring's alert store), the health headline on Overview, and the health chips on the Fleet list (all monitoring's truth, shell renders). - **members → shell:** the Members tab mount (P6-S1), and the Members list's founder as row one (never-empty rule). - **backups → shell:** the Backups tab mount (P7-S1), and the coverage headline on Overview (backups' coverage map with named gaps). - **device-add / `enroll` → shell:** the Fleet-list "+ Add device"/"change"/"set up" routes (P2-S1 / P4-S1), the codes ledger on both surfaces via the additive `ListCodes` + `CreatedBy` read (ADR 0097), and pending devices in Overview's needs-attention. - **founding → shell:** the hand-off lands in DOx (first-run Overview) and seeds the never-empty rows (Fleet's gateway, the codes ledger's spent founding code). - **rescue → shell:** rescue's app screens are the exits from HOx and DX (edges HOx → P8-S3, DX → HOx → rescue); and rescue *may* claim the chrome's standing-indicator slot for a "recovery kit not exported" reminder — the shell grill recorded this as a coordination point, not an obligation (see `needs_human_decision`). - **theming (`brandkit`) → shell:** the DS2 brand-kit editor is the theming seam's Settings caller (Validate / compile-preview / Compile / Report), unchanged. - **app-update channel → provisioning's vocabulary:** the `appupdate` machine references provisioning's **Release** / **Release notes** vocabulary (ticket #9's double-spec guard — shell references, never redefines). - **`needs_human_decision` carried forward (from the shell grill, for slice-map time):** 1. **The Services tab's resting-content owner** — shell owns only the mount; the resting content is monitoring's status truth + provisioning's per-service surfaces. Confirm this mount reading, or assign a single owner for the Services resting state, at slice-map time. 2. **Rescue's recovery-kit re-prompt indicator** — whether rescue claims shell's standing-indicator slot for a "kit not exported" reminder is rescue's grill's call; recorded here as a coordination point between rescue and shell's chrome, to be resolved when the two specs meet at the slice-map. - **Triage:** filed `no-triage` (not `ready-for-agent`) — mirroring provisioning #17, monitoring #18 and members #19. The live swarm must not pick up a whole feature spec as an agent task; shell joins the Phase-2 slice-map with the other seven feature specs, and `to-tickets` will emit the implementable tasks afterward (shell early in the DAG, since every dashboard feature depends on its frame).
Author
Owner

Closed in the 2026-08-27 other-state sweep (Ben's ruling) — child spec complete: 15/15 shell slices done, all 27 derived tickets closed.

Closed in the 2026-08-27 `other`-state sweep (Ben's ruling) — child spec complete: 15/15 shell slices done, all 27 derived tickets closed.
ben closed this issue 2026-08-27 04:43:58 +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#22
No description provided.