monitoring: alert-contact-config — the community alert contact, set in monitoring #85
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.
Depends on
Reference
Matou/idss#85
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 community alert contact (email/phone) that receives alerts alongside the
operator app, so the operator hears about outages even when not in the app.
Founding (P1-S2) captures the initial contact; when an alert is raised it is
delivered to that contact as well as the operator app. The operator can change
the contact, and it is configured in monitoring — not in Settings
(ticket #9). v1 supports exactly one community-level contact.
This is the config surface backing the S1→S2 / S1x→S2 delivery: it is where the
Notifierport's target is set and read. Founding seeds the initial contact asruntime data, not a build edge (slice-map ruling 2026-07-25), so this slice
depends only on the classifier foundation, not on founding.
Notes: no dedicated
alert-contact-configwireframe exists — the config ridesP5-S2's notify surface. If a standalone config screen is wanted, triage flags
needs-design. TheNotifier's concrete delivery channel is an open humandecision (see needs_human_decision): v1 ships one concrete channel — email via
the community mail service, or SMS via an external provider — and the port is
faked in seam tests until that is wired.
Acceptance criteria
Blocked by
Task manifest
Triage: routed
ready-for-humanJudgement call, not a spec gap: the ticket body names its own open decision — "The
Notifier's concrete delivery channel is an open human decision... v1 ships one concrete channel — email via the community mail service, or SMS via an external provider." The config surface, the S1→S2/S1x→S2 delivery behavior, and the one-community-contact scope are all fully specified.What needs deciding: email vs. SMS as the v1
Notifierdelivery channel. This picks a real external dependency (a mail service vs. an SMS provider account) with cost and reliability trade-offs a low-time volunteer operator will live with — not something to infer from the spec.Secondary, non-blocking note: the manifest also flags that no standalone
alert-contact-configwireframe exists — the config currently rides P5-S2's notify surface. That's a design judgement (is a dedicated config screen wanted, or does riding P5-S2 stay the answer?) bundled into the same human review rather than raised as a separateneeds-design, since it's secondary to the channel choice.Human decision: Notifier channel + config surface (resolves
needs_human_decision)Ruled by Ben, 2026-07-25. The ticket moves to
ready-for-agent.1. Notifier delivery channel — email, sent from Matou infrastructure (
notify@mail.matou.nz), for nowThe v1
Notifierdelivers alerts to the community alert contact by email, sent from Matou-operated mail asnotify@mail.matou.nz— not via the community's own self-hosted mail service. This keeps the alert channel independent of the fleet being monitored (an outage of community services can't take the alert path down with it) and avoids self-hosted deliverability problems, without adding a paid SMS provider."For now" is deliberate: this is a v1 interim choice. The
Notifierport stays channel-agnostic — the concrete email sender is one implementation behind it, and SMS or other channels can replace/join it later without touching the config surface built here. Seam tests keep faking the port as specified.2. Config surface — rides P5-S2, no standalone screen
The alert-contact config stays on the P5-S2 notify surface (
docs/ux/wireframes/p5-monitoring/p5-s2-notify.html) as the manifest describes. Noneeds-design; the ticket is buildable against the existing wireframe.Shipped in
6ce32b6(onorigin/main).The community alert contact, set in monitoring. The config surface backing the S1→S2 / S1x→S2 delivery: the single community-level alert contact (email/phone) the
Notifierport delivers to alongside the operator app.Seam (
internal/monitor/, ADR 0069): newContact{Name,Email,Phone}withAlertContact() (Contact, bool)/SetAlertContact(Contact) erroron themonitororchestrator — v1 holds exactly one contact (a set replaces, never appends), and a contact with neither email nor phone is refused (ErrNoContactAddress). The alert-contact delivery is stamped with who it reaches (Notification.Contact); the operator-app channel addresses itself (nil), and both channels still deliver best-effort even when unconfigured. Founding's initial capture (P1-S2) is seeded as runtime data, not a build edge (slice-map 2026-07-25) — no founding import; depends only on #80.UI: the config rides the resting P5-S1 monitoring surface (
AlertContactCard.vue, mounted inServicesSurface.vue) — set IN MONITORING, not in Settings (ticket #9). No standalone config screen; triage flagsneeds-designif one is wanted. Thin UI over the seam viaalertContact()/setAlertContact()onMonitoringClient.Acceptance: story-17 clause 1 (raise reaches the configured contact + operator app) —
contact_test.go::TestAlertContact_DeliveryReachesConfiguredContactAndApp; story-17 clause 2 (set in monitoring, one contact) —TestAlertContact_ReadSetSingleContact+ the component tests indashboard/tests/unit/monitoringAlertContact.test.ts.needs_human_decision — DEFERRED, not resolved: the concrete delivery channel (email via the community mail service vs SMS via an external provider) stays open. The
Contactholds both email and phone; theNotifierport is faked at the seam until a concrete adapter is wired, so building the config surface did not require the choice (mirrors #98's Tier-2 channel). The decision re-surfaces when a real Notifier is implemented.Evidence: 3 seam tests + 6 component tests; full Go suite + dashboard (395) green; gofmt/vet/eslint/vue-tsc clean.