rescue: service-ladder — the advised service rescue ladder with tried/failed memory #96
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#96
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: #21 (rescue).
What to build
When monitoring's respond ladder escalates a downed service it could not fix (P5-S4, or after a fix that did not hold, P5-S4x), the incident arrives in rescue on the service rescue ladder (P8-S1) with its history attached — the incident summary and logs, and any failed-fix evidence carried in rather than discarded. The operator never starts from a blank slate.
The ladder is a stateful rescue object, not a menu (DDR 0088): it shows its rungs in order — restart → redeploy → move to a healthy device → restore the last good snapshot — each with a plain "what this does" line, and it remembers every rung already tried and failed with its timestamp and its own log, so reopening shows the worked ladder, never a fresh menu. Two rungs degrade honestly: a move rung is capacity-checked before it runs (it names the target and states the capacity was checked; a move that cannot be placed is shown as a failed rung with that reason, never an attempted deploy), and the restore rung hands off to backups' restore machinery (P7-S4) naming the dataset and snapshot rather than reinventing restore. A rung that recovers the service audit-logs the action, reports recovered, and resolves the monitoring alert back to watching (P5-S1).
This slice is thin UI over the
rescueorchestrator (control plane, ADR 0086); the surface renders states, it does not decide them. The exhausted-ladder → remote support path (story 9) lands in remote-support-engagement, not here.Acceptance criteria
Blocked by
Task manifest
clanpackage + fake adapter behind DDR 0010Done in
4453d71(onorigin/main).The service rescue ladder (P8-S1) at the
rescueseam (ADR 0086, DDR 0088):Seam (
internal/rescue/serviceladder.go,serviceladder_fakes.go,serviceladder_test.go):ServiceLadders.Escalateimplements monitorRescueIntakefor a service-track alert (edges P5-S4→P8-S1, P5-S4x→P8-S1) — the incident summary, logs, and failed-fix evidence are carried in, never discarded (story 1).ServiceLadder(service)shows the four rungs in order restart → redeploy → move → restore, each with a plain what-this-does line (story 4), and remembers tried/failed with timestamp + note so reopening shows the worked ladder, never a fresh menu (story 5, DDR 0088 §1).clan.Deploy(ADR 0070); Move is capacity-checked before it runs and names its target, an unplaceable move a failed rung with that reason and no attempted deploy (story 6, §2); Restore hands to backups in-place restore machinery (P7-S4) naming dataset + snapshot and issues zero clan ops (story 7, §3).AlertResolverport (story 8, edge S1→P5-S1); a rung that does not hold is a failed rung with the evidence (§6); an exhausted ladder offers remote support with the evidence bundled (§7).Restorer(over backups),AlertResolver(over monitor),AuditSink(+MemoryAuditSink),Revisions.Dashboard:
ServiceRescueSurface+ServiceLadderScreen(P8-S1) to the wireframe element contract, overFakeServiceRescueClientinlib/rescueService.ts; exported fromindex.ts.Tests: 18 Go seam tests + 10 Vue component tests; full Go suite and full dashboard suite (376 tests) green;
vue-tscbuild + eslint clean.Out of scope (untouched): remote-support engagement (story 9), the device ladder (#95), backups restore policy/UI (P7), monitoring detection/escalation (P5).
workflow_runevent here, and all 4 broker-deploy runs in history were manual #874