self-hosted full-install deploy never supplies the control-plane binary — idss-control-plane.service crash-loops on a missing /srv/idss/bin/control-plane, deploy-takeover burns the full 25m ceiling #631

Closed
opened 2026-08-21 04:35:41 +00:00 by matou-build-agent · 3 comments

Failure. Drive 20260821T040447Z, leg deploy-takeover, signature 800a2936720b. journey.selfhosted.spec.ts:368 times out after 1,500,000ms waiting for [data-status="deploy-live"]/hand-off/deploy-failed — none ever renders (Playwright snapshot still shows the deploy-gateway pending placeholder, FoundingDeployGateway.vue:27-28, meaning standup.deploy stayed null the whole leg).

Evidence.

  • state/founding-state.json: standup.step == "deploying", standup.deploy == null for the entire run — the deploy-status object was never built/published, even though standup.events (same file) shows the underlying takeover ran to completion: install · kexec/disko/install/reboot: complete, then enroll-activate: "the overwritten host came back a clan member", "the device is a clan member".
  • logs/droplet-journal.txt (tail): idss-control-plane.service is crash-looping (restart counter over 210 by the time the leg gave up): idss-control-plane-start[…]: /srv/idss/bin/control-plane: No such file or directory, Main process exited, code=exited, status=127/n/a, repeating every ~5s. The control-plane binary was never copied onto the box, so the unit can never come up, so the deploy can never reach live.

Root cause. /srv/idss/bin/control-plane is created by the fleet supply step (internal/fleetwire/supply.go Supply.Seed, founding.GuestSupply interface), which is called explicitly on the two OTHER full-install paths — internal/founding/ownvpspath.go:409 (o.guestSupply.Seed(ctx, ip, ownVPSSSHPort), after a pinned-host-key rotation) and internal/founding/privatepath.go:870 (o.guestSupply.Seed(ctx, "", port)). The self-hosted device takeover path (internal/founding/selfhostedpath.go composeSelfHostedGateway, driven from internal/founding/deploy.go runDeploy) never calls guestSupply.Seed at all — confirmed by grep -n supply internal/founding/selfhostedpath.go internal/founding/deploy.go returning nothing. docs/vm-full-install-divergence.md Table C documents /srv/idss/bin/control-plane as "created by the scp/clone legs themselves (not declared)" for the own-VPS path, but the self-hosted path was never given an equivalent leg.

This is a new, distinct defect from the already-fixed GOTCHAS #45 (docs/GOTCHAS.md:1208) — that entry was about the self-hosted device's network facts being zeroed (hostprobe.Prober.Network stub), which caused the SAME symptom (deploy-takeover burning the full ceiling with no terminal status) on an earlier drive (20260821T030832Z, #630) and was marked "NOT re-proved by a fresh live drive … the next selfhosted rehearsal that reaches deploy-takeover is the live proof." This run (20260821T040447Z) IS that live proof: the box now boots reachable and the takeover completes cleanly (kexec/disko/install/reboot all report complete, the device rejoins as a clan member) — so #45's fix holds — but it exposes the next gap downstream: nothing ever supplies the control-plane binary.

Why this isn't mechanical (filing, not self-fixing). Simply adding o.guestSupply.Seed(ctx, st.GatewayIP, 22) after composeSelfHostedGateway would likely still fail: fleetwire.Supply.Seed (internal/fleetwire/supply.go:60) always SSHes as the fixed guest-trust identity baked in at construction (wiring_prod.go:454). selfhostedpath.go:191-203 explicitly sets AmbientSSH: true on the clan Enroll call and comments that the self-hosted box's authorized_keys (tf.RootAuthorizedKeys, the scraped ORIGINAL host keys) never gets the guest-trust key appended — unlike the own-VPS path's appendGuestTrust (docs/vm-full-install-divergence.md Table B: "the box trusts the guest-trust key baked into access.nix (appendGuestTrust)" — ported for own-VPS, absent for self-hosted). So a naive Seed call would refuse publickey against a box that never trusts that key.

