control-panel observability child spec: network (P11) — the front door, tabless behind a card on Services #792
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#792
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
Program map: #7 — Wayfinder map: OurCloud v1 program scope (Phase 0).
Design ticket: #761 — control-panel observability: network, DNS & certificate visibility (filed from the 2026-08-24
matou-distributed-serverscomparison rather than charted on the map; the map's v1 scope is what it lands inside).Design tier this spec is written against (all present, all
accepted):docs/adr/0204-design-network-front-door-tabless-surface.md— the ruling DDR: the placement ruling (no seventh tab; a front-door card on Services opening a tabless surface), what each backend concern surfaces as, the chrome wiring, the eight grill decisions, three open gates.docs/ux/flows/p11-network.mermaid— nodes P11-S0 · S1 · S1f · S1o · S1p · S1x · S2x and the entry edges from P5-S1, DN and P5-S2.docs/ux/wireframes/p11-network/—p11-s0-front-door-card,p11-s1-network,p11-s1f-first-run,p11-s1o-own-domain,p11-s1p-private-path,p11-s1x-cert-renewal-late,p11-s2x-probe-unknown. Theirdata-field/data-action/data-statusattributes are the stable element-ID contract every acceptance criterion below is written against. (P11-S0 is a fragment contract — it mounts on P5-S1; the p5-s1 ✎ amendment DDR 0204 proposes lands with the slice that builds the card.)CONTEXT.md— Network (P11) object-states and the front-door card (Design nouns), merged with the design arc.OcStatusDot,OcResourceBar, and thestatusGradesconstants module (CERT_WARN_DAYS = 30,CERT_BAD_DAYS = 14) are minted by DDR 0202 / spec #769 (its slice 1) and referenced here, never re-minted.Siblings in the same observability arc (each specs separately, then all fan in at one
/slice-map, #770): #759 device telemetry (specced, #769), #760 logs (specced, #791), #762 replication matrix, #763 activity feed, #764 topology map (deferred).Problem Statement
The community's front door is the one thing every member touches, and nobody can see it. The backend is full of front-door machinery — the community CA (ADR 0111), the zone arrangements (ADRs 0118/0128), the address heartbeat (ADR 0136 and its #642 amendment), the portmap seam (ADRs 0137/0141, DDRs 0140/0175), certificate persistence (ADR 0176) — and the control panel projects exactly two read-only strings of it:
apex-domainanddns-arrangement, buried in Settings' community details (DDR 0099 §3).So there is no surface anywhere that answers the operator's actual question: is the door sound? Not "is Chat up" — monitoring answers that — but: are the certificates renewing themselves, is the community's name still pointing at this gateway, do the ports still answer from outside.
The cost is proven, not hypothetical.
maramataka-api's certificate had been expired since May and was noticed in August (2026-08-20). Nothing in the panel was capable of saying "this expires in 23 days and renewal hasn't landed" — not because the fact is hard to obtain, but because no surface exists to carry it and no chrome slot is fed by it. The panel's standing-indicator slot (ADR 0094) exists for exactly this shape of condition and has precisely one tenant today (recovery readiness).Underneath the missing surface sit three genuinely un-projected truths:
Status()is read by nobody outside the control plane's own logs. A residential connection that drifts is invisible until a member complains.And the operator has nowhere to be told any of this in the panel's own honest voice. An own-domain community is architecturally outside the heartbeat's loop (ADR 0136's accepted split) and is told nothing about that; a private-path community has no public door at all and would, on a naive surface, simply see empty sections and wonder where its certificates went.
Solution
One tabless network surface — the community's front door, read-only, every fact carrying when it was last seen — entered from a standing card on Services, and wired into the chrome slot that exists for exactly this.
Five things land:
The placement is a card, not a tab (DDR 0204's ruling). ADR 0094's six tabs stay closed and unamended; DDR 0099's three Settings sections stay pinned. The front-door card (P11-S0) mounts on the Services tab below the services table — the tab that already owns monitoring's status truth, and the front door is the status truth of how every service is reached.
See network(data-action="open-network") opens P11-S1 in place over the Services mount: a routed-to surface that is not a tab, the exact shape ADR 0101 §4 minted for recovery readiness on Backups. Overview stays deliberately minimal; network reaches it only through the machinery that already exists when something stands.Three sections, three owners, zero collection. Certificates project what the door actually presents; Address & name projects the heartbeat's last tick; Ports project the outside-in probe's last observation (plus a router lease, when one exists). The surface stores nothing, derives nothing and re-judges nothing — the DDR 0155
Overview/Hintsprecedent, and ADR 0097's rule that shell composes and computes nothing.Every fact carries observed-at, and aging is a rendered state. Past its cadence a fact degrades to
? unknownwith its last-good time (P11-S2x) — never a stale green, and a read gap never clears a known fault (DDR 0096; the ADR 0136 amendment's rule worn surface-wide). Failure is a frame, never a toast, and fault locality holds: a late renewal does not repaint the name or the ports.A certificate inside its warn window supplies the chrome's standing indicator. ≤30 days (
CERT_WARN_DAYS, the shared constant DDR 0202 mints) and renewal hasn't landed → an evidence-based, non-dismissible standing indicator that clears itself the moment renewal lands (P11-S1x). At ≤14 days (CERT_BAD_DAYS) monitoring raises a critical alert carrying the renewal attempts' evidence, riding the existing P5 machinery with P11-S1 as its drill-in. Network becomes the second tenant of the indicator slot, so the dashboard's single-source wiring grows a composing source — the shell contract is unchanged.Deployment shape picks the variant; a section a deployment removes is stated, never blanked. S1 (community subdomain, self-hosted), S1f (first run — the rows founding already made, never an empty screen), S1o (own domain — ADR 0136's split stated on-surface, with the one address IDSS does observe so a registrar visit has something to copy), S1p (private path — no public name, no public door, the community's own CA named in the operator's language). Each is the same surface answering honestly for its shape, not a different screen.
Read-only in v1, by ruling. No renew, no re-point, no re-ask. Renewal and re-pointing are automatic loops; a fault's action belongs to its alert's advised action. The CONTEXT.md Alert rule stands: a status surface is a query, never a second store and never a second lever.
What is observable is named, and what is not is stated. Two v1 truths this spec is deliberately loud about, because the design tier assumed machinery that does not exist yet:
open.data-status="no-router-lease", already in P11-S1f). When ADR 0141's automatic path lands, the line appears with no surface change.The whole surface sits behind the community door, operators only (DDR 0172). No member-facing network tier exists or is owed.
User Stories
A — The standing entry: the front-door card (edges P5-S1 → P11-S0 → P11-S1)
[data-field="front-door-card"]appears below the services table, carrying aFront doorlabel, one[data-field="front-door-state-line"], one[data-field="front-door-observed-at"]line, and a[data-action="open-network"]control labelled See network.[data-status="front-door-serving"]in the healthy tone and the line names all three clauses (certificate days left, the name pointing home, required ports answering) from the read's own values — no clause is composed from a default.data-statusnames the standing condition rather thanfront-door-serving, and the state line leads with that condition.[data-field="front-door-observed-at"]states it in the surface's plain voice; and given every contributing observation has aged past its cadence, Then the card renders the unknown posture (a muted pill and the last-good age) and never a healthy pill.RecoveryReadinessCarddoes — never an empty card, never a fabricated line.B — The resting surface: certificates (P11-S1)
[data-field="cert-table"]carries the columns CERTIFICATE · ISSUER · EXPIRES · DAYS LEFT, one row per certificate, each row's issuer and expiry rendered from the read verbatim.[data-field="cert-wildcard"], marked ★) is first and the remaining rows follow in soonest-expiry order; and given two wildcards, Then they sort among themselves by soonest expiry.9 hosts; and given exactly one, Then the chip reads1 host(singular).CERT_WARN_DAYS = 30andCERT_BAD_DAYS = 14from the kit'sstatusGradesmodule, When a row's days-left is >30, Then its pill is healthy (data-status="cert-healthy"); at ≤30 the pill is the warning tone withdata-status="cert-renewal-late"; at ≤14 it is the warning tone withdata-status="cert-renewal-failing". And the surface reads the constants — it declares no threshold of its own, and the compiled CSS carries no red (ADR 0122's token split).[data-field="certs-observed-at"]names the source, states that renewal is automatic, and gives the age.C — The resting surface: address & name (P11-S1)
[data-field="heartbeat-checks"]carries[data-field="heartbeat-record"]as a done check row naming the host, with[data-field="heartbeat-observed-address"]carrying the observed address and the row stating how long ago it was checked.[data-field="heartbeat-cert-zone"]renders as its own check row stating that the certificate zone's glue carries the same address and is rewritten with every re-point.[data-field="heartbeat-last-repoint"]states that IDSS keeps the name pointed and when the last re-point happened; and given a community that has never re-pointed since founding, Then the line states the standing posture with no re-point clause — neverneverand never a blank.repoint-failed(the changed address could not land), When the surface renders, Then the name row is not a done check: it carries the heartbeat's own detail, names the address the record still answers and the address that could not land, and states how long the condition has stood — and the certificates and ports sections keep their own truths (fault locality).D — The resting surface: ports (P11-S1)
[data-field="port-groups"]carries the columns PORT GROUP · PORTS · (requiredness) · STATE and one row per exercised group —[data-field="port-group-web"],[data-field="port-group-mesh"],[data-field="port-group-relay"]— each naming its ports; and given a group the community's shape does not exercise, Then it has no row (DDR 0175's requiredness-follows-shape rule).REQUIREDchip and the relay row anINFORMATIONALchip; and given the relay group is closed, Then its pill is muted (data-status="port-relay-closed") with a plain reason ("no device has needed the relay yet") — never a warning tone.data-status(port-web-open,port-mesh-open) with the probe's plain wording; and given a lease is held for a group that the probe says does not answer, Then the row renders not open — a granted lease that does not answer from outside is not open (ADR 0141).[data-field="port-lease-line"]states the renewal age and that IDSS renews it for as long as the community lives; and given no lease is held (every v1 community: manual-first, DDR 0175 — and every rented gateway, which has no household router), Then the same field renders the no-lease posture withdata-status="no-router-lease", naming the outside-in probe as the truth about what answers.[data-field="port-lease-line"]carries the probed-from-outside age alongside its lease/no-lease clause.E — Deployment shapes (P11-S1f · S1o · S1p)
cert-wildcard+cert-apex,[data-field="certs-observed-at"]stating they were obtained at founding and that renewal is automatic from here), the name row founding pointed, and the web group founding's reachability test proved — and no mesh or relay rows, because nothing exercises them yet.[data-field="own-domain-manual-posture"]withdata-status="stated-limit"in the accent (not warning) tone, saying the community's DNS lives with its registrar and IDSS does not watch or re-point it, and carrying[data-field="gateway-observed-address"]— the one address IDSS does observe, so a registrar visit has something to copy.[data-field="port-group-cert-zone"]appears with aREQUIREDchip and its own probe state — and on the subdomain path that row does not appear at all.[data-field="cert-table"]carries[data-field="cert-private-door"]for the internal wildcard with[data-field="cert-issuer-community-ca"]reading your community's own CA (never a vendor noun), a[data-status="cert-community-ca"]serving pill, and[data-field="certs-observed-at"]stating it was signed by the CA the community minted at founding.[data-field="private-no-public-name"]and[data-field="private-no-public-ports"]both render withdata-status="stated-limit"in the accent tone, each stating the limit as the chosen deployment working as designed — and neither section is hidden, and neither wears a warning.F — Renewal late: the state, the chrome slot, the escalation (P11-S1x · DN · P5-S2)
data-status="cert-renewal-late", and[data-field="cert-renewal-late-diagnosis"]states the mechanism plainly: the gateway renews by itself at 30 days and keeps retrying, nothing is broken at the door today, and at 14 days IDSS raises an alert with what the attempts are hitting.[data-field="standing-indicator-stack"]carries[data-field="indicator-cert-renewal-late"]naming the host and the days left, stating that renewal is automatic and keeps retrying, and carrying a[data-action="open-network"]drill-in — with no dismiss control anywhere on it (the type carries none).orderIndicators, each naming its own owner and its own drill-in.CERT_BAD_DAYS, When monitoring next classifies, Then it raises a critical alert whose diagnosis carries the renewal attempts' evidence, notified through the existing alert path (ADR 0106), counted in the chrome's raised-alert slot, and listed in Overview's needs-attention queue as one of monitoring's own raised alerts — no new needs-attention owner list is added.G — Unknown: the probe gap (P11-S2x)
[data-field="probe-gap-banner"]renders withdata-status="unknown", stating how long the outside-in check has not answered, that the door may be fine, that IDSS shows unknown rather than guessing, and that monitoring raises it if the gap continues.? unknown(data-status="cert-unknown"), the name row renders as a todo check withdata-status="heartbeat-read-gap", and the web row renders as a todo check withdata-status="port-probe-gap"— each keeping its last-good time visible.repoint-failedfault and a subsequent read gap, When the surface renders, Then the name row still carries the standing fault (aged, with its last-good time) and never reverts to a done check or to a bare unknown that drops the fault (the ADR 0136 amendment's rule).H — Where the surface lives (the tabless mount, all frames)
open-networkis emitted, Then the composition mounts the network surface over the Services mount — the mount table is unchanged, no seventh tab exists anywhere in the tab strip, and Settings still carries exactly its three sections.PendingRouteparked.network, When the production navigator routes it, Then it selects the Services tab (the owner→tab map gains the entry) and records no pending route; and given the intent's action isopen-network, Then the Services surface mounts the composed network face for it.I — The control plane: the front-door read and its owners
open, noclosed, no unknown-that-implies-a-check-ran — and the surface renders that limit in the accent posture.Status(), When the read family projects it, Then the name rows are that status's own state, detail, last-pointed address, pending address and since-time, re-judged nowhere.Implementation Decisions
Seams — one read family, three source seams, all faked at the same line
NetworkClientis the primary seam and the only one the surface sees. A type module in the dashboard's lib layer holding the view shapes plus anetwork()read, with a hand-written fake for the component tests — therecoveryReadiness.ts/RecoveryReadinessClientprecedent, whole. The components hold no network truth: grading, ageing, shape selection and copy come back from the read (ADR 0097).Network-shaped read service oncontrolapi, thin over: the certificate source, the heartbeat'sStatus(), and the front-door probe observation (+ the portmap lease reading when one exists). It re-derives nothing and maps owner faults to the shared Problem body. One route on the existing OpenAPI spec behind the existing auth gate, with the generated client consumed by anhttpNetworkClient— thefleetClient/overviewClientpattern.certpersistkeeps its harvest-time job unchanged.POST /v1/subdomains/probe {host}, authenticated by that host's claim secret exactly as/pointis (ADR 0135), which dials only the address the broker's own record already carries for that claimed host, and only the fixed IDSS port groups. The caller supplies no address and no port, so the endpoint is not a general dialer. Rejected: the gateway probing its own public address — hairpin NAT makes it unreliable in both directions, and a probe that can lie is a fabricated fact (ADR 0100).Surface
RecoveryReadinessCard's shape); the surface mounts over the Services mount whenopen-networkarrives (BackupsSurface'sisOpenRecoveryReadinessIntentshape). The owner→tab map gainsnetwork → services. No tab-table change, no ADR 0094 amendment, no DDR 0099 change./networkis not a deep link: the served entry's router is a flat six-tab map by construction, and growing it to non-tab paths is a shared refactor across every tabless surface (rescue, recovery readiness, network) — a later ticket, not this feature's. The wireframes'/networkaddress bars are depiction, not contract;design-verifychecks thedata-*contract.IndicatorSource(recovery + network), so the shell's single-source contract andNavChromeare unchanged andorderIndicatorsalready handles a multi-owner stack. The network source followsrecoveryIndicatorSourceexactly: a cached synchronous snapshot, arefresh()the composition root nudges on mount and after a read, and a raised-at stamped once and forgotten when the condition clears.data-field/data-action/data-statusattributes are the built contract, carried verbatim from the wireframes sodesign-verifycan check the shipped UI against them.OcStatusDotandstatusGrades(CERT_WARN_DAYS,CERT_BAD_DAYS, the grade→token map) from #769's slice 1, referenced and never re-minted. The kit compiles no red;renewal failingis the warning tone plus a named state, never a third hue.setInterval— the surface re-reads on mount and on the mount registry's existing cadence.The control plane
CERT_BAD_DAYSthrough the same shared source as the surface's grade, so an amber row and a critical alert can never disagree about where the threshold is./point, the same claim-secret gate, the same 400/401/403 shape, no change to any existing route, and no new credential anywhere.Testing Decisions
A good test states externally-observable behaviour at a seam and never reaches into implementation detail. Four seams, one new client seam, the rest pre-existing:
NetworkClient, asserting on the wireframes'data-field/data-action/data-statuscontract. This is where every object-state is proven: serving (with ages), the wildcard-first-then-soonest sort, the host-count singular/plural, each grading band against the shared constants, renewal late (row grade + diagnosis + fault locality), unknown (banner, per-row degradation, the fault that survives a gap, the partial gap), the three deployment-shape variants with their stated limits, first-run's never-empty rows, the no-lease posture, and the card's worst-grade / error / unknown states. Prior art:monitoringDrillIn.test.ts,backupsOverview.test.ts, theRecoveryReadinessCardtests,calloutVocabulary.test.ts.open-networkdrill-in. Plus the composing source: two tenants both render, ordered severity-then-age, and neither evicts the other. Prior art:chromeIndicatorsLive.test.tsand therecoveryIndicatorSourcetests.open-networkfrom the card, from the indicator's drill-in and from a monitoring alert's drill-in; Back returns to the Services status surface with its state intact; the tab strip still shows six tabs; noPendingRouteis parked for ownernetwork. Prior art:dashboardComposition.test.ts,mountProvisioningUpdates.test.ts,fleet.test.ts.fleet_integration_test.go,overview_integration_test.go,monitor_test.go,heartbeat_test.go,broker/internal/broker/http_test.go,authgate_test.go.Two cross-cutting checks ride existing harnesses rather than new ones: the theming contract tests (no raw hex in the new components; grading maps to
--oc-status-*tokens and compiles no red — ADR 0122) and the transport seam test proving the route is refused unauthenticated with no fact disclosed.Out of Scope
/networkas a deep-linkable URL. The served router is a flat six-tab map; non-tab paths are a shared refactor across every tabless surface.certpersistkeeps that job), the device-certificate inventory (enroll/Fleet's world), the community CA's root-key posture and expiry (rescue's — recovery readiness, ADR 0101 §4), and mTLS futures.reservedSlugs, record TTLs, the claim secret. The arrangement stays a read-only string in Settings (DDR 0099 §3).Further Notes
Vertical slices (named for the fan-in
/slice-map, #770)certsource:presented-leaf— the certificate source seam and its TLS-presentation adapter (subject, issuer display name, covered names, validity window; an unreadable name reported honestly). No dependencies.broker:front-door-probe— the boundedPOST /v1/subdomains/proberoute on the broker: claim-secret authenticated, dials only the claimed host's own recorded address on the fixed IDSS port groups, per-group verdicts + vantage in the answer. No dependencies.monitor:front-door-observation— the existing monitoring tick records the latest front-door observation (certificates + probe) with timestamps and vantage, and raises theCERT_BAD_DAYScritical with the renewal attempts' evidence. Depends on 1 and 2.transport:network-read— theNetworkread family and its route: the three-owner projection, shape selection, stated limits, ageing, optional lease reading, Problem-body faults; OpenAPI + handler + generated client, behind the existing auth gate. Depends on 3.dashboard:network-surface— the P11-S1 surface over its injected client: the three sections, the four deployment variants, renewal-late, unknown. Depends on 4 and on #769'sui-kit:telemetry-primitives(forOcStatusDotandstatusGrades).dashboard:front-door-card— the P11-S0 card on Services with its worst-grade state line, observed-at, and error state; the p5-s1 ✎ wireframe amendment lands here (ADR 0042 discipline). Depends on 5.shell:network-indicator-and-mount— the network indicator source, the composing multi-tenant indicator source, the owner→tab entry, the in-place mount foropen-networkfrom all three entry edges, and Back. Depends on 5 and 6.Cross-arc notes for the fan-in: #769's slice 1 is a hard root for slice 5 (this feature re-mints neither the dot nor the constants), and #769's
statusGradesis whereCERT_WARN_DAYS/CERT_BAD_DAYSare born — if that slice slips, slice 5 waits rather than declaring its own thresholds. Slice 7 is where the maramataka lesson is actually closed (the standing indicator), and it is last by construction. Nothing here blocks a sibling.The DDR's three open gates, plus two this spec adds (all veto-open, not blocking)
DDR 0204 is
acceptedwith three decisions held open for Ben under the ADR 0174 posture; this spec is written against their proposed defaults, and the veto is asynchronous.Two the spec adds, because the design tier assumed machinery that does not exist:
certs-observed-atcopy keeps its "read from the gateway's certificate store" wording (with the default, that line gains a ✎ wording amendment to name the door instead).Implementation-time notes
p5-monitoring/p5-s1-…gains the front-door card (slice 6);p11-s1o-own-domaingains the no-vantage stated-limit case for its Ports section (slice 5, under G4);p11-s1/p11-s1ogain the source wording oncerts-observed-atand the no-lease posture onport-lease-line(slice 5, under G5 / DDR 0175).docs/ux/flows/p11-network.mermaidis untouched — none of these is a new state.matou-distributed-servers,src/pages/NetworkPage.vue+ itscerts/dns/caddyadmincollectors) is a reference for information design and mechanics only: the wildcard-first sort, the day-count pill, the ✓/✗ check rows. Its styling is a drifted fork of the same Mātou visual language; nothing visual transfers, and every colour re-encodes as an--oc-*token (ADR 0122). Not adopted: Caddy-admin and acme-dns specifics, hard-coded host lists, the public tier.CONTEXT.mdrules the copy: say front door, serving, renewal late, renewal failing, unknown, stated limit, front-door card, and name port groups by group. Never SSL (say certificate), never a bare DNS healthy (name the record and when it was seen), never expired as the first warning, never port forwarding failed (name the group), never Network tab — it is not a tab.docs/GOTCHAS.mdis worth a read before touching the certificate path (#32, the Caddy storage-layout hazard) — one of the reasons slice 1's default adapter reads the door rather than the store.Produced by
/to-specin an unattended session under ADR 0174 (two-way-door posture — Ben's veto is asynchronous, never blocking). Advances #761.Supplementary findings — transferred from the withdrawn parallel spec draft (#836–#839 race, see #760–#763), verified absent from this spec before posting. Findings, not edits — the spec's rulings stand unless amended.
[MINOR — design-verify guidance]
p11-network.mermaidline 19's comment names the Overview needs-attention queue as an entry, but the flow draws no Overview edge (nothing new is built there — story 33's alert rides existing machinery). design-verify should read that comment as prose-only, not a missing edge.Closed in the 2026-08-27
other-state sweep (Ben's ruling) — child spec complete: all derived tickets closed (#812–#818, #832).