rehearsal drive red at consent #597
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#597
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?
(headless diagnosis unparseable — raw stdout saved to logs/reporter-claude.out)
drive
20260819T202246Zred atconsent:the terminal join exited N --- transcript --- Warning: Permanently added 'N.N.N.N' (EDN) to the list of known hosts. time=N-N-NTN:N:N.NZ level=ERROR msg="enroll did not reach Pending" component=agent err="enrollwire: POST http://enroll-relay/api/vN/enroll/redeem: Post \"http://enroll-relay/api/vN/enroll/redeem\": di Connection to N.N.N.N closed.evidence:
test-results/…/20260819T202246Z/on matou-workstation (legs.json, droplet-journal.txt, trace)Close report — Ruled by agent under ADR 0174 — veto anytime
Root cause found (evidence:
test-results/drive-selfhosted/20260819T202246Zon matou-workstation,logs/droplet-journal.txt+artifacts/legs.json/consent-transcript.txt):/runis tmpfs, wiped on every boot, and nothing ever created/run/ourcloudon a fresh droplet. Three independent binds raced that missing directory:ourcloud-agent.service(agent join) failed its ownagent.socklisten —listen unix /run/ourcloud/agent.sock: bind: no such file or directory— and crash-looped past systemd's restart-burst limit within about a second (Start request repeated too quickly).-Rbind for the #594 relay carrier'senroll-relay.sockfailed the same way (unix_listener: cannot bind to path /run/ourcloud/enroll-relay.sock: No such file or directory) — sshd refuses tomkdira missing parent.agent enroll <code>consent step's dial onto that same relay socket inherited the failure (enrollwire: ... dial unix /run/ourcloud/enroll-relay.sock: connect: no such file or directory) — this is the exact red the drive reported.The systemd unit (
internal/install/install.go'sunitFile()) carries noRuntimeDirectory=, and this gap predates #594 — unchanged since #192 (e3c2f0f). The three prior selfhosted drives on disk (20260815T071449Z,20260819T163919Z,20260819T184900Z) all hit the identical signature, earlier in the sequence (inside the install command itself, before the consent leg existed as a separate step) — this was never a flake.Fix (commit
95c428f, pushed tomain): a newlistenUnixSocket()inagent/cmd/agent/main.go— the one place in the join path that binds first —MkdirAlls the parent directory beforenet.Listen. Onceagent joinis up,/run/ourcloudexists for good (tmpfs persists until reboot, and a reboot re-runsagent joinat boot anyway), so both the relay forwarder's next retry and the lateragent enrolldial find it already there. No systemd-unit or install-script change needed — both already just re-execourcloud-agent join.Proof:
listenUnixSocketdidn't exist), green after:TestListenUnixSocket_CreatesMissingParentDir,TestListenUnixSocket_ClearsStaleSocket(agent/cmd/agent/main_test.go).go test ./agent/... ./internal/fleetwire/... ./internal/install/... ./internal/founding/...(both default and-tags devbuilds),go vet ./...clean.Honest residual — not blocking this ticket, named rather than assumed away: a live re-drive of the actual rehearsal journey needs
get.idss.nz(the founding-time agent bootstrap host, ADR 0054) reseeded with a build past95c428f— it currently serves a pin 7 commits stale as of ticket-filing (75dfba9, predating even #594), independent of this fix. That host has no deploy tooling in this repo and was unreachable from this session (ssh root@get.idss.nztimed out on port 22; no known SSH door). Confirming this exact drive-red signature is gone end-to-end is therefore the standing rehearsal ratchet's job on its next natural re-drive once that pin refreshes, not something this session can force.Ruling: two-way door throughout — a commit (revertible) proven by an existing/new test (ADR 0174 rule 1). No security-posture widening, no credentials, no data destruction, no live-infra mutation. Veto anytime.