founding: the own-VPS path ends at the install-command screen — no carrier behind it #368

Closed
opened 2026-08-09 19:59:34 +00:00 by ben · 3 comments
Owner

Found by the #183 rehearsal ratchet's Stage-0 exploration (spec
docs/superpowers/specs/2026-08-09-183-vps-rehearsal-ratchet-design.md). The
nightly droplet drive will red here until this lands — it is the ratchet's
first tooth.

The wizard captures only an IP (internal/founding/access.go:343), S7a mints
a code and renders curl -sSf https://get.idss.nz | sh -s -- <code>
(internal/founding/manualpath.go:227) — and the wired path ends there.
Unbuilt, per ADR 0043's own specification:

  • the SSH relay carrier (helper reaches the device over SSH and relays the
    agent's redeem/pair calls; agent serves enrollment on a local Unix socket)
  • the agent's founding-time origin (OURCLOUD_COMMUNITY_ORIGIN points at a
    gateway that doesn't exist yet; at founding the enroll face is the
    in-helper ledger — app/helper/cmd/helper/wiring_prod.go:280)
  • a remote clan enrollment target (only the private path's
    root@127.0.0.1:<port> exists — internal/founding/privatepath.go:673)
  • the get.idss.nz bootstrap artifact (referenced, not built)
  • seed/deploy legs that aren't loopback-shaped
    (internal/fleetwire/fleet.go:160)

Acceptance: given a fresh Ubuntu VPS with root SSH and a public IP, when the
operator follows the own-VPS wizard branch and the install command runs on
the VPS, then founding proceeds through stand-up to the S12 hand-off exactly
as the private path does — proven by the rehearsal drive reaching its next
frontier. Needs-design pieces (bootstrap host, relay shape) may split out;
say so here if they do.

Found by the #183 rehearsal ratchet's Stage-0 exploration (spec `docs/superpowers/specs/2026-08-09-183-vps-rehearsal-ratchet-design.md`). The nightly droplet drive will red here until this lands — it is the ratchet's first tooth. The wizard captures only an IP (`internal/founding/access.go:343`), S7a mints a code and renders `curl -sSf https://get.idss.nz | sh -s -- <code>` (`internal/founding/manualpath.go:227`) — and the wired path ends there. Unbuilt, per ADR 0043's own specification: - the SSH relay carrier (helper reaches the device over SSH and relays the agent's redeem/pair calls; agent serves enrollment on a local Unix socket) - the agent's founding-time origin (`OURCLOUD_COMMUNITY_ORIGIN` points at a gateway that doesn't exist yet; at founding the enroll face is the in-helper ledger — `app/helper/cmd/helper/wiring_prod.go:280`) - a remote clan enrollment target (only the private path's `root@127.0.0.1:<port>` exists — `internal/founding/privatepath.go:673`) - the `get.idss.nz` bootstrap artifact (referenced, not built) - seed/deploy legs that aren't loopback-shaped (`internal/fleetwire/fleet.go:160`) Acceptance: given a fresh Ubuntu VPS with root SSH and a public IP, when the operator follows the own-VPS wizard branch and the install command runs on the VPS, then founding proceeds through stand-up to the S12 hand-off exactly as the private path does — proven by the rehearsal drive reaching its next frontier. Needs-design pieces (bootstrap host, relay shape) may split out; say so here if they do.
Author
Owner

Blocked — this is an epic gated on an unresolved architecture fork (relay shape) + unbuilt external infra (get.idss.nz)

A Sandcastle iteration explored this and cannot land it as a single vertical slice. Posting the decision needed per the issue's own request ("Needs-design pieces (bootstrap host, relay shape) may split out; say so here if they do"). Asked a human this iteration; no reply in the window, so moving to ready-for-human + needs-design.

What's actually built vs. not (verified this session)

  • Own-VPS rests with no carrier. manualpath.go BeginStandup mints a gateway code and renders curl -sSf https://get.idss.nz | sh -s -- <code>, sets StandupInstallOwnVPS, and returns — there is no worker and nothing ever connects to inst.Target (the captured IP).
  • The only working founding carrier is the private path's "direct-drive." privatepath.go standUpLocalVM drives clan.Enroll against root@127.0.0.1:<forwarded port> in-process (Install: VMMode, Gateway.Public: nil), then mints/redeems/pairs against the in-helper ledger.
  • The ADR-0043 SSH-relay carrier is entirely unbuilt. The rented path only sketches it (standuprented.go: SSHHostKey: nil, comment "the rented carrier relay is not wired yet, ADR 0114").
  • The seed/supply/deploy legs are loopback-shaped. internal/fleetwire/{fleet.go,supply.go,fleetwire.go} hardcode root@127.0.0.1 and loopback-safe SSH opts (StrictHostKeyChecking=no, UserKnownHostsFile=/dev/null — explicitly justified only because the target is our own local guest with a fresh host key). A real public VPS changes that security posture.
  • get.idss.nz is referenced, not built (manualpath.go installHost). OURCLOUD_COMMUNITY_ORIGIN (agent-side) points at a gateway that does not exist at founding; at founding the enroll face is the in-helper ledger (wiring_prod.go).

The decision (relay shape) — I will not guess this

  • A) App-drives-out, mirroring the private path. Acceptance says "exactly as the private path does." The helper SSHes to root@<VPS-ip>, drives clan.FullInstall (nixos-anywhere disk takeover) + seed/deploy over SSH, and pairs in-process — the standUpLocalVM shape with a real clan.SSHTarget and a populated PublicGatewayFacts (real apex/acme-dns) instead of loopback VMMode/Public: nil. No agent-on-box, so get.idss.nz is not needed for founding (the rendered install command becomes vestigial or is repurposed). Tension: the #183 rehearsal spec wants the rendered install command executed on the box verbatim, which this shape sidesteps.
  • B) ADR-0043 literal SSH relay. The install command puts the agent on the box (needs get.idss.nz built + hosted); the helper SSHes in and relays the agent's redeem/pair (agent serves enrollment on a local Unix socket) to the in-helper ledger; seed/deploy over SSH. Faithful to ADR 0043 and to the rehearsal's "run the rendered command" intent, but pulls in the bootstrap-host external-infra dependency.
  1. Split a needs-design ticket for the relay shape (A vs B) — the ADR-0043 reconciliation with the "exactly as the private path does" acceptance and the rehearsal's "run the rendered install command" intent. This is the gate.
  2. Split a needs-design ticket for the get.idss.nz bootstrap host (only load-bearing under shape B) — where it's hosted, what it serves, how the agent binary + OURCLOUD_COMMUNITY_ORIGIN are provisioned at founding.
  3. Design-independent prerequisite (fits a slice under both shapes): parameterize internal/fleetwire off the root@127.0.0.1 loopback constant so the seed/supply/deploy legs can reach an arbitrary root@<host> with a real host-key posture — the helper must reach the remote box over SSH under either shape. Held back this iteration because it touches the fragile shared seam the working private path depends on, and I would not speculatively refactor it before the shape is chosen.
  4. #368 then tracks the carrier build under the chosen shape.

To re-arm: pick a shape (or confirm the split), then re-add ready-for-agent to the prerequisite slice / the carrier ticket.

## Blocked — this is an epic gated on an unresolved architecture fork (relay shape) + unbuilt external infra (get.idss.nz) A Sandcastle iteration explored this and cannot land it as a single vertical slice. Posting the decision needed per the issue's own request ("Needs-design pieces (bootstrap host, relay shape) may split out; say so here if they do"). Asked a human this iteration; no reply in the window, so moving to `ready-for-human` + `needs-design`. ### What's actually built vs. not (verified this session) - **Own-VPS rests with no carrier.** `manualpath.go BeginStandup` mints a gateway code and renders `curl -sSf https://get.idss.nz | sh -s -- <code>`, sets `StandupInstallOwnVPS`, and returns — there is **no worker** and nothing ever connects to `inst.Target` (the captured IP). - **The only working founding carrier is the private path's "direct-drive."** `privatepath.go standUpLocalVM` drives `clan.Enroll` against `root@127.0.0.1:<forwarded port>` in-process (`Install: VMMode`, `Gateway.Public: nil`), then mints/redeems/pairs against the in-helper ledger. - **The ADR-0043 SSH-relay carrier is entirely unbuilt.** The rented path only *sketches* it (`standuprented.go`: `SSHHostKey: nil`, comment "the rented carrier relay is not wired yet, ADR 0114"). - **The seed/supply/deploy legs are loopback-shaped.** `internal/fleetwire/{fleet.go,supply.go,fleetwire.go}` hardcode `root@127.0.0.1` and loopback-safe SSH opts (`StrictHostKeyChecking=no`, `UserKnownHostsFile=/dev/null` — explicitly justified only because the target is our own local guest with a fresh host key). A real public VPS changes that security posture. - **`get.idss.nz` is referenced, not built** (`manualpath.go installHost`). `OURCLOUD_COMMUNITY_ORIGIN` (agent-side) points at a gateway that does not exist at founding; at founding the enroll face is the in-helper ledger (`wiring_prod.go`). ### The decision (relay shape) — I will not guess this - **A) App-drives-out, mirroring the private path.** Acceptance says "exactly as the private path does." The helper SSHes to `root@<VPS-ip>`, drives `clan.FullInstall` (nixos-anywhere disk takeover) + seed/deploy over SSH, and pairs in-process — the `standUpLocalVM` shape with a real `clan.SSHTarget` and a **populated** `PublicGatewayFacts` (real apex/acme-dns) instead of loopback `VMMode`/`Public: nil`. **No agent-on-box, so `get.idss.nz` is not needed for founding** (the rendered install command becomes vestigial or is repurposed). Tension: the #183 rehearsal spec wants the *rendered install command* executed on the box verbatim, which this shape sidesteps. - **B) ADR-0043 literal SSH relay.** The install command puts the agent on the box (needs `get.idss.nz` built + hosted); the helper SSHes in and relays the agent's redeem/pair (agent serves enrollment on a local Unix socket) to the in-helper ledger; seed/deploy over SSH. Faithful to ADR 0043 and to the rehearsal's "run the rendered command" intent, but pulls in the bootstrap-host external-infra dependency. ### Recommended decomposition (for a human to confirm) 1. **Split a `needs-design` ticket for the relay shape** (A vs B) — the ADR-0043 reconciliation with the "exactly as the private path does" acceptance and the rehearsal's "run the rendered install command" intent. This is the gate. 2. **Split a `needs-design` ticket for the `get.idss.nz` bootstrap host** (only load-bearing under shape B) — where it's hosted, what it serves, how the agent binary + `OURCLOUD_COMMUNITY_ORIGIN` are provisioned at founding. 3. **Design-independent prerequisite (fits a slice under both shapes):** parameterize `internal/fleetwire` off the `root@127.0.0.1` loopback constant so the seed/supply/deploy legs can reach an arbitrary `root@<host>` with a real host-key posture — the helper must reach the remote box over SSH under *either* shape. Held back this iteration because it touches the fragile shared seam the working private path depends on, and I would not speculatively refactor it before the shape is chosen. 4. **#368 then tracks the carrier build** under the chosen shape. To re-arm: pick a shape (or confirm the split), then re-add `ready-for-agent` to the prerequisite slice / the carrier ticket.
Author
Owner

