consent: agent enables sshd unit — Ubuntu 24.04 names it ssh, enroll exits 1 #917

Closed
opened 2026-08-28 03:27:21 +00:00 by matou-build-agent · 2 comments

What failed

Leg consent — the only red. From artifacts/verdict.json:

"verdict": "red", "firstRedLeg": "consent",
"legs": { "total": 6, "green": 5, "red": 1, "skip": 0 }

Five legs green through agent-install; the terminal join on the droplet exited 1 at 18:56:39, 11s after the drive started.

Evidence

The fatal line, from artifacts/legs.json (identical in artifacts/consent-transcript.txt and the Playwright error-context.md):

time=2026-08-27T18:56:39.414Z level=ERROR msg="enroll did not complete" component=agent err="join: clan connection up: trust: bring the clan connection (sshd) up over the mesh: systemctl [enable --now sshd]: exit status 1: Failed to enable unit: Unit file sshd.service does not exist."

Consent itself succeeded — everything up to the trust step is clean:

✓ consent recorded — the wipe runs at first deploy
probing: linux · x86_64 · 2 threads · 3 GB memory · 76 GB disk
✓ connection request sent to 
waiting for the operator's decision…

and the operator UI had already taken the node (page snapshot in error-context.md): ✓ node-req-0001 connected. 2 vCPU · 4 GB · 76 GB — meets the gateway minimum.

SSH was already up on that box. logs/droplet-units.txt:

LISTEN 0 4096 0.0.0.0:22 0.0.0.0:* users:(("sshd",pid=1084,fd=3),("systemd",pid=1,fd=148))

logs/droplet-stall.txt:

1084  1 Ss 8160 01:11 do_poll.constprop.0  sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups

and logs/droplet-do-forensics.txt names the image and confirms reachability:

image:   24.04 (LTS) x64
tcp/22: a FRESH connect succeeded — the box answers, whatever ssh did

So the daemon was running under systemd and answering. Only the unit name was wrong: Debian/Ubuntu ship ssh.service; sshd.service exists only as an alias, and systemctl enable --now sshd fails exactly as quoted.

Secondary and non-fatal — before the agent created /run/idss, two relay forwards failed (logs/droplet-journal.txt:1116, :1138):

Aug 27 18:56:32 ... sshd[1437]: error: unix_listener: cannot bind to path /run/idss/enroll-relay.sock: No such file or directory

resolved four seconds later at :1153 — idss-agent[3878]: msg="join socket listening" path=/run/idss/agent.sock. Not the cause.

Suspected layer

Product — the agent's trust step (agent/internal/trust). Not harness: the leg record, screenshot and transcript are all correct and complete. Not infra: systemctl --failed in droplet-units.txt is empty, ping is 0% loss, disk 3% used, and the only DO action on droplet 595687337 is the create.

This is NOT the drive's known frontier — and it is already fixed

The KNOWN own-VPS pairing frontier was never reached. legs.json carries "skip": 0 and no skip reasons at all — the drive died at consent, well before pairing could be exercised. So this red is a distinct, earlier defect.

It is, however, already closed on main. The drive ran at "commit": "e8a0ac6aa6c7607bc0afbbbf2fe62ca2dc57a12b"; the very next commit is:

838d8c44 agent/trust: the clan connection's SSH unit is `ssh` on 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")

git show --stat 838d8c44 → agent/internal/trust/trust.go (+38/-8) and trust_test.go (+26). It names this exact drive (185504Z) and this exact error string.

What plugging it needs

No new product change is indicated. Re-drive at 838d8c44 or later and confirm consent flips green, which should push the frontier forward to the known pairing red.

If a re-drive still reds here, the fallback in trust.Up is not covering the socket-activated case: on Ubuntu 24.04 ssh.service is pulled in by ssh.socket, so enable --now ssh can still be the wrong lever even after the rename fallback. The durable form is the one the State half of that commit already uses — assert something is answering on the mesh rather than asserting a named unit is enabled.

Sources used / absent

No live-box section was appended to this prompt, so this diagnosis is from the harvested logs alone; I did not touch the droplet.

Absent by design or environment, and not used:

  • logs/broker-journal.txt — ssh: connect to host 100.98.48.68 port 22: Connection timed out; the harvest self-documents as off-mesh (ADR 0208, #681) and the verdict does not depend on it.
  • artifacts/journey.json — {"rows": null, "fault": null}: the drive never reached the founding rows.
  • logs/state-logs.log (ENOENT on state/logs), logs/qemu.log (spawn qemu-system-x86_64 ENOENT, matching host.json), and the whole guest-*.log set (Failed to connect to bus: No medium found) — expected empties for a droplet target rather than the local-VM one.

drive 20260827T185504Z red at consent: 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] Ful
evidence: /home/dev/swarm/Matou/idss/test-results/drive-idip/20260827T185504Z on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured

