enroll-activate: an interrupted activate should ask the box whether the remote switch finished before conceding the block #714
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#714
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?
Follow-up from #713 (GOTCHAS #68), filed rather than done — the ceiling widening it accompanies is the two-way part; this is a behaviour change on the recovery path and deserves its own red-before-green.
What stands today.
verify()(internal/clan/enrollment.go) treats a signal-killedclan machines updateasFailInterruptedand blocks resumable IMMEDIATELY — no retry, no probe. But clan-core wraps the remote activation insystemd-run --pipe --wait --collectprecisely so it survives the invoking ssh session (GOTCHAS #62), so our local SIGKILL does not stop it: the box very often goes on to finish the switch seconds or minutes later, and the drive is already red.This is exactly what drive
20260823T193424Zlooks like: killed at 1200808ms mid-switch, on a box the #713 reproduction shows answering ping/TCP/ssh throughout and completing its switch in 8m08s.What it should do. On
FailInterruptedat the activate, before conceding: knock on the box (it is reachable — that is the whole point) and comparereadlink /run/current-systemagainst the toplevelenroll-buildrecorded (snap.Toplevel). Equal → the remote switch finished after our kill and the node IS a clan member; the stage lands green. Not equal → concede the resumable block as today, but with the box's ACTUAL current system named in the remedy instead of "the node has not come back yet".Why it matters beyond the red. #62 flags the second hazard: a re-drive after a kill fires a SECOND
switch-to-configurationat a box that may still be running the first. A completion probe removes most of those re-drives.Shape: seam-level,
internal/clanonly, testable against the existingenrollCLIdouble (script an interrupted update + a scriptedreadlinkanswer). No droplet needed to prove it; the live confirmation rides the next rented drive.Ruled by agent under ADR 0174 — veto anytime: #713's session scoped this OUT deliberately (one ticket, and the ceiling fix is provable on its own evidence) rather than widening its own blast radius.
Cross-reference from the #743 session (no re-triage, no label change — informational only).
As of 2026-08-24 ~04:30Z this defect is the single blocker of the whole rehearsal drive programme, on both hosts:
deferred) → recurrence #742 (open,agent-blocked) → blocks #720 (rented phase-4 confirmation, elitebook-03).queue [721,722] → driving #721→#721 blocked by 1 open issue(s) — the swarm is pluggingevery 2 minutes since ~00:27Z.So nothing rehearsal-side drives anywhere until this closes. Flagging the changed cost of the
deferredlabel; the ruling on whether to un-defer is not mine to make here.Close report
Landed
a9b132c(pushed via merge42c6988).verify()now, onFailInterruptedalone (never a severed ctx or a connectivity break), with a built toplevel and target on the snapshot, knocks once —probeCurrentSystemreadsreadlink -f /run/current-systemover the box's own ssh door (UnitActive's transport discipline; verdict = last non-empty line, store paths only). Equal tosnap.Toplevel→ the switch finished after our kill and the stage lands green on the box's own evidence. Different → the same resumable block, remedy naming what the box is actually running. Unreachable / no toplevel → today's block, byte-identical. Red-before-green:internal/clan/enroll_activate_interrupted_test.go(4 tests; note: the test file + GOTCHAS #68 amendment physically rode90154b8after a shared-index race — content identical). Un-deferral = Ben's ruling 2026-08-24 after the third live recurrence stalled the whole drive programme./run/current-system, so the deploy'sswitch-to-configuration bootcollides with the still-running switch and exits 11 #1009