monitoring: respond-ladder — apply one-click fix, acknowledge, or escalate #87

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

Parent

Feature spec: #18 (monitoring).

What to build

The respond rung of the ladder (P5-S4): the three ways an operator answers a
raised alert. Apply the advised one-click fix — restart service / re-apply
config / rebalance — each expressed as a clan operation (ADR 0070: restart via
the seam's explicit-restart mechanism, re-apply as a Deploy of the current
known-good exact revision, rebalance as a catalogue service's out-of-band
reconciler op), so it inherits the change-flow discipline rather than a bespoke
mutation path; the action runs, is logged, the fleet re-aggregates, and on
success the alert resolves and monitoring returns to watching (edge P5-S4 →
P5-S1). Acknowledge an expected condition — no fleet change, the alert
closes, watching continues (edge P5-S4 → P5-S1), and the operator may tune the
device's expected pattern so the same silence classifies info next time
(feeding DDR 0071's classifier). Escalate anything bigger than a one-click
fix — monitoring hands off to rescue (edge P5-S4 → P8-S1) and its responsibility
ends at the hand-off. Repeated consequences of an unreliable device surface
with escalating specificity ("your database failed over twice this week because
of this device") — advice, never a veto (ADR 0015); the operator is never
blocked from keeping the device.

This is the monitor orchestrator driving clan operations and writing alert
state transitions (resolve / acknowledge / escalate). It owns the escalation
payload — the incident plus its evidence — which rescue's ladders hard-depend on
(Ben-confirmed edge 2026-07-25). Acknowledge writes back into the
silence-classifier's stored expected pattern.

Acceptance criteria

  • (story 11) Given P5-S4 with an advised fix, When I apply it (restart / re-apply config / rebalance), Then the action runs, is logged, and the fleet re-aggregates; on success the alert resolves and monitoring returns to watching (P5-S4 → P5-S1).
  • (story 11) Given the advised fix, When it runs, Then it is expressed as a clan operation (restart / re-apply the current known-good revision / out-of-band rebalance), inheriting the change-flow discipline, not a bespoke mutation path.
  • (story 12) Given P5-S4 for an expected condition, When I acknowledge it, Then no fleet change is made, the alert closes, and monitoring keeps watching (P5-S4 → P5-S1).
  • (story 12) Given I acknowledge an expected silence, When I choose to, Then I can tune the device's expected pattern so the same silence classifies info next time (feeds DDR 0071's classifier).
  • (story 13) Given P5-S4, When the problem is bigger than a one-click fix, Then I can escalate and monitoring hands off to rescue (P5-S4 → P8-S1); monitoring's responsibility ends at the hand-off.
  • (story 14) Given a device causing repeated faults, When consequences recur, Then they surface with escalating specificity ("your database failed over twice this week because of this device") — advice, never a veto (ADR 0015); the operator is never blocked from keeping the device.

Blocked by

  • #84 — the raised alert + advised action it responds to

Task manifest

task: monitoring:respond-ladder
implements_flow: p5-monitoring
implements_edge: S3→S4, S4→S1, S4→P8-S1 (escalate)
wireframe: docs/ux/wireframes/p5-monitoring/p5-s4-respond.html
interface: monitor orchestrator — apply (issue the advised clan op, log, re-aggregate, resolve), acknowledge (close with optional pattern-tune write-back), escalate (emit the incident+evidence payload to rescue)
seam: "`monitor` control-plane orchestrator seam tests (Go) \u2014 fake clan.Clan (assert the right op is issued and the loop re-aggregates), fake fleet-state, fake clock (\"twice this week\"), fake Notifier"
acceptance:
  - given: P5-S4 with an advised fix
    when: it is applied
    then: the action runs as the correct clan operation, is logged, the fleet re-aggregates, and on success the alert resolves and watching resumes (P5-S4 → P5-S1)
  - given: P5-S4 for an expected condition
    when: the operator acknowledges
    then: no fleet change is made, the alert closes, watching continues, and the device's expected pattern can be tuned (feeds DDR 0071)
  - given: P5-S4 with a problem bigger than a one-click fix
    when: the operator escalates
    then: monitoring hands off to rescue (P5-S4 → P8-S1) with the incident+evidence payload, and its responsibility ends at the hand-off
  - given: a device causing repeated faults
    when: consequences recur
    then: they surface with escalating specificity as advice, never a veto — the operator is never blocked from keeping the device
depends_on: [notify-and-drill]
out_of_scope: [the fix-didn't-hold re-raise (fix-didnt-hold's, S4x), rescue's own break-glass actions (rescue's spec, P8), the raise/notify content itself (notify-and-drill's)]
needs_human_decision: []
## Parent Feature spec: #18 (monitoring). ## What to build The respond rung of the ladder (P5-S4): the three ways an operator answers a raised alert. **Apply** the advised one-click fix — restart service / re-apply config / rebalance — each expressed as a `clan` operation (ADR 0070: restart via the seam's explicit-restart mechanism, re-apply as a `Deploy` of the current known-good exact revision, rebalance as a catalogue service's out-of-band reconciler op), so it inherits the change-flow discipline rather than a bespoke mutation path; the action runs, is logged, the fleet re-aggregates, and on success the alert resolves and monitoring returns to watching (edge P5-S4 → P5-S1). **Acknowledge** an expected condition — no fleet change, the alert closes, watching continues (edge P5-S4 → P5-S1), and the operator may tune the device's expected pattern so the same silence classifies info next time (feeding DDR 0071's classifier). **Escalate** anything bigger than a one-click fix — monitoring hands off to rescue (edge P5-S4 → P8-S1) and its responsibility ends at the hand-off. Repeated consequences of an unreliable device surface with escalating specificity ("your database failed over twice this week because of this device") — advice, never a veto (ADR 0015); the operator is never blocked from keeping the device. This is the `monitor` orchestrator driving `clan` operations and writing alert state transitions (resolve / acknowledge / escalate). It owns the escalation payload — the incident plus its evidence — which rescue's ladders hard-depend on (Ben-confirmed edge 2026-07-25). Acknowledge writes back into the silence-classifier's stored expected pattern. ## Acceptance criteria - [ ] (story 11) Given P5-S4 with an advised fix, When I apply it (restart / re-apply config / rebalance), Then the action runs, is logged, and the fleet re-aggregates; on success the alert resolves and monitoring returns to watching (P5-S4 → P5-S1). - [ ] (story 11) Given the advised fix, When it runs, Then it is expressed as a `clan` operation (restart / re-apply the current known-good revision / out-of-band rebalance), inheriting the change-flow discipline, not a bespoke mutation path. - [ ] (story 12) Given P5-S4 for an expected condition, When I acknowledge it, Then no fleet change is made, the alert closes, and monitoring keeps watching (P5-S4 → P5-S1). - [ ] (story 12) Given I acknowledge an expected silence, When I choose to, Then I can tune the device's expected pattern so the same silence classifies info next time (feeds DDR 0071's classifier). - [ ] (story 13) Given P5-S4, When the problem is bigger than a one-click fix, Then I can escalate and monitoring hands off to rescue (P5-S4 → P8-S1); monitoring's responsibility ends at the hand-off. - [ ] (story 14) Given a device causing repeated faults, When consequences recur, Then they surface with escalating specificity ("your database failed over twice this week because of this device") — advice, never a veto (ADR 0015); the operator is never blocked from keeping the device. ## Blocked by - #84 — the raised alert + advised action it responds to ## Task manifest ```yaml task: monitoring:respond-ladder implements_flow: p5-monitoring implements_edge: S3→S4, S4→S1, S4→P8-S1 (escalate) wireframe: docs/ux/wireframes/p5-monitoring/p5-s4-respond.html interface: monitor orchestrator — apply (issue the advised clan op, log, re-aggregate, resolve), acknowledge (close with optional pattern-tune write-back), escalate (emit the incident+evidence payload to rescue) seam: "`monitor` control-plane orchestrator seam tests (Go) \u2014 fake clan.Clan (assert the right op is issued and the loop re-aggregates), fake fleet-state, fake clock (\"twice this week\"), fake Notifier" acceptance: - given: P5-S4 with an advised fix when: it is applied then: the action runs as the correct clan operation, is logged, the fleet re-aggregates, and on success the alert resolves and watching resumes (P5-S4 → P5-S1) - given: P5-S4 for an expected condition when: the operator acknowledges then: no fleet change is made, the alert closes, watching continues, and the device's expected pattern can be tuned (feeds DDR 0071) - given: P5-S4 with a problem bigger than a one-click fix when: the operator escalates then: monitoring hands off to rescue (P5-S4 → P8-S1) with the incident+evidence payload, and its responsibility ends at the hand-off - given: a device causing repeated faults when: consequences recur then: they surface with escalating specificity as advice, never a veto — the operator is never blocked from keeping the device depends_on: [notify-and-drill] out_of_scope: [the fix-didn't-hold re-raise (fix-didnt-hold's, S4x), rescue's own break-glass actions (rescue's spec, P8), the raise/notify content itself (notify-and-drill's)] needs_human_decision: [] ```
Author
Owner

Done in 5cf9b16 (on main).

What was built — the P5-S4 respond rung at the monitor orchestrator seam (internal/monitor/respond.go):

  • Apply issues the advised fix as the mapped clan operation (ADR 0070, never a bespoke mutation path): restart / re-apply ride Clan.Deploy of the current known-good exact revision (new Revisions read) scoped to the faulted node with the explicit restarts engaged; rebalance is the catalogue port's own out-of-band ReconcileOp, offered only where declared. The action is logged (ActionLog), the fleet re-aggregates via the loop's own Tick, and on success the alert resolves the loop's way (P5-S4 → P5-S1); a fix that did not hold is reported "the alert stands" — never a claimed success (S4x re-raise stays its own slice).
  • Acknowledge closes with no fleet change; the unchanged condition does not re-nag and a fresh occurrence raises anew; the optional PatternTune writes the device's ExpectedPattern — the stored read #83's silence classifier judges against (DDR 0071's write-back).
  • Escalate emits the incident + evidence payload (Escalation: alert, plain-language diagnosis, raise history, device note, log handle) through the new RescueIntake outbound port (the shape rescue's ladders hard-depend on); responsibility ends at the hand-off, and a refused hand-off leaves the alert standing.
  • Alert state transitions raised → resolved | acknowledged | escalated are written (Transitions).
  • Repeated consequences surface with escalating specificity ("your chat failed twice this week because of this device", 7-day fake-clock window) — advice, never a veto (ADR 0015): every rung stays available.
  • Dashboard: RespondScreen ships the P5-S4 wireframe (apply-fix / acknowledge / escalate / tune-pattern / device-note / honest apply-result banner), mounted behind the drill-in via the detail's new alertId; ack returns to watching (S4→S1), escalate is reported upward (S4→P8-S1).

Evidence: 8 new Go seam tests in internal/monitor/respond_test.go (fake clan.Clan asserting the exact op, fake clock, fake Notifier, fake rescue intake); 9 Vue tests in dashboard/tests/unit/monitoringRespond.test.ts. Full go build/vet/test, vue-tsc, vitest (309) and eslint all green. STATUS.md updated in the same commit.

Done in 5cf9b16 (on main). **What was built** — the P5-S4 respond rung at the `monitor` orchestrator seam (`internal/monitor/respond.go`): - **Apply** issues the advised fix as the mapped `clan` operation (ADR 0070, never a bespoke mutation path): restart / re-apply ride `Clan.Deploy` of the current known-good exact revision (new `Revisions` read) scoped to the faulted node with the explicit restarts engaged; rebalance is the catalogue port's own out-of-band `ReconcileOp`, offered only where declared. The action is logged (`ActionLog`), the fleet re-aggregates via the loop's own `Tick`, and on success the alert resolves the loop's way (P5-S4 → P5-S1); a fix that did not hold is reported "the alert stands" — never a claimed success (S4x re-raise stays its own slice). - **Acknowledge** closes with no fleet change; the unchanged condition does not re-nag and a fresh occurrence raises anew; the optional `PatternTune` writes the device's `ExpectedPattern` — the stored read #83's silence classifier judges against (DDR 0071's write-back). - **Escalate** emits the incident + evidence payload (`Escalation`: alert, plain-language diagnosis, raise history, device note, log handle) through the new `RescueIntake` outbound port (the shape rescue's ladders hard-depend on); responsibility ends at the hand-off, and a refused hand-off leaves the alert standing. - Alert state transitions raised → resolved | acknowledged | escalated are written (`Transitions`). - Repeated consequences surface with escalating specificity ("your chat failed twice this week because of this device", 7-day fake-clock window) — advice, never a veto (ADR 0015): every rung stays available. - **Dashboard**: `RespondScreen` ships the P5-S4 wireframe (apply-fix / acknowledge / escalate / tune-pattern / device-note / honest apply-result banner), mounted behind the drill-in via the detail's new `alertId`; ack returns to watching (S4→S1), escalate is reported upward (S4→P8-S1). **Evidence**: 8 new Go seam tests in `internal/monitor/respond_test.go` (fake clan.Clan asserting the exact op, fake clock, fake Notifier, fake rescue intake); 9 Vue tests in `dashboard/tests/unit/monitoringRespond.test.ts`. Full go build/vet/test, vue-tsc, vitest (309) and eslint all green. STATUS.md updated in the same commit.
ben closed this issue 2026-07-25 21:04:28 +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#87
No description provided.