backups × monitoring: fault-wiring — backup faults reach the classifier and route back (ADR 0081) #117

Closed
opened 2026-07-26 19:41:04 +00:00 by ben · 1 comment
Owner

Parent

Feature specs: #20 (backups) + #18 (monitoring). Follow-up filed by the 2026-07-26 review sweep (code-review Standards/Spec + design-verify Design axes over 6596977..9e946b7). Blocker: a cross-feature edge fell between two out_of_scope clauses — backups publishes Fault{…} with evidence (internal/backup/run.go:210, stale + gone-target tested) but nothing consumes backup.Faults(); internal/monitor/monitor.go:134-136 and status.go:298 explicitly defer the edge to "backups' side", while #90 defers it to monitoring. The return path is also dead: RespondScreen emits no open-gone-target-*/open-policy-* intents even though backups' onRoute handler is built and tested.

What to build

Monitor consumes backup.Faults(), classifies (stale/gone-target = the severities the flow assigns), and notifies through the standing notifier; RespondScreen's diagnosis emits the routing intents backups already handles. Add this edge explicitly to docs/slices/ (.mermaid + .yaml) so it never falls between clauses again — same commit.

Acceptance criteria

  • Given a backup run that goes stale or loses its target, then the fault appears in monitoring's classification with its evidence, and the notifier fires per severity — flow edges S3x→P5-S2, S1→P5-S2 (stale), S1→P5-S2 (gone) live.
  • Given a backup fault on P5-S2, when I follow the diagnosis, then RespondScreen routes into backups (open-gone-target-/open-policy-) and backups' onRoute lands me on the owning screen.
  • The slice map names this cross-feature edge explicitly.

Blocked by

None — both seams are closed; this is the wiring between them.

Task manifest

