monitoring: respond-ladder — apply one-click fix, acknowledge, or escalate #87
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#87
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 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
clanoperation (ADR 0070: restart viathe seam's explicit-restart mechanism, re-apply as a
Deployof the currentknown-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
monitororchestrator drivingclanoperations and writing alertstate 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
clanoperation (restart / re-apply the current known-good revision / out-of-band rebalance), inheriting the change-flow discipline, not a bespoke mutation path.Blocked by
Task manifest
Done in
5cf9b16(on main).What was built — the P5-S4 respond rung at the
monitororchestrator seam (internal/monitor/respond.go):clanoperation (ADR 0070, never a bespoke mutation path): restart / re-apply rideClan.Deployof the current known-good exact revision (newRevisionsread) scoped to the faulted node with the explicit restarts engaged; rebalance is the catalogue port's own out-of-bandReconcileOp, offered only where declared. The action is logged (ActionLog), the fleet re-aggregates via the loop's ownTick, 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).PatternTunewrites the device'sExpectedPattern— the stored read #83's silence classifier judges against (DDR 0071's write-back).Escalation: alert, plain-language diagnosis, raise history, device note, log handle) through the newRescueIntakeoutbound port (the shape rescue's ladders hard-depend on); responsibility ends at the hand-off, and a refused hand-off leaves the alert standing.Transitions).RespondScreenships 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 newalertId; 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 indashboard/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.