founding: the own-VPS carrier worker — connect, point, FullInstall, seed, pair (ADR 0152, own-VPS T2) #383

Closed
opened 2026-08-10 02:26:21 +00:00 by ben · 2 comments
Owner

Slice T2 of docs/superpowers/specs/2026-08-10-own-vps-carrier-design.md — the carrier itself (ADR 0152, shape A:
the app drives out). no-triage until T1 lands (flip ready-for-agent when
the fleetwire host seam is on main).

BeginStandup(AccessOwnVPS) (internal/founding/manualpath.go) stops
returning at the install screen and runs a journey worker (the private
path's runner shape and row vocabulary):

  1. connect — SSH reachability to root@<IP> (S4) with the operator's
    own key/agent; refusal = named journey red with a remedy, never a hang.
  2. point — broker /point with the S5 claim secret (Bearer, ADR 0135),
    aiming <slug>.idss.nz at the box. App-side (the app holds the secret).
  3. clan Enroll — Target: root@<IP>, Install: FullInstall
    (nixos-anywhere takeover), real PublicGatewayFacts
    (CommunityApex = <slug>.idss.nz, Public non-nil — the #354
    GatewayLiveSet composition).
  4. seed/supply/deploy over the same connection via T1's host seam.
  5. mint/redeem/pair in-process against the in-helper ledger (ADR 0043's
    decision unchanged): identity minted in-helper, landed via vars — the
    rented sketch's mintRentedGatewayKey move made real, its
    revoke-on-failure discipline copied (standuprented.go:173-197). The box's
    real SSH host key (learned at connect) rides the pair record.

The rendered install command + get.idss.nz leave the own-VPS branch
(machine-at-your-place keeps them). The S7a SCREEN is T3 — this slice may
land with the old screen still showing; the worker's journey rows are the
contract.

Acceptance:

  • Given a reachable root@IP box, when the own-VPS journey runs, then it
    proceeds connect → point → install → seed → pair to the S12 hand-off,
    exactly the private path's row semantics
  • Given an unreachable box / refused key, then a named fault frame with a
    remedy (resumable), never a silent stall
  • Given redeem or pair failure, then the minted code is revoked
  • Seam tests cover the worker's legs with fakes; the live proof is the
    rehearsal drive's next frontier
Slice T2 of `docs/superpowers/specs/2026-08-10-own-vps-carrier-design.md` — the carrier itself (ADR 0152, shape A: the app drives out). **no-triage until T1 lands** (flip ready-for-agent when the fleetwire host seam is on main). `BeginStandup(AccessOwnVPS)` (internal/founding/manualpath.go) stops returning at the install screen and runs a journey worker (the private path's runner shape and row vocabulary): 1. **connect** — SSH reachability to `root@<IP>` (S4) with the operator's own key/agent; refusal = named journey red with a remedy, never a hang. 2. **point** — broker `/point` with the S5 claim secret (Bearer, ADR 0135), aiming `<slug>.idss.nz` at the box. App-side (the app holds the secret). 3. **clan Enroll** — `Target: root@<IP>`, `Install: FullInstall` (nixos-anywhere takeover), real `PublicGatewayFacts` (`CommunityApex = <slug>.idss.nz`, `Public` non-nil — the #354 GatewayLiveSet composition). 4. **seed/supply/deploy** over the same connection via T1's host seam. 5. **mint/redeem/pair in-process** against the in-helper ledger (ADR 0043's decision unchanged): identity minted in-helper, landed via vars — the rented sketch's `mintRentedGatewayKey` move made real, its revoke-on-failure discipline copied (standuprented.go:173-197). The box's real SSH host key (learned at connect) rides the pair record. The rendered install command + `get.idss.nz` leave the own-VPS branch (machine-at-your-place keeps them). The S7a SCREEN is T3 — this slice may land with the old screen still showing; the worker's journey rows are the contract. Acceptance: - [ ] Given a reachable root@IP box, when the own-VPS journey runs, then it proceeds connect → point → install → seed → pair to the S12 hand-off, exactly the private path's row semantics - [ ] Given an unreachable box / refused key, then a named fault frame with a remedy (resumable), never a silent stall - [ ] Given redeem or pair failure, then the minted code is revoked - [ ] Seam tests cover the worker's legs with fakes; the live proof is the rehearsal drive's next frontier
Author
Owner

T1 landed and pushed (b526801 on main; #382 closed) — flipping ready-for-agent per this ticket's own gate ("no-triage until T1 lands"). The fleetwire Target seam is ready to build against: RemoteTarget(host, knownHosts) with accept-new + state-dir pinning.

T1 landed and pushed (`b526801` on main; #382 closed) — flipping `ready-for-agent` per this ticket's own gate ("no-triage until T1 lands"). The fleetwire `Target` seam is ready to build against: `RemoteTarget(host, knownHosts)` with accept-new + state-dir pinning.
Author
Owner

Done in f4548f5 (on origin/main).

BeginStandup(own-VPS) now runs the carrier journey worker (internal/founding/ownvpspath.go) — connect → point → install(FullInstall) → seed → pair → deploy, the private path's runner shape and row vocabulary reused. New OwnVPSCarrier connect seam (SSH host key + takeover-ready network facts + hardware); the point leg POSTs the broker /point with the S5 claim secret (Bearer); the install leg is clan Enroll Target root@, Install FullInstall, real PublicGatewayFacts (CommunityApex=.idss.nz, Public non-nil — the #354 GatewayLiveSet composition); supply lands after the takeover; mint/redeem/pair in-process with revoke-on-failure and the box's real SSH host key on the pair record.

Acceptance (seam tests, internal/founding/ownvpspath_test.go — all green):

  • reachable box → connect→point→install→seed→pair→deploy-live, every journey row done (incl. public-entry), then RunSeed reaches S12 seeding — with the enroll/broker/supply assertions.
  • unreachable/refused key → named RESUMABLE fault carrying a remedy, connect row red with its detail, no code minted (never a silent stall).
  • redeem/pair failure → minted code revoked (spec-gate shortfall keeps it live, distinct).
  • every leg covered with fakes; mid-flight live status + one-worker re-entry + reachability-window resume also pinned.

The install command + get.idss.nz leave the own-VPS branch (machine-at-your-place keeps them). Shared machinery generalised, private path byte-identical. Go gate (build/vet/golangci/-race) green.

Frontier (as the issue notes): production wiring of the real carrier adapter (SSH connect/probe over T1's RemoteTarget) and the S7a screen (T3) + rehearsal drive (T5). Until the app wires WithOwnVPSCarrier the own-VPS path fails loud (ErrOwnVPSCarrierUnavailable, ADR 0100), never a silent fake.

Done in f4548f5 (on origin/main). BeginStandup(own-VPS) now runs the carrier journey worker (internal/founding/ownvpspath.go) — connect → point → install(FullInstall) → seed → pair → deploy, the private path's runner shape and row vocabulary reused. New OwnVPSCarrier connect seam (SSH host key + takeover-ready network facts + hardware); the point leg POSTs the broker /point with the S5 claim secret (Bearer); the install leg is clan Enroll Target root@<IP>, Install FullInstall, real PublicGatewayFacts (CommunityApex=<slug>.idss.nz, Public non-nil — the #354 GatewayLiveSet composition); supply lands after the takeover; mint/redeem/pair in-process with revoke-on-failure and the box's real SSH host key on the pair record. Acceptance (seam tests, internal/founding/ownvpspath_test.go — all green): - reachable box → connect→point→install→seed→pair→deploy-live, every journey row done (incl. public-entry), then RunSeed reaches S12 seeding — with the enroll/broker/supply assertions. - unreachable/refused key → named RESUMABLE fault carrying a remedy, connect row red with its detail, no code minted (never a silent stall). - redeem/pair failure → minted code revoked (spec-gate shortfall keeps it live, distinct). - every leg covered with fakes; mid-flight live status + one-worker re-entry + reachability-window resume also pinned. The install command + get.idss.nz leave the own-VPS branch (machine-at-your-place keeps them). Shared machinery generalised, private path byte-identical. Go gate (build/vet/golangci/-race) green. Frontier (as the issue notes): production wiring of the real carrier adapter (SSH connect/probe over T1's RemoteTarget) and the S7a screen (T3) + rehearsal drive (T5). Until the app wires WithOwnVPSCarrier the own-VPS path fails loud (ErrOwnVPSCarrierUnavailable, ADR 0100), never a silent fake.
ben closed this issue 2026-08-10 06:20:45 +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#383
No description provided.