control-panel observability child spec: network (P11) — front-door card + certificates, address & ports #837

Closed
opened 2026-08-25 16:17:24 +00:00 by ben · 1 comment
Owner

Parent

Program map: #7 — Wayfinder map: OurCloud v1 program scope (Phase 0).
Design ticket: #761 — control-panel observability: network, DNS & certificate visibility (the arc was 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 (tabless surface behind a front-door card on Services), what each backend concern surfaces as, the chrome wiring, and the eight grill decisions.
  • Flow docs/ux/flows/p11-network.mermaid.
  • 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.
  • Vocabulary CONTEXT.md — Network (P11) object-states and the front-door card entry (Design nouns), merged with the arc.

Backend decisions this surface projects (none re-opened here): community CA (ADR 0111), zones (ADRs 0118/0128), the address heartbeat and its amendment (ADR 0136), portmap (ADRs 0137/0141, DDRs 0140/0175), certificate persistence (ADR 0176). Chrome contract: ADR 0094 (six closed tabs, two chrome slots). Shared thresholds and kit primitives: DDR 0202 / sibling spec #769 (CERT_WARN_DAYS = 30, CERT_BAD_DAYS = 14, OcStatusDot, the grade→token map).

Siblings in the same observability arc (each specs separately, then all fan in at one /slice-map): #759 device telemetry (specced as #769), #760 logs, #762 replication matrix, #763 activity feed, #764 topology map (deferred).

Problem Statement

The backend is full of front-door machinery — a community CA minted at founding, zone arrangements, an address heartbeat that re-points the community's records when a residential connection drifts, a portmap seam that renews router leases, a certificate store that persists across foundings — and none of it has a surface. The control panel shows exactly two read-only strings in Settings (apex-domain, dns-arrangement). An operator cannot see that their certificate is renewing, that their name still points home, or that their required ports still answer from outside.

The cost is proven, not hypothetical: maramataka-api's certificate had been expired since May before anyone noticed, in August 2026. A certificate approaching expiry is precisely the failure that is invisible right up until members feel it — and the operator this product is built for (low-skill, low-time) will not be running openssl s_client to check.

The absence also breaks the panel's honesty posture in a second way: when a fact cannot be observed (a probe gap, a heartbeat read that stops answering), there is currently nowhere for "we don't know" to be said — and elsewhere the fleet forbids exactly that (absence read as healthy).

Solution

The front door becomes visible — as a projection, not a lever. One tabless surface (P11) shows the community's certificates, address & name, and ports, every fact carrying when it was last seen. The surface collects nothing and changes nothing: every section is a read over an owner that already exists, and read-only is a ruling, not a v1 shortcut — renewal and re-pointing are automatic loops, and a fault's action belongs to its alert's advised action (the CONTEXT.md Alert rule: status surfaces are queries, never a second store or a second lever).

Three things land:

  1. A front-door card on the Services tab (P11-S0) — the standing entry, in the exact shape ADR 0101 §4 minted for recovery readiness: a compact card below the services table, one honest state line composed only of queries over the owning truths, opening the network surface. No seventh tab and no ADR 0094 amendment: the six tabs stay closed, the card rides the existing Services mount row (monitoring's status truth — the front door is the status truth of how every service is reached), and the surface is routed-to only, like rescue's screens (ADR 0101 §3) and P5-S3.

  2. The network surface (P11-S1 and its variants) — Certificates (wildcard-first, day-count pill on DDR 0202's shared thresholds), Address & name (the heartbeat's last tick, rendered), Ports (the portmap lease plus the outside-in probe, which is the only truth about openness). Deployment shape picks the variant: first run is never empty (S1f — founding already made the rows), own domain states the manual posture with the one fact IDSS does observe (S1o), the private path names its community-CA-signed door certificate and states its no-public-door shape plainly (S1p). A section a deployment removes is stated, never blanked.

  3. The chrome earns its cert story. A served certificate inside its warn window (≤30 days, the shared threshold) supplies ADR 0094's standing indicator — evidence-based, non-dismissible, gone the moment renewal lands (P11-S1x). At ≤14 days the state escalates through monitoring as renewal failing — a critical alert carrying the renewal attempts' evidence, riding the existing P5 machinery with the network surface as its drill-in. Because the gateway renews automatically at 30 days, a healthy fleet exits the warn window within one probe cadence — in practice the indicator stands only when renewal is genuinely late, which is exactly the maramataka case.

Honesty is worn surface-wide: every fact carries observed-at; a fact aged past its cadence degrades to a rendered ? unknown with the 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).

User Stories