Ruled (Ben, 2026-08-10): shape A — the app drives out. ADR 0152 (spec
docs/superpowers/specs/2026-08-10-own-vps-carrier-design.md); ADR 0043's own-VPS relay sentence superseded, its one-enroll-face
decision stands; get.idss.nz leaves the critical path entirely; S7a
connects instead of pasting (DDR 0154, ✎ wireframe landed).

This issue is now the tracking epic, blocked by the slices:

  • T1 #382 fleetwire host seam — ready-for-agent NOW
  • T2 #383 carrier worker — no-triage until T1
  • T3 #384 S7a connection screen — no-triage until T2
  • T5 #385 rehearsal drive update — no-triage until T2+T3

Closes when the rehearsal drive's pairing frontier retires (the drive reds
somewhere DEEPER, or goes green). The triage comment's option analysis was
exactly right — thank you, past iteration.

**Ruled (Ben, 2026-08-10): shape A — the app drives out.** ADR 0152 (spec `docs/superpowers/specs/2026-08-10-own-vps-carrier-design.md`); ADR 0043's own-VPS relay sentence superseded, its one-enroll-face decision stands; `get.idss.nz` leaves the critical path entirely; S7a connects instead of pasting (DDR 0154, ✎ wireframe landed). This issue is now the **tracking epic**, blocked by the slices: - T1 #382 fleetwire host seam — `ready-for-agent` NOW - T2 #383 carrier worker — no-triage until T1 - T3 #384 S7a connection screen — no-triage until T2 - T5 #385 rehearsal drive update — no-triage until T2+T3 Closes when the rehearsal drive's pairing frontier retires (the drive reds somewhere DEEPER, or goes green). The triage comment's option analysis was exactly right — thank you, past iteration.
Author
Owner

Closing per this issue's own stated criterion (2026-08-10 comment): "Closes when the rehearsal drive's pairing frontier retires — the drive reds somewhere deeper, or goes green."

Drive 20260812T035658Z went GREEN end to end at 2026-08-12T04:04 UTC (closed #378, evidence in test-results/drive-droplet/20260812T035658Z/) — the own-VPS journey now drives straight through the carrier this issue reported missing. All four tracking-epic slices are closed: #382 (fleetwire host seam), #383 (carrier worker), #384 (S7a connects-instead-of-pasting), #385 (rehearsal drive frontier update). Shape A (ADR 0152, the app drives out over real SSH) is built and proven by a real droplet founding.

Closing per this issue's own stated criterion (2026-08-10 comment): "Closes when the rehearsal drive's pairing frontier retires — the drive reds somewhere deeper, or goes green." Drive `20260812T035658Z` went GREEN end to end at 2026-08-12T04:04 UTC (closed #378, evidence in `test-results/drive-droplet/20260812T035658Z/`) — the own-VPS journey now drives straight through the carrier this issue reported missing. All four tracking-epic slices are closed: #382 (fleetwire host seam), #383 (carrier worker), #384 (S7a connects-instead-of-pasting), #385 (rehearsal drive frontier update). Shape A (ADR 0152, the app drives out over real SSH) is built and proven by a real droplet founding.
ben closed this issue 2026-08-12 09:39:16 +00:00
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#368
No description provided.