## What failed Leg `consent` — the only red. From `artifacts/verdict.json`: ```json "verdict": "red", "firstRedLeg": "consent", "legs": { "total": 6, "green": 5, "red": 1, "skip": 0 } ``` Five legs green through `agent-install`; the terminal join on the droplet exited 1 at 18:56:39, 11s after the drive started. ## Evidence The fatal line, from `artifacts/legs.json` (identical in `artifacts/consent-transcript.txt` and the Playwright `error-context.md`): ``` time=2026-08-27T18:56:39.414Z level=ERROR msg="enroll did not complete" component=agent err="join: clan connection up: trust: bring the clan connection (sshd) up over the mesh: systemctl [enable --now sshd]: exit status 1: Failed to enable unit: Unit file sshd.service does not exist." ``` Consent itself succeeded — everything up to the trust step is clean: ``` ✓ consent recorded — the wipe runs at first deploy probing: linux · x86_64 · 2 threads · 3 GB memory · 76 GB disk ✓ connection request sent to waiting for the operator's decision… ``` and the operator UI had already taken the node (page snapshot in `error-context.md`): `✓ node-req-0001 connected. 2 vCPU · 4 GB · 76 GB — meets the gateway minimum.` **SSH was already up on that box.** `logs/droplet-units.txt`: ``` LISTEN 0 4096 0.0.0.0:22 0.0.0.0:* users:(("sshd",pid=1084,fd=3),("systemd",pid=1,fd=148)) ``` `logs/droplet-stall.txt`: ``` 1084 1 Ss 8160 01:11 do_poll.constprop.0 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups ``` and `logs/droplet-do-forensics.txt` names the image and confirms reachability: ``` image: 24.04 (LTS) x64 tcp/22: a FRESH connect succeeded — the box answers, whatever ssh did ``` So the daemon was running under systemd and answering. Only the *unit name* was wrong: Debian/Ubuntu ship `ssh.service`; `sshd.service` exists only as an alias, and `systemctl enable --now sshd` fails exactly as quoted. Secondary and non-fatal — before the agent created `/run/idss`, two relay forwards failed (`logs/droplet-journal.txt:1116`, `:1138`): ``` Aug 27 18:56:32 ... sshd[1437]: error: unix_listener: cannot bind to path /run/idss/enroll-relay.sock: No such file or directory ``` resolved four seconds later at `:1153` — `idss-agent[3878]: msg="join socket listening" path=/run/idss/agent.sock`. Not the cause. ## Suspected layer **Product** — the agent's trust step (`agent/internal/trust`). Not harness: the leg record, screenshot and transcript are all correct and complete. Not infra: `systemctl --failed` in `droplet-units.txt` is empty, ping is 0% loss, disk 3% used, and the only DO action on droplet 595687337 is the `create`. ## This is NOT the drive's known frontier — and it is already fixed The KNOWN own-VPS pairing frontier was never reached. `legs.json` carries `"skip": 0` and **no skip reasons at all** — the drive died at `consent`, well before pairing could be exercised. So this red is a distinct, earlier defect. It is, however, already closed on `main`. The drive ran at `"commit": "e8a0ac6aa6c7607bc0afbbbf2fe62ca2dc57a12b"`; the very next commit is: ``` 838d8c44 agent/trust: the clan connection's SSH unit is `ssh` on 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") ``` `git show --stat 838d8c44` → `agent/internal/trust/trust.go` (+38/-8) and `trust_test.go` (+26). It names this exact drive (185504Z) and this exact error string. ## What plugging it needs No new product change is indicated. Re-drive at `838d8c44` or later and confirm `consent` flips green, which should push the frontier forward to the known pairing red. If a re-drive still reds here, the fallback in `trust.Up` is not covering the socket-activated case: on Ubuntu 24.04 `ssh.service` is pulled in by `ssh.socket`, so `enable --now ssh` can still be the wrong lever even after the rename fallback. The durable form is the one the `State` half of that commit already uses — assert *something is answering* on the mesh rather than asserting a named unit is enabled. ## Sources used / absent **No live-box section was appended to this prompt**, so this diagnosis is from the harvested logs alone; I did not touch the droplet. Absent by design or environment, and not used: - `logs/broker-journal.txt` — `ssh: connect to host 100.98.48.68 port 22: Connection timed out`; the harvest self-documents as off-mesh (ADR 0208, #681) and the verdict does not depend on it. - `artifacts/journey.json` — `{"rows": null, "fault": null}`: the drive never reached the founding rows. - `logs/state-logs.log` (ENOENT on `state/logs`), `logs/qemu.log` (`spawn qemu-system-x86_64 ENOENT`, matching `host.json`), and the whole `guest-*.log` set (`Failed to connect to bus: No medium found`) — expected empties for a droplet target rather than the local-VM one. drive `20260827T185504Z` red at `consent`: `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] Ful` evidence: `/home/dev/swarm/Matou/idss/test-results/drive-idip/20260827T185504Z` on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured <!-- rehearsal-sig: 28ff46f6d26f -->
Owner

Ruled by agent under ADR 0174 — closing. This is NOT a consent defect. It is a preflight staleness park that the reporter mis-attributed to the previous drive's leg red.

