standing/activation: enroll-activate's switch still holds the lock, deploy exits 11 #1010
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.
Blocks
Reference
Matou/idss#1010
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?
The failure
verdict.json—"verdict": "red","firstRedLeg": "standing","legs": {"total": 17, "green": 15, "red": 2, "skip": 0}, commitd1870664. The two reds are thestandingprefix wrapper and its inneractivationleg, both carrying the same operator text:This is not the KNOWN frontier. The frontier named in the prompt is pairing never flipping, carried by
legs.json's skip reasons. This drive'slegs.jsonhaspairgreen (187 ms) and contains no skipped legs at all ("skip": 0). The red is a new, distinct fault, and it kills the drive inside the standing-community prefix —legs.jsonrecords zero device-add legs, so #183's actual subject (adding a member device) was never exercised. The device droplet stood up for it (596233544,clan-lab-rehearsal-0e3657ad) is still stock Ubuntu with nothing but sshd listening (logs/device-units.txt), which is expected given the journey never reached it.The evidence
The deploy's own transcript, from
logs/founding-state.log(standup.deploy.failure.tail):The box's journal (
logs/gateway-journal.txt) dates the collision exactly:The earlier switch was still running when the deploy tried to take the lock —
logs/gateway-stall.txt(captured 00:37:41, ~23 s after the deploy already failed) still lists both the wrapper and the switch alive,etime3 m 20 s (i.e. started 00:34:21):And it was demonstrably still doing work at the moment of the collision —
gateway-journal.txt:1348startsnsncdat 00:37:18, and:1891hasidss-mesh-self-admit-startbeginning its retry loop at 00:37:28, ten seconds after the deploy had already been declared failed.The leg that left that switch running went green.
logs/founding-state.log(standup.events) carries the two sentences back to back:So the #992 watchdog killed the local CLI and then accepted
/run/current-system == toplevelas proof the switch was done. That symlink is written by the activation script, part-way through the switch — the run itself refutes the inference, since PID 1885 was still starting units three minutes later.pair(187 ms),point(422 ms) anddeploy(26.9 s) then ran straight into the held lock.Suspected layer — product (with a second, smaller product defect on top)
1. The completion signal is false (root cause).
enroll-activatetreats/run/current-systemmatching the built toplevel as "the switch finished". It is necessary but not sufficient; the switch is only done when the remoteclan-switch-<machine>-<id>.serviceunit has exited and the NixOS switch lock is free. This drive's own healer record (logs/healer-claude.out) locates both call sites atinternal/clan/enrollment.go:1181-1188(the post-interrupt completion probe) and:1234-1250(the #992 watchdog), sharingprobeCurrentSystemat:1263-1283— those line numbers are the healer's, not independently re-verified here (repo reads outside the run directory are denied to this session).2. The failure is labelled as the wrong hazard. The deploy frame in
founding-state.logclassifies the fault as an evaluation problem and asserts a cause it did not establish:and the stage line reads
"the node's config does not evaluate"— while three lines earlier the same record has"eval preflight passed"and the tail shows the build succeeding and printing/nix/store/62rvh...-nixos-system-gateway-26.11.20260612.173d0ad. Nothing failed to evaluate; nothing panicked; this was not the self-deploy path (the deploy came in over ssh from the drive host,gateway-journal.txt:1340-1341,Accepted publickey for root from 179.65.135.113). The classifier appears to key on the exit code alone and ignore theCould not acquire lockline immediately above it. This misdirects both the operator and the next healer.3. A harness/diagnostics gap, minor. The drive harvests the offending unit's journal but windows it wrongly:
The unit started at 00:34:21, three minutes before deploy start, so the window that was meant to catch exactly this collision harvested nothing.
What plugging it needs
enroll-activate's "the switch finished" on the remote activation unit being inactive (or the switch lock being free), not on the/run/current-systemsymlink. Both the post-interrupt probe and the #992 watchdog need it — the watchdog must not reap-and-declare-green on the symlink alone.enroll-activateeither waits it out under a named ceiling or reds/blocks naming the in-flight switch. The existingactivateWatchdogGrace/activateCeilingvalues are the reference points.Could not acquire lock+ exit 11 should be classified as a collision (wait for the lock, retry once) rather than asconfig_eval/ a panic. Stop the death-note from asserting GOTCHAS #86 for every non-zero switch exit; have it name the observed exit and the observed stderr.clan-switch-*journal harvest to the whole boot, not "since deploy start", so the colliding unit shows up in the next drive's evidence.Access note
No live-box section was appended to this task, so the box was not queried directly; everything above is from the harvested records. The box was still answering at harvest time (
logs/gateway-do-forensics.txt:tcp/22: a FRESH connect succeeded), and the harvest happens to carry the two things a live box would have been asked for anyway — the process table showing the switch still alive (gateway-stall.txt) and the unit's exit code (gateway-journal.txt:1350). Nothing in this diagnosis depends on a live query.drive
20260830T002134Zred atactivation:the gateway deploy failed — The gateway deploy failed. [There is no old operating system to roll back to — this server was rented fresh for the community, so nothing of yours was overwritten.]evidence:
/home/swarm/swarm/Matou/idss/test-results/drive-device/20260830T002134Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedClosing as a duplicate of #1009 (ADR 0174, session hands). Same drive (
20260830T002134Z), same commit, same mechanism — enroll-activate's completion check (592db82b, #992) reads/run/current-systemand declares the switch finished while it still holds the NixOS switch lock, so the deploy'sswitch-to-configuration bootexits 11. #1009 was filed first and names the defective check; work lands there. #854 stays blocked by #1009 only.