What plugging it needs (a design call, not a one-liner): either (a) bake the guest-trust key into the self-hosted takeover-ready access.nix/authorized_keys the same way own-VPS does, so the existing Supply.Seed seam works unmodified, or (b) plumb an ambient/per-call identity override through founding.GuestSupply/fleetwire.Supply so self-hosted can supply over the operator's own key (mirroring AmbientSSH: true on the Enroll call) — plus decide where in runDeploy/composeSelfHostedGateway the supply leg sequences (own-VPS does it AFTER a pinned-host-key rotation and BEFORE pairing; self-hosted's box identity/trust story after takeover needs the equivalent audit), and add the missing entries to docs/vm-full-install-divergence.md's Table C for the self-hosted path specifically (it currently only covers own-VPS). Needs new coverage in internal/founding/selfhostedpath_test.go/deploy_test.go with a fake GuestSupply, plus a seam test pinning the identity/trust choice made.

drive 20260821T040447Z red at deploy-takeover: expect(locator).toBeVisible() failed Locator: locator('[data-status="deploy-live"]').or(locator('[data-status="hand-off"]')).or(locator('[data-status="deploy-failed"]')).first() Expected: visible Time
evidence: test-results/…/20260821T040447Z/ on matou-workstation (legs.json, droplet-journal.txt, trace) — a representative screenshot is attached here if one was captured (#596)

**Failure.** Drive `20260821T040447Z`, leg `deploy-takeover`, signature `800a2936720b`. `journey.selfhosted.spec.ts:368` times out after 1,500,000ms waiting for `[data-status="deploy-live"]`/`hand-off`/`deploy-failed` — none ever renders (Playwright snapshot still shows the `deploy-gateway` pending placeholder, `FoundingDeployGateway.vue:27-28`, meaning `standup.deploy` stayed `null` the whole leg). **Evidence.** - `state/founding-state.json`: `standup.step == "deploying"`, `standup.deploy == null` for the entire run — the deploy-status object was never built/published, even though `standup.events` (same file) shows the underlying takeover ran to completion: `install · kexec/disko/install/reboot: complete`, then `enroll-activate`: `"the overwritten host came back a clan member"`, `"the device is a clan member"`. - `logs/droplet-journal.txt` (tail): `idss-control-plane.service` is crash-looping (restart counter over 210 by the time the leg gave up): `idss-control-plane-start[…]: /srv/idss/bin/control-plane: No such file or directory`, `Main process exited, code=exited, status=127/n/a`, repeating every ~5s. The control-plane binary was **never copied onto the box**, so the unit can never come up, so the deploy can never reach `live`. **Root cause.** `/srv/idss/bin/control-plane` is created by the fleet **supply** step (`internal/fleetwire/supply.go` `Supply.Seed`, `founding.GuestSupply` interface), which is called explicitly on the two OTHER full-install paths — `internal/founding/ownvpspath.go:409` (`o.guestSupply.Seed(ctx, ip, ownVPSSSHPort)`, after a pinned-host-key rotation) and `internal/founding/privatepath.go:870` (`o.guestSupply.Seed(ctx, "", port)`). The **self-hosted device takeover path** (`internal/founding/selfhostedpath.go` `composeSelfHostedGateway`, driven from `internal/founding/deploy.go` `runDeploy`) never calls `guestSupply.Seed` at all — confirmed by `grep -n supply internal/founding/selfhostedpath.go internal/founding/deploy.go` returning nothing. `docs/vm-full-install-divergence.md` Table C documents `/srv/idss/bin/control-plane` as "created by the scp/clone legs themselves (not declared)" for the own-VPS path, but the self-hosted path was never given an equivalent leg. This is a **new, distinct** defect from the already-fixed GOTCHAS #45 (`docs/GOTCHAS.md:1208`) — that entry was about the self-hosted device's network facts being zeroed (`hostprobe.Prober.Network` stub), which caused the SAME symptom (deploy-takeover burning the full ceiling with no terminal status) on an earlier drive (`20260821T030832Z`, #630) and was marked "NOT re-proved by a fresh live drive … the next selfhosted rehearsal that reaches deploy-takeover is the live proof." This run (`20260821T040447Z`) IS that live proof: the box now boots reachable and the takeover completes cleanly (kexec/disko/install/reboot all report complete, the device rejoins as a clan member) — so #45's fix holds — but it exposes the next gap downstream: nothing ever supplies the control-plane binary. **Why this isn't mechanical (filing, not self-fixing).** Simply adding `o.guestSupply.Seed(ctx, st.GatewayIP, 22)` after `composeSelfHostedGateway` would likely still fail: `fleetwire.Supply.Seed` (`internal/fleetwire/supply.go:60`) always SSHes as the fixed **guest-trust identity** baked in at construction (`wiring_prod.go:454`). `selfhostedpath.go:191-203` explicitly sets `AmbientSSH: true` on the clan `Enroll` call and comments that the self-hosted box's `authorized_keys` (`tf.RootAuthorizedKeys`, the scraped ORIGINAL host keys) never gets the guest-trust key appended — unlike the own-VPS path's `appendGuestTrust` (`docs/vm-full-install-divergence.md` Table B: "the box trusts the guest-trust key baked into access.nix (appendGuestTrust)" — **ported for own-VPS, absent for self-hosted**). So a naive `Seed` call would refuse publickey against a box that never trusts that key. **What plugging it needs (a design call, not a one-liner):** either (a) bake the guest-trust key into the self-hosted takeover-ready `access.nix`/authorized_keys the same way own-VPS does, so the existing `Supply.Seed` seam works unmodified, or (b) plumb an ambient/per-call identity override through `founding.GuestSupply`/`fleetwire.Supply` so self-hosted can supply over the operator's own key (mirroring `AmbientSSH: true` on the `Enroll` call) — plus decide where in `runDeploy`/`composeSelfHostedGateway` the supply leg sequences (own-VPS does it AFTER a pinned-host-key rotation and BEFORE pairing; self-hosted's box identity/trust story after takeover needs the equivalent audit), and add the missing entries to `docs/vm-full-install-divergence.md`'s Table C for the self-hosted path specifically (it currently only covers own-VPS). Needs new coverage in `internal/founding/selfhostedpath_test.go`/`deploy_test.go` with a fake `GuestSupply`, plus a seam test pinning the identity/trust choice made. drive `20260821T040447Z` red at `deploy-takeover`: `expect(locator).toBeVisible() failed Locator: locator('[data-status="deploy-live"]').or(locator('[data-status="hand-off"]')).or(locator('[data-status="deploy-failed"]')).first() Expected: visible Time` evidence: `test-results/…/20260821T040447Z/` on matou-workstation (legs.json, droplet-journal.txt, trace) — a representative screenshot is attached here if one was captured (#596) <!-- rehearsal-sig: 800a2936720b -->
Author
Member

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

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

Ruled by agent under ADR 0174 — veto anytime.

Decision needed (from the issue): plug the missing self-hosted control-plane supply via (a) baking the founding guest-trust key into the self-hosted takeover access.nix/authorized_keys so the existing Supply.Seed seam works unmodified, or (b) plumbing an ambient/per-call identity override through GuestSupply/fleetwire.Supply so self-hosted supplies over the operator's OWN key (mirroring AmbientSSH: true on the self-hosted Enroll).

Ruling: option (b). Add GuestSupply.SeedAmbient (fleetwire.Supply drives ssh/scp with no -i, so it resolves the operator's ambient key — the same posture sshOpts already grants an empty identity for the own-VPS carrier, DDR 0154). The self-hosted compose sequences supply right after composeSelfHostedGateway, before applyControlPlane — the same order own-VPS uses (install-activate → supply → deploy).

Why it's a two-way door. (a) revertible by a later commit (pure Go, no infra); (b) provable by a new seam test (SeedAmbient builds a remote target with no -i) + a fake-GuestSupply founding test + the next self-hosted drive reaching deploy-takeover (the live proof); (c) NOT on the one-way-door list — it does not widen security posture: supply rides the operator's own ambient key, exactly as the self-hosted Enroll already does, adding no key to any box. Option (a) is the wider one (it would append a founding-minted guest-trust key to the operator's box's authorized_keys), which is why (b) is preferred here — it keeps the self-hosted box trusting only its own scraped root keys (#414).

Proves it: TestSelfHosted_DeploySeedsControlPlaneBinaryOverAmbientSSH, TestSupply_SeedAmbient*, and Table C's new self-hosted row in docs/vm-full-install-divergence.md.

**Ruled by agent under ADR 0174 — veto anytime.** **Decision needed** (from the issue): plug the missing self-hosted control-plane supply via **(a)** baking the founding guest-trust key into the self-hosted takeover `access.nix`/authorized_keys so the existing `Supply.Seed` seam works unmodified, or **(b)** plumbing an ambient/per-call identity override through `GuestSupply`/`fleetwire.Supply` so self-hosted supplies over the operator's OWN key (mirroring `AmbientSSH: true` on the self-hosted `Enroll`). **Ruling: option (b).** Add `GuestSupply.SeedAmbient` (fleetwire.Supply drives `ssh`/`scp` with no `-i`, so it resolves the operator's ambient key — the same posture `sshOpts` already grants an empty identity for the own-VPS carrier, DDR 0154). The self-hosted compose sequences supply right after `composeSelfHostedGateway`, before `applyControlPlane` — the same order own-VPS uses (install-activate → supply → deploy). **Why it's a two-way door.** (a) revertible by a later commit (pure Go, no infra); (b) provable by a new seam test (`SeedAmbient` builds a remote target with no `-i`) + a fake-`GuestSupply` founding test + the next self-hosted drive reaching `deploy-takeover` (the live proof); (c) NOT on the one-way-door list — it does **not** widen security posture: supply rides the operator's own ambient key, exactly as the self-hosted `Enroll` already does, adding **no** key to any box. Option (a) is the wider one (it would append a founding-minted guest-trust key to the operator's box's `authorized_keys`), which is why (b) is preferred here — it keeps the self-hosted box trusting only its own scraped root keys (#414). **Proves it:** `TestSelfHosted_DeploySeedsControlPlaneBinaryOverAmbientSSH`, `TestSupply_SeedAmbient*`, and Table C's new self-hosted row in `docs/vm-full-install-divergence.md`.
Author
Member

close-report for #631 — status success

✅ close-report gates passed — every claim verified against main; closing.

envelope
{
  "issue": 631,
  "status": "success",
  "commits": [
    "2fb3d419aa6a5d43a52f23cfa981977c779d5297"
  ],
  "changed_files": [
    "STATUS.md",
    "docs/vm-full-install-divergence.md",
    "internal/fleetwire/supply.go",
    "internal/fleetwire/supply_test.go",
    "internal/founding/deploy.go",
    "internal/founding/privatepath.go",
    "internal/founding/readiness_test.go",
    "internal/founding/selfhostedpath.go",
    "internal/founding/selfhostedpath_test.go",
    "internal/founding/testing/fakes.go"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci -c go build ./...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go vet ./internal/fleetwire/ ./internal/founding/...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go test ./...",
      "exit_code": 0
    }
  ],
  "criteria": {
    "self-hosted full-install supplies the control-plane binary (was: never supplied, unit crash-looped)": "internal/founding/deploy.go runDeploy now calls guestSupply.SeedAmbient after composeSelfHostedGateway, before applyControlPlane; TestSelfHosted_DeployComposesGatewayWithClaimSecretApexAndBaseline asserts SeedAmbient once at the box IP:22",
    "design call ruled (option a bake guest-trust vs option b ambient override)": "ADR 0174 ruling posted to issue #631 (option b, two-way door); not a security-posture widening — supply rides the operator's own ambient key exactly as the self-hosted Enroll already does",
    "supply drives over the operator's ambient key, not the guest-trust identity": "fleetwire.Supply.SeedAmbient uses empty identity -> sshOpts omits -i; TestSupplySeedAmbient_DrivesTheRemoteBoxWithoutIdentity pins no -i + RemoteTarget accept-new",
    "sequencing decided in runDeploy/composeSelfHostedGateway": "supply lands after compose-activate, before applyControlPlane (mirrors own-VPS install-activate -> supply -> deploy); idempotent + unguarded by st.ClanNode so a resume re-lands it — TestSelfHosted_ResumeAfterSupplyFaultRelandsTheBinary; a supply failure reds honestly — TestSelfHosted_SupplyFailureRedsTheDeploy",
    "Table C (and B) updated for the self-hosted path": "docs/vm-full-install-divergence.md Table C control-plane row + Table B supply-identity rows now carry the self-hosted SeedAmbient divergence",
    "new coverage with a fake GuestSupply + a seam test pinning the identity/trust choice": "internal/founding/testing/fakes.go FakeSupply.SeedAmbient (Ambient* records); selfhostedpath_test.go wires WithGuestSupply and asserts ambient-not-guest-trust; supply_test.go seam test pins no -i"
  },
  "summary": "self-hosted full-install now supplies /srv/idss/bin/control-plane via a new GuestSupply.SeedAmbient over the operator's ambient key, landed after compose and before the control-plane probe",
  "blockers": []
}
**close-report** for #631 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; closing. <details><summary>envelope</summary> ```json { "issue": 631, "status": "success", "commits": [ "2fb3d419aa6a5d43a52f23cfa981977c779d5297" ], "changed_files": [ "STATUS.md", "docs/vm-full-install-divergence.md", "internal/fleetwire/supply.go", "internal/fleetwire/supply_test.go", "internal/founding/deploy.go", "internal/founding/privatepath.go", "internal/founding/readiness_test.go", "internal/founding/selfhostedpath.go", "internal/founding/selfhostedpath_test.go", "internal/founding/testing/fakes.go" ], "tests": [ { "command": "nix develop .#go-ci -c go build ./...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go vet ./internal/fleetwire/ ./internal/founding/...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go test ./...", "exit_code": 0 } ], "criteria": { "self-hosted full-install supplies the control-plane binary (was: never supplied, unit crash-looped)": "internal/founding/deploy.go runDeploy now calls guestSupply.SeedAmbient after composeSelfHostedGateway, before applyControlPlane; TestSelfHosted_DeployComposesGatewayWithClaimSecretApexAndBaseline asserts SeedAmbient once at the box IP:22", "design call ruled (option a bake guest-trust vs option b ambient override)": "ADR 0174 ruling posted to issue #631 (option b, two-way door); not a security-posture widening — supply rides the operator's own ambient key exactly as the self-hosted Enroll already does", "supply drives over the operator's ambient key, not the guest-trust identity": "fleetwire.Supply.SeedAmbient uses empty identity -> sshOpts omits -i; TestSupplySeedAmbient_DrivesTheRemoteBoxWithoutIdentity pins no -i + RemoteTarget accept-new", "sequencing decided in runDeploy/composeSelfHostedGateway": "supply lands after compose-activate, before applyControlPlane (mirrors own-VPS install-activate -> supply -> deploy); idempotent + unguarded by st.ClanNode so a resume re-lands it — TestSelfHosted_ResumeAfterSupplyFaultRelandsTheBinary; a supply failure reds honestly — TestSelfHosted_SupplyFailureRedsTheDeploy", "Table C (and B) updated for the self-hosted path": "docs/vm-full-install-divergence.md Table C control-plane row + Table B supply-identity rows now carry the self-hosted SeedAmbient divergence", "new coverage with a fake GuestSupply + a seam test pinning the identity/trust choice": "internal/founding/testing/fakes.go FakeSupply.SeedAmbient (Ambient* records); selfhostedpath_test.go wires WithGuestSupply and asserts ambient-not-guest-trust; supply_test.go seam test pins no -i" }, "summary": "self-hosted full-install now supplies /srv/idss/bin/control-plane via a new GuestSupply.SeedAmbient over the operator's ambient key, landed after compose and before the control-plane probe", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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#631
No description provided.