control-panel observability child spec: network (P11) — front-door card + certificates, address & ports #837
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#837
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
Program map: #7 — Wayfinder map: OurCloud v1 program scope (Phase 0).
Design ticket: #761 — control-panel observability: network, DNS & certificate visibility (the arc was filed from the 2026-08-24
matou-distributed-serverscomparison rather than charted on the map; the map's v1 scope is what it lands inside).Design tier this spec is written against (all present, all
accepted):docs/adr/0204-design-network-front-door-tabless-surface.md— the ruling DDR: the placement ruling (tabless surface behind a front-door card on Services), what each backend concern surfaces as, the chrome wiring, and the eight grill decisions.docs/ux/flows/p11-network.mermaid.docs/ux/wireframes/p11-network/—p11-s0-front-door-card,p11-s1-network,p11-s1f-first-run,p11-s1o-own-domain,p11-s1p-private-path,p11-s1x-cert-renewal-late,p11-s2x-probe-unknown. Theirdata-field/data-action/data-statusattributes are the stable element-ID contract every acceptance criterion below is written against.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 runningopenssl s_clientto 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:
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.
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.
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
? unknownwith 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)
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.
data-field="front-door-card") mounts below the services table carrying a monoFRONT DOORlabel, 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").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).As an operator, I want the card to tell the truth when something stands, so that "serving" is earned, not decorative.
As an operator, I want the card to open the network surface, so that the summary has a drill-in.
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.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.
docs/ux/wireframes/p5-monitoring/p5-s1-fleet-and-services-status.htmlgains 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.mermaidis 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)
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.
As an operator, I want the standing indicator to take me to the evidence, so that the chrome's warning has a home.
data-action="open-network"), Then the network surface opens in its renewal-late state (edge DN → S1x).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.
As an operator, I want Overview left alone, so that its deliberate minimalism holds.
C — Certificates (P11-S1)
As an operator, I want the community's certificates listed, so that expiry is visible before members feel it.
data-field="cert-table"renders columnsCERTIFICATE/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).As an operator, I want days-left graded on the shared thresholds, so that the whole panel speaks one grading language.
data-status="cert-healthy").data-status="cert-renewal-late"), under the sameCERT_WARN_DAYS/CERT_BAD_DAYSkit 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.As an operator, I want the certificate facts to say where they came from and when, so that I can trust them.
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).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.
D — Address & name (P11-S1)
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.
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, anddata-field="heartbeat-cert-zone"stating the certificate zone's glue carries the same address (the ADR 0136 amendment's full record family).As an operator, I want the loop's own story told in one line, so that I know IDSS is doing this for me.
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)
As an operator, I want each port group's state from the outside, so that "open" means answers, not configured.
data-field="port-groups"renders one row per port group the community's shape exercises —data-field="port-group-<group>"with group name, ports, aREQUIRED/INFORMATIONALchip, 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.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.
INFORMATIONALgroup 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.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.
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").data-status="no-router-lease": no household router to manage; the outside-in probe is the truth about what answers) — stated, not omitted.F — Certificate renewal late (P11-S1x; edges S1 → S1x → S1; S1x ⇢ DN)
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.
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.As an operator, I want the chrome to carry the condition while it stands, so that I see it without visiting any tab.
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).As an operator, I want the indicator to clear itself, so that there is nothing for me to dismiss.
As an operator, I want a late renewal to stay a certificate problem, so that one fault never repaints the surface.
G — Renewal failing: the ≤14d escalation (edge S1x → P5-S2)
As an operator, I want a renewal that keeps failing raised at me with evidence, so that I act before the door closes.
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).As a maintainer, I want severity to stay monitoring's classification, so that no second judge exists.
H — Status unknown: the probe gap (P11-S2x; edges S1 → S2x → S1)
As an operator, I want a check that can't answer to say "unknown", so that I am never reassured by an old green.
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 todata-status="port-probe-gap"— every one keeping its last-good time visible.As an operator, I want a read gap never to clear a known fault, so that unknown can't launder a warning away.
As an operator, I want the gap to resolve itself and escalate itself, so that I hold no lever for it.
I — Deployment shapes: first run, own domain, private path (P11-S1f / S1o / S1p)
As a founding operator, I want the surface full on day one, so that "nothing here yet" never appears.
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).
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.REQUIRED(data-field="port-group-cert-zone") — the own-domain path exercises it (DDR 0175).As a private-path operator, I want my real certificate truth shown, so that "no public door" doesn't read as "no certificates".
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), statedata-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).As a private-path operator, I want the sections a private deployment removes stated plainly, so that absence reads as design, not damage.
data-field="private-no-public-name"and Ports rendersdata-field="private-no-public-ports"(bothdata-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).J — Read-only, and where the judgement lives
As an operator, I want the whole surface honestly read-only, so that looking at the door can never change it.
open-networkand 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).As a maintainer, I want every verdict computed once, server-side, so that no two surfaces can disagree about the front door.
As a maintainer, I want the windows and cadences system-defined, so that no operator can tune the panel into dishonesty.
K — The read family (the seam, grown not minted)
As a maintainer, I want one read family projecting three owners, so that the surface adds no collector class.
Overview/Hintsprecedent) 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.As a maintainer, I want the deployment shape on the wire, so that variants are structural.
As a maintainer, I want an owner's read fault to stay local, so that one gap never blanks the surface.
As a maintainer, I want the owners to remember their latest observation, so that the projection has something to project.
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).Surface
/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.data-field/data-action/data-statusattributes are the built contract, carried verbatim from the wireframes fordesign-verify.tblw/ check-row / kv vocabulary at product type scale (ADR 0122 amendment, micro-labels ≥0.75rem); 3–4 column tables, no dense grid.OcStatusDotand the status-grading constants come from sibling #769'sui-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 thematou-distributed-serversNetworkPage prototype — all visuals re-encode as--oc-*tokens (ADR 0122).What stays off-screen (the DDR's projection boundary, restated as a contract)
reservedSlugs(the arrangement string itself stays in Settings, DDR 0099 §3 — this surface does not duplicate it, it wears it as the variant).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:
data-field/data-action/data-statuscontract. 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.fleet_integration_test.go,overview_integration_test.go,settings_integration_test.go.heartbeat_test.go,prober_test.go,decide_test.go(certpersist),monitor_test.go,silence_test.go.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
Further Notes
Vertical slices (named for the fan-in
/slice-map)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.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'sui-kit:telemetry-primitivesslice is the constants' root).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.shell:network-surface— P11-S1 / S1f / S1o / S1p / S1x / S2x as the routed-to surface. Depends on 3 and on #769'sui-kit:telemetry-primitives(pills,OcStatusDot, constants).shell:front-door-card— the P11-S0 card on Services, including the held p5-s1 wireframe amendment (story 4). Depends on 3 and 4 (theopen-networktarget must exist).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
acceptedwith three decisions held open for Ben; this spec is written against each proposed default:Implementation-time notes
design-verifyshould read that as prose-only, not a missing edge.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-specin an unattended session under ADR 0174 (two-way-door posture — Ben's veto is asynchronous, never blocking). Advances #761.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-ticketshave already consumed. This duplicate is closed in #792's favour. Any materially unique findings from this draft are being transferred to #792 as comments.