monitoring: notify-and-drill — plain-language alert, one safe action, drill-in #84
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#84
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 notify and drill-in stretch of an alert's life. When an anomaly crosses a
threshold the operator is notified in the operator app and at the alert
contact, with a plain-language diagnosis and — when one is safe — a single
advised action (P5-S2: "Chat is down… members can't send messages right now"
diagnose the problem but has no fix it is confident is safe for, it says so and
names no advised action (P5-S2x, DDR 0072) — never a fabricated one-click
button (advice never veto, ADR 0015, read as: the system may withhold advice,
not invent it). From a notification or any status item the operator can drill
in (P5-S3) to the service detail: where it runs and its backup, a last-24h
health strip, a curated events timeline, and its current status — with Open
logs and Download logs reachable from every surface (the standing rule,
ADR 0027; curated timeline in front, raw log lines behind the buttons).
This slice introduces the one new outbound port,
Notifier— the onlygenuinely new egress — faked in seam tests (assert what was delivered and its
severity, sending nothing). The notification and status surfaces stay
queries/projections over the standing alerts. Choosing the recommended action
proceeds the flow into a Respond (P5-S4, the next slice); choosing Open
dashboard / drill in opens the device/service detail.
Notes: the
Notifier's concrete delivery channel (email via the community mailservice vs SMS via an external provider) is a human decision carried on the
alert-contact-config slice, not decided here; this slice builds and fakes the
port only.
Acceptance criteria
Blocked by
Task manifest
Done — commit
c0c847con main.What was built (the notify + drill-in stretch, at the
monitorseam, ADR 0069):Notifieroutbound port (internal/monitor/notify.go) — the slice's one new egress, faked in seam tests (delivered content + severity + channel asserted, nothing sent). A NEW raise delivers to both channels —operator-appandalert-contact(P1-S2); a held alert never re-spams,Resumenever re-pages, a resolve-then-re-raise notifies afresh. Concrete channel stays #85's human decision.restart-<svc>, kindrestart-service); choosing it is the P5-S4 Respond hand-off (applying it is respond-ladder's).ServiceDetail(internal/monitor/detail.go) — projection over standing alerts + newly recorded health history: runs-on + backup with backups' own last-good, current status (down 4 min), last-24h strip (pre-observation time isunknown, never green over unwatched time), curated newest-first timeline (crash loops coalesced(3×),nightly backup ✓,yesterday: healthyonly when observed), and theservice/<slug>log handle — Open/Download logs on every surface (ADR 0027).ServiceDetailScreenbuilt to the wireframe contract (placement,last-24-h,events,open-logs/download-logs);ServicesSurfacecomposes both screens + a notification deep-link prop.NotificationScreenrenders P5-S2/S2x to the wireframes' element contract (diagnosis,recommended/no-safe-action, the seam's stabledata-actionid).Evidence: 7 new Go seam tests (
notify_test.go,detail_test.go), 7 dashboard + 4 app Vue tests; fullgo test ./..., dashboard 300/300, app 122/122, builds + eslint green. STATUS.md updated in the same commit.deploy-files' switch stopsidss-control-plane, whose cgroup holds theclanCLI, andswitch-to-configurationdies at 101 before it ever restarts anything #858deploy-files' switch stopsidss-control-plane, whose cgroup holds theclanCLI, andswitch-to-configurationdies at 101 before it ever restarts anything #858