rescue: device-ladder — the advised device rescue ladder, impact first #95
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#95
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 escalates a degraded device it could not fix (P5-S4), the incident arrives on the device rescue ladder (P8-S2), and the track matches what is actually down. The screen states the impact first, in service terms — which data lost a copy but is still safe, which services are down (e.g. "rimu unreachable 38 min · Files & documents lost a copy, still safe on tōtara · Chat is down") — before offering any advised option.
The ladder climbs wait → rehome → remove, honestly (DDR 0088). Wait holds on the device's own pattern and says why it is the right call (and names when it is not, e.g. "rimu is always-on"). Rehome places the device's services onto healthy nodes P4-style, capacity-checked before anything moves, with the impact reviewed before deploy. Remove never grows a second, scarier removal path: when a removal would drop the last copy of data it hands to provisioning's standing change surface and its LOSES destructive confirm (P4-S3x, ADRs 0060/0063), revoking keys and rotating secrets where warranted (DDR 0088 §4). A device that comes back either rejoins cleanly or re-provisions through provisioning's assess surface (P4-S1). And when the degraded device is the gateway, no dashboard can serve this rescue, so P8-S2 summons the operator app's break-glass surface (P8-S3, ADRs 0086/0087).
Thin UI over the
rescueorchestrator; the exhausted-ladder → remote support path (story 16 offer) lands in remote-support-engagement.Acceptance criteria
Blocked by
Task manifest
clanpackage + fake adapter behind DDR 0010Done in
e1b8111(sandcastle: rescue:device-ladder #95).Seam —
internal/rescue/deviceladder.go(+deviceladder_test.go, 12 tests): therescueorchestrator's device-track face (ADR 0086, DDR 0088).DeviceLadders.Escalateimplements monitoring'sRescueIntake— the P5-S4 hand-off lands, the track matching what is actually down (story 2); re-escalation keeps the worked ladder (never a fresh menu).DeviceLadder()states the impact first, in service terms — "rimu unreachable 38 min", data that lost a copy but is still safe (and where), backup copies that stop counting, services down — before the advised options (story 10).PlanRehomecapacity-checks every placement ("tōtara has capacity — checked") and moves NOTHING — no capacity is a failed rung with the reason, never an attempted deploy;Rehomecommits the placements, one scopedclan.Deploy, each moved service gated on its own portHealthCheckon its NEW node.provisionorchestrator and asserts the LOSES row is provisioning's own wording, confirm = P4-S3x, and rescue issued zero clan operations (never a second removal path, DDR 0088 §4); keys always revoked, secrets rotated where warranted.SummonsBreakGlass+ the honest note — no dashboard can serve this rescue (P8-S3, ADRs 0086/0087).request-remote-supportoffered with the evidence bundled (escalation + worked rungs).UI —
DeviceRescueSurface+DeviceLadderScreen(P8-S2) to the wireframe's element contract (data-field="device-ladder",remove-rung-handoff,data-status="gateway-degraded",data-action="request-remote-support"), impact block before the ladder, plan-review-then-deploy two-step; 8 Vue tests indashboard/tests/unit/rescueDeviceLadder.test.ts.Full suites green (go build/vet/test; vue-tsc, eslint, vitest 317/317). STATUS.md updated in the same commit.
waiting, oldest 23h; ci, healer, triage, resume-asks and broker-deploy are all starved #878