monitoring: status-surface-classifier — always-current fleet status, severity by rule #80
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.
Blocks
Depends on
Reference
Matou/idss#80
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
Feature spec: #18 (monitoring).
What to build
The foundation of monitoring: the always-current status surface (P5-S1) plus
the monitoring-owned classifier and the standing-alert store it projects from.
The control plane continuously aggregates fleet health over the mesh — reading
the
enrollseam's post-enrollmentFleetReporting.Reportheartbeat forliveness and re-running the per-service
HealthCheckprovisioning gates(ADRs 0061/0062) for correctness — and classifies severity by rule: info
(expected, e.g. an intermittent device asleep), warning (degraded
redundancy), critical (a service down, a backup failing). No anomaly is
required to see the truth: every device and every service shows its state now,
with backups' last-good in the same view, and the resting all-healthy fleet is
a first-class shown state rather than a blank or error page.
The classifier is the
monitorcontrol-plane orchestrator (ADR 0069) and thesingle test seam; the P5-S1 surface is a query/projection over the standing
alerts, never a separate store (shaped like the
enrollseam'sRequestView).Severity is computed by rule from per-service health, node liveness, capability
tags (intermittent) and current coverage/HA gaps (ADR 0070) — never authored by
the operator. Because the loop runs server-side, a closed browser misses
nothing and a gateway restart resumes from persisted alert state and the next
tick.
Notes: this slice reads provisioning's per-service health model and its
active / active-service-failed states — a service that failed provisioning's
gate is a standing fault from go-active. Backups' run failures and staleness
later arrive AS STATE into this same classifier (a backups-side edge), so their
faults are never a silent red row. The Services tab mounts this surface as its
resting content (slice-map ruling 2026-07-25); shell reserves a nav-chrome slot
for the standing raised-alert count (ADR 0068), which this classifier supplies.
Acceptance criteria
Blocked by
Task manifest
enrollpackage + in-memory fakeclanpackage + fake adapter behind DDR 0010Done — commit
1e0056con main.The
monitorcontrol-plane orchestrator is born (ADR 0069,internal/monitor/): the continuous aggregate/classify loop over the two confirmed signals (ADR 0070) — theenrollseam'sFleetReporting.Reportheartbeat for liveness (aHeartbeatsread over stored latest reports, arrival-stamped by the control plane's clock) and the per-serviceHealthCheckre-run for correctness (ADRs 0061/0062). Provisioning's per-service health model rides in through itsHandoffsface: a gate-failed service is a standing critical fault from go-active, carried never re-judged, clearing only when provisioning's record clears — monitoring cannot disagree with the coverage-denyingHealthybit.Severity is by rule, never operator-authored: info (intermittent asleep = expected, said on the row), warning (degraded redundancy from the shared fleet-state coverage/HA gaps, raised and resolved as the fleet moves; also the conservative lean for a not-yet-classified silence — DDR 0071, own-pattern judgment and the S1x raise are #83's), critical (a service down, with the port's plain-language summary and the "4 min — see alert" note). P5-S1 is a query/projection over the standing alerts, never a separate store;
StandingAlerts/Resume+ the next tick is the gateway-restart path;Runis the server-side cadence a closed browser misses nothing of. Backups' last-good shows in the same view, and the all-green fleet is a first-class shown state with its own headline.Dashboard:
ServicesSurface(self-refreshing) +FleetServicesStatusScreenmounted as the Services tab's resting content (DN → P5-S1, ADR 0094) to the wireframe's element contract;MonitoringAlertSourcesupplies shell's raised-alert chrome slot.Evidence: 8 Go seam tests (
internal/monitor/monitor_test.go— fake heartbeat source fed through the realFleetReportingface, scriptable per-service checks,fleetstate.Fakewith capability tags + gaps, fake clock) and 8 Vue tests (dashboard/tests/unit/monitoringStatus.test.ts); full Go build/vet/test and full dashboard vitest + vue-tsc + eslint green. All five acceptance criteria exercised at the seam and in the component tests.rehearsal-c.idss.nz+ its wildcard resolve to a droplet DigitalOcean has taken back #758rehearsal-c.idss.nz+ its wildcard resolve to a droplet DigitalOcean has taken back #758rehearsal-cslug with no pre-rent reservation sweep, andoc_standing_teardownbins the claim secret on a red re-found — the name is now permanently wedged (GOTCHAS #80 / #757) #896rehearsal-cslug wedged, device target has no pre-rent sweep #897