monitoring: fix-didnt-hold — honest re-raise, never a false success #89

Closed
opened 2026-07-25 04:59:27 +00:00 by ben · 1 comment
Owner

Parent

Feature spec: #18 (monitoring).

What to build

Honest degradation (P5-S4x, DDR 0072). A fix that was applied but did not hold
is reported as a re-raise, never a success: P5-S4x states the re-raise plainly
("Chat restarted — but went down again 2 min later. The advised fix didn't
hold") and never shows a success confirmation. It carries the failed-fix
evidence — what was tried, when, and the outcome — attached to the
re-diagnosis. The re-diagnosis grows more specific, naming the pattern ("crashed
on start 7× this week; restart failed to hold twice today"), and presents
escalate to rescue as the advised next rung, so a fix that keeps failing leads
somewhere instead of looping. When the operator escalates, monitoring hands off
to rescue (edge P5-S4x → P8-S1) with the failed-fix evidence attached, and
monitoring's job ends there.

This is a raised variant on the monitoring-owned alert state machine — a
fix-didn't-hold re-raise that records the attempted fix and the
escalating-specificity re-diagnosis — driven by the monitor orchestrator and
verified at its seam with a fake clock (the "twice today / 7× this week"
specificity is time-dependent).

Acceptance criteria

  • (story 15) Given an advised fix was applied but the fault re-raised, When P5-S4x is shown, Then it states the re-raise plainly and never shows a success confirmation.
  • (story 15) Given a re-raise, When P5-S4x is shown, Then it carries the failed-fix evidence (what was tried, when, and the outcome) attached to the re-diagnosis.
  • (story 16) Given a fix that failed to hold, When monitoring re-diagnoses, Then the diagnosis carries escalating specificity (naming the pattern — "crashed on start 7× this week; restart failed to hold twice today"), and escalate to rescue is presented as the advised next rung.
  • (story 16) Given P5-S4x, When I choose escalate, Then monitoring hands off to rescue (P8) with the failed-fix evidence attached (edge P5-S4x → P8-S1).

Blocked by

  • #87 — the applied fix + escalation payload it re-raises from

Task manifest

task: monitoring:fix-didnt-hold
implements_flow: p5-monitoring
implements_edge: S4→S4x, S4x→P8-S1
wireframe: docs/ux/wireframes/p5-monitoring/p5-s4x-fix-didnt-hold.html
interface: "monitor orchestrator \u2014 the fix-didn't-hold re-raise on the alert state machine: record the attempted fix + outcome, emit an escalating-specificity re-diagnosis, and carry the failed-fix evidence into the rescue hand-off"
seam: "`monitor` control-plane orchestrator seam tests (Go) \u2014 fake clan.Clan (fix applied then fault recurs), fake clock (escalating-specificity counts), fake Notifier (assert re-raise content, never a success)"
acceptance:
  - given: an advised fix was applied but the fault re-raised
    when: P5-S4x is shown
    then: it states the re-raise plainly, never shows a success confirmation, and carries the failed-fix evidence (what was tried, when, outcome)
  - given: a fix that failed to hold
    when: monitoring re-diagnoses
    then: the diagnosis carries escalating specificity naming the pattern, and escalate to rescue is the advised next rung
  - given: P5-S4x
    when: the operator escalates
    then: monitoring hands off to rescue (P5-S4x → P8-S1) with the failed-fix evidence attached
depends_on: [respond-ladder]
out_of_scope: [rescue's own break-glass actions (rescue's spec, P8), the successful-fix resolve path (respond-ladder's), the initial notify content (notify-and-drill's)]
needs_human_decision: []
## Parent Feature spec: #18 (monitoring). ## What to build Honest degradation (P5-S4x, DDR 0072). A fix that was applied but did not hold is reported as a re-raise, never a success: P5-S4x states the re-raise plainly ("Chat restarted — but went down again 2 min later. The advised fix didn't hold") and never shows a success confirmation. It carries the failed-fix evidence — what was tried, when, and the outcome — attached to the re-diagnosis. The re-diagnosis grows more specific, naming the pattern ("crashed on start 7× this week; restart failed to hold twice today"), and presents escalate to rescue as the advised next rung, so a fix that keeps failing leads somewhere instead of looping. When the operator escalates, monitoring hands off to rescue (edge P5-S4x → P8-S1) with the failed-fix evidence attached, and monitoring's job ends there. This is a *raised* variant on the monitoring-owned alert state machine — a fix-didn't-hold re-raise that records the attempted fix and the escalating-specificity re-diagnosis — driven by the `monitor` orchestrator and verified at its seam with a fake clock (the "twice today / 7× this week" specificity is time-dependent). ## Acceptance criteria - [ ] (story 15) Given an advised fix was applied but the fault re-raised, When P5-S4x is shown, Then it states the re-raise plainly and never shows a success confirmation. - [ ] (story 15) Given a re-raise, When P5-S4x is shown, Then it carries the failed-fix evidence (what was tried, when, and the outcome) attached to the re-diagnosis. - [ ] (story 16) Given a fix that failed to hold, When monitoring re-diagnoses, Then the diagnosis carries escalating specificity (naming the pattern — "crashed on start 7× this week; restart failed to hold twice today"), and escalate to rescue is presented as the advised next rung. - [ ] (story 16) Given P5-S4x, When I choose escalate, Then monitoring hands off to rescue (P8) with the failed-fix evidence attached (edge P5-S4x → P8-S1). ## Blocked by - #87 — the applied fix + escalation payload it re-raises from ## Task manifest ```yaml task: monitoring:fix-didnt-hold implements_flow: p5-monitoring implements_edge: S4→S4x, S4x→P8-S1 wireframe: docs/ux/wireframes/p5-monitoring/p5-s4x-fix-didnt-hold.html interface: "monitor orchestrator \u2014 the fix-didn't-hold re-raise on the alert state machine: record the attempted fix + outcome, emit an escalating-specificity re-diagnosis, and carry the failed-fix evidence into the rescue hand-off" seam: "`monitor` control-plane orchestrator seam tests (Go) \u2014 fake clan.Clan (fix applied then fault recurs), fake clock (escalating-specificity counts), fake Notifier (assert re-raise content, never a success)" acceptance: - given: an advised fix was applied but the fault re-raised when: P5-S4x is shown then: it states the re-raise plainly, never shows a success confirmation, and carries the failed-fix evidence (what was tried, when, outcome) - given: a fix that failed to hold when: monitoring re-diagnoses then: the diagnosis carries escalating specificity naming the pattern, and escalate to rescue is the advised next rung - given: P5-S4x when: the operator escalates then: monitoring hands off to rescue (P5-S4x → P8-S1) with the failed-fix evidence attached depends_on: [respond-ladder] out_of_scope: [rescue's own break-glass actions (rescue's spec, P8), the successful-fix resolve path (respond-ladder's), the initial notify content (notify-and-drill's)] needs_human_decision: [] ```
Author
Owner

Done in 858adf0 (on main).

Seam (internal/monitor/reraise.go + wiring in monitor.go/respond.go): an applied fix whose alert resolved is watched for the system-defined FixHoldWindow; a recurrence inside it records the failed FixAttempt (what was tried, when, and the honest outcome — "healthy 14:06 → down 14:08") and flips the standing alert into the fix-didn't-hold state. RespondView.Reraise states the re-raise plainly and never a success confirmation; no one-click fix is re-advised (Apply("") refuses) — escalate is the advised next rung and the ladder's rungs stay appliable (advice never veto, ADR 0015). The re-diagnosis carries escalating specificity on the fake-clock windows ("This keeps happening on rimu. Chat has gone down 7× this week, and a restart has failed to hold twice today…"). Escalating from S4x rides the same RescueIntake hand-off (P5-S4x → P8-S1) with FailedFixes + Rediagnosis attached to the Escalation (additive; rescue's intake unchanged) — monitoring's job ends there. A recurrence past the hold window is honestly a fresh fault, and the S4x state clears with its condition.

Dashboard: FixDidntHoldScreen.vue renders P5-S4x to the wireframe's data-field/data-action contract (reraise, fix-attempted, attempt-action, attempt-outcome, escalating-specificity; escalate advised, reapply-config + open-logs reachable), mounted by ServicesSurface in S4's place whenever the seam's view carries the re-raise; a stale ✓-resolved banner is dropped on re-read.

Evidence: 5 new seam tests in internal/monitor/reraise_test.go (fake clan applies-then-recurs, fake clock drives the hold window and the 7×-this-week / twice-today counts, fake Notifier + rescue intake) and 8 Vue tests in dashboard/tests/unit/monitoringFixDidntHold.test.ts. Full go build/vet/test ./... and dashboard vitest (325) + vue-tsc + eslint green. STATUS.md updated in the same commit.

Done in 858adf0 (on main). **Seam** (`internal/monitor/reraise.go` + wiring in `monitor.go`/`respond.go`): an applied fix whose alert resolved is watched for the system-defined `FixHoldWindow`; a recurrence inside it records the failed `FixAttempt` (what was tried, when, and the honest outcome — "healthy 14:06 → down 14:08") and flips the standing alert into the fix-didn't-hold state. `RespondView.Reraise` states the re-raise plainly and never a success confirmation; no one-click fix is re-advised (`Apply("")` refuses) — escalate is the advised next rung and the ladder's rungs stay appliable (advice never veto, ADR 0015). The re-diagnosis carries escalating specificity on the fake-clock windows ("This keeps happening on rimu. Chat has gone down 7× this week, and a restart has failed to hold twice today…"). Escalating from S4x rides the same `RescueIntake` hand-off (P5-S4x → P8-S1) with `FailedFixes` + `Rediagnosis` attached to the `Escalation` (additive; rescue's intake unchanged) — monitoring's job ends there. A recurrence past the hold window is honestly a fresh fault, and the S4x state clears with its condition. **Dashboard**: `FixDidntHoldScreen.vue` renders P5-S4x to the wireframe's `data-field`/`data-action` contract (`reraise`, `fix-attempted`, `attempt-action`, `attempt-outcome`, `escalating-specificity`; `escalate` advised, `reapply-config` + `open-logs` reachable), mounted by `ServicesSurface` in S4's place whenever the seam's view carries the re-raise; a stale ✓-resolved banner is dropped on re-read. **Evidence**: 5 new seam tests in `internal/monitor/reraise_test.go` (fake clan applies-then-recurs, fake clock drives the hold window and the 7×-this-week / twice-today counts, fake Notifier + rescue intake) and 8 Vue tests in `dashboard/tests/unit/monitoringFixDidntHold.test.ts`. Full `go build/vet/test ./...` and dashboard vitest (325) + vue-tsc + eslint green. STATUS.md updated in the same commit.
ben closed this issue 2026-07-25 21:43:32 +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.

Reference
Matou/idss#89
No description provided.