A — The front-door card on Services (P11-S0; edge P5-S1 → S0 → S1)

  1. As an operator, I want a one-line front-door summary on the Services tab, so that the door's health is in front of me on the tab I already visit.

    • Given the Services tab (P5-S1) at rest, When it renders, Then a card (data-field="front-door-card") mounts below the services table carrying a mono FRONT DOOR label, a state line (data-field="front-door-state-line") and an observed-at hint (data-field="front-door-observed-at", e.g. "checked from outside 4 min ago").
    • Given the resting state, Then the state line wears data-status="front-door-serving" (● serving) and each clause is a query over the owning truth — certificate days-left (the certificate store), the name pointing home (the heartbeat's tick), required ports answering (the outside-in probe) — never a shell copy (ADR 0094 discipline).
  2. As an operator, I want the card to tell the truth when something stands, so that "serving" is earned, not decorative.

    • Given any P11 fact in a standing non-healthy state (renewal late, unknown, a raised front-door alert), When the card renders, Then its pill wears the worst standing grade and names the condition — the card never invents a green.
    • Given the shared read has a transport-level fault, Then the card renders the shared error posture, never a fabricated state line.
  3. As an operator, I want the card to open the network surface, so that the summary has a drill-in.

    • Given the card, When the operator activates data-action="open-network" (See network), Then the tabless network surface opens (edge S0 → S1), with the Services tab still the selected tab context the operator returns to.
  4. As a maintainer, I want the held p5-s1 wireframe amendment applied with the card's implementation, so that the canonical Services frame and the shipped UI agree.

    • Given the slice that implements the card, Then docs/ux/wireframes/p5-monitoring/p5-s1-fleet-and-services-status.html gains the front-door card per frame P11-S0 with an ✎ comment citing DDR 0204, in the same commit (the ADR 0042 discipline); docs/ux/flows/p5-monitoring.mermaid is untouched — the card is a fragment on the existing S1 screen, not a new monitoring state.

B — Reaching and leaving the tabless surface (edges S0 → S1, DN → S1x, P5-S2 → S1)

  1. As an operator, I want the network surface to be a place I am led to, not an eighth thing in the chrome, so that the panel stays six questions.

    • Given the network surface open, Then the tab set renders its unchanged six (ADR 0094 unamended), no standing menu entry for network exists, and the surface is reached only by routing — the front-door card, the standing indicator, and monitoring's alert drill-ins (the ADR 0101 §3 rescue precedent).
    • Given the surface, Then its heading is "Network" with the front-door framing line, and the copy never calls it a "Network tab" (CONTEXT.md).
  2. As an operator, I want the standing indicator to take me to the evidence, so that the chrome's warning has a home.

    • Given a cert-renewal-late standing indicator in the chrome, When the operator activates its See network action (data-action="open-network"), Then the network surface opens in its renewal-late state (edge DN → S1x).
  3. As an operator, I want a front-door alert's detail to open the network surface at the faulted row, so that the alert and the evidence are one hop apart.

    • Given a raised front-door alert in monitoring (renewal failing, heartbeat cannot write, a required port group not answering), When the operator opens the alert's detail drill-in, Then the network surface opens with the faulted row visible (edge P5-S2 → S1).
  4. As an operator, I want Overview left alone, so that its deliberate minimalism holds.

    • Given the resting front door, Then Overview carries no permanent network row (the ADR 0101 §4 rejection stands); network reaches Overview only through the existing machinery when something stands — a needs-attention item and the two chrome slots — with nothing new built for it.

C — Certificates (P11-S1)

  1. As an operator, I want the community's certificates listed, so that expiry is visible before members feel it.

    • Given the resting surface on a public-door deployment, Then data-field="cert-table" renders columns CERTIFICATE / ISSUER / EXPIRES / DAYS LEFT, with the wildcard pinned first (data-field="cert-wildcard", ★-marked, host-count chip) and remaining rows in soonest-expiry order (data-field="cert-apex" in the depicted fleet).
  2. As an operator, I want days-left graded on the shared thresholds, so that the whole panel speaks one grading language.

    • Given days-left > 30, Then the pill grades healthy (data-status="cert-healthy").
    • Given days-left ≤ 30, Then the pill grades warning (data-status="cert-renewal-late"), under the same CERT_WARN_DAYS / CERT_BAD_DAYS kit constants sibling spec #769 mints — re-minted nowhere, and no red token is emitted: ≤14d escalates through monitoring (story 24), it does not add a third colour here.
  3. As an operator, I want the certificate facts to say where they came from and when, so that I can trust them.

    • Given the certificate section, Then data-field="certs-observed-at" names the source and freshness ("read from the gateway's certificate store · renewal is automatic · checked N min ago") — and the copy says certificate, never "SSL" (CONTEXT.md).
  4. As an operator whose community re-founded, I want the persisted store's history visible for free, so that persistence is a shown fact, not a mechanism.

    • Given a founding that re-used its persisted certificate store (ADR 0176), Then the same rows render with the original obtained date — facts, not ceremony; harvest/seed mechanics, the ACME account and rate-limit budgets stay off-screen.

D — Address & name (P11-S1)

  1. As an operator, I want to see that my community's name points home, so that "the site is up" has an address-shaped answer.

    • Given an idss-subdomain deployment, Then data-field="heartbeat-checks" renders the heartbeat's last tick as ✓ check rows: data-field="heartbeat-record" naming the apex and the observed address (data-field="heartbeat-observed-address") with checked-ago, and data-field="heartbeat-cert-zone" stating the certificate zone's glue carries the same address (the ADR 0136 amendment's full record family).
    • Given the copy, Then it names the record and when it was seen — never a bare "DNS healthy" (CONTEXT.md).
  2. As an operator, I want the loop's own story told in one line, so that I know IDSS is doing this for me.

    • Given the section, Then data-field="heartbeat-last-repoint" states the cadence ("IDSS keeps this name pointed at your gateway, checked every few minutes") and the last re-point with its plain-words reason ("your connection's address changed") when one has occurred.

E — Ports (P11-S1)

  1. As an operator, I want each port group's state from the outside, so that "open" means answers, not configured.

    • Given the resting surface, Then data-field="port-groups" renders one row per port group the community's shape exercises — data-field="port-group-<group>" with group name, ports, a REQUIRED / INFORMATIONAL chip, and a state pill from the outside-in probe, the only truth about openness (ADR 0141) — a granted lease that doesn't answer from outside is not open.
  2. As an operator, I want an informational group's closed state kept calm, so that the surface never wears a warning it hasn't earned.

    • Given an INFORMATIONAL group that is closed (the depicted relay), Then its pill renders muted (data-status="port-relay-closed", ◌ closed) with the plain-words reason ("no device has needed the relay yet") — named, never silently green, never warning-graded.
    • Given a group the fleet's current shape does not exercise, Then it has no row (DDR 0175 — requiredness follows the community's shape; an unearned row is noise, not honesty).
  3. As an operator on a self-hosted gateway, I want the router lease's story in one line, so that I know the grant is being kept alive.

    • Given a household-router deployment, Then data-field="port-lease-line" states the lease renewal ("router lease renewed N min ago — IDSS renews it for as long as the community lives") and the probe freshness ("probed from outside N min ago").
    • Given a rented gateway, Then the line states that shape instead (data-status="no-router-lease": no household router to manage; the outside-in probe is the truth about what answers) — stated, not omitted.
    • Given any deployment, Then protocol names (UPnP/NAT-PMP/PCP) never appear — founding's consent copy owns that vocabulary, and the S10b port board stays a founding surface (a steady-state alert's advised action may route to it, which is monitoring's call per ADR 0141, never a lever here).

F — Certificate renewal late (P11-S1x; edges S1 → S1x → S1; S1x ⇢ DN)

  1. As an operator, I want a late renewal named on the surface before it is an emergency, so that the maramataka failure cannot recur silently.

    • Given a served certificate whose days-left crosses ≤30 while the gateway's automatic renewal has not landed, Then the surface's state is renewal late (edge S1 → S1x): the row's pill grades warning (data-status="cert-renewal-late") and a diagnosis callout (data-field="cert-renewal-late-diagnosis") states the mechanism and stakes honestly — renewal is automatic and keeps retrying, nothing is broken at the door today, and the ≤14d escalation is named in advance.
    • Given the copy, Then "expired" is never the first warning — renewal late and renewal failing stand before expiry (CONTEXT.md).
  2. As an operator, I want the chrome to carry the condition while it stands, so that I see it without visiting any tab.

    • Given renewal late, Then the surface supplies ADR 0094's standing-indicator slot (data-field="standing-indicator-stack" / data-field="indicator-cert-renewal-late"): "⚠ Certificate for <host> hasn't renewed — N days left. Renewal is automatic and keeps retrying. See network" — evidence-based, non-dismissible, raised the moment the window is entered (no grace period — DDR 0204's default, gate 2).
  3. As an operator, I want the indicator to clear itself, so that there is nothing for me to dismiss.

    • Given renewal late, When the gateway's automatic renewal lands, Then the next read returns days-left above the window, the indicator is gone, and the surface returns to resting (edge S1x → S1) — no operator act anywhere in the loop.
  4. As an operator, I want a late renewal to stay a certificate problem, so that one fault never repaints the surface.

    • Given renewal late, Then the Address & name and Ports sections keep rendering their own current truths (fault locality), and any other certificate outside the window keeps its healthy pill.

G — Renewal failing: the ≤14d escalation (edge S1x → P5-S2)

  1. As an operator, I want a renewal that keeps failing raised at me with evidence, so that I act before the door closes.

    • Given days-left crosses ≤14 (CERT_BAD_DAYS) with renewal still not landed, Then monitoring raises renewal failing as a critical alert carrying the renewal attempts' evidence (what the attempts are hitting), riding the existing P5 machinery whole — raised-alert chip, notify, advised action — with the network surface as the drill-in target (edge S1x → P5-S2).
  2. As a maintainer, I want severity to stay monitoring's classification, so that no second judge exists.

    • Given the escalation, Then the network surface performs no severity classification of its own — its grading stays within the kit's healthy/warning vocabulary (no red compiled, ADR 0122's token split), and the heartbeat-cannot-write and required-port-group faults keep raising through their existing ADR 0136/0141 paths unchanged (edge S1 → P5-S2), with this surface newly available as their drill-in.

H — Status unknown: the probe gap (P11-S2x; edges S1 → S2x → S1)

  1. As an operator, I want a check that can't answer to say "unknown", so that I am never reassured by an old green.

    • Given the outside-in probe or a heartbeat read stops answering and facts age past their cadence, Then the surface's state is unknown (edge S1 → S2x): data-field="probe-gap-banner" (data-status="unknown") names the gap and its duration ("the outside-in check hasn't answered for N minutes — the door may be fine; IDSS shows unknown rather than guessing"), each affected cert pill renders ? unknown (data-status="cert-unknown"), the name row degrades to a ? check row (data-status="heartbeat-read-gap") and the port rows to data-status="port-probe-gap" — every one keeping its last-good time visible.
    • Given unknown, Then no row claims health from memory — a read gap never counts as "still pointing home" and never as "open".
  2. As an operator, I want a read gap never to clear a known fault, so that unknown can't launder a warning away.

    • Given a standing fault (e.g. renewal late) when the probe gap begins, Then the fault's indicator and graded state continue to stand — the gap adds unknowns, it retires nothing (DDR 0096; the ADR 0136 amendment's rule worn surface-wide).
  3. As an operator, I want the gap to resolve itself and escalate itself, so that I hold no lever for it.

    • Given unknown, Then the surface offers no retry control — the checks re-run themselves — and a continuing gap is monitoring's to raise through the existing P5 machinery, with this surface as its drill-in.
    • Given the probe answers again, Then the next read returns current facts with fresh observed-at and the surface returns to resting (edge S2x → S1).