task: backups-monitoring:fault-wiring
implements_flow: p5-monitoring
implements_edge: "backup Faults → P5-S2 classify+notify; P5-S2 → backups S2/S2x (diagnosis routing)"
wireframe: docs/ux/wireframes/p5-monitoring/p5-s2-notify.html
interface: "a monitor-side consumer of backup.Faults() (classify + notify) and RespondScreen diagnosis intents wired to backups' onRoute"
seam: "Go test: injected backup fault surfaces classified with evidence and notifies; component test: diagnosis intent routes to the backups surface"
acceptance: "ADR 0081's backup-fault edge is live both directions (see Acceptance criteria above)"
depends_on: []
out_of_scope: [fault detection itself (closed in #90), classifier internals (closed in #80), notifier transport (#85 ruling stands)]
needs_human_decision: []
## Parent Feature specs: #20 (backups) + #18 (monitoring). Follow-up filed by the 2026-07-26 review sweep (code-review Standards/Spec + design-verify Design axes over `6596977..9e946b7`). Blocker: a cross-feature edge fell between two `out_of_scope` clauses — backups publishes `Fault{…}` with evidence (`internal/backup/run.go:210`, stale + gone-target tested) but **nothing consumes `backup.Faults()`**; `internal/monitor/monitor.go:134-136` and `status.go:298` explicitly defer the edge to "backups' side", while #90 defers it to monitoring. The return path is also dead: RespondScreen emits no `open-gone-target-*`/`open-policy-*` intents even though backups' `onRoute` handler is built and tested. ## What to build Monitor consumes `backup.Faults()`, classifies (stale/gone-target = the severities the flow assigns), and notifies through the standing notifier; RespondScreen's diagnosis emits the routing intents backups already handles. **Add this edge explicitly to `docs/slices/`** (`.mermaid` + `.yaml`) so it never falls between clauses again — same commit. ## Acceptance criteria - [ ] Given a backup run that goes stale or loses its target, then the fault appears in monitoring's classification with its evidence, and the notifier fires per severity — flow edges S3x→P5-S2, S1→P5-S2 (stale), S1→P5-S2 (gone) live. - [ ] Given a backup fault on P5-S2, when I follow the diagnosis, then RespondScreen routes into backups (open-gone-target-*/open-policy-*) and backups' onRoute lands me on the owning screen. - [ ] The slice map names this cross-feature edge explicitly. ## Blocked by None — both seams are closed; this is the wiring between them. ## Task manifest ```yaml task: backups-monitoring:fault-wiring implements_flow: p5-monitoring implements_edge: "backup Faults → P5-S2 classify+notify; P5-S2 → backups S2/S2x (diagnosis routing)" wireframe: docs/ux/wireframes/p5-monitoring/p5-s2-notify.html interface: "a monitor-side consumer of backup.Faults() (classify + notify) and RespondScreen diagnosis intents wired to backups' onRoute" seam: "Go test: injected backup fault surfaces classified with evidence and notifies; component test: diagnosis intent routes to the backups surface" acceptance: "ADR 0081's backup-fault edge is live both directions (see Acceptance criteria above)" depends_on: [] out_of_scope: [fault detection itself (closed in #90), classifier internals (closed in #80), notifier transport (#85 ruling stands)] needs_human_decision: [] ```
Author
Owner

Done in 72a9e48 (on origin/main).

The backups→monitoring fault edge is now live both directions (ADR 0081), the edge that had fallen between two out_of_scope clauses.

Go — monitor consumes, classifies, notifies:

  • monitor.BackupsRead gained Faults(); the Tick aggregation loop classifies each published fault by rule — stale / verification / snapshot / run-failed = critical, gone target = warning (critical when it is the last copy, LastCopy) — and notifies through the standing Notifier. Backups set no severity and never deliver.
  • A backup fault carries no manufactured one-click fix (DDR 0072): new originBackup; the notification builds the diagnosis from backups own evidence.
  • RespondView gained Route (RouteIntent); Respond() computes the backups drill-in — open-gone-target-<id> for a gone target, open-policy-<id> otherwise.
  • Seam test TestBackupFaults_ClassifiedNotifiedAndRoutedBack (internal/monitor/monitor_test.go).

Dashboard — the diagnosis routes back into backups:

  • RespondScreen.vue renders a follow-diagnosis affordance from view.route and emits it; ServicesSurface.vue forwards it up as a chrome DrillInIntent, and a serviceless backup fault deep-links to its respond ladder via a new drillInAlert prop.
  • Component test dashboard/tests/unit/monitoringBackupFaultRouting.test.ts (5 tests) drives it end-to-end into BackupsSurface.onRoute (gone-target → P7-S2x, open-policy → P7-S2) — backups onRoute already answered these intents (#90).

Slice map — edge named explicitly: docs/slices/monitoring.yaml slice backups-fault-wiring; monitoring.mermaid + backups.mermaid both draw the edge and its open-policy-* / open-gone-target-* return.

Acceptance:

  • Stale/gone backup fault appears in monitorings classification with its evidence, notifier fires per severity.
  • Following the diagnosis on P5-S2 routes RespondScreen into backups; backups onRoute lands the owning screen.
  • The slice map names this cross-feature edge explicitly.

Verified: full Go suite + go vet clean; 403 dashboard tests + vue-tsc + eslint clean.

Done in `72a9e48` (on `origin/main`). The backups→monitoring fault edge is now live both directions (ADR 0081), the edge that had fallen between two `out_of_scope` clauses. **Go — monitor consumes, classifies, notifies:** - `monitor.BackupsRead` gained `Faults()`; the `Tick` aggregation loop classifies each published fault by rule — stale / verification / snapshot / run-failed = **critical**, gone target = **warning** (critical when it is the last copy, `LastCopy`) — and notifies through the standing `Notifier`. Backups set no severity and never deliver. - A backup fault carries **no** manufactured one-click fix (DDR 0072): new `originBackup`; the notification builds the diagnosis from backups own evidence. - `RespondView` gained `Route` (`RouteIntent`); `Respond()` computes the backups drill-in — `open-gone-target-<id>` for a gone target, `open-policy-<id>` otherwise. - Seam test `TestBackupFaults_ClassifiedNotifiedAndRoutedBack` (`internal/monitor/monitor_test.go`). **Dashboard — the diagnosis routes back into backups:** - `RespondScreen.vue` renders a `follow-diagnosis` affordance from `view.route` and emits it; `ServicesSurface.vue` forwards it up as a chrome `DrillInIntent`, and a serviceless backup fault deep-links to its respond ladder via a new `drillInAlert` prop. - Component test `dashboard/tests/unit/monitoringBackupFaultRouting.test.ts` (5 tests) drives it end-to-end into `BackupsSurface.onRoute` (gone-target → P7-S2x, open-policy → P7-S2) — backups `onRoute` already answered these intents (#90). **Slice map — edge named explicitly:** `docs/slices/monitoring.yaml` slice `backups-fault-wiring`; `monitoring.mermaid` + `backups.mermaid` both draw the edge and its `open-policy-*` / `open-gone-target-*` return. Acceptance: - [x] Stale/gone backup fault appears in monitorings classification with its evidence, notifier fires per severity. - [x] Following the diagnosis on P5-S2 routes RespondScreen into backups; backups `onRoute` lands the owning screen. - [x] The slice map names this cross-feature edge explicitly. Verified: full Go suite + `go vet` clean; 403 dashboard tests + `vue-tsc` + eslint clean.
ben closed this issue 2026-07-26 20:59:00 +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#117
No description provided.