Shell — child spec: the resting frame of both apps (operator app + web dashboard) #22
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
clanseam; theenrollseam'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/0099accepted), 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-specconsumed 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
enrollListCodes+CodeView.CreatedByread), ADR 0098 (theappupdatestate 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'sListCodeswithCreatedByattribution — 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)
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.
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.
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.
The app seat degraded — community unreachable (HOx) — DDR 0096
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.
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.
The app-update strip and AU screen (W/HO/HD → AU) — ADR 0098
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.
availablein the state machine has any surface.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.
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.
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.
failed, is named, and is never offered for apply.The dashboard frame — nav chrome and the mount/slot contract (DN) — ADR 0094
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.
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.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.
design-verifyruns, 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).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.
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.
Overview — steady state (DO) — DDR 0095
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.
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.
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.
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
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.
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.
Fleet — resting list (DF) — DDR 0095
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.
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.
The enrollment-codes ledger, both surfaces (A4 / DF2) — ADR 0097
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.
enroll's Operator-faceListCodeswithCodeView.CreatedBy(ADR 0097's one additiveenrollamendment); shell reads,enrollowns.As an operator, I want the ledger to mint and revoke through the right owners, so that shell never becomes a second minting path.
enroll'sRevokeCoderuns (the house-key discipline; edge A4 → A4 self-loop, ADR 0097).enrollledger (A4 and DF2 are two views of one truth, not two stores).Settings — the pinned inventory (DS / DS2) — DDR 0099
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.
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.
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.
Validate(contrast shortfalls are warnings, never blocks), a debouncedcompile-preview, and an "Apply" action.Compileruns, 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).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.
The dashboard cannot report its own death (DX) — DDR 0096
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.
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.
Logs, everywhere (A5) — ADR 0027
The never-empty rule (cross-cutting) — DDR 0095
Implementation Decisions
appupdatestate machine.enrollconnection 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.appupdatestate 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 belowavailablehas a surface). Download in the background; signature verified beforedownloaded(a failed-verification artifact isfailed, 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).enrollread (ADR 0097). The standing codes ledger needs to list whatMintCode/RevokeCodewrite, with attribution. TheenrollOperator face gainsListCodesandCodeViewgainsCreatedBy— recorded indocs/seams/agent-control-plane.mdin the established additive style; nothing confirmed moves. A4 and DF2 are two views of this one ledger; shell never mints or holds a copy.brandkitseam'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.appupdatestate machine; theenrollOperator face gainsListCodes+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
appupdatestate machine transitions correctly given a faked channel client (available → downloaded-verified → applied | failed; verify-before-apply; never self-restart); and that the codes ledger rendersListCodesoutput withCreatedByattribution 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-verifychecks 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
appupdatestate 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 asfounding/join/monitor(0052/0057/0069), at app scale. Assert every transition, the verify-before-downloadedgate, the apply-is-operator-only / never-self-restart posture, the security-release prominence, and the honest atomicfailed→ retry.(c) Existing seams' reads — already covered by their own specs. The codes ledger executes
enroll'sListCodes(RequestView-shaped read withCreatedBy); Settings' brand kit executes thebrandkitverbs (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
enrollledger-read family for the codes ledger (the connection-requestRequestViewread discipline, extended byListCodes/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
appupdatetests are.Out of Scope
needs_human_decision)./get, ADR 0054); theappupdatemachine governs only the operator app (ADR 0033).Further Notes
enrollread) and ADRs 0094/0098 (the UI-kit contract and theappupdatemachine 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).appupdatecheck 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.enroll→ shell: the Fleet-list "+ Add device"/"change"/"set up" routes (P2-S1 / P4-S1), the codes ledger on both surfaces via the additiveListCodes+CreatedByread (ADR 0097), and pending devices in Overview's needs-attention.needs_human_decision).brandkit) → shell: the DS2 brand-kit editor is the theming seam's Settings caller (Validate / compile-preview / Compile / Report), unchanged.appupdatemachine references provisioning's Release / Release notes vocabulary (ticket #9's double-spec guard — shell references, never redefines).needs_human_decisioncarried forward (from the shell grill, for slice-map time):no-triage(notready-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, andto-ticketswill emit the implementable tasks afterward (shell early in the DAG, since every dashboard feature depends on its frame).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.