consent — join hard-codes sshd.service; the Ubuntu 24.04 droplet has ssh.service #912

Closed
opened 2026-08-27 19:05:55 +00:00 by matou-build-agent · 4 comments

The failure

Leg 6 (consent) is the drive's first and only red. artifacts/verdict.json:

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

The consent leg itself succeeded on every human-facing beat — the menu rendered, 1 was chosen, WIPE was typed, consent was recorded, the probe ran, the connection request went out. The join then died bringing the clan connection up. From artifacts/consent-transcript.txt:15-19 (identical text in artifacts/legs.json's error and in the Playwright error-context.md):

✓ 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…
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.\n"

The agent shells systemctl enable --now sshd. sshd.service is the RHEL/NixOS unit name. The rehearsal droplet is Debian-family, where the unit is ssh.service.

This is NOT the drive's known frontier. The prompt names "pairing never flips — the own-VPS carrier issue named in legs.json's skip reasons" as the KNOWN red. legs.json carries no skip reasons at all ("skip": 0, six leg records, none with a skip field), and the drive died at leg 6 — one leg before pair (tests/e2e/journey.idip.spec.ts:369). The pairing frontier was never reached. This red is a new, earlier, specific defect.

Evidence that the unit name is the whole of it

The droplet is Ubuntu 24.04. logs/droplet-do-forensics.txt:

=== droplet 595687337 ===
name:    clan-lab-rehearsal-5f4e4804
status:  active
region:  syd1
size:    s-2vcpu-4gb
image:   24.04 (LTS) x64

And the SSH unit it actually has is ssh, not sshd — logs/droplet-journal.txt:899 and :1014:

Aug 27 18:56:16 clan-lab-rehearsal-5f4e4804 systemd[1]: Listening on ssh.socket - OpenBSD Secure Shell server socket.
Aug 27 18:56:18 clan-lab-rehearsal-5f4e4804 systemd[1]: Started ssh.service - OpenBSD Secure Shell server.

The step is also asking for something that was already true. logs/droplet-units.txt (ss -tlnp, harvested at 18:57):

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

sshd is up and listening on :22 — the join itself arrived over it. logs/droplet-do-forensics.txt confirms the box stayed healthy through and after the failure: tcp/22: a FRESH connect succeeded — the box answers, whatever ssh did, ping 0% loss, and the only DO action on the droplet is the create (no power_cycle/resize — nothing infra-side interfered). systemctl --failed in logs/droplet-units.txt is empty. Nothing on the box broke; the agent asked for a unit name that distribution never had.

The agent itself was healthy up to that call — logs/droplet-journal.txt:1149,1153:

Aug 27 18:56:36 systemd[1]: Started idss-agent.service - IDSS agent (ADR 0053).
Aug 27 18:56:36 idss-agent[3878]: ... msg="join socket listening" component=agent path=/run/idss/agent.sock

Suspected layer

Product, in the agent's trust/clan-connection step — not harness, not infra. The harness pasted the verbatim rendered install command and drove the real consent prompts; the box answered correctly throughout; the failure is the agent's own hard-coded unit name meeting a supported target OS.

The repo-side healer that ran beside this drive reached the same place independently — logs/healer-claude.out names agent/internal/trust/trust.go:28 as the hard-coded sshd and reports a landed fix at commit 97a463886a9842f4cfd606e3c8ef313353f741f1 that resolves the unit against the host (sshd first, then ss8h→ssh) via systemctl cat <unit>.service, with go test ./agent/internal/trust/ 5/5 green. I could not verify that file:line or that commit myself — this session is sandboxed to the run directory and cannot read the repo — so treat the path and the fix as the healer's claim, not as confirmed here. The journey was not re-run (the healer says so explicitly: it stands up a paid droplet), so there is no green drive proving the fix on a real Ubuntu box.

What plugging it needs

  1. Confirm 97a4638 is on main and that the unit-resolution probe is what the healer describes (systemctl cat sshd.service → fall back to ssh.service). Prefer resolution over a hard-coded alternative: Ubuntu 24.04 ships Alias=sshd.service in /usr/lib/systemd/system/ssh.service, but the alias is inert while socket-activated, which is exactly why enable --now sshd failed on a box whose sshd was already running.
  2. Make the step idempotent about an already-up carrier — on this run sshd was listening on :22 and serving the very session that failed; "bring the clan connection up" should short-circuit on an already-listening sshd rather than depending on an enable succeeding.
  3. Re-run the #183 rehearsal drive against a fresh 24.04 droplet. Until that happens the fix is unit-tested only, and legs 7-11 (pair onward, including the own-VPS pairing frontier) remain entirely unexercised on this carrier — five legs green out of eleven-plus is not evidence the tail works.

Absent / not consulted

  • No live-box section was appended to this prompt — no access line, no read-only limits, so I did not touch the droplet and diagnosed from the harvested logs alone. The forensics show the box was still answering at 18:57:21; a live check of systemctl cat ssh.service on it would be the last mile of corroboration, but the harvested journal already shows ssh.service starting, which is the same fact.
  • artifacts/journey.json is {"rows": null, "fault": null} — the drive never reached the founding rows, as expected for a leg-6 death.
  • logs/broker-journal.txt harvested 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.
  • All logs/guest-*.log and logs/qemu.log are empty/ENOENT — this is the droplet carrier, not the VM path (artifacts/host.json: "qemu": "exit ENOENT: spawn qemu-system-x86_64 ENOENT"). Not a finding.

Secondary observation (not the red, do not fold into the fix)

The same transcript shows the community is nameless on every line that should name it — including the WIPE consent screen:

idss-agent unknown · joining 
...
✓ connection request sent to 

Meanwhile state/founding-state.json carries "name": "E2E Drive", and state/ contains no clan-config directory for the late-bound header source to read. A person consented to having their disk erased without being told whose community they were joining. This did not red the leg — journey.idip.spec.ts:341 matches only /consent recorded/ and /connection request sent/, both of which match against a blank name — so it will keep shipping silently. It needs its own ticket and a human ruling on where the pre-deploy name comes from; it is not fixable as part of the sshd defect.

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

## The failure Leg 6 (`consent`) is the drive's first and only red. `artifacts/verdict.json`: ```json { "verdict": "red", "firstRedLeg": "consent", "legs": { "total": 6, "green": 5, "red": 1, "skip": 0 }, "commit": "e8a0ac6aa6c7607bc0afbbbf2fe62ca2dc57a12b" } ``` The consent leg itself succeeded on every human-facing beat — the menu rendered, `1` was chosen, `WIPE` was typed, consent was recorded, the probe ran, the connection request went out. The join then died bringing the clan connection up. From `artifacts/consent-transcript.txt:15-19` (identical text in `artifacts/legs.json`'s `error` and in the Playwright `error-context.md`): ``` ✓ 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… 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.\n" ``` The agent shells `systemctl enable --now sshd`. `sshd.service` is the RHEL/NixOS unit name. The rehearsal droplet is Debian-family, where the unit is `ssh.service`. **This is NOT the drive's known frontier.** The prompt names "pairing never flips — the own-VPS carrier issue named in legs.json's skip reasons" as the KNOWN red. `legs.json` carries **no skip reasons at all** (`"skip": 0`, six leg records, none with a skip field), and the drive died at leg 6 — one leg *before* `pair` (`tests/e2e/journey.idip.spec.ts:369`). The pairing frontier was never reached. This red is a new, earlier, specific defect. ## Evidence that the unit name is the whole of it The droplet is Ubuntu 24.04. `logs/droplet-do-forensics.txt`: ``` === droplet 595687337 === name: clan-lab-rehearsal-5f4e4804 status: active region: syd1 size: s-2vcpu-4gb image: 24.04 (LTS) x64 ``` And the SSH unit it actually has is `ssh`, not `sshd` — `logs/droplet-journal.txt:899` and `:1014`: ``` Aug 27 18:56:16 clan-lab-rehearsal-5f4e4804 systemd[1]: Listening on ssh.socket - OpenBSD Secure Shell server socket. Aug 27 18:56:18 clan-lab-rehearsal-5f4e4804 systemd[1]: Started ssh.service - OpenBSD Secure Shell server. ``` The step is also asking for something that was **already true**. `logs/droplet-units.txt` (`ss -tlnp`, harvested at 18:57): ``` LISTEN 0 4096 0.0.0.0:22 0.0.0.0:* users:(("sshd",pid=1084,fd=3),("systemd",pid=1,fd=148)) LISTEN 0 4096 [::]:22 [::]:* users:(("sshd",pid=1084,fd=4),("systemd",pid=1,fd=149)) ``` sshd is up and listening on :22 — the join itself arrived over it. `logs/droplet-do-forensics.txt` confirms the box stayed healthy through and after the failure: `tcp/22: a FRESH connect succeeded — the box answers, whatever ssh did`, ping 0% loss, and the only DO action on the droplet is the `create` (no power_cycle/resize — nothing infra-side interfered). `systemctl --failed` in `logs/droplet-units.txt` is **empty**. Nothing on the box broke; the agent asked for a unit name that distribution never had. The agent itself was healthy up to that call — `logs/droplet-journal.txt:1149,1153`: ``` Aug 27 18:56:36 systemd[1]: Started idss-agent.service - IDSS agent (ADR 0053). Aug 27 18:56:36 idss-agent[3878]: ... msg="join socket listening" component=agent path=/run/idss/agent.sock ``` ## Suspected layer **Product**, in the agent's trust/clan-connection step — not harness, not infra. The harness pasted the verbatim rendered install command and drove the real consent prompts; the box answered correctly throughout; the failure is the agent's own hard-coded unit name meeting a supported target OS. The repo-side healer that ran beside this drive reached the same place independently — `logs/healer-claude.out` names `agent/internal/trust/trust.go:28` as the hard-coded `sshd` and reports a landed fix at commit `97a463886a9842f4cfd606e3c8ef313353f741f1` that resolves the unit against the host (`sshd` first, then `ss8h`→`ssh`) via `systemctl cat <unit>.service`, with `go test ./agent/internal/trust/` 5/5 green. I could not verify that file:line or that commit myself — this session is sandboxed to the run directory and cannot read the repo — so treat the path and the fix as the healer's claim, not as confirmed here. **The journey was not re-run** (the healer says so explicitly: it stands up a paid droplet), so there is no green drive proving the fix on a real Ubuntu box. ## What plugging it needs 1. Confirm `97a4638` is on `main` and that the unit-resolution probe is what the healer describes (`systemctl cat sshd.service` → fall back to `ssh.service`). Prefer resolution over a hard-coded alternative: Ubuntu 24.04 ships `Alias=sshd.service` in `/usr/lib/systemd/system/ssh.service`, but the alias is inert while socket-activated, which is exactly why `enable --now sshd` failed on a box whose sshd was already running. 2. Make the step idempotent about an already-up carrier — on this run sshd was listening on :22 and serving the very session that failed; "bring the clan connection up" should short-circuit on an already-listening sshd rather than depending on an `enable` succeeding. 3. Re-run the #183 rehearsal drive against a fresh 24.04 droplet. Until that happens the fix is unit-tested only, and legs 7-11 (`pair` onward, including the own-VPS pairing frontier) remain entirely unexercised on this carrier — five legs green out of eleven-plus is not evidence the tail works. ## Absent / not consulted - **No live-box section was appended to this prompt** — no access line, no read-only limits, so I did not touch the droplet and diagnosed from the harvested logs alone. The forensics show the box was still answering at 18:57:21; a live check of `systemctl cat ssh.service` on it would be the last mile of corroboration, but the harvested journal already shows `ssh.service` starting, which is the same fact. - `artifacts/journey.json` is `{"rows": null, "fault": null}` — the drive never reached the founding rows, as expected for a leg-6 death. - `logs/broker-journal.txt` harvested 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. - All `logs/guest-*.log` and `logs/qemu.log` are empty/ENOENT — this is the droplet carrier, not the VM path (`artifacts/host.json`: `"qemu": "exit ENOENT: spawn qemu-system-x86_64 ENOENT"`). Not a finding. ## Secondary observation (not the red, do not fold into the fix) The same transcript shows the community is **nameless** on every line that should name it — including the WIPE consent screen: ``` idss-agent unknown · joining ... ✓ connection request sent to ``` Meanwhile `state/founding-state.json` carries `"name": "E2E Drive"`, and `state/` contains no `clan-config` directory for the late-bound header source to read. A person consented to having their disk erased without being told whose community they were joining. This did not red the leg — `journey.idip.spec.ts:341` matches only `/consent recorded/` and `/connection request sent/`, both of which match against a blank name — so it will keep shipping silently. It needs its own ticket and a human ruling on where the pre-deploy name comes from; it is not fixable as part of the sshd defect. 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

Fixed on main at 838d8c44: agent/internal/trust tries sshd then Debian/Ubuntu's ssh unit and reads state from the one that answered; fails loud when neither exists. Rides the next agent publish → reseed (the idip preflight gate waits for it, no droplet spent). Closing.

Fixed on `main` at `838d8c44`: `agent/internal/trust` tries `sshd` then Debian/Ubuntu's `ssh` unit and reads state from the one that answered; fails loud when neither exists. Rides the next agent publish → reseed (the idip preflight gate waits for it, no droplet spent). Closing.
ben closed this issue 2026-08-27 19:06:58 +00:00
Author
Member

swarm-claim host=elitebook-distributed-server-03 run=12864
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=12864 (automated multi-host claim — lowest live claim id works this ticket)
Owner

Ruled by agent under ADR 0174 (the watch's hands) — veto anytime: closing as ALREADY FIXED at HEAD; do not work this.

This ticket describes drive 20260827T185504Z's consent red (Failed to enable unit: Unit file sshd.service does not exist). That defect was fixed and pushed as 838d8c44 at 13:58:40, before this ticket was filed — the reporter diagnosed a red that HEAD no longer reproduces.

838d8c44 (agent/internal/trust/trust.go, +46/−8, with 26 lines of new tests) is exactly this ticket's fix, and slightly better than the ask:

// `sshd` on the community OS (NixOS) and RHEL-family hosts; `ssh` on Debian/Ubuntu
var sshUnits = []string{"sshd", "ssh"}

Up tries them in order and remembers which one answered; State then reads that same unit via sshUnit() rather than re-guessing — so the fallback cannot enable one unit and then report on the other. It also fails loud (ADR 0100) when systemctl is absent, and when none of the candidates can be enabled it names the whole list.

The pattern this is the second instance of

#908 was the same shape and the machinery caught it itself, superseding it with #910 ("drive 162500Z's consent red is already repaired at HEAD (3141ddd1)"). This is that again: neither the reporter nor the healer checks whether the red it is acting on still reproduces at origin/main before filing or fixing.

Today it has cost, on this drive alone:

  • three healer attempts on this same already-fixed red — two rebase onto origin/main conflicted — reverting and filing, one diff cap breach (2 files / 91 lines; cap 3/60) — reverting;
  • host capacity busy … skipped 3 consecutive tick(s), because those attempts held the slot the drive needed to re-fire;
  • this ticket, which would have sent a swarm worker at a fixed defect — and, on the evidence of #906 this morning (two healer runs fixing one TDZ concurrently and stacking into a duplicate let founderPhrase that broke the file), a concurrent second fix is not harmless.

The guardrails did hold here — every healer attempt reverted cleanly, nothing bad landed. But a cheap "does this red still reproduce at HEAD?" pre-check, in both the reporter and the healer, would have avoided all of it. Noting rather than filing while the drives are mid-flight.

#788 is unblocked by this closure and re-fires on the next tick.

**Ruled by agent under ADR 0174 (the watch's hands) — veto anytime: closing as ALREADY FIXED at HEAD; do not work this.** This ticket describes drive `20260827T185504Z`'s `consent` red (`Failed to enable unit: Unit file sshd.service does not exist`). That defect was fixed and pushed as **`838d8c44`** at **13:58:40**, *before* this ticket was filed — the reporter diagnosed a red that HEAD no longer reproduces. `838d8c44` (`agent/internal/trust/trust.go`, +46/−8, with 26 lines of new tests) is exactly this ticket's fix, and slightly better than the ask: ```go // `sshd` on the community OS (NixOS) and RHEL-family hosts; `ssh` on Debian/Ubuntu var sshUnits = []string{"sshd", "ssh"} ``` `Up` tries them in order and **remembers which one answered**; `State` then reads that same unit via `sshUnit()` rather than re-guessing — so the fallback cannot enable one unit and then report on the other. It also fails loud (ADR 0100) when systemctl is absent, and when none of the candidates can be enabled it names the whole list. ## The pattern this is the second instance of #908 was the same shape and the machinery caught it itself, superseding it with #910 (*"drive 162500Z's `consent` red is already repaired at HEAD (3141ddd1)"*). This is that again: **neither the reporter nor the healer checks whether the red it is acting on still reproduces at `origin/main`** before filing or fixing. Today it has cost, on this drive alone: - three healer attempts on this same already-fixed red — two `rebase onto origin/main conflicted — reverting and filing`, one `diff cap breach (2 files / 91 lines; cap 3/60) — reverting`; - `host capacity busy … skipped 3 consecutive tick(s)`, because those attempts held the slot the drive needed to re-fire; - this ticket, which would have sent a swarm worker at a fixed defect — and, on the evidence of #906 this morning (two healer runs fixing one TDZ concurrently and stacking into a duplicate `let founderPhrase` that broke the file), a concurrent second fix is not harmless. The guardrails did hold here — every healer attempt reverted cleanly, nothing bad landed. But a cheap "does this red still reproduce at HEAD?" pre-check, in both the reporter and the healer, would have avoided all of it. Noting rather than filing while the drives are mid-flight. #788 is unblocked by this closure and re-fires on the next tick.
Owner

Correction from the watch — my closing rationale above was WRONG. #913 is not a duplicate ghost, and this defect is not reachable-fixed for the drive.

I closed this saying 838d8c44 fixes it at HEAD and "do not work this". The first half is true; the conclusion is not, and the difference matters.

The joining device fetches its agent from get.idss.nz, not from the checkout. That endpoint currently serves release 8b1144a8, and:

$ git merge-base --is-ancestor 838d8c44 8b1144a8   →  NO — served bits PREDATE the fix
$ oc_bootstrap_staleness 8b1144a8… origin/main .
bootstrap-stale: served 8b1144a8… is 1 agent-commit(s) behind origin/main
  (newest agent-affecting: 838d8c44de1d)                                    rc=1

838d8c44 landed at 19:00:15 UTC; the served release is from 17:09:35 UTC. So the sshd defect is genuinely still live in the artifact every drive runs, and would reproduce on the next attempt. The reporter and the healer were not chasing a fixed defect — they were chasing one that is fixed in source and unfixed in the deployed bits. My "ghost ticket" framing does not apply here.

Where it did apply was #908 → #910 (3141ddd1), which was a real already-repaired-at-HEAD case. I over-generalised from that one to this one without checking the served release, which is exactly the check I had spent the previous hour insisting on. Apologies for the noise on the swarm worker that picked this up.

Leaving this closed and letting #913 carry it, since #913 describes the same defect and is open and blocking #788 correctly. The real remedy is not a code change at all — 838d8c44 is already the right fix — it is reseeding get.idss.nz from origin/main so the drive can actually run it. That makes #911's condition true again, one commit later.

The standing caution on #911 applies to whoever does it: get.idss.nz resolves to 143.198.134.168, not the mail droplet 100.98.48.68 that #600's recipe names, and the header is x-idss-release, not x-ourcloud-release.

**Correction from the watch — my closing rationale above was WRONG. #913 is not a duplicate ghost, and this defect is not reachable-fixed for the drive.** I closed this saying `838d8c44` fixes it at HEAD and "do not work this". The first half is true; the conclusion is not, and the difference matters. The joining device fetches its agent from **`get.idss.nz`**, not from the checkout. That endpoint currently serves release **`8b1144a8`**, and: ``` $ git merge-base --is-ancestor 838d8c44 8b1144a8 → NO — served bits PREDATE the fix $ oc_bootstrap_staleness 8b1144a8… origin/main . bootstrap-stale: served 8b1144a8… is 1 agent-commit(s) behind origin/main (newest agent-affecting: 838d8c44de1d) rc=1 ``` `838d8c44` landed at **19:00:15 UTC**; the served release is from **17:09:35 UTC**. So the sshd defect **is genuinely still live in the artifact every drive runs**, and would reproduce on the next attempt. The reporter and the healer were not chasing a fixed defect — they were chasing one that is fixed in source and unfixed in the deployed bits. My "ghost ticket" framing does not apply here. Where it *did* apply was #908 → #910 (`3141ddd1`), which was a real already-repaired-at-HEAD case. I over-generalised from that one to this one without checking the served release, which is exactly the check I had spent the previous hour insisting on. Apologies for the noise on the swarm worker that picked this up. **Leaving this closed and letting #913 carry it**, since #913 describes the same defect and is open and blocking #788 correctly. The real remedy is not a code change at all — `838d8c44` is already the right fix — it is **reseeding `get.idss.nz` from `origin/main`** so the drive can actually run it. That makes #911's condition true again, one commit later. The standing caution on #911 applies to whoever does it: `get.idss.nz` resolves to `143.198.134.168`, **not** the mail droplet `100.98.48.68` that #600's recipe names, and the header is `x-idss-release`, not `x-ourcloud-release`.
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#912
No description provided.