consent — join's systemctl enable --now sshd fails: Ubuntu droplet's unit is ssh #913
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#913
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
artifacts/verdict.json— the drive is red at the last leg it recorded,consent:Every human-facing beat of the consent leg worked — the contribution menu rendered,
1was chosen,WIPEwas typed, consent was recorded, the probe ran, the connection request went out, and the operator side approved it. The join then died bringing the clan connection up.artifacts/consent-transcript.txt:15-20(byte-identical tolegs.json'serrorand to the Playwrighterror-context.md):sshd.serviceis the RHEL/NixOS unit name. The rehearsal droplet is Debian-family, where the unit isssh.service.This is not the drive's known frontier
The KNOWN frontier given for this drive is "pairing never flips — the own-VPS carrier issue named in
legs.json's skip reasons". Two facts in this run directory rule that out:legs.jsoncarries no skip reasons at all. All six records are{leg, status, ms}(pluserroron the red one);verdict.jsonagrees —"skip": 0. There is no skipped leg naming an own-VPS carrier issue.state/enroll.jsonshows the request reaching"status": "approved"with a node grant ("node": "node-req-0001", anode_certserial), andlogs/founding-state.logrecords the operator-side event:"gateway paired and approved as node node-req-0001 — probed 2 vCPU · 4 GB · 76 GB meets the minimum".So this is a new, distinct, device-side red after approval — not the known pairing frontier.
Evidence that the unit name is the whole of it
The droplet is Ubuntu 24.04 —
logs/droplet-do-forensics.txt:The SSH unit it actually has is
ssh—logs/droplet-journal.txt:899,1011,1014:And what the step was trying to achieve was already true.
logs/droplet-units.txt(ss -tlnp, harvested 18:57, a minute after the red):sshd was listening on :22 and was carrying the very session that failed —
logs/droplet-journal.txt:1157:Accepted publickey for root from 134.199.154.244 port 47598, seconds before the error.systemctl --failedinlogs/droplet-units.txtis empty;logs/droplet-do-forensics.txtrecordstcp/22: a FRESH connect succeeded — the box answers, whatever ssh did, ping 0% loss, and the only DO action on the droplet is thecreate(no power_cycle/resize/migration). The agent was healthy right up to the call —logs/droplet-journal.txt:1149,1153:Started idss-agent.service - IDSS agent (ADR 0053)andmsg="join socket listening" component=agent path=/run/idss/agent.sock.Nothing on the box broke. The agent asked for a unit name that this distribution never had.
Suspected layer
Product — the agent's trust / clan-connection step. Not harness (it pasted the rendered install command and drove the real prompts; five legs green), not infra (the box was healthy before, during and after).
The fix appears to have already landed. This run was taken at
e8a0ac6a; the repo's currentmainHEAD is838d8c44, whose subject names this exact drive and this exact error: "agent/trust: the clan connection's SSH unit issshon Debian/Ubuntu — Up falls back from sshd, State reads the unit that answered (#788 drive 185504Z red at consent: 'Unit file sshd.service does not exist')".logs/healer-claude.out, written beside this drive, independently namesagent/internal/trust/trust.go:28as the hard-codedsshd, claims a commit97a46388that resolves the unit against the host (sshdfirst, thenssh) viasystemctl cat <unit>.service, and reportsgo test ./agent/internal/trust/5/5 green. I could not verify either claim — this session is sandboxed to the run directory and was refused read access to the repo source. Treat the file:line, the commit hash and the test result as the healer's claim, corroborated only by the HEAD commit subject.What plugging it needs
mainthat838d8c44is the unit-resolution fix its subject describes, and that it resolves the unit rather than swapping one hard-coded name for another. Ubuntu 24.04 shipsAlias=sshd.serviceinsidessh.service, but the alias is inert while the unit is socket-activated — which is precisely whyenable --now sshdfailed on a box whose sshd was already serving traffic.enableexiting 0.consent— including the own-VPS pairing frontier — remains unexercised on this carrier.Absent / not consulted
170.64.164.98and diagnosed from the harvested logs alone. The forensics show the box still answering at 18:57:21; a livesystemctl cat ssh.servicewould be the last mile of corroboration, butlogs/droplet-journal.txtalready showsssh.servicestarting, which is the same fact.artifacts/journey.jsonis{"rows": null, "fault": null}— the drive never reached the founding rows, as expected for a death atconsent.logs/broker-journal.txtharvested nothing, by design:ssh: connect to host 100.98.48.68 port 22: Connection timed out— off the admin mesh (ADR 0208, #681); the verdict does not depend on it.logs/guest-*.logare empty andlogs/qemu.logshows no qemu process (artifacts/host.json:"qemu": "exit ENOENT: spawn qemu-system-x86_64 ENOENT"). This is the droplet carrier, not the VM path — not a finding.Secondary observation (own ticket; do not fold into this fix)
The same transcript shows the community unnamed on every line that should name it, including the WIPE screen:
Meanwhile
state/founding-state.jsoncarries"name": "E2E Drive", andstate/contains noclan-configdirectory for a late-bound header source to read. Someone consented to having their disk erased without being told whose community they were joining. It did not red the leg, so it will keep shipping silently.logs/healer-claude.outfiled this as a residual withconfident: false— it needs a human ruling on where the pre-deploy name comes from, and is not part of the sshd defect.drive
20260827T185504Zred atconsent:the terminal join exited 1 --- transcript --- Warning: Permanently added '170.64.164.98' (ED25519) to the list of known hosts. idss-agent unknown · joining How should this machine contribute? [1] Fulevidence:
/home/dev/swarm/Matou/idss/test-results/drive-idip/20260827T185504Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedAlready fixed on
mainat838d8c44(agent/internal/trusttriessshdthenssh). Parkedno-triageso no worker re-does it; it stays the blocker untilget.idss.nzserves ≥838d8c44(CI publish → reseed timer) and drive 8 proves it — then it closes. (Closing it earlier makes the reporter re-file for the same red drive: #912 → #913.)sshd.service; the Ubuntu 24.04 droplet hasssh.service#912Claim released — no agent work taken.
Following @ben's ruling above: the unit-name fix already landed on
mainat838d8c44(agent/internal/trust/trust.go—Uptriessshdthen falls back tossh;Statereads the unit that answered), and the issue is parkedno-triageto stay open as the blocker untilget.idss.nzserves ≥838d8c44(CI publish → reseed timer) and drive 8 proves it live. I did not re-implement the fix and did not close it early (closing early re-files the same red drive per the note above).Leaving the label state as Ben curated it (
no-triage, open). The ticket's "point 2 (idempotency)" suggestion is deliberately held for drive-8 empirical proof rather than added speculatively against theno-triagepark; if drive 8 still reds on socket-activatedssh.service, that would be a fresh, evidence-backed ticket.Closing — fixed AND live in the bits the drive fetches. Verified against the served artifact, not just
main.The fix is
838d8c44(agent/internal/trust/trust.go):var sshUnits = []string{"sshd", "ssh"},Uptries them in order and remembers which one answered,Statereads that same unit back viasshUnit(), and it fails loud naming the whole list when none can be enabled.I closed the twin ticket #912 earlier on the reasoning "fixed at HEAD" and that was wrong — the joining device fetches its agent from
get.idss.nz, and at that moment the served release predated the fix. Corrected on #912. So this closure states the check that actually matters:The fix is in the artifact the next drive will run, not merely on
main.Why it took so long to get there is worth recording:
838d8c44's own new test tripped revive'serror-stringsrule (it scripts systemd's verbatim capitalised, full-stopped refusal), which reddenedseam;publishisneeds: seam, so it skipped (runs 27973, 28041); noidss-agentpackage was minted;idss-reseed.timerhad nothing newer to pull; andget.idss.nzsat one agent-commit stale while every drive re-ran the very defect this ticket describes. #914 fixed the lint (dcab019c), seam went green (28052), publish succeeded (28066), the package minted at 20:10:44Z, and the droplet's timer advanced the served pin.The durable lesson, and the one I got wrong first: "fixed on
main" and "fixed in the bits under test" are different claims on this project, and they can diverge for hours. Checkx-idss-releasebefore concluding a drive red is stale-bits or a live defect.#788 is unblocked by this closure and re-fires on the next tick — the first IDIP drive to run all four of the day's fixes (
d53a4de3,3141ddd1,ab538cc9,838d8c44).systemctl enable --now sshdfails: Ubuntu droplet's SSH unit isssh#916sshdunit — Ubuntu 24.04 names itssh, enroll exits 1 #917