I — Deployment shapes: first run, own domain, private path (P11-S1f / S1o / S1p)

  1. As a founding operator, I want the surface full on day one, so that "nothing here yet" never appears.

    • Given first run after founding, Then the surface renders the rows founding already made (the never-empty rule): the obtained certificate pair with "obtained at founding, today · renewal is automatic from here — nothing for you to do", the pointed name with its observed address, and the web group's ✓ ("answers from outside — the reachability test founding ran") — each already carrying observed-at.
    • Given day one, Then mesh and relay rows appear only once the fleet's shape exercises them (story 16's rule, from founding onward).
  2. As an own-domain operator, I want the manual posture stated where I'd look for the check, so that the split is accepted honestly on the surface itself (ADR 0136).

    • Given an own-domain deployment, Then the Address & name section renders no ✓ row it cannot earn: instead an accent callout (data-field="own-domain-manual-posture", data-status="stated-limit") states that the community's DNS lives with the registrar, IDSS doesn't watch or re-point it, and gives the one fact IDSS does observe — the gateway's current address (data-field="gateway-observed-address") — so a registrar visit has something to copy.
    • Given v1, Then no "does your registrar's record still match?" check is claimed, because no loop reads it — the gap stays named and ungrown (DDR 0204 gate 3's default).
    • Given the own-domain shape, Then the certificate-zone port group renders REQUIRED (data-field="port-group-cert-zone") — the own-domain path exercises it (DDR 0175).
  3. As a private-path operator, I want my real certificate truth shown, so that "no public door" doesn't read as "no certificates".

    • Given a private-path deployment, Then the certificate section renders the door certificate (data-field="cert-private-door") with its issuer named in the operator's language — data-field="cert-issuer-community-ca" reads "your community's own CA" (ADR 0111 surfaces as a named issuer, nothing more), state data-status="cert-community-ca" ("● serving · trusted by the app's window"), and the hint names founding as the mint — never a vendor noun, and never the CA's root key posture or expiry (crown jewels are rescue's, ADR 0101 §4).
  4. As a private-path operator, I want the sections a private deployment removes stated plainly, so that absence reads as design, not damage.

    • Given the private path, Then Address & name renders data-field="private-no-public-name" and Ports renders data-field="private-no-public-ports" (both data-status="stated-limit") — accent callouts stating no public name and no public door, "that's the deployment you chose, working as designed" — stated, never blanked, never warning-graded (the DDR 0155 posture).
    • Given a community that later reopens its access choice (DDR 0142's walk), Then the surface simply follows the deployment's new shape — no migration state of its own.

J — Read-only, and where the judgement lives

  1. As an operator, I want the whole surface honestly read-only, so that looking at the door can never change it.

    • Given any P11 frame, Then the only actions offered anywhere are navigational (open-network and the alert/indicator drill-ins) — no renew-now, re-point-now, re-ask-ports, or threshold control exists; a fault's action lives with its alert's advised action (the CONTEXT.md Alert rule: queries, never a second lever).
  2. As a maintainer, I want every verdict computed once, server-side, so that no two surfaces can disagree about the front door.

    • Given the network projection served to the dashboard, Then each section carries a named state (serving / renewal late / renewal failing / unknown / stated limit) plus per-fact observed-at times, computed in the control plane; the dashboard renders them verbatim and performs no timestamp comparison, threshold arithmetic or staleness judgement of its own (ADR 0097).
    • Given the front-door card and the surface, Then both project the same read — one truth, two renderings, never a second fetch path (the DDR 0155 §3 discipline).
  3. As a maintainer, I want the windows and cadences system-defined, so that no operator can tune the panel into dishonesty.

    • Given v1, Then the cert windows are the shared kit constants (30/14), the unknown-aging bar is derived from each check's own cadence, and none of it is operator-editable anywhere in the panel (ADR 0070's posture).

K — The read family (the seam, grown not minted)

  1. As a maintainer, I want one read family projecting three owners, so that the surface adds no collector class.

    • Given the control plane, Then the network read is a new read family on the existing controlapi seam (the DDR 0155 Overview/Hints precedent) projecting the gateway's certificate store (ADR 0176), the heartbeat's tick record (ADR 0136), and the portmap lease + outside-in probe (ADRs 0137/0141) — a thin projection over the owners, re-deriving nothing, no new loop, store or collector class.
    • Given the wire, Then it stays snake_case camelised at the client boundary, the OpenAPI spec is the contract with the generated client as transport (ADR 0037), and a whole-read fault maps to the shared Problem body.
  2. As a maintainer, I want the deployment shape on the wire, so that variants are structural.

    • Given the read, Then it carries the deployment shape (idss subdomain / own domain / private path, and the gateway's rented/self-hosted posture) and per-section stated-limit states, so S1o/S1p render from data — the dashboard holds no arrangement-sniffing logic of its own.
  3. As a maintainer, I want an owner's read fault to stay local, so that one gap never blanks the surface.

    • Given one owner unreadable (say the probe) while the others answer, Then that section serves unknown with its last-good time and the other sections serve their current truths — the read degrades per-section, and only a transport-level failure of the read itself falls to the shared async-guard error frame (the #298 fail-loud discipline, as the existing surfaces do).
  4. As a maintainer, I want the owners to remember their latest observation, so that the projection has something to project.

    • Given each owner loop (heartbeat tick, lease renewal, outside-in probe), Then it retains its latest observation as a queryable record — outcome, observed subject (address / lease / answer), and timestamp — latest-only, no history series (the #769 posture), exposed to the projection and to nothing else.

Implementation Decisions

Seams — one new read family on the existing controlapi seam; nothing else is minted

  • controlapi.Network-shaped read family, the DDR 0155 precedent. One reader interface injected into the handler, faked at the seam in tests like every dashboard read. It projects three owners — certificate store, heartbeat tick record, portmap lease + probe — and computes the named states (windows against the shared constants, unknown-aging against each check's cadence) once, in the control plane. Rejected: a dashboard-side judgement (two surfaces could then disagree — ADR 0097), and a new collector service (the surface collects nothing; DDR 0204 grill decision 8).
  • Owners grow a queryable latest-observation record; no history. The heartbeat currently acts and logs; the projection needs its last tick (observed address, outcome, re-point time) readable. Same for the lease renewal and the outside-in probe. Latest-only, per the arc's standing posture.
  • The ≤14d escalation is monitoring's rule, reading the shared constants. Renewal failing is a new classification in monitoring (critical, evidence = the renewal attempts' outcomes) riding the existing raise/notify/advised-action machinery — no new alert machinery, no new severity vocabulary. The heartbeat-cannot-write and required-port-group raise paths already exist (ADRs 0136/0141) and only gain this surface as a drill-in target.
  • The standing indicator is ADR 0094's slot 1, queried. The chrome's indicator stack gains the cert-renewal-late tenant as a query over the same network read (the slot contract: evidence is the owner's; shell holds no copy). Self-clearing falls out of being a query — when the read stops returning the condition, the indicator is gone.
  • The front-door card is a fragment on the Services surface, reading the same injected client the network surface reads — one truth, two renderings. Its state line is composed clause-by-clause from the read's named states; the worst standing grade wins the pill.

Surface

  • P11 is a routed-to surface with its own route (/network), no tab and no menu entry — the ADR 0101 §3–§4 shape (rescue screens, recovery readiness). Entered by the card, the indicator, and alert drill-ins; never by chrome.
  • Deployment shape picks the variant from the wire; every removed section renders its stated-limit callout. Sections are never blanked and never hidden.
  • Every frame's data-field / data-action / data-status attributes are the built contract, carried verbatim from the wireframes for design-verify.
  • Table density: the tblw / check-row / kv vocabulary at product type scale (ADR 0122 amendment, micro-labels ≥0.75rem); 3–4 column tables, no dense grid.
  • Kit: consumes, mints nothing. Pills, check rows, OcStatusDot and the status-grading constants come from sibling #769's ui-kit:telemetry-primitives; grading stays healthy/warning (no red compiled); the wildcard-first sort, day-count pill and ✓/✗ check rows are the only things adopted from the matou-distributed-servers NetworkPage prototype — all visuals re-encode as --oc-* tokens (ADR 0122).

What stays off-screen (the DDR's projection boundary, restated as a contract)

  • Certificates: harvest/seed mechanics, ACME account, rate-limit budgets.
  • Address: broker internals, record TTLs, the claim secret.
  • Zones: registrar/provider names, tokens, reservedSlugs (the arrangement string itself stays in Settings, DDR 0099 §3 — this surface does not duplicate it, it wears it as the variant).
  • Ports: protocol names, the S10b port board.
  • CA: root key posture and expiry, the device-certificate inventory, mTLS futures.

Testing Decisions

A good test states externally-observable behaviour at a seam and never reaches into implementation detail. All seams pre-existing — this spec adds one read family to the controlapi seam and no new seam class:

  1. The dashboard component seam (the primary one). The network surface and the Services front-door card driven against a hand-written fake of the network read, asserting on the wireframes' data-field / data-action / data-status contract. This is where every object-state is proven: serving, renewal late, unknown, the stated-limit variants (first run / own domain / private path), the worst-grade card pill, read-only-ness (no lever rendered in any state), fault locality, read-gap-never-clears-a-fault, and the routing of every action. Prior art: fleet.test.ts, monitoringStatus.test.ts, surfaceFaultFrame.test.ts, chromeIndicatorsLive.test.ts, dashboardShell.test.ts; the fake's default community is the wireframes' example deployment.
  2. The transport seam. The network route's integration test: the projection returns named states and observed-at times, the deployment shape selects the variant payload structurally, a per-owner read fault degrades that section to unknown while the others serve, a whole-read fault maps to the shared Problem body, and the generated client camelises the new fields. Prior art: fleet_integration_test.go, overview_integration_test.go, settings_integration_test.go.
  3. The owner seams. Unit tests where each verdict is computed: the window classifier (>30 healthy; ≤30 renewal late; ≤14 renewal failing with attempts' evidence — boundaries exact), unknown-aging against a check's cadence with the last-good time preserved, the latest-observation records (heartbeat tick, lease, probe) retaining outcome + timestamp and nothing more, and monitoring's renewal-failing raise riding the existing alert path. Prior art: heartbeat_test.go, prober_test.go, decide_test.go (certpersist), monitor_test.go, silence_test.go.
  4. The chrome seam. The standing-indicator stack gains the cert tenant: supplied while the condition stands, ordered severity-then-age among other tenants, non-dismissible, gone when the read stops returning it. Prior art: chromeIndicatorsLive.test.ts, the P4b-U5x indicator tests.

Two cross-cutting checks ride existing harnesses: the theming contract (every new visual is an --oc-* token; no red/destructive token in any rendered grade) and the callout-vocabulary check (CONTEXT.md's Avoid list: no "SSL", no bare "DNS healthy", "expired" never the first warning, no "Network tab").

Out of Scope

  • Any lever. Renew-now, re-point-now, re-ask-ports, threshold editing — read-only is the v1 ruling, not a deferral; fault actions belong to alerts' advised actions.
  • An own-domain registrar check. No loop reads own-domain DNS (ADR 0136's accepted split); the gap stays named and ungrown. Growing it is a new collection loop — a future ticket, never this surface (DDR 0204 gate 3).
  • The CA's inner life. Root key posture/expiry (rescue's world), the device-certificate inventory (enroll/Fleet's), mTLS futures.
  • New alert machinery or ladders. Renewal failing is one new classification riding the existing P5 path whole; heartbeat and port raise paths stand as ruled. No new notify channels, severities or copy systems.
  • History / time series. Latest observation only; no cert-expiry timeline, no probe history.
  • The public status tier and the prototype's specifics. Caddy-admin/acme-dns collectors, hard-coded host lists, the public tier — the "do not adopt" list stands.
  • The sibling surfaces — logs (#760), replication matrix (#762), activity feed (#763), topology map (#764). #763's placement question is its own DDR's (0206); nothing here pre-empts it.
  • A member-facing tier. The panel is operators-only behind the community door (DDR 0172); P11 inherits that whole.
  • Founding's port board and consent copy. S10b and the protocol vocabulary stay founding's; steady-state routing to the board stays monitoring's call (ADR 0141).

Further Notes

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

  1. monitor:front-door-records — the owners' latest-observation records (heartbeat tick, lease renewal, outside-in probe) plus the window classifier and unknown-aging verdicts. Depends on nothing new.
  2. monitor:cert-renewal-failing — the ≤14d critical classification with attempts' evidence, riding the existing raise path. Depends on 1; reads the shared constants (cross-arc: #769's ui-kit:telemetry-primitives slice is the constants' root).
  3. transport:network-read — the controlapi read family (OpenAPI + handler projecting the three owners + generated client, named states, deployment shape, per-section degradation). Depends on 1.
  4. shell:network-surface — P11-S1 / S1f / S1o / S1p / S1x / S2x as the routed-to surface. Depends on 3 and on #769's ui-kit:telemetry-primitives (pills, OcStatusDot, constants).
  5. shell:front-door-card — the P11-S0 card on Services, including the held p5-s1 wireframe amendment (story 4). Depends on 3 and 4 (the open-network target must exist).
  6. chrome:cert-standing-indicator — the slot-1 tenant, self-clearing, drilling into the surface. Depends on 3 and 4.

Cross-arc note for the fan-in: this spec consumes #769's slice 1 (ui-kit:telemetry-primitives) and mints no primitive of its own; slice 2 here is the second consumer of the shared cert constants (the day-count pill in slice 4 is the first). The activity feed (#763) will likely want slice 1's latest-observation records as event sources — a fan-in edge to check at /slice-map, not a dependency taken here.

A found build-order fact for the slice-map: ADR 0141's portmap seam (the lease + steady-state renewal) has decisions on record but no landed implementation in this repo yet (the outside-in prober and the heartbeat's renew hook exist; a lease record does not). Slice 1's lease record therefore either lands beside the portmap seam's arrival or ships first with the lease line served only where a lease exists — the ports section's probe truth (open / closed / probe-gap) carries the section either way, and story 17's lease line is the only clause gated on it.

The DDR's open gates → the stories their veto touches (ADR 0174 — async veto, none blocking)

DDR 0204 is accepted with three decisions held open for Ben; this spec is written against each proposed default:

  • D1 — the placement ruling (default: tabless surface + front-door card on Services; no seventh tab; Overview untouched; shared with #763/DDR 0206). A reversal to a shared seventh Observability tab would: retire stories 1–4 (the card and its p5-s1 amendment — a tab needs no standing entry) and story 8's "no permanent Overview row" framing (Overview stays untouched either way); rewrite story 5 (routed-to-only becomes tab-mounted, and the "Network tab" vocabulary rule in CONTEXT.md would need re-ruling with it); and relocate unchanged everything else — stories 6–7 and 9–37 (all sections, states, variants, the indicator, the escalation, and the whole seam) survive verbatim under either home, which is why slicing need not wait. Slices 4–6 would re-target the mount point; slices 1–3 are untouched.
  • G2 — indicator immediacy (default: raised the moment the ≤30d window is entered, no grace period). A veto (stand only after the condition survives 24h) modifies story 19's raise timing (and adds one classifier case to slice 1); stories 20–21 and everything else stand.
  • G3 — the own-domain read gap (default: stays named and ungrown). A veto (grow a read-only registrar check) does not change this spec — it spawns a new collection-loop ticket; story 28's stated-limit callout would then be that ticket's to reword. Nothing here retires.

Implementation-time notes

  • The p5-s1 amendment is deliberately in-spec (story 4, slice 5): the design session could not edit p5 artifacts, so DDR 0204 holds the amendment text and this spec carries applying it — the commit that lands the card updates the canonical frame with its ✎, per ADR 0042.
  • The flow's prose names the Overview needs-attention queue as an entry when something stands; the flow draws no Overview edge because nothing new is built there — the needs-attention item rides the existing alert machinery (story 8). design-verify should read that as prose-only, not a missing edge.
  • The prototype (matou-distributed-servers, NetworkPage.vue) contributes exactly three information-design moves — wildcard-first cert sort, the day-count pill, ✓/✗ check rows — nothing visual, no collectors.
  • CONTEXT.md's Network (P11) object-states entry rules the copy: say certificate (never "SSL"), name the record and when it was seen (never bare "DNS healthy"), renewal late / renewal failing before "expired", name the port group (never "port forwarding failed"), and it is never a "Network tab".

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) (the arc was 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 (tabless surface behind a front-door card on Services), what each backend concern surfaces as, the chrome wiring, and the eight grill decisions. - **Flow** `docs/ux/flows/p11-network.mermaid`. - **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. - **Vocabulary** `CONTEXT.md` — *Network (P11) object-states* and the *front-door card* entry (Design nouns), merged with the arc. Backend decisions this surface projects (none re-opened here): community CA (ADR 0111), zones (ADRs 0118/0128), the address heartbeat and its amendment (ADR 0136), portmap (ADRs 0137/0141, DDRs 0140/0175), certificate persistence (ADR 0176). Chrome contract: ADR 0094 (six closed tabs, two chrome slots). Shared thresholds and kit primitives: DDR 0202 / sibling spec #769 (`CERT_WARN_DAYS = 30`, `CERT_BAD_DAYS = 14`, `OcStatusDot`, the grade→token map). Siblings in the same observability arc (each specs separately, then all fan in at one `/slice-map`): #759 device telemetry (specced as #769), #760 logs, #762 replication matrix, #763 activity feed, #764 topology map (deferred). ## Problem Statement The backend is full of front-door machinery — a community CA minted at founding, zone arrangements, an address heartbeat that re-points the community's records when a residential connection drifts, a portmap seam that renews router leases, a certificate store that persists across foundings — and none of it has a surface. The control panel shows exactly two read-only strings in Settings (`apex-domain`, `dns-arrangement`). An operator cannot see that their certificate is renewing, that their name still points home, or that their required ports still answer from outside. The cost is proven, not hypothetical: `maramataka-api`'s certificate had been expired since May before anyone noticed, in August 2026. A certificate approaching expiry is precisely the failure that is invisible right up until members feel it — and the operator this product is built for (low-skill, low-time) will not be running `openssl s_client` to check. The absence also breaks the panel's honesty posture in a second way: when a fact *cannot* be observed (a probe gap, a heartbeat read that stops answering), there is currently nowhere for "we don't know" to be said — and elsewhere the fleet forbids exactly that (absence read as healthy). ## Solution **The front door becomes visible — as a projection, not a lever.** One tabless surface (P11) shows the community's certificates, address & name, and ports, every fact carrying when it was last seen. The surface collects nothing and changes nothing: every section is a read over an owner that already exists, and read-only is a ruling, not a v1 shortcut — renewal and re-pointing are automatic loops, and a fault's action belongs to its alert's advised action (the CONTEXT.md Alert rule: status surfaces are queries, never a second store or a second lever). Three things land: 1. **A front-door card on the Services tab** (P11-S0) — the standing entry, in the exact shape ADR 0101 §4 minted for recovery readiness: a compact card below the services table, one honest state line composed only of queries over the owning truths, opening the network surface. **No seventh tab and no ADR 0094 amendment**: the six tabs stay closed, the card rides the existing Services mount row (monitoring's status truth — the front door is the status truth of how every service is reached), and the surface is routed-to only, like rescue's screens (ADR 0101 §3) and P5-S3. 2. **The network surface** (P11-S1 and its variants) — Certificates (wildcard-first, day-count pill on DDR 0202's shared thresholds), Address & name (the heartbeat's last tick, rendered), Ports (the portmap lease plus the outside-in probe, which is the only truth about openness). Deployment shape picks the variant: first run is never empty (S1f — founding already made the rows), own domain states the manual posture with the one fact IDSS does observe (S1o), the private path names its community-CA-signed door certificate and states its no-public-door shape plainly (S1p). A section a deployment removes is stated, never blanked. 3. **The chrome earns its cert story.** A served certificate inside its warn window (≤30 days, the shared threshold) supplies ADR 0094's standing indicator — evidence-based, non-dismissible, gone the moment renewal lands (P11-S1x). At ≤14 days the state escalates through monitoring as **renewal failing** — a critical alert carrying the renewal attempts' evidence, riding the existing P5 machinery with the network surface as its drill-in. Because the gateway renews automatically at 30 days, a healthy fleet exits the warn window within one probe cadence — in practice the indicator stands only when renewal is genuinely late, which is exactly the maramataka case. Honesty is worn surface-wide: every fact carries observed-at; a fact aged past its cadence degrades to a rendered `? unknown` with the 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). ## User Stories ### A — The front-door card on Services (P11-S0; edge P5-S1 → S0 → S1) 1. As an operator, I want a one-line front-door summary on the Services tab, so that the door's health is in front of me on the tab I already visit. - **Given** the Services tab (P5-S1) at rest, **When** it renders, **Then** a card (`data-field="front-door-card"`) mounts below the services table carrying a mono `FRONT DOOR` label, a state line (`data-field="front-door-state-line"`) and an observed-at hint (`data-field="front-door-observed-at"`, e.g. "checked from outside 4 min ago"). - **Given** the resting state, **Then** the state line wears `data-status="front-door-serving"` (`● serving`) and each clause is a query over the owning truth — certificate days-left (the certificate store), the name pointing home (the heartbeat's tick), required ports answering (the outside-in probe) — **never a shell copy** (ADR 0094 discipline). 2. As an operator, I want the card to tell the truth when something stands, so that "serving" is earned, not decorative. - **Given** any P11 fact in a standing non-healthy state (renewal late, unknown, a raised front-door alert), **When** the card renders, **Then** its pill wears the **worst standing grade** and names the condition — the card never invents a green. - **Given** the shared read has a transport-level fault, **Then** the card renders the shared error posture, never a fabricated state line. 3. As an operator, I want the card to open the network surface, so that the summary has a drill-in. - **Given** the card, **When** the operator activates `data-action="open-network"` (*See network*), **Then** the tabless network surface opens (edge S0 → S1), with the Services tab still the selected tab context the operator returns to. 4. As a maintainer, I want the held p5-s1 wireframe amendment applied with the card's implementation, so that the canonical Services frame and the shipped UI agree. - **Given** the slice that implements the card, **Then** `docs/ux/wireframes/p5-monitoring/p5-s1-fleet-and-services-status.html` gains the front-door card per frame P11-S0 with an ✎ comment citing DDR 0204, in the same commit (the ADR 0042 discipline); `docs/ux/flows/p5-monitoring.mermaid` is untouched — the card is a fragment on the existing S1 screen, not a new monitoring state. ### B — Reaching and leaving the tabless surface (edges S0 → S1, DN → S1x, P5-S2 → S1) 5. As an operator, I want the network surface to be a place I am led to, not an eighth thing in the chrome, so that the panel stays six questions. - **Given** the network surface open, **Then** the tab set renders its unchanged six (ADR 0094 unamended), no standing menu entry for network exists, and the surface is reached only by routing — the front-door card, the standing indicator, and monitoring's alert drill-ins (the ADR 0101 §3 rescue precedent). - **Given** the surface, **Then** its heading is "Network" with the front-door framing line, and the copy never calls it a "Network tab" (CONTEXT.md). 6. As an operator, I want the standing indicator to take me to the evidence, so that the chrome's warning has a home. - **Given** a cert-renewal-late standing indicator in the chrome, **When** the operator activates its *See network* action (`data-action="open-network"`), **Then** the network surface opens in its renewal-late state (edge DN → S1x). 7. As an operator, I want a front-door alert's detail to open the network surface at the faulted row, so that the alert and the evidence are one hop apart. - **Given** a raised front-door alert in monitoring (renewal failing, heartbeat cannot write, a required port group not answering), **When** the operator opens the alert's detail drill-in, **Then** the network surface opens with the faulted row visible (edge P5-S2 → S1). 8. As an operator, I want Overview left alone, so that its deliberate minimalism holds. - **Given** the resting front door, **Then** Overview carries no permanent network row (the ADR 0101 §4 rejection stands); network reaches Overview **only** through the existing machinery when something stands — a needs-attention item and the two chrome slots — with nothing new built for it. ### C — Certificates (P11-S1) 9. As an operator, I want the community's certificates listed, so that expiry is visible before members feel it. - **Given** the resting surface on a public-door deployment, **Then** `data-field="cert-table"` renders columns `CERTIFICATE` / `ISSUER` / `EXPIRES` / `DAYS LEFT`, with the wildcard pinned first (`data-field="cert-wildcard"`, ★-marked, host-count chip) and remaining rows in soonest-expiry order (`data-field="cert-apex"` in the depicted fleet). 10. As an operator, I want days-left graded on the shared thresholds, so that the whole panel speaks one grading language. - **Given** days-left > 30, **Then** the pill grades healthy (`data-status="cert-healthy"`). - **Given** days-left ≤ 30, **Then** the pill grades warning (`data-status="cert-renewal-late"`), under the same `CERT_WARN_DAYS` / `CERT_BAD_DAYS` kit constants sibling spec #769 mints — re-minted nowhere, and **no red token is emitted**: ≤14d escalates through monitoring (story 24), it does not add a third colour here. 11. As an operator, I want the certificate facts to say where they came from and when, so that I can trust them. - **Given** the certificate section, **Then** `data-field="certs-observed-at"` names the source and freshness ("read from the gateway's certificate store · renewal is automatic · checked N min ago") — and the copy says **certificate**, never "SSL" (CONTEXT.md). 12. As an operator whose community re-founded, I want the persisted store's history visible for free, so that persistence is a shown fact, not a mechanism. - **Given** a founding that re-used its persisted certificate store (ADR 0176), **Then** the same rows render with the original obtained date — facts, not ceremony; harvest/seed mechanics, the ACME account and rate-limit budgets stay off-screen. ### D — Address & name (P11-S1) 13. As an operator, I want to see that my community's name points home, so that "the site is up" has an address-shaped answer. - **Given** an idss-subdomain deployment, **Then** `data-field="heartbeat-checks"` renders the heartbeat's last tick as ✓ check rows: `data-field="heartbeat-record"` naming the apex and the observed address (`data-field="heartbeat-observed-address"`) with checked-ago, and `data-field="heartbeat-cert-zone"` stating the certificate zone's glue carries the same address (the ADR 0136 amendment's full record family). - **Given** the copy, **Then** it names the record and when it was seen — never a bare "DNS healthy" (CONTEXT.md). 14. As an operator, I want the loop's own story told in one line, so that I know IDSS is doing this for me. - **Given** the section, **Then** `data-field="heartbeat-last-repoint"` states the cadence ("IDSS keeps this name pointed at your gateway, checked every few minutes") and the last re-point with its plain-words reason ("your connection's address changed") when one has occurred. ### E — Ports (P11-S1) 15. As an operator, I want each port group's state from the outside, so that "open" means answers, not configured. - **Given** the resting surface, **Then** `data-field="port-groups"` renders one row per port group the community's shape exercises — `data-field="port-group-<group>"` with group name, ports, a `REQUIRED` / `INFORMATIONAL` chip, and a state pill from the **outside-in probe**, the only truth about openness (ADR 0141) — a granted lease that doesn't answer from outside is not open. 16. As an operator, I want an informational group's closed state kept calm, so that the surface never wears a warning it hasn't earned. - **Given** an `INFORMATIONAL` group that is closed (the depicted relay), **Then** its pill renders muted (`data-status="port-relay-closed"`, `◌ closed`) with the plain-words reason ("no device has needed the relay yet") — named, never silently green, never warning-graded. - **Given** a group the fleet's current shape does not exercise, **Then** it has no row (DDR 0175 — requiredness follows the community's shape; an unearned row is noise, not honesty). 17. As an operator on a self-hosted gateway, I want the router lease's story in one line, so that I know the grant is being kept alive. - **Given** a household-router deployment, **Then** `data-field="port-lease-line"` states the lease renewal ("router lease renewed N min ago — IDSS renews it for as long as the community lives") and the probe freshness ("probed from outside N min ago"). - **Given** a rented gateway, **Then** the line states that shape instead (`data-status="no-router-lease"`: no household router to manage; the outside-in probe is the truth about what answers) — stated, not omitted. - **Given** any deployment, **Then** protocol names (UPnP/NAT-PMP/PCP) never appear — founding's consent copy owns that vocabulary, and the S10b port board stays a founding surface (a steady-state alert's advised action may route to it, which is monitoring's call per ADR 0141, never a lever here). ### F — Certificate renewal late (P11-S1x; edges S1 → S1x → S1; S1x ⇢ DN) 18. As an operator, I want a late renewal named on the surface before it is an emergency, so that the maramataka failure cannot recur silently. - **Given** a served certificate whose days-left crosses ≤30 while the gateway's automatic renewal has not landed, **Then** the surface's state is *renewal late* (edge S1 → S1x): the row's pill grades warning (`data-status="cert-renewal-late"`) and a diagnosis callout (`data-field="cert-renewal-late-diagnosis"`) states the mechanism and stakes honestly — renewal is automatic and keeps retrying, nothing is broken at the door today, and the ≤14d escalation is named in advance. - **Given** the copy, **Then** "expired" is never the first warning — *renewal late* and *renewal failing* stand before expiry (CONTEXT.md). 19. As an operator, I want the chrome to carry the condition while it stands, so that I see it without visiting any tab. - **Given** *renewal late*, **Then** the surface supplies ADR 0094's standing-indicator slot (`data-field="standing-indicator-stack"` / `data-field="indicator-cert-renewal-late"`): "⚠ Certificate for `<host>` hasn't renewed — N days left. Renewal is automatic and keeps retrying. *See network*" — evidence-based, **non-dismissible**, raised the moment the window is entered (no grace period — DDR 0204's default, gate 2). 20. As an operator, I want the indicator to clear itself, so that there is nothing for me to dismiss. - **Given** *renewal late*, **When** the gateway's automatic renewal lands, **Then** the next read returns days-left above the window, the indicator is gone, and the surface returns to resting (edge S1x → S1) — no operator act anywhere in the loop. 21. As an operator, I want a late renewal to stay a certificate problem, so that one fault never repaints the surface. - **Given** *renewal late*, **Then** the Address & name and Ports sections keep rendering their own current truths (fault locality), and any other certificate outside the window keeps its healthy pill. ### G — Renewal failing: the ≤14d escalation (edge S1x → P5-S2) 22. As an operator, I want a renewal that keeps failing raised at me with evidence, so that I act before the door closes. - **Given** days-left crosses ≤14 (`CERT_BAD_DAYS`) with renewal still not landed, **Then** monitoring raises **renewal failing** as a *critical* alert carrying the renewal attempts' evidence (what the attempts are hitting), riding the existing P5 machinery whole — raised-alert chip, notify, advised action — with the network surface as the drill-in target (edge S1x → P5-S2). 23. As a maintainer, I want severity to stay monitoring's classification, so that no second judge exists. - **Given** the escalation, **Then** the network surface performs no severity classification of its own — its grading stays within the kit's healthy/warning vocabulary (no red compiled, ADR 0122's token split), and the heartbeat-cannot-write and required-port-group faults keep raising through their existing ADR 0136/0141 paths unchanged (edge S1 → P5-S2), with this surface newly available as their drill-in. ### H — Status unknown: the probe gap (P11-S2x; edges S1 → S2x → S1) 24. As an operator, I want a check that can't answer to say "unknown", so that I am never reassured by an old green. - **Given** the outside-in probe or a heartbeat read stops answering and facts age past their cadence, **Then** the surface's state is *unknown* (edge S1 → S2x): `data-field="probe-gap-banner"` (`data-status="unknown"`) names the gap and its duration ("the outside-in check hasn't answered for N minutes — the door may be fine; IDSS shows unknown rather than guessing"), each affected cert pill renders `? unknown` (`data-status="cert-unknown"`), the name row degrades to a `?` check row (`data-status="heartbeat-read-gap"`) and the port rows to `data-status="port-probe-gap"` — every one keeping its **last-good time** visible. - **Given** *unknown*, **Then** no row claims health from memory — a read gap never counts as "still pointing home" and never as "open". 25. As an operator, I want a read gap never to clear a known fault, so that unknown can't launder a warning away. - **Given** a standing fault (e.g. *renewal late*) when the probe gap begins, **Then** the fault's indicator and graded state continue to stand — the gap adds unknowns, it retires nothing (DDR 0096; the ADR 0136 amendment's rule worn surface-wide). 26. As an operator, I want the gap to resolve itself and escalate itself, so that I hold no lever for it. - **Given** *unknown*, **Then** the surface offers **no retry control** — the checks re-run themselves — and a continuing gap is monitoring's to raise through the existing P5 machinery, with this surface as its drill-in. - **Given** the probe answers again, **Then** the next read returns current facts with fresh observed-at and the surface returns to resting (edge S2x → S1). ### I — Deployment shapes: first run, own domain, private path (P11-S1f / S1o / S1p) 27. As a founding operator, I want the surface full on day one, so that "nothing here yet" never appears. - **Given** first run after founding, **Then** the surface renders the rows founding already made (the never-empty rule): the obtained certificate pair with "obtained at founding, today · renewal is automatic from here — nothing for you to do", the pointed name with its observed address, and the web group's ✓ ("answers from outside — the reachability test founding ran") — each already carrying observed-at. - **Given** day one, **Then** mesh and relay rows appear only once the fleet's shape exercises them (story 16's rule, from founding onward). 28. As an own-domain operator, I want the manual posture stated where I'd look for the check, so that the split is accepted honestly on the surface itself (ADR 0136). - **Given** an own-domain deployment, **Then** the Address & name section renders **no ✓ row it cannot earn**: instead an accent callout (`data-field="own-domain-manual-posture"`, `data-status="stated-limit"`) states that the community's DNS lives with the registrar, IDSS doesn't watch or re-point it, and gives the one fact IDSS does observe — the gateway's current address (`data-field="gateway-observed-address"`) — so a registrar visit has something to copy. - **Given** v1, **Then** no "does your registrar's record still match?" check is claimed, because no loop reads it — the gap stays named and ungrown (DDR 0204 gate 3's default). - **Given** the own-domain shape, **Then** the certificate-zone port group renders `REQUIRED` (`data-field="port-group-cert-zone"`) — the own-domain path exercises it (DDR 0175). 29. As a private-path operator, I want my real certificate truth shown, so that "no public door" doesn't read as "no certificates". - **Given** a private-path deployment, **Then** the certificate section renders the door certificate (`data-field="cert-private-door"`) with its issuer named in the operator's language — `data-field="cert-issuer-community-ca"` reads "your community's own CA" (ADR 0111 surfaces as a named issuer, nothing more), state `data-status="cert-community-ca"` ("● serving · trusted by the app's window"), and the hint names founding as the mint — never a vendor noun, and never the CA's root key posture or expiry (crown jewels are rescue's, ADR 0101 §4). 30. As a private-path operator, I want the sections a private deployment removes stated plainly, so that absence reads as design, not damage. - **Given** the private path, **Then** Address & name renders `data-field="private-no-public-name"` and Ports renders `data-field="private-no-public-ports"` (both `data-status="stated-limit"`) — accent callouts stating no public name and no public door, "that's the deployment you chose, working as designed" — stated, never blanked, never warning-graded (the DDR 0155 posture). - **Given** a community that later reopens its access choice (DDR 0142's walk), **Then** the surface simply follows the deployment's new shape — no migration state of its own. ### J — Read-only, and where the judgement lives 31. As an operator, I want the whole surface honestly read-only, so that looking at the door can never change it. - **Given** any P11 frame, **Then** the only actions offered anywhere are navigational (`open-network` and the alert/indicator drill-ins) — no renew-now, re-point-now, re-ask-ports, or threshold control exists; a fault's action lives with its alert's advised action (the CONTEXT.md Alert rule: queries, never a second lever). 32. As a maintainer, I want every verdict computed once, server-side, so that no two surfaces can disagree about the front door. - **Given** the network projection served to the dashboard, **Then** each section carries a **named state** (*serving* / *renewal late* / *renewal failing* / *unknown* / *stated limit*) plus per-fact observed-at times, computed in the control plane; the dashboard renders them verbatim and performs no timestamp comparison, threshold arithmetic or staleness judgement of its own (ADR 0097). - **Given** the front-door card and the surface, **Then** both project the **same read** — one truth, two renderings, never a second fetch path (the DDR 0155 §3 discipline). 33. As a maintainer, I want the windows and cadences system-defined, so that no operator can tune the panel into dishonesty. - **Given** v1, **Then** the cert windows are the shared kit constants (30/14), the unknown-aging bar is derived from each check's own cadence, and none of it is operator-editable anywhere in the panel (ADR 0070's posture). ### K — The read family (the seam, grown not minted) 34. As a maintainer, I want one read family projecting three owners, so that the surface adds no collector class. - **Given** the control plane, **Then** the network read is a new **read family on the existing controlapi seam** (the DDR 0155 `Overview`/`Hints` precedent) projecting the gateway's certificate store (ADR 0176), the heartbeat's tick record (ADR 0136), and the portmap lease + outside-in probe (ADRs 0137/0141) — a thin projection over the owners, re-deriving nothing, no new loop, store or collector class. - **Given** the wire, **Then** it stays snake_case camelised at the client boundary, the OpenAPI spec is the contract with the generated client as transport (ADR 0037), and a whole-read fault maps to the shared Problem body. 35. As a maintainer, I want the deployment shape on the wire, so that variants are structural. - **Given** the read, **Then** it carries the deployment shape (idss subdomain / own domain / private path, and the gateway's rented/self-hosted posture) and per-section *stated-limit* states, so S1o/S1p render from data — the dashboard holds no arrangement-sniffing logic of its own. 36. As a maintainer, I want an owner's read fault to stay local, so that one gap never blanks the surface. - **Given** one owner unreadable (say the probe) while the others answer, **Then** that section serves *unknown* with its last-good time and the other sections serve their current truths — the read degrades per-section, and only a transport-level failure of the read itself falls to the shared async-guard error frame (the #298 fail-loud discipline, as the existing surfaces do). 37. As a maintainer, I want the owners to remember their latest observation, so that the projection has something to project. - **Given** each owner loop (heartbeat tick, lease renewal, outside-in probe), **Then** it retains its **latest observation as a queryable record** — outcome, observed subject (address / lease / answer), and timestamp — latest-only, no history series (the #769 posture), exposed to the projection and to nothing else. ## Implementation Decisions ### Seams — one new read family on the existing controlapi seam; nothing else is minted - **`controlapi.Network`-shaped read family, the DDR 0155 precedent.** One reader interface injected into the handler, faked at the seam in tests like every dashboard read. It projects three owners — certificate store, heartbeat tick record, portmap lease + probe — and computes the named states (windows against the shared constants, unknown-aging against each check's cadence) **once, in the control plane**. Rejected: a dashboard-side judgement (two surfaces could then disagree — ADR 0097), and a new collector service (the surface collects nothing; DDR 0204 grill decision 8). - **Owners grow a queryable latest-observation record; no history.** The heartbeat currently acts and logs; the projection needs its last tick (observed address, outcome, re-point time) readable. Same for the lease renewal and the outside-in probe. Latest-only, per the arc's standing posture. - **The ≤14d escalation is monitoring's rule, reading the shared constants.** *Renewal failing* is a new classification in monitoring (critical, evidence = the renewal attempts' outcomes) riding the existing raise/notify/advised-action machinery — no new alert machinery, no new severity vocabulary. The heartbeat-cannot-write and required-port-group raise paths already exist (ADRs 0136/0141) and only gain this surface as a drill-in target. - **The standing indicator is ADR 0094's slot 1, queried.** The chrome's indicator stack gains the cert-renewal-late tenant as a query over the same network read (the slot contract: evidence is the owner's; shell holds no copy). Self-clearing falls out of being a query — when the read stops returning the condition, the indicator is gone. - **The front-door card is a fragment on the Services surface**, reading the same injected client the network surface reads — one truth, two renderings. Its state line is composed clause-by-clause from the read's named states; the worst standing grade wins the pill. ### Surface - **P11 is a routed-to surface with its own route (`/network`), no tab and no menu entry** — the ADR 0101 §3–§4 shape (rescue screens, recovery readiness). Entered by the card, the indicator, and alert drill-ins; never by chrome. - **Deployment shape picks the variant from the wire**; every removed section renders its stated-limit callout. Sections are never blanked and never hidden. - **Every frame's `data-field` / `data-action` / `data-status` attributes are the built contract**, carried verbatim from the wireframes for `design-verify`. - **Table density**: the `tblw` / check-row / kv vocabulary at product type scale (ADR 0122 amendment, micro-labels ≥0.75rem); 3–4 column tables, no dense grid. - **Kit: consumes, mints nothing.** Pills, check rows, `OcStatusDot` and the status-grading constants come from sibling #769's `ui-kit:telemetry-primitives`; grading stays healthy/warning (no red compiled); the wildcard-first sort, day-count pill and ✓/✗ check rows are the only things adopted from the `matou-distributed-servers` NetworkPage prototype — all visuals re-encode as `--oc-*` tokens (ADR 0122). ### What stays off-screen (the DDR's projection boundary, restated as a contract) - Certificates: harvest/seed mechanics, ACME account, rate-limit budgets. - Address: broker internals, record TTLs, the claim secret. - Zones: registrar/provider names, tokens, `reservedSlugs` (the arrangement string itself stays in Settings, DDR 0099 §3 — this surface does not duplicate it, it wears it as the variant). - Ports: protocol names, the S10b port board. - CA: root key posture and expiry, the device-certificate inventory, mTLS futures. ## Testing Decisions A good test states externally-observable behaviour at a seam and never reaches into implementation detail. All seams pre-existing — this spec adds one read family to the controlapi seam and no new seam class: 1. **The dashboard component seam (the primary one).** The network surface and the Services front-door card driven against a hand-written fake of the network read, asserting on the wireframes' `data-field` / `data-action` / `data-status` contract. This is where every object-state is proven: serving, renewal late, unknown, the stated-limit variants (first run / own domain / private path), the worst-grade card pill, read-only-ness (no lever rendered in any state), fault locality, read-gap-never-clears-a-fault, and the routing of every action. Prior art: `fleet.test.ts`, `monitoringStatus.test.ts`, `surfaceFaultFrame.test.ts`, `chromeIndicatorsLive.test.ts`, `dashboardShell.test.ts`; the fake's default community is the wireframes' example deployment. 2. **The transport seam.** The network route's integration test: the projection returns named states and observed-at times, the deployment shape selects the variant payload structurally, a per-owner read fault degrades that section to *unknown* while the others serve, a whole-read fault maps to the shared Problem body, and the generated client camelises the new fields. Prior art: `fleet_integration_test.go`, `overview_integration_test.go`, `settings_integration_test.go`. 3. **The owner seams.** Unit tests where each verdict is computed: the window classifier (>30 healthy; ≤30 renewal late; ≤14 renewal failing with attempts' evidence — boundaries exact), unknown-aging against a check's cadence with the last-good time preserved, the latest-observation records (heartbeat tick, lease, probe) retaining outcome + timestamp and nothing more, and monitoring's renewal-failing raise riding the existing alert path. Prior art: `heartbeat_test.go`, `prober_test.go`, `decide_test.go` (certpersist), `monitor_test.go`, `silence_test.go`. 4. **The chrome seam.** The standing-indicator stack gains the cert tenant: supplied while the condition stands, ordered severity-then-age among other tenants, non-dismissible, gone when the read stops returning it. Prior art: `chromeIndicatorsLive.test.ts`, the P4b-U5x indicator tests. Two cross-cutting checks ride existing harnesses: the theming contract (every new visual is an `--oc-*` token; **no red/destructive token in any rendered grade**) and the callout-vocabulary check (CONTEXT.md's *Avoid* list: no "SSL", no bare "DNS healthy", "expired" never the first warning, no "Network tab"). ## Out of Scope - **Any lever.** Renew-now, re-point-now, re-ask-ports, threshold editing — read-only is the v1 ruling, not a deferral; fault actions belong to alerts' advised actions. - **An own-domain registrar check.** No loop reads own-domain DNS (ADR 0136's accepted split); the gap stays named and ungrown. Growing it is a new collection loop — a future ticket, never this surface (DDR 0204 gate 3). - **The CA's inner life.** Root key posture/expiry (rescue's world), the device-certificate inventory (enroll/Fleet's), mTLS futures. - **New alert machinery or ladders.** *Renewal failing* is one new classification riding the existing P5 path whole; heartbeat and port raise paths stand as ruled. No new notify channels, severities or copy systems. - **History / time series.** Latest observation only; no cert-expiry timeline, no probe history. - **The public status tier and the prototype's specifics.** Caddy-admin/acme-dns collectors, hard-coded host lists, the public tier — the "do not adopt" list stands. - **The sibling surfaces** — logs (#760), replication matrix (#762), activity feed (#763), topology map (#764). #763's placement question is its own DDR's (0206); nothing here pre-empts it. - **A member-facing tier.** The panel is operators-only behind the community door (DDR 0172); P11 inherits that whole. - **Founding's port board and consent copy.** S10b and the protocol vocabulary stay founding's; steady-state routing to the board stays monitoring's call (ADR 0141). ## Further Notes ### Vertical slices (named for the fan-in `/slice-map`) 1. **`monitor:front-door-records`** — the owners' latest-observation records (heartbeat tick, lease renewal, outside-in probe) plus the window classifier and unknown-aging verdicts. Depends on nothing new. 2. **`monitor:cert-renewal-failing`** — the ≤14d critical classification with attempts' evidence, riding the existing raise path. Depends on 1; reads the shared constants (cross-arc: #769's `ui-kit:telemetry-primitives` slice is the constants' root). 3. **`transport:network-read`** — the controlapi read family (OpenAPI + handler projecting the three owners + generated client, named states, deployment shape, per-section degradation). Depends on 1. 4. **`shell:network-surface`** — P11-S1 / S1f / S1o / S1p / S1x / S2x as the routed-to surface. Depends on 3 and on #769's `ui-kit:telemetry-primitives` (pills, `OcStatusDot`, constants). 5. **`shell:front-door-card`** — the P11-S0 card on Services, including the held p5-s1 wireframe amendment (story 4). Depends on 3 and 4 (the `open-network` target must exist). 6. **`chrome:cert-standing-indicator`** — the slot-1 tenant, self-clearing, drilling into the surface. Depends on 3 and 4. Cross-arc note for the fan-in: this spec **consumes** #769's slice 1 (`ui-kit:telemetry-primitives`) and mints no primitive of its own; slice 2 here is the second consumer of the shared cert constants (the day-count pill in slice 4 is the first). The activity feed (#763) will likely want slice 1's latest-observation records as event sources — a fan-in edge to check at `/slice-map`, not a dependency taken here. **A found build-order fact for the slice-map:** ADR 0141's portmap seam (the lease + steady-state renewal) has decisions on record but **no landed implementation in this repo yet** (the outside-in prober and the heartbeat's renew hook exist; a lease record does not). Slice 1's lease record therefore either lands beside the portmap seam's arrival or ships first with the lease line served only where a lease exists — the ports section's probe truth (`open` / `closed` / `probe-gap`) carries the section either way, and story 17's lease line is the only clause gated on it. ### The DDR's open gates → the stories their veto touches (ADR 0174 — async veto, none blocking) DDR 0204 is `accepted` with three decisions held open for Ben; this spec is written against each proposed default: - **D1 — the placement ruling** (default: tabless surface + front-door card on Services; no seventh tab; Overview untouched; shared with #763/DDR 0206). A reversal to a **shared seventh Observability tab** would: **retire** stories 1–4 (the card and its p5-s1 amendment — a tab needs no standing entry) and story 8's "no permanent Overview row" framing (Overview stays untouched either way); **rewrite** story 5 (routed-to-only becomes tab-mounted, and the "Network tab" vocabulary rule in CONTEXT.md would need re-ruling with it); and **relocate unchanged** everything else — stories 6–7 and 9–37 (all sections, states, variants, the indicator, the escalation, and the whole seam) survive verbatim under either home, which is why slicing need not wait. Slices 4–6 would re-target the mount point; slices 1–3 are untouched. - **G2 — indicator immediacy** (default: raised the moment the ≤30d window is entered, no grace period). A veto (stand only after the condition survives 24h) **modifies story 19's** raise timing (and adds one classifier case to slice 1); stories 20–21 and everything else stand. - **G3 — the own-domain read gap** (default: stays named and ungrown). A veto (grow a read-only registrar check) **does not change this spec** — it spawns a new collection-loop ticket; story 28's stated-limit callout would then be that ticket's to reword. Nothing here retires. ### Implementation-time notes - **The p5-s1 amendment is deliberately in-spec** (story 4, slice 5): the design session could not edit p5 artifacts, so DDR 0204 holds the amendment text and this spec carries applying it — the commit that lands the card updates the canonical frame with its ✎, per ADR 0042. - The flow's prose names the **Overview needs-attention queue** as an entry when something stands; the flow draws no Overview edge because nothing new is built there — the needs-attention item rides the existing alert machinery (story 8). `design-verify` should read that as prose-only, not a missing edge. - The prototype (`matou-distributed-servers`, `NetworkPage.vue`) contributes exactly three information-design moves — wildcard-first cert sort, the day-count pill, ✓/✗ check rows — nothing visual, no collectors. - `CONTEXT.md`'s *Network (P11) object-states* entry rules the copy: say **certificate** (never "SSL"), name the record and when it was seen (never bare "DNS healthy"), *renewal late* / *renewal failing* before "expired", name the port group (never "port forwarding failed"), and it is never a "Network tab". --- *Produced by `/to-spec` in an unattended session under ADR 0174 (two-way-door posture — Ben's veto is asynchronous, never blocking). Advances #761.*
Author
Owner

Withdrawn — race duplicate. The interactive session drafted this in parallel while asleep mid-claim; the session-runner overrode the stale claim (its 05:33Z comment on #761) and published the canonical spec #792, which the slice-map fan-in (#770, commit 44cd080, docs/slices/observability.yaml) and /to-tickets have already consumed. This duplicate is closed in #792's favour. Any materially unique findings from this draft are being transferred to #792 as comments.

**Withdrawn — race duplicate.** The interactive session drafted this in parallel while asleep mid-claim; the session-runner overrode the stale claim (its 05:33Z comment on #761) and published the canonical spec **#792**, which the slice-map fan-in (#770, commit `44cd080`, `docs/slices/observability.yaml`) and `/to-tickets` have already consumed. This duplicate is closed in #792's favour. Any materially unique findings from this draft are being transferred to #792 as comments.
ben closed this issue 2026-08-25 16:20:40 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#837
No description provided.