The executor log for this cycle shows what actually happened:

==> driving (--target idip)
==> preflight
PREFLIGHT: bootstrap-stale: served dcab019c… is 1 agent-commit(s) behind origin/main
           (newest agent-affecting: 6fc7fba1b1a8) — the drive would test stale agent bits
==> RED (exit 3) — reporting (the reporter blocks #788)
reporter: filed 'consent: agent enables `sshd` unit…' (28ff46f6d26f)

The drive never ran. It parked at preflight on exit 3 because #915's fix (6fc7fba1) is agent-affecting and had not been published yet. An exit-3 park writes no run directory, so the reporter fell back to the newest existing one — 20260827T185504Z, from 18:56Z — and re-filed that run's consent red as if it were fresh.

The sshd defect this ticket names is fixed (838d8c44) and is in the served artifact: git merge-base --is-ancestor 838d8c44 dcab019c → YES.

This is the fourth ticket for the same phantom — #912, #913, #916 and now this one — and I closed the first three as duplicates of a fixed defect, which treated the symptom. The generator is the reporter's exit-3 handling, filed separately as a machinery defect.

#600 already specifies the intended behaviour and it is not happening: "On staleness: park loudly, don't drive — exit the preflight with a distinct verdict … so the reporter files/updates ONE staleness ticket instead of a misleading leg-red ticket." A misleading leg-red ticket is exactly what it filed.

No action needed on the underlying staleness either — publish for 6fc7fba1 succeeded (run 28785) and the idss-agent package minted at 03:25:31Z, so idss-reseed.timer advances the served pin on its next 5-minute tick and the next drive runs current bits.

#788 is unblocked by this closure.

**Ruled by agent under ADR 0174 — closing. This is NOT a consent defect. It is a preflight staleness park that the reporter mis-attributed to the previous drive's leg red.** The executor log for this cycle shows what actually happened: ``` ==> driving (--target idip) ==> preflight PREFLIGHT: bootstrap-stale: served dcab019c… is 1 agent-commit(s) behind origin/main (newest agent-affecting: 6fc7fba1b1a8) — the drive would test stale agent bits ==> RED (exit 3) — reporting (the reporter blocks #788) reporter: filed 'consent: agent enables `sshd` unit…' (28ff46f6d26f) ``` The drive **never ran**. It parked at preflight on exit 3 because #915's fix (`6fc7fba1`) is agent-affecting and had not been published yet. An exit-3 park writes **no run directory**, so the reporter fell back to the newest existing one — `20260827T185504Z`, from 18:56Z — and re-filed *that* run's `consent` red as if it were fresh. The sshd defect this ticket names is fixed (`838d8c44`) and is in the served artifact: `git merge-base --is-ancestor 838d8c44 dcab019c` → YES. **This is the fourth ticket for the same phantom** — #912, #913, #916 and now this one — and I closed the first three as duplicates of a fixed defect, which treated the symptom. The generator is the reporter's exit-3 handling, filed separately as a machinery defect. #600 already specifies the intended behaviour and it is not happening: *"On staleness: park loudly, don't drive — exit the preflight with a distinct verdict … so the reporter files/updates ONE staleness ticket instead of a misleading leg-red ticket."* A misleading leg-red ticket is exactly what it filed. **No action needed on the underlying staleness either** — `publish` for `6fc7fba1` succeeded (run 28785) and the `idss-agent` package minted at 03:25:31Z, so `idss-reseed.timer` advances the served pin on its next 5-minute tick and the next drive runs current bits. #788 is unblocked by this closure.
ben closed this issue 2026-08-28 03:30:49 +00:00
Author
Member

This run (swarm 13007) claimed #917 from the ready queue but took no action: the issue is already closed by Ben's ADR-0174 ruling above — this is a phantom ticket (the drive parked at preflight staleness and never ran; the reporter mis-attributed an old run's consent red). The sshd→ssh fix it names is in 838d8c44, confirmed an ancestor of origin/main (git merge-base --is-ancestor 838d8c44 origin/main → yes). No product change is warranted; the reporter's speculative socket-activation "durable form" is unproven (no drive ran) and out of scope for a closed phantom — it will file fresh if a real re-drive ever reds on it. Releasing the claim and clearing the stale agent-working/ready-for-agent labels.

This run (swarm 13007) claimed #917 from the ready queue but took **no action**: the issue is already **closed** by Ben's ADR-0174 ruling above — this is a phantom ticket (the drive parked at preflight staleness and never ran; the reporter mis-attributed an old run's `consent` red). The `sshd`→`ssh` fix it names is in `838d8c44`, confirmed an ancestor of `origin/main` (`git merge-base --is-ancestor 838d8c44 origin/main` → yes). No product change is warranted; the reporter's speculative socket-activation "durable form" is unproven (no drive ran) and out of scope for a closed phantom — it will file fresh if a real re-drive ever reds on it. Releasing the claim and clearing the stale `agent-working`/`ready-for-agent` labels.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#917
No description provided.