control-panel observability child spec: network (P11) — the front door, tabless behind a card on Services #792

Closed
opened 2026-08-25 07:50:55 +00:00 by matou-build-agent · 2 comments

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-servers comparison 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):

  • DDR 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.
  • Flow 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.
  • Wireframes 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. Their data-field / data-action / data-status attributes 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.)
  • Vocabulary CONTEXT.md — Network (P11) object-states and the front-door card (Design nouns), merged with the design arc.
  • Consumed from the sibling — OcStatusDot, OcResourceBar, and the statusGrades constants 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-domain and dns-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:

  • What the door is actually serving. The gateway holds real certificates with real expiries and real host coverage. Nothing reads them, so nothing can grade them, so nothing can warn.
  • Whether the name still points home. The address heartbeat runs, keeps its own standing state, and re-points on divergence (ADR 0136 + amendment) — and its Status() is read by nobody outside the control plane's own logs. A residential connection that drifts is invisible until a member complains.
  • Whether the ports still answer from outside. ADR 0141 rules the outside-in probe "the only truth about openness" and puts the recurring version of it in the control plane's steady state. It was never built: today's only genuine outside-in probe is founding's S10 gate, run once, from the operator's machine, and then never again.

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:

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

  2. 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/Hints precedent, and ADR 0097's rule that shell composes and computes nothing.

  3. Every fact carries observed-at, and aging is a rendered state. Past its cadence a fact degrades to ? unknown with 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.

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

  5. 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:

  • The outside-in probe needs a vantage IDSS actually has. A gateway dialling its own public address is not outside-in — hairpin NAT makes the answer unreliable in both directions, so claiming it would be a fabricated fact (ADR 0100). v1 therefore ships one production vantage: a new bounded broker probe (the broker is already the community's external correspondent and already claim-secret authenticated, ADR 0135). A deployment with no broker relationship has no vantage, and the Ports section states that limit in the same posture its Address section already wears — it never invents an open.
  • There is no router lease to renew yet. The portmap seam is designed (ADRs 0137/0141) but the walkthrough shipped manual-first (DDR 0175) and no lease machinery exists. The lease line renders only when a lease is actually held; otherwise the honest no-lease posture line stands (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)

  1. As an operator, I want a front-door card on the Services tab, so that the health of how everything is reached sits beside the health of what is reached.
    • Given the Services tab's resting P5-S1 status surface, When it renders, Then [data-field="front-door-card"] appears below the services table, carrying a Front door label, 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.
  2. As an operator, I want the card's state line composed only from facts the read carries, so that the panel can never show me a green the door hasn't earned.
    • Given a network read where the soonest-expiring served certificate has 55 days, the name answers the gateway's address, and every required port group answers, When the card renders, Then its pill is [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.
  3. As an operator, I want the card to wear the worst standing grade, so that a card I glance past never hides the one thing that stands.
    • Given a read in which one served certificate is inside its warn window while the name and ports are healthy, When the card renders, Then the pill wears the warning tone, its data-status names the standing condition rather than front-door-serving, and the state line leads with that condition.
  4. As an operator, I want the card to say when it last looked, so that a quiet card and a stale card are distinguishable.
    • Given a read whose oldest contributing observation is 4 minutes old, When the card renders, Then [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.
  5. As an operator, I want a failed card read to be an honest, retriable state, so that a card is never silently blank.
    • Given the network read faults, When the card renders, Then it shows the shared error state with a stable status marker and a retry, exactly as RecoveryReadinessCard does — never an empty card, never a fabricated line.

B — The resting surface: certificates (P11-S1)

  1. As an operator, I want a certificates table on the network surface, so that I can see what the door is actually serving.
    • Given the P11-S1 surface over a read carrying two served certificates, When it renders, Then [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.
  2. As an operator, I want the wildcard pinned first and the rest sorted by soonest expiry, so that the certificate most likely to matter is the one I read first.
    • Given a read carrying a wildcard and two host certificates whose expiries are out of order, When the table renders, Then the wildcard row ([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.
  3. As an operator, I want each certificate's host coverage shown, so that I know how much of the community one certificate carries.
    • Given a certificate covering nine names, When its row renders, Then it carries a host-count chip reading 9 hosts; and given exactly one, Then the chip reads 1 host (singular).
  4. As an operator, I want the day count graded by the shared thresholds, so that a widget's grade and an alert's severity can never disagree about where "late" begins.
    • Given CERT_WARN_DAYS = 30 and CERT_BAD_DAYS = 14 from the kit's statusGrades module, 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 with data-status="cert-renewal-late"; at ≤14 it is the warning tone with data-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).
  5. As an operator, I want the certificates line to say where the facts came from and when, so that "renewal is automatic" is a claim I can date.
    • Given a certificate observation from 4 minutes ago, When the surface renders, Then [data-field="certs-observed-at"] names the source, states that renewal is automatic, and gives the age.
  6. As an operator, I want a re-founded community's persisted certificates to show their original obtained date, so that persistence is visible without ceremony.
    • Given a community that re-used its persisted certificate store across a re-founding (ADR 0176), When the surface renders, Then the rows carry the certificates' own dates — the surface states facts and adds no re-founding narrative.

C — The resting surface: address & name (P11-S1)

  1. As an operator, I want a ✓ row saying the community's name points home, so that I can see the heartbeat's work rather than trust it.
    • Given a heartbeat status of healthy whose last tick observed the gateway's address, When the surface renders, Then [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.
  2. As an operator, I want the certificate zone's glue shown as its own row, so that the records certificates renew through are not folded into the name's row.
    • Given a community on the subdomain arrangement whose record family was written in one call (ADR 0128), When the surface renders, Then [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.
  3. As an operator, I want the last re-point stated, so that a name that has moved recently is legible rather than surprising.
    • Given a heartbeat that last re-pointed 12 days ago, When the surface renders, Then [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 — never never and never a blank.
  4. As an operator, I want a heartbeat that cannot write to be a standing named state here too, so that the last-known-good record is never rendered as current.
    • Given a heartbeat in 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)

  1. As an operator, I want one row per port group my community's shape actually exercises, so that the table is what matters rather than an inventory.
    • Given a self-hosted subdomain community with three devices, When the surface renders, Then [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).
  2. As an operator, I want required and informational groups distinguished, so that a closed informational group never reads as a fault.
    • Given the web and mesh groups required and the relay group informational for this fleet's shape, When the surface renders, Then the required rows carry a REQUIRED chip and the relay row an INFORMATIONAL chip; 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.
  3. As an operator, I want each row's state to be what the outside-in probe saw, so that "open" means visitors can actually get in.
    • Given a probe observation in which web answered and mesh answered, When the rows render, Then each carries the probe's own verdict as its 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).
  4. As an operator, I want the lease line only when there is a lease, so that the panel never claims to be renewing something it isn't.
    • Given a read carrying a router lease renewed 18 minutes ago, When the surface renders, Then [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 with data-status="no-router-lease", naming the outside-in probe as the truth about what answers.
  5. As an operator, I want the port line to say when the door was last probed, so that an open row and a stale row are distinguishable.
    • Given a probe observation 4 minutes old, When the surface renders, Then [data-field="port-lease-line"] carries the probed-from-outside age alongside its lease/no-lease clause.

E — Deployment shapes (P11-S1f · S1o · S1p)

  1. As an operator on my community's first day, I want the network surface to show what founding already made, so that day one is never an empty screen.
    • Given a community founded today on a rented gateway with no other devices, When the surface renders, Then it carries the certificate pair founding obtained (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.
  2. As an operator on my own domain, I want the manual posture stated in the Address section, so that I am never left believing IDSS watches records it cannot see.
    • Given a community on the own-domain arrangement, When the surface renders, Then the Address section carries no ✓ check row and instead renders [data-field="own-domain-manual-posture"] with data-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.
  3. As an operator on my own domain, I want the certificate-zone group shown as required, so that the port my renewals depend on is not silently informational.
    • Given the own-domain path (the gateway serves the delegated zone, ADR 0014), When the ports table renders, Then [data-field="port-group-cert-zone"] appears with a REQUIRED chip and its own probe state — and on the subdomain path that row does not appear at all.
  4. As an operator on my own domain, I want the surface to be honest that no live registrar check exists, so that a named gap is never mistaken for a passing check.
    • Given v1, When the Address section renders on the own-domain path, Then it claims no "does your registrar's record still match?" verdict anywhere — the posture callout is the whole of the section's claim (DDR 0204's open gate 3, kept named and ungrown).
  5. As an operator on the private path, I want my certificates shown with my own CA named in plain language, so that "no outside issuer" reads as designed rather than as broken.
    • Given a private-path community, When the surface renders, Then [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.
  6. As an operator on the private path, I want Address and Ports to state their limits rather than vanish, so that I am never left wondering where a section went.
    • Given a private-path community, When the surface renders, Then [data-field="private-no-public-name"] and [data-field="private-no-public-ports"] both render with data-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.
  7. As an operator, I want the surface to follow my deployment if it changes, so that a reopened access choice is not a stale screen.
    • Given a community that reopens its access choice (the reopened walk, DDR 0142) and gains a public door, When the surface is next read, Then it renders the variant its current shape earns — the shape is read per request from the owning facts, never cached into the surface.

F — Renewal late: the state, the chrome slot, the escalation (P11-S1x · DN · P5-S2)

  1. As an operator, I want a late renewal to be a named state on the surface, so that the maramataka failure (an expiry nobody saw) becomes impossible.
    • Given a served certificate at 23 days with renewal not landed, When P11-S1 renders, Then its row's pill is the warning tone with 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.
  2. As an operator, I want the late renewal to supply the chrome's standing indicator, so that I meet the condition without opening the surface.
    • Given the same read, When the shell chrome renders, Then [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).
  3. As an operator, I want the indicator to clear itself, so that I am never asked to tidy up after a condition that resolved.
    • Given a standing certificate indicator, When the next read shows renewal landed (days-left back above the warn threshold), Then the indicator is simply absent from the stack on the next render, and nothing was dismissed; and given the condition persists across several reads, Then its raised-at is stamped once and held, so the stack's severity-then-age ordering shows its true age.
  4. As an operator, I want network to share the indicator slot with recovery readiness, so that a second standing condition does not evict the first.
    • Given both a degraded recovery coverage and a late certificate renewal, When the chrome renders, Then the stack carries both indicators, ordered severity-then-age by the kit's existing orderIndicators, each naming its own owner and its own drill-in.
  5. As an operator, I want the indicator's drill-in to land on the network surface, so that "See network" goes where it says.
    • Given the standing certificate indicator, When its drill-in is activated, Then the Services mount is selected and the network surface is mounted, with the certificates section in view — no tab is added, no URL segment beyond the Services tab's own is required, and no pending route is left parked.
  6. As an operator, I want ≤14 days to escalate to a real alert, so that a warning nobody opened still reaches me.
    • Given a served certificate crossing 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.
  7. As an operator, I want that alert's drill-in to land here, so that the alert and the evidence are one step apart.
    • Given the raised certificate alert, When its detail's drill-in is followed (edge P5-S2 → P11-S1), Then the network surface opens with the faulted certificate's row in view.
  8. As an operator, I want a late renewal to leave the rest of the surface alone, so that one amber row never repaints the whole door.
    • Given a late renewal with a healthy heartbeat and answering ports, When P11-S1x renders, Then the name row is still a done check with its own age and the web row is still open with its own age — fault locality holds.

G — Unknown: the probe gap (P11-S2x)

  1. As an operator, I want a probe gap to be a named state, so that the panel never shows me yesterday's green as today's truth.
    • Given every front-door observation aged past its cadence (41 minutes), When the surface renders, Then [data-field="probe-gap-banner"] renders with data-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.
  2. As an operator, I want each aged row to degrade individually, so that I can see exactly which fact is old.
    • Given aged certificate, heartbeat and probe observations, When the surface renders, Then each certificate row's pill is muted ? unknown (data-status="cert-unknown"), the name row renders as a todo check with data-status="heartbeat-read-gap", and the web row renders as a todo check with data-status="port-probe-gap" — each keeping its last-good time visible.
  3. As an operator, I want a read gap never to clear a fault, so that silence can never launder a known problem into health.
    • Given a standing heartbeat repoint-failed fault 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).
  4. As an operator, I want unknown to resolve by itself, so that I am never asked to retry a check that re-runs on its own.
    • Given a surface in the unknown state, When the next observation lands current, Then the banner is absent and the rows carry their fresh facts and ages — and the surface offers no retry lever anywhere in the gap state.
  5. As an operator, I want a partial gap to be partial, so that one aged fact does not black out facts that are current.
    • Given a current certificate observation and an aged probe observation, When the surface renders, Then the certificate rows render their real grades and the port rows render unknown — the banner names what specifically has not answered, not the whole surface.

H — Where the surface lives (the tabless mount, all frames)

  1. As an operator, I want the network surface mounted in place over Services, so that opening it does not cost the tab set an exception.
    • Given the Services tab and the front-door card, When open-network is 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.
  2. As an operator, I want a way back, so that a drill-in is never a trap.
    • Given the mounted network surface, When the back control is activated, Then the Services status surface returns with its own state intact, exactly as monitoring's P5-S3 detail back behaves.
  3. As an operator, I want every entry edge to land the same surface, so that there is one network truth however I arrived.
    • Given entry from the front-door card, from the chrome's standing indicator, or from a monitoring alert's drill-in, When the surface mounts, Then it is the same composed surface over the same read in every case, and no entry leaves a PendingRoute parked.
  4. As a developer, I want the network drill-in owner resolved to a real tab, so that an unmounted owner can never silently swallow the edge.
    • Given a drill-in intent whose owner is 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 is open-network, Then the Services surface mounts the composed network face for it.

I — The control plane: the front-door read and its owners

  1. As a developer, I want one read family for the whole surface, so that three owners are projected once rather than three times.
    • Given the control plane, When the dashboard reads the network surface, Then a single read returns the whole view — the served certificates, the address/name reading, the port groups with their probe states and lease reading, the deployment shape, and every observation's observed-at — as a thin projection that re-derives nothing and maps every owner fault to the shared Problem body, exactly as the Fleet and Overview reads do.
  2. As a developer, I want the certificate facts to be what the door presents, so that the surface answers the question the maramataka failure actually asked.
    • Given the certificate source seam, When it reads, Then it reports, per served name, the subject, the issuer as a display name, the covered names (for the host count), and the validity window, from the leaf the door actually presents; and given a name that cannot be read, Then it reports that name's absence honestly rather than omitting it silently, and never fabricates an expiry.
  3. As a developer, I want the outside-in probe to name its vantage, so that the panel cannot claim an outside truth it did not obtain from outside.
    • Given the probe seam, When the control plane observes port state, Then the observation carries the vantage it was obtained from and its timestamp; and given a deployment with no available vantage, Then the read reports the Ports section as a stated limit — no open, no closed, no unknown-that-implies-a-check-ran — and the surface renders that limit in the accent posture.
  4. As a developer, I want the probe and the certificate reading to ride the loop that already exists, so that the surface adds no new collector class.
    • Given the control plane's existing monitoring tick (ADR 0161's re-run cadence), When it runs, Then it records the latest front-door observation (certificates and probe) with its timestamp; and given an observation older than its cadence, Then the read family marks it aged so the surface renders unknown — the classification of "aged" lives in the projection, once, and not in the components.
  5. As a developer, I want the heartbeat's standing state projected rather than re-derived, so that the surface and the loop can never disagree about the name.
    • Given the heartbeat's 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.
  6. As a developer, I want the whole read behind the community door, so that the front door's own facts are not a public surface.
    • Given the network read's route, When an unauthenticated caller requests it, Then it is refused by the existing front-door auth gate with no fact disclosed; and given an authenticated operator, Then it answers (DDR 0172 — the panel is operators-only; no member-facing tier exists).

Implementation Decisions

Seams — one read family, three source seams, all faked at the same line

  • The dashboard's NetworkClient is the primary seam and the only one the surface sees. A type module in the dashboard's lib layer holding the view shapes plus a network() read, with a hand-written fake for the component tests — the recoveryReadiness.ts / RecoveryReadinessClient precedent, whole. The components hold no network truth: grading, ageing, shape selection and copy come back from the read (ADR 0097).
  • One control-plane read family projecting three owners. A Network-shaped read service on controlapi, thin over: the certificate source, the heartbeat's Status(), 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 an httpNetworkClient — the fleetClient / overviewClient pattern.
  • The certificate source is seamed at "what does this name present?" — one interface returning, per served name, subject / issuer display name / covered names / validity window. The v1 production adapter performs a TLS presentation read of each served name. Rejected: reading Caddy's certmagic store off disk — the store is the material, not the truth (a stored certificate the door is not serving is exactly the case that misleads), it couples the control plane to the certmagic layout and to the caddy user's file permissions, and the failure it would have to survive (GOTCHAS #32) is a storage-layout hazard the product surface has no business inheriting. certpersist keeps its harvest-time job unchanged.
  • The front-door probe is seamed at "can you reach me, and from where?" — one interface returning per-port-group verdicts plus the vantage that obtained them. The v1 production adapter calls a new bounded broker probe: POST /v1/subdomains/probe {host}, authenticated by that host's claim secret exactly as /point is (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).
  • The lease reading is optional by construction. The read family carries a lease reading only when the portmap seam reports one. Nothing in this feature builds portmap; when ADR 0141's automatic path lands it fills the same field and the surface changes shape not at all.
  • No new loop, store or collector class (DDR 0204's grill decision 8). The certificate read and the probe ride the existing monitoring tick — monitoring is already ADR 0161's re-run cadence and already the raise-path for both the ADR 0136 heartbeat fault and the ADR 0141 port fault, so the observations and the alerts that grade them come from one place and cannot disagree. The heartbeat's status is already in memory.

Surface

  • Placement is a card plus an in-place mount. The card is a fragment on Services' P5-S1 (RecoveryReadinessCard's shape); the surface mounts over the Services mount when open-network arrives (BackupsSurface's isOpenRecoveryReadinessIntent shape). The owner→tab map gains network → services. No tab-table change, no ADR 0094 amendment, no DDR 0099 change.
  • The URL stays the Services tab's in v1. /network is 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' /network address bars are depiction, not contract; design-verify checks the data-* contract.
  • Network becomes the indicator slot's second tenant. The dashboard composes its sources with a small composing IndicatorSource (recovery + network), so the shell's single-source contract and NavChrome are unchanged and orderIndicators already handles a multi-owner stack. The network source follows recoveryIndicatorSource exactly: a cached synchronous snapshot, a refresh() the composition root nudges on mount and after a read, and a raised-at stamped once and forgotten when the condition clears.
  • Every P11 frame's data-field / data-action / data-status attributes are the built contract, carried verbatim from the wireframes so design-verify can check the shipped UI against them.
  • The pills, dots and grading constants are the sibling's — OcStatusDot and statusGrades (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 failing is the warning tone plus a named state, never a third hue.
  • Ageing is computed once, in the projection. The read marks each observation aged or current; components render what they are told. No component computes a duration against a clock.
  • The client pattern is the house one: an injected client, the shared async guard for the read, no component-invented setInterval — the surface re-reads on mount and on the mount registry's existing cadence.

The control plane

  • The read family is shape-aware, not shape-branching in the UI. It reports the deployment shape (subdomain / own-domain / private path / first-run) and the per-section stated limits as content, so S1 / S1f / S1o / S1p are one surface rendering the read's own answer rather than four screens behind a UI conditional.
  • Grading and raising ride the same constants. Monitoring's certificate raise reads CERT_BAD_DAYS through 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.
  • The broker probe is additive and bounded: a new route beside /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:

  1. The component seam (the primary one). The network surface and the front-door card driven against a hand-written fake NetworkClient, asserting on the wireframes' data-field / data-action / data-status contract. 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, the RecoveryReadinessCard tests, calloutVocabulary.test.ts.
  2. The chrome seam. The network indicator source driven against the fake client: an indicator appears at ≤30 days with renewal not landed, is absent above it, is absent again the moment renewal lands, holds its raised-at across repeated refreshes, and carries the open-network drill-in. Plus the composing source: two tenants both render, ordered severity-then-age, and neither evicts the other. Prior art: chromeIndicatorsLive.test.ts and the recoveryIndicatorSource tests.
  3. The composition seam. The dashboard composition asserted to mount the network surface for open-network from 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; no PendingRoute is parked for owner network. Prior art: dashboardComposition.test.ts, mountProvisioningUpdates.test.ts, fleet.test.ts.
  4. The Go seams. The projection over hand-written fakes for the three owners: shape selection, ageing at the cadence boundary, a heartbeat fault surviving an aged read, a missing vantage rendering a stated limit, a lease-present vs lease-absent reading, and an owner fault mapping to the shared Problem body. The certificate source's adapter against a scripted TLS presentation (issuer/expiry/covered names parsed; an unreadable name reported, never fabricated). The broker probe against the existing broker HTTP test harness: an authenticated claimed host is probed at its own recorded address, a caller-supplied address is ignored, a missing secret is 401 and a wrong one 403, an unclaimed host is a client error. Prior art: 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

  • Any lever on this surface. No renew-now, no re-point-now, no re-ask-the-router, no retry-the-probe. Renewal and re-pointing are automatic loops, and a fault's action belongs to its alert's advised action (the CONTEXT.md Alert rule).
  • Building the portmap seam. ADR 0141's automatic ask/renew stays #331's; this surface renders a lease if one is ever reported and states the honest no-lease posture otherwise.
  • A live own-domain registrar check. No loop reads own-domain DNS (ADR 0136's accepted split); v1 states the posture and shows the observed gateway address. Growing a read-only own-domain check is a new collection loop — a future ticket (DDR 0204 open gate 3).
  • /network as a deep-linkable URL. The served router is a flat six-tab map; non-tab paths are a shared refactor across every tabless surface.
  • Certificate lifecycle mechanics — the ACME account, rate-limit budgets, harvest/seed (certpersist keeps 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.
  • Zone and registrar detail — provider names, tokens, reservedSlugs, record TTLs, the claim secret. The arrangement stays a read-only string in Settings (DDR 0099 §3).
  • The S10b port board and founding's port walkthrough. That is a founding surface; a steady-state alert's advised action may route to it, which is monitoring's call (ADR 0141), not a lever here.
  • Protocol vocabulary (UPnP / NAT-PMP / PCP) — founding's consent copy owns it.
  • A member-facing network tier and any public tier. The panel is operators-only behind the community door (DDR 0172).
  • A seventh tab, a Settings section, a permanent Overview row. All three were considered and rejected in DDR 0204; nothing here reopens them.
  • The other observability siblings' surfaces — telemetry (#759, specced as #769), logs (#760, specced as #791), replication matrix (#762), activity feed (#763), topology map (#764, deferred).

Further Notes

Vertical slices (named for the fan-in /slice-map, #770)

  1. 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.
  2. broker:front-door-probe — the bounded POST /v1/subdomains/probe route 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.
  3. monitor:front-door-observation — the existing monitoring tick records the latest front-door observation (certificates + probe) with timestamps and vantage, and raises the CERT_BAD_DAYS critical with the renewal attempts' evidence. Depends on 1 and 2.
  4. transport:network-read — the Network read 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.
  5. 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's ui-kit:telemetry-primitives (for OcStatusDot and statusGrades).
  6. 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.
  7. shell:network-indicator-and-mount — the network indicator source, the composing multi-tenant indicator source, the owner→tab entry, the in-place mount for open-network from 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 statusGrades is where CERT_WARN_DAYS / CERT_BAD_DAYS are 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 accepted with three decisions held open for Ben under the ADR 0174 posture; this spec is written against their proposed defaults, and the veto is asynchronous.

  • G1 — the placement ruling itself (default: front-door card on Services + a tabless surface; no seventh tab; Overview untouched). This is the D1 placement cluster, shared with #763/DDR 0206. A veto that awards a seventh tab retires stories 41–44 and slice 7's mount half and rewires slice 6's card into a tab mount; stories 1–40 and 45–50, and slices 1–5, are unchanged — every fact, state, seam and threshold survives any placement answer. This spec is therefore sliceable now, with slice 7 as the one slice a D1 veto touches.
  • G2 — indicator immediacy (default: no grace period — the indicator stands the moment a certificate enters the ≤30d window). A veto changes one condition in the indicator source (stand only after the condition survives 24h) and one test; nothing else moves.
  • G3 — the own-domain read gap (default: keep the gap named and ungrown). A veto that wants a read-only own-domain DNS check adds a new collection loop and a story to group C; the rest is unchanged.

Two the spec adds, because the design tier assumed machinery that does not exist:

  • G4 — the outside-in probe's vantage is the broker (default: ship the bounded broker probe, slice 2; refuse the gateway's self-probe as a vantage). This is the only genuinely new external surface in the feature. A veto retires slice 2 and story 47's vantage-present half, and the Ports section then renders the last genuine outside-in probe (founding's S10) with its age, degrading to unknown — the section still exists, honestly, and the seam is unchanged. Consequence to note either way: a deployment with no broker relationship (own domain on own VPS) has no vantage in v1, so P11-S1o's port rows are the vantage-present depiction — the frame gains a ✎ note for the stated-limit case with slice 5.
  • G5 — the certificate facts come from the presented leaf, not the store (default: presentation read). A veto swaps slice 1's adapter for a certmagic-store reader; the seam, the view and every story above are unchanged, and P11-S1's certs-observed-at copy 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

  • Three wireframe ✎ amendments ride their implementing slices (ADR 0042 discipline, #769's precedent): p5-monitoring/p5-s1-… gains the front-door card (slice 6); p11-s1o-own-domain gains the no-vantage stated-limit case for its Ports section (slice 5, under G4); p11-s1/p11-s1o gain the source wording on certs-observed-at and the no-lease posture on port-lease-line (slice 5, under G5 / DDR 0175). docs/ux/flows/p11-network.mermaid is untouched — none of these is a new state.
  • The prototype (matou-distributed-servers, src/pages/NetworkPage.vue + its certs / dns / caddyadmin collectors) 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.md rules 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.md is 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-spec in an unattended session under ADR 0174 (two-way-door posture — Ben's veto is asynchronous, never blocking). Advances #761.

## Parent Program map: [#7 — Wayfinder map: OurCloud v1 program scope (Phase 0)](https://git.matou.nz/Matou/idss/issues/7). Design ticket: [#761 — control-panel observability: network, DNS & certificate visibility](https://git.matou.nz/Matou/idss/issues/761) (filed from the 2026-08-24 `matou-distributed-servers` comparison 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`): - **DDR** [`docs/adr/0204-design-network-front-door-tabless-surface.md`](https://git.matou.nz/Matou/idss/src/branch/main/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. - **Flow** `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. - **Wireframes** `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`. Their `data-field` / `data-action` / `data-status` attributes 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.) - **Vocabulary** `CONTEXT.md` — *Network (P11) object-states* and the *front-door card* (Design nouns), merged with the design arc. - **Consumed from the sibling** — `OcStatusDot`, `OcResourceBar`, and the `statusGrades` constants module (`CERT_WARN_DAYS = 30`, `CERT_BAD_DAYS = 14`) are minted by DDR 0202 / spec [#769](https://git.matou.nz/Matou/idss/issues/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-domain` and `dns-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: - **What the door is actually serving.** The gateway holds real certificates with real expiries and real host coverage. Nothing reads them, so nothing can grade them, so nothing can warn. - **Whether the name still points home.** The address heartbeat runs, keeps its own standing state, and re-points on divergence (ADR 0136 + amendment) — and its `Status()` is read by nobody outside the control plane's own logs. A residential connection that drifts is invisible until a member complains. - **Whether the ports still answer from outside.** ADR 0141 rules the outside-in probe "the only truth about openness" and puts the recurring version of it in the control plane's steady state. It was never built: today's only genuine outside-in probe is founding's S10 gate, run once, from the operator's machine, and then never again. 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: 1. **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. 2. **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`/`Hints` precedent, and ADR 0097's rule that shell composes and computes nothing. 3. **Every fact carries observed-at, and aging is a rendered state.** Past its cadence a fact degrades to `? unknown` with 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. 4. **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. 5. **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: - **The outside-in probe needs a vantage IDSS actually has.** A gateway dialling its own public address is not outside-in — hairpin NAT makes the answer unreliable in both directions, so claiming it would be a fabricated fact (ADR 0100). v1 therefore ships **one** production vantage: a new bounded broker probe (the broker is already the community's external correspondent and already claim-secret authenticated, ADR 0135). A deployment with no broker relationship has **no vantage**, and the Ports section states that limit in the same posture its Address section already wears — it never invents an `open`. - **There is no router lease to renew yet.** The portmap seam is designed (ADRs 0137/0141) but the walkthrough shipped manual-first (DDR 0175) and no lease machinery exists. The lease line renders **only when a lease is actually held**; otherwise the honest no-lease posture line stands (`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) 1. As an operator, I want a front-door card on the Services tab, so that the health of how everything is reached sits beside the health of what is reached. - **Given** the Services tab's resting P5-S1 status surface, **When** it renders, **Then** `[data-field="front-door-card"]` appears **below** the services table, carrying a `Front door` label, 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*. 2. As an operator, I want the card's state line composed only from facts the read carries, so that the panel can never show me a green the door hasn't earned. - **Given** a network read where the soonest-expiring served certificate has 55 days, the name answers the gateway's address, and every required port group answers, **When** the card renders, **Then** its pill is `[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. 3. As an operator, I want the card to wear the worst standing grade, so that a card I glance past never hides the one thing that stands. - **Given** a read in which one served certificate is inside its warn window while the name and ports are healthy, **When** the card renders, **Then** the pill wears the warning tone, its `data-status` names the standing condition rather than `front-door-serving`, and the state line leads with that condition. 4. As an operator, I want the card to say when it last looked, so that a quiet card and a stale card are distinguishable. - **Given** a read whose oldest contributing observation is 4 minutes old, **When** the card renders, **Then** `[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. 5. As an operator, I want a failed card read to be an honest, retriable state, so that a card is never silently blank. - **Given** the network read faults, **When** the card renders, **Then** it shows the shared error state with a stable status marker and a retry, exactly as `RecoveryReadinessCard` does — never an empty card, never a fabricated line. ### B — The resting surface: certificates (P11-S1) 6. As an operator, I want a certificates table on the network surface, so that I can see what the door is actually serving. - **Given** the P11-S1 surface over a read carrying two served certificates, **When** it renders, **Then** `[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. 7. As an operator, I want the wildcard pinned first and the rest sorted by soonest expiry, so that the certificate most likely to matter is the one I read first. - **Given** a read carrying a wildcard and two host certificates whose expiries are out of order, **When** the table renders, **Then** the wildcard row (`[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. 8. As an operator, I want each certificate's host coverage shown, so that I know how much of the community one certificate carries. - **Given** a certificate covering nine names, **When** its row renders, **Then** it carries a host-count chip reading `9 hosts`; **and given** exactly one, **Then** the chip reads `1 host` (singular). 9. As an operator, I want the day count graded by the shared thresholds, so that a widget's grade and an alert's severity can never disagree about where "late" begins. - **Given** `CERT_WARN_DAYS = 30` and `CERT_BAD_DAYS = 14` from the kit's `statusGrades` module, **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 with `data-status="cert-renewal-late"`; **at** ≤14 it is the warning tone with `data-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). 10. As an operator, I want the certificates line to say where the facts came from and when, so that "renewal is automatic" is a claim I can date. - **Given** a certificate observation from 4 minutes ago, **When** the surface renders, **Then** `[data-field="certs-observed-at"]` names the source, states that renewal is automatic, and gives the age. 11. As an operator, I want a re-founded community's persisted certificates to show their original obtained date, so that persistence is visible without ceremony. - **Given** a community that re-used its persisted certificate store across a re-founding (ADR 0176), **When** the surface renders, **Then** the rows carry the certificates' own dates — the surface states facts and adds no re-founding narrative. ### C — The resting surface: address & name (P11-S1) 12. As an operator, I want a ✓ row saying the community's name points home, so that I can see the heartbeat's work rather than trust it. - **Given** a heartbeat status of healthy whose last tick observed the gateway's address, **When** the surface renders, **Then** `[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. 13. As an operator, I want the certificate zone's glue shown as its own row, so that the records certificates renew through are not folded into the name's row. - **Given** a community on the subdomain arrangement whose record family was written in one call (ADR 0128), **When** the surface renders, **Then** `[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. 14. As an operator, I want the last re-point stated, so that a name that has moved recently is legible rather than surprising. - **Given** a heartbeat that last re-pointed 12 days ago, **When** the surface renders, **Then** `[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 — never `never` and never a blank. 15. As an operator, I want a heartbeat that cannot write to be a standing named state here too, so that the last-known-good record is never rendered as current. - **Given** a heartbeat in `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) 16. As an operator, I want one row per port group my community's shape actually exercises, so that the table is what matters rather than an inventory. - **Given** a self-hosted subdomain community with three devices, **When** the surface renders, **Then** `[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). 17. As an operator, I want required and informational groups distinguished, so that a closed informational group never reads as a fault. - **Given** the web and mesh groups required and the relay group informational for this fleet's shape, **When** the surface renders, **Then** the required rows carry a `REQUIRED` chip and the relay row an `INFORMATIONAL` chip; **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. 18. As an operator, I want each row's state to be what the outside-in probe saw, so that "open" means visitors can actually get in. - **Given** a probe observation in which web answered and mesh answered, **When** the rows render, **Then** each carries the probe's own verdict as its `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). 19. As an operator, I want the lease line only when there is a lease, so that the panel never claims to be renewing something it isn't. - **Given** a read carrying a router lease renewed 18 minutes ago, **When** the surface renders, **Then** `[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 with `data-status="no-router-lease"`, naming the outside-in probe as the truth about what answers. 20. As an operator, I want the port line to say when the door was last probed, so that an open row and a stale row are distinguishable. - **Given** a probe observation 4 minutes old, **When** the surface renders, **Then** `[data-field="port-lease-line"]` carries the probed-from-outside age alongside its lease/no-lease clause. ### E — Deployment shapes (P11-S1f · S1o · S1p) 21. As an operator on my community's first day, I want the network surface to show what founding already made, so that day one is never an empty screen. - **Given** a community founded today on a rented gateway with no other devices, **When** the surface renders, **Then** it carries the certificate pair founding obtained (`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. 22. As an operator on my own domain, I want the manual posture stated in the Address section, so that I am never left believing IDSS watches records it cannot see. - **Given** a community on the own-domain arrangement, **When** the surface renders, **Then** the Address section carries **no** ✓ check row and instead renders `[data-field="own-domain-manual-posture"]` with `data-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. 23. As an operator on my own domain, I want the certificate-zone group shown as required, so that the port my renewals depend on is not silently informational. - **Given** the own-domain path (the gateway serves the delegated zone, ADR 0014), **When** the ports table renders, **Then** `[data-field="port-group-cert-zone"]` appears with a `REQUIRED` chip and its own probe state — and on the subdomain path that row does not appear at all. 24. As an operator on my own domain, I want the surface to be honest that no live registrar check exists, so that a named gap is never mistaken for a passing check. - **Given** v1, **When** the Address section renders on the own-domain path, **Then** it claims no "does your registrar's record still match?" verdict anywhere — the posture callout is the whole of the section's claim (DDR 0204's open gate 3, kept named and ungrown). 25. As an operator on the private path, I want my certificates shown with my own CA named in plain language, so that "no outside issuer" reads as designed rather than as broken. - **Given** a private-path community, **When** the surface renders, **Then** `[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. 26. As an operator on the private path, I want Address and Ports to state their limits rather than vanish, so that I am never left wondering where a section went. - **Given** a private-path community, **When** the surface renders, **Then** `[data-field="private-no-public-name"]` and `[data-field="private-no-public-ports"]` both render with `data-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. 27. As an operator, I want the surface to follow my deployment if it changes, so that a reopened access choice is not a stale screen. - **Given** a community that reopens its access choice (the reopened walk, DDR 0142) and gains a public door, **When** the surface is next read, **Then** it renders the variant its **current** shape earns — the shape is read per request from the owning facts, never cached into the surface. ### F — Renewal late: the state, the chrome slot, the escalation (P11-S1x · DN · P5-S2) 28. As an operator, I want a late renewal to be a named state on the surface, so that the maramataka failure (an expiry nobody saw) becomes impossible. - **Given** a served certificate at 23 days with renewal not landed, **When** P11-S1 renders, **Then** its row's pill is the warning tone with `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. 29. As an operator, I want the late renewal to supply the chrome's standing indicator, so that I meet the condition without opening the surface. - **Given** the same read, **When** the shell chrome renders, **Then** `[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). 30. As an operator, I want the indicator to clear itself, so that I am never asked to tidy up after a condition that resolved. - **Given** a standing certificate indicator, **When** the next read shows renewal landed (days-left back above the warn threshold), **Then** the indicator is simply absent from the stack on the next render, and nothing was dismissed; **and given** the condition persists across several reads, **Then** its raised-at is stamped once and held, so the stack's severity-then-age ordering shows its true age. 31. As an operator, I want network to share the indicator slot with recovery readiness, so that a second standing condition does not evict the first. - **Given** both a degraded recovery coverage and a late certificate renewal, **When** the chrome renders, **Then** the stack carries **both** indicators, ordered severity-then-age by the kit's existing `orderIndicators`, each naming its own owner and its own drill-in. 32. As an operator, I want the indicator's drill-in to land on the network surface, so that "See network" goes where it says. - **Given** the standing certificate indicator, **When** its drill-in is activated, **Then** the Services mount is selected and the network surface is mounted, with the certificates section in view — no tab is added, no URL segment beyond the Services tab's own is required, and no pending route is left parked. 33. As an operator, I want ≤14 days to escalate to a real alert, so that a warning nobody opened still reaches me. - **Given** a served certificate crossing `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. 34. As an operator, I want that alert's drill-in to land here, so that the alert and the evidence are one step apart. - **Given** the raised certificate alert, **When** its detail's drill-in is followed (edge P5-S2 → P11-S1), **Then** the network surface opens with the faulted certificate's row in view. 35. As an operator, I want a late renewal to leave the rest of the surface alone, so that one amber row never repaints the whole door. - **Given** a late renewal with a healthy heartbeat and answering ports, **When** P11-S1x renders, **Then** the name row is still a done check with its own age and the web row is still open with its own age — fault locality holds. ### G — Unknown: the probe gap (P11-S2x) 36. As an operator, I want a probe gap to be a named state, so that the panel never shows me yesterday's green as today's truth. - **Given** every front-door observation aged past its cadence (41 minutes), **When** the surface renders, **Then** `[data-field="probe-gap-banner"]` renders with `data-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. 37. As an operator, I want each aged row to degrade individually, so that I can see exactly which fact is old. - **Given** aged certificate, heartbeat and probe observations, **When** the surface renders, **Then** each certificate row's pill is muted `? unknown` (`data-status="cert-unknown"`), the name row renders as a todo check with `data-status="heartbeat-read-gap"`, and the web row renders as a todo check with `data-status="port-probe-gap"` — each keeping its **last-good time** visible. 38. As an operator, I want a read gap never to clear a fault, so that silence can never launder a known problem into health. - **Given** a standing heartbeat `repoint-failed` fault 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). 39. As an operator, I want unknown to resolve by itself, so that I am never asked to retry a check that re-runs on its own. - **Given** a surface in the unknown state, **When** the next observation lands current, **Then** the banner is absent and the rows carry their fresh facts and ages — **and** the surface offers no retry lever anywhere in the gap state. 40. As an operator, I want a partial gap to be partial, so that one aged fact does not black out facts that are current. - **Given** a current certificate observation and an aged probe observation, **When** the surface renders, **Then** the certificate rows render their real grades and the port rows render unknown — the banner names what specifically has not answered, not the whole surface. ### H — Where the surface lives (the tabless mount, all frames) 41. As an operator, I want the network surface mounted in place over Services, so that opening it does not cost the tab set an exception. - **Given** the Services tab and the front-door card, **When** `open-network` is 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. 42. As an operator, I want a way back, so that a drill-in is never a trap. - **Given** the mounted network surface, **When** the back control is activated, **Then** the Services status surface returns with its own state intact, exactly as monitoring's P5-S3 detail back behaves. 43. As an operator, I want every entry edge to land the same surface, so that there is one network truth however I arrived. - **Given** entry from the front-door card, from the chrome's standing indicator, or from a monitoring alert's drill-in, **When** the surface mounts, **Then** it is the same composed surface over the same read in every case, and no entry leaves a `PendingRoute` parked. 44. As a developer, I want the network drill-in owner resolved to a real tab, so that an unmounted owner can never silently swallow the edge. - **Given** a drill-in intent whose owner is `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 is `open-network`, **Then** the Services surface mounts the composed network face for it. ### I — The control plane: the front-door read and its owners 45. As a developer, I want one read family for the whole surface, so that three owners are projected once rather than three times. - **Given** the control plane, **When** the dashboard reads the network surface, **Then** a single read returns the whole view — the served certificates, the address/name reading, the port groups with their probe states and lease reading, the deployment shape, and every observation's observed-at — as a thin projection that re-derives nothing and maps every owner fault to the shared Problem body, exactly as the Fleet and Overview reads do. 46. As a developer, I want the certificate facts to be what the door presents, so that the surface answers the question the maramataka failure actually asked. - **Given** the certificate source seam, **When** it reads, **Then** it reports, per served name, the subject, the issuer as a display name, the covered names (for the host count), and the validity window, from the leaf the door actually presents; **and given** a name that cannot be read, **Then** it reports that name's absence honestly rather than omitting it silently, and never fabricates an expiry. 47. As a developer, I want the outside-in probe to name its vantage, so that the panel cannot claim an outside truth it did not obtain from outside. - **Given** the probe seam, **When** the control plane observes port state, **Then** the observation carries the vantage it was obtained from and its timestamp; **and given** a deployment with no available vantage, **Then** the read reports the Ports section as a **stated limit** — no `open`, no `closed`, no unknown-that-implies-a-check-ran — and the surface renders that limit in the accent posture. 48. As a developer, I want the probe and the certificate reading to ride the loop that already exists, so that the surface adds no new collector class. - **Given** the control plane's existing monitoring tick (ADR 0161's re-run cadence), **When** it runs, **Then** it records the latest front-door observation (certificates and probe) with its timestamp; **and given** an observation older than its cadence, **Then** the read family marks it aged so the surface renders unknown — the classification of "aged" lives in the projection, once, and not in the components. 49. As a developer, I want the heartbeat's standing state projected rather than re-derived, so that the surface and the loop can never disagree about the name. - **Given** the heartbeat's `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. 50. As a developer, I want the whole read behind the community door, so that the front door's own facts are not a public surface. - **Given** the network read's route, **When** an unauthenticated caller requests it, **Then** it is refused by the existing front-door auth gate with no fact disclosed; **and given** an authenticated operator, **Then** it answers (DDR 0172 — the panel is operators-only; no member-facing tier exists). ## Implementation Decisions ### Seams — one read family, three source seams, all faked at the same line - **The dashboard's `NetworkClient` is the primary seam and the only one the surface sees.** A type module in the dashboard's lib layer holding the view shapes plus a `network()` read, with a hand-written fake for the component tests — the `recoveryReadiness.ts` / `RecoveryReadinessClient` precedent, whole. The components hold no network truth: grading, ageing, shape selection and copy come back from the read (ADR 0097). - **One control-plane read family projecting three owners.** A `Network`-shaped read service on `controlapi`, thin over: the **certificate source**, the **heartbeat's `Status()`**, 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 an `httpNetworkClient` — the `fleetClient` / `overviewClient` pattern. - **The certificate source is seamed at "what does this name present?"** — one interface returning, per served name, subject / issuer display name / covered names / validity window. The v1 production adapter performs a TLS presentation read of each served name. **Rejected: reading Caddy's certmagic store off disk** — the store is the material, not the truth (a stored certificate the door is not serving is exactly the case that misleads), it couples the control plane to the certmagic layout and to the caddy user's file permissions, and the failure it would have to survive (GOTCHAS #32) is a storage-layout hazard the product surface has no business inheriting. `certpersist` keeps its harvest-time job unchanged. - **The front-door probe is seamed at "can you reach me, and from where?"** — one interface returning per-port-group verdicts plus the **vantage** that obtained them. The v1 production adapter calls a new bounded broker probe: `POST /v1/subdomains/probe {host}`, authenticated by that host's claim secret exactly as `/point` is (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). - **The lease reading is optional by construction.** The read family carries a lease reading only when the portmap seam reports one. Nothing in this feature builds portmap; when ADR 0141's automatic path lands it fills the same field and the surface changes shape not at all. - **No new loop, store or collector class** (DDR 0204's grill decision 8). The certificate read and the probe ride the **existing monitoring tick** — monitoring is already ADR 0161's re-run cadence and already the raise-path for both the ADR 0136 heartbeat fault and the ADR 0141 port fault, so the observations and the alerts that grade them come from one place and cannot disagree. The heartbeat's status is already in memory. ### Surface - **Placement is a card plus an in-place mount.** The card is a fragment on Services' P5-S1 (`RecoveryReadinessCard`'s shape); the surface mounts over the Services mount when `open-network` arrives (`BackupsSurface`'s `isOpenRecoveryReadinessIntent` shape). The owner→tab map gains `network → services`. **No tab-table change, no ADR 0094 amendment, no DDR 0099 change.** - **The URL stays the Services tab's in v1.** `/network` is 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' `/network` address bars are depiction, not contract; `design-verify` checks the `data-*` contract. - **Network becomes the indicator slot's second tenant.** The dashboard composes its sources with a small composing `IndicatorSource` (recovery + network), so the shell's single-source contract and `NavChrome` are unchanged and `orderIndicators` already handles a multi-owner stack. The network source follows `recoveryIndicatorSource` exactly: a cached synchronous snapshot, a `refresh()` the composition root nudges on mount and after a read, and a raised-at stamped once and forgotten when the condition clears. - **Every P11 frame's `data-field` / `data-action` / `data-status` attributes are the built contract**, carried verbatim from the wireframes so `design-verify` can check the shipped UI against them. - **The pills, dots and grading constants are the sibling's** — `OcStatusDot` and `statusGrades` (`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 failing` is the warning tone plus a named state, never a third hue. - **Ageing is computed once, in the projection.** The read marks each observation aged or current; components render what they are told. No component computes a duration against a clock. - **The client pattern is the house one**: an injected client, the shared async guard for the read, no component-invented `setInterval` — the surface re-reads on mount and on the mount registry's existing cadence. ### The control plane - **The read family is shape-aware, not shape-branching in the UI.** It reports the deployment shape (subdomain / own-domain / private path / first-run) and the per-section stated limits **as content**, so S1 / S1f / S1o / S1p are one surface rendering the read's own answer rather than four screens behind a UI conditional. - **Grading and raising ride the same constants.** Monitoring's certificate raise reads `CERT_BAD_DAYS` through 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. - **The broker probe is additive and bounded**: a new route beside `/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: 1. **The component seam (the primary one).** The network surface and the front-door card driven against a hand-written fake `NetworkClient`, asserting on the wireframes' `data-field` / `data-action` / `data-status` contract. 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`, the `RecoveryReadinessCard` tests, `calloutVocabulary.test.ts`. 2. **The chrome seam.** The network indicator source driven against the fake client: an indicator appears at ≤30 days with renewal not landed, is absent above it, is absent again the moment renewal lands, holds its raised-at across repeated refreshes, and carries the `open-network` drill-in. Plus the composing source: two tenants both render, ordered severity-then-age, and neither evicts the other. Prior art: `chromeIndicatorsLive.test.ts` and the `recoveryIndicatorSource` tests. 3. **The composition seam.** The dashboard composition asserted to mount the network surface for `open-network` from 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; no `PendingRoute` is parked for owner `network`. Prior art: `dashboardComposition.test.ts`, `mountProvisioningUpdates.test.ts`, `fleet.test.ts`. 4. **The Go seams.** The projection over hand-written fakes for the three owners: shape selection, ageing at the cadence boundary, a heartbeat fault surviving an aged read, a missing vantage rendering a stated limit, a lease-present vs lease-absent reading, and an owner fault mapping to the shared Problem body. The certificate source's adapter against a scripted TLS presentation (issuer/expiry/covered names parsed; an unreadable name reported, never fabricated). The broker probe against the existing broker HTTP test harness: an authenticated claimed host is probed at its **own recorded address**, a caller-supplied address is ignored, a missing secret is 401 and a wrong one 403, an unclaimed host is a client error. Prior art: `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 - **Any lever on this surface.** No renew-now, no re-point-now, no re-ask-the-router, no retry-the-probe. Renewal and re-pointing are automatic loops, and a fault's action belongs to its alert's advised action (the CONTEXT.md Alert rule). - **Building the portmap seam.** ADR 0141's automatic ask/renew stays #331's; this surface renders a lease if one is ever reported and states the honest no-lease posture otherwise. - **A live own-domain registrar check.** No loop reads own-domain DNS (ADR 0136's accepted split); v1 states the posture and shows the observed gateway address. Growing a read-only own-domain check is a new collection loop — a future ticket (DDR 0204 open gate 3). - **`/network` as a deep-linkable URL.** The served router is a flat six-tab map; non-tab paths are a shared refactor across every tabless surface. - **Certificate lifecycle mechanics** — the ACME account, rate-limit budgets, harvest/seed (`certpersist` keeps 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. - **Zone and registrar detail** — provider names, tokens, `reservedSlugs`, record TTLs, the claim secret. The arrangement stays a read-only string in Settings (DDR 0099 §3). - **The S10b port board and founding's port walkthrough.** That is a founding surface; a steady-state alert's advised action may route to it, which is monitoring's call (ADR 0141), not a lever here. - **Protocol vocabulary** (UPnP / NAT-PMP / PCP) — founding's consent copy owns it. - **A member-facing network tier and any public tier.** The panel is operators-only behind the community door (DDR 0172). - **A seventh tab, a Settings section, a permanent Overview row.** All three were considered and rejected in DDR 0204; nothing here reopens them. - **The other observability siblings' surfaces** — telemetry (#759, specced as #769), logs (#760, specced as #791), replication matrix (#762), activity feed (#763), topology map (#764, deferred). ## Further Notes ### Vertical slices (named for the fan-in `/slice-map`, #770) 1. **`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. 2. **`broker:front-door-probe`** — the bounded `POST /v1/subdomains/probe` route 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. 3. **`monitor:front-door-observation`** — the existing monitoring tick records the latest front-door observation (certificates + probe) with timestamps and vantage, and raises the `CERT_BAD_DAYS` critical with the renewal attempts' evidence. Depends on 1 and 2. 4. **`transport:network-read`** — the `Network` read 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. 5. **`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's `ui-kit:telemetry-primitives` (for `OcStatusDot` and `statusGrades`). 6. **`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. 7. **`shell:network-indicator-and-mount`** — the network indicator source, the composing multi-tenant indicator source, the owner→tab entry, the in-place mount for `open-network` from 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 `statusGrades` is where `CERT_WARN_DAYS` / `CERT_BAD_DAYS` are 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 `accepted` with three decisions held open for Ben under the ADR 0174 posture; this spec is written against their proposed defaults, and the veto is asynchronous. - **G1 — the placement ruling itself** (default: front-door card on Services + a tabless surface; no seventh tab; Overview untouched). This is the **D1 placement cluster**, shared with #763/DDR 0206. A veto that awards a seventh tab retires stories 41–44 and slice 7's mount half and rewires slice 6's card into a tab mount; **stories 1–40 and 45–50, and slices 1–5, are unchanged** — every fact, state, seam and threshold survives any placement answer. This spec is therefore sliceable now, with slice 7 as the one slice a D1 veto touches. - **G2 — indicator immediacy** (default: no grace period — the indicator stands the moment a certificate enters the ≤30d window). A veto changes one condition in the indicator source (stand only after the condition survives 24h) and one test; nothing else moves. - **G3 — the own-domain read gap** (default: keep the gap named and ungrown). A veto that wants a read-only own-domain DNS check adds a new collection loop and a story to group C; the rest is unchanged. Two the spec adds, because the design tier assumed machinery that does not exist: - **G4 — the outside-in probe's vantage is the broker** (default: ship the bounded broker probe, slice 2; refuse the gateway's self-probe as a vantage). This is the only genuinely new external surface in the feature. A veto retires slice 2 and story 47's vantage-present half, and the Ports section then renders the last genuine outside-in probe (founding's S10) with its age, degrading to unknown — the section still exists, honestly, and the seam is unchanged. **Consequence to note either way:** a deployment with no broker relationship (own domain on own VPS) has no vantage in v1, so P11-S1o's port rows are the vantage-present depiction — the frame gains a ✎ note for the stated-limit case with slice 5. - **G5 — the certificate facts come from the presented leaf, not the store** (default: presentation read). A veto swaps slice 1's adapter for a certmagic-store reader; the seam, the view and every story above are unchanged, and P11-S1's `certs-observed-at` copy 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 - **Three wireframe ✎ amendments ride their implementing slices** (ADR 0042 discipline, #769's precedent): `p5-monitoring/p5-s1-…` gains the front-door card (slice 6); `p11-s1o-own-domain` gains the no-vantage stated-limit case for its Ports section (slice 5, under G4); `p11-s1`/`p11-s1o` gain the source wording on `certs-observed-at` and the no-lease posture on `port-lease-line` (slice 5, under G5 / DDR 0175). `docs/ux/flows/p11-network.mermaid` is untouched — none of these is a new state. - The prototype (`matou-distributed-servers`, `src/pages/NetworkPage.vue` + its `certs` / `dns` / `caddyadmin` collectors) 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.md` rules 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.md` is 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-spec` in an unattended session under ADR 0174 (two-way-door posture — Ben's veto is asynchronous, never blocking). Advances #761.*
Owner

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.mermaid line 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.

**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.mermaid` line 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.
Owner

Closed in the 2026-08-27 other-state sweep (Ben's ruling) — child spec complete: all derived tickets closed (#812–#818, #832).

Closed in the 2026-08-27 `other`-state sweep (Ben's ruling) — child spec complete: all derived tickets closed (#812–#818, #832).
ben closed this issue 2026-08-27 04:44:09 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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#792
No description provided.