join: install writes the pinned agent over the running /usr/local/bin/idss-agent (ETXTBSY) #937
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
Reference
Matou/idss#937
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?
What failed
artifacts/verdict.jsonmarks the drive red at the last leg — 22 green, 1 red, 0 skips:The
joinleg died 2.2s in (artifacts/legs.json), andartifacts/join-transcript.txtcarries the whole failure:The Playwright side agrees —
artifacts/journey.device-device-add--809eb-e-standing-rented-community/error-context.md:ETXTBSY("text file busy") onopen(2)for write has exactly one cause: the kernel refuses to open an inode for writing while some process is executing that same inode. The install one-liner (artifacts/install-command.txt:curl -sSf https://rehearsal-c.idss.nz/get | sh -s -- LSUW-9656-EDFJ-7Q3P-SDAB) lands the agent at/usr/local/bin/idss-agentand runs it; the agent's owninstall agent servicestep then writes the community's pinned binary back to that same path, in place, while executing from it. It cannot succeed.This is NOT the drive's known frontier
The named frontier is that pairing never flips, carried as skip reasons in
legs.jsonfor the own-VPS carrier issue. Neither is present in this run:legs.jsonrecords zero skips and no skip reasons at all, andpairis green in 110 ms, as arepoint,deploy,activationandfounded. The community stood up, pairing flipped, and this drive got a full 22 legs deep before a new fault. Treat this as fresh red, not the frontier.Suspected layer: product
logs/device-do-forensics.txtshows the box healthy and reachable at the moment of failure —3 packets transmitted, 3 received, 0% packet loss,tcp/22: a FRESH connect succeeded — the box answers, whatever ssh did, droplet595848063status: active, and only one DO action ever (thecreate), so no power-cycle or migration underneath.logs/device-stall.txtat 10:45:17 shows an idle, healthy box:load average: 0.00, 0.00, 0.00,/dev/vda1 77G 1.9G 75G 3% /, memory3504available. Nothing was starved, blocked or timed out. Note this fast-fail is itself the new behaviour froma4dfba7(#936, the leg polling the live PTY) — it is what exposed the fault instead of burning the leg ceiling.Corroborating evidence and the incomplete decline teardown
artifacts/decline-transcript.txt(the preceding, greendecline-resumeleg) ends:That claim of self-removal is not borne out on disk. The tail of
logs/device-journal.txt(line 1676) captures/var/lib/idsssix seconds later, still populated:So the decline path leaves device state behind while telling the operator it removed itself — a second, smaller defect worth folding into the same fix. Also worth noting:
grep -i idssover the whole 183 KB device journal returns one hit, that directory listing. Noidss-agentsystemd unit was ever started, stopped or removed on this box — consistent withinstall agent servicefailing before it ever got a unit onto disk.One cosmetic residue, non-blocking:
decline-transcript.txtline 17 reads✓ connection request sent towith an empty community name.Live box
No live-box section was appended to this brief — no access line, no read-only limits, so I did not touch
168.144.170.24and diagnosed from harvested logs alone. That is sufficient here: the failure is a deterministic syscall error quoted verbatim in three independent artifacts, not something needing a live probe. Also absent versus the brief's list: there is nologs/droplet-journal.txt(this drive writeslogs/device-journal.txtandlogs/gateway-journal.txtinstead), and the QEMU-guest logs are all no-ops for this run (logs/guest-failed-units.log:the guest was never created, so there is nothing to ask;logs/state-logs.log:ENOENT ... /test-results/standing-rented/state/logs) — expected, since this drive's device is the DO droplet, not a local guest.What plugging it needs
Make the binary write atomic and never in-place: write to a sibling temp file in the same directory (
/usr/local/bin/.idss-agent.tmp),chmodit, thenrename(2)over the target.renameswaps the directory entry and leaves the old inode alive for the running process, so it never returnsETXTBSY. The write helper behindinstall: write agent binaryis the single site. Then:text file busystring when the fix is reverted.curl -o /usr/local/bin/idss-agentopens in place too, and will hitETXTBSYon any re-run against a box where the agent is already running. Same temp+rename idiom./var/lib/idss/device.keyandssh_host_ed25519_key, or stop claiming it did.Possible duplicate — check before starting.
logs/healer-claude.outin this run directory shows a healer agent already diagnosing this signature and claiming a fix at commit7983c3d1, naminginternal/install/runner.go:30(the in-placeWriteFile),internal/install/install.go:136andinternal/controlapi/installscript.go:41-46, withTestExecRunner_WriteFileReplacesARunningBinaryas the regression test. It also notes the prior drive20260828T081514Zwent red on this same leg and signature but burned its 600s ceiling. I could not verify that commit or those source lines from here — this session's workspace is scoped to the run directory — so confirm7983c3d1actually landed before re-doing the work; if it did, this issue is a re-drive request rather than a fix request.drive
20260828T094908Zred atjoin:the join one-liner exited 1 before reaching the waiting-on-operator frontier --- transcript --- Warning: Permanently added '168.144.170.24' (ED25519) to the list of known hosts. idss: fetching this coevidence:
/home/swarm/swarm/Matou/idss/test-results/drive-device/20260828T094908Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedswarm-claim host=elitebook-distributed-server-03 run=13196
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #937 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope