app: compose follow-up — wire the landed founding adapters (VM standup #192, Reachability #193, DNSResolver #194) into the helper #195

Closed
opened 2026-07-30 22:22:13 +00:00 by ben · 1 comment
Owner

Parent

Engine-adapters close-out #183. The compose follow-up that app/PACKAGING.md (#191, ADR 0108) names explicitly: #192/#193/#194 landed founding's remaining real adapters, but the helper's production wiring (app/helper/cmd/helper/wiring_prod.go) still injects only ClanFace + EnrollFace — every other founding port is nil and fails loud, so the founding journey cannot be driven end-to-end from the packaged app.

What to build

Wire the landed adapters into newFoundingOrchestrator (ADR 0100 — real or fail-loud, never a fake):

  1. Reachability → internal/reachability.Prober (#193) — founding's S10 outside-in check.
  2. DNSResolver → internal/dns.Resolver (#194) — S5 poll + S10 name wiring.
  3. Private-path VM standup → the #192 path (ADR 0043/0056: the private path drives the locally-installed agent's internal/vm.Manager). Resolve honestly where the per-arch NixOS BaseImage comes from on the operator's machine — a missing image is a legible fail-loud, never a fabricated guest.
  4. Ports that remain genuinely unbuilt (e.g. broker — deferred business decision, ADR 0047/0048) keep the honest nil/fail-loud.

Extend the boot seam test (#131/#191) to prove the production wiring constructs the full set.

Acceptance criteria

  • Given the packaged production app, When founding's own-VPS lane reaches S10, Then reachability and name wiring run through the real #193/#194 adapters — no fake, no nil panic
  • Given founding's private path on a KVM-capable Linux machine with the base image present, When the community is created, Then the local gateway VM stands up via the real VM manager and pairs
  • Given a machine missing a prerequisite (no KVM, no base image), When the private path is driven, Then the failure is legible and honest (ADR 0100), never a masked success
  • Given the boot seam test, When run against the production wiring, Then it proves every founding port is either a real adapter or an honest fail-loud — and names which

Task manifest

task: app:compose-founding-real
implements_seam: "founding orchestrator ports (spec #11) + ADR 0100; consumes #192 (vm), #193 (reachability), #194 (dns)"
interface: "the helper's production composition"
seam: "the boot seam test, extended to the full founding port set"
acceptance:
  - given: the packaged app; when: founding is driven; then: every port answers real or fails loud legibly — S10 checks real, private-path VM standup real where prerequisites hold
depends_on: []
out_of_scope: [broker (deferred business decision), break-glass (rescue arc), the real-hardware journey itself (#183)]
needs_human_decision: []

Blocks

#183 — Phase A (private-path founding) and leg B·1 (own-VPS S10 checks).

## Parent Engine-adapters close-out #183. The compose follow-up that `app/PACKAGING.md` (#191, ADR 0108) names explicitly: #192/#193/#194 landed founding's remaining real adapters, but the helper's production wiring (`app/helper/cmd/helper/wiring_prod.go`) still injects only ClanFace + EnrollFace — every other founding port is nil and fails loud, so the founding journey cannot be driven end-to-end from the packaged app. ## What to build Wire the landed adapters into `newFoundingOrchestrator` (ADR 0100 — real or fail-loud, never a fake): 1. **Reachability** → `internal/reachability.Prober` (#193) — founding's S10 outside-in check. 2. **DNSResolver** → `internal/dns.Resolver` (#194) — S5 poll + S10 name wiring. 3. **Private-path VM standup** → the #192 path (ADR 0043/0056: the private path drives the locally-installed agent's `internal/vm.Manager`). Resolve honestly where the per-arch NixOS **BaseImage** comes from on the operator's machine — a missing image is a legible fail-loud, never a fabricated guest. 4. Ports that remain genuinely unbuilt (e.g. broker — deferred business decision, ADR 0047/0048) keep the honest nil/fail-loud. Extend the boot seam test (#131/#191) to prove the production wiring constructs the full set. ## Acceptance criteria - [ ] Given the packaged production app, When founding's own-VPS lane reaches S10, Then reachability and name wiring run through the real #193/#194 adapters — no fake, no nil panic - [ ] Given founding's private path on a KVM-capable Linux machine with the base image present, When the community is created, Then the local gateway VM stands up via the real VM manager and pairs - [ ] Given a machine missing a prerequisite (no KVM, no base image), When the private path is driven, Then the failure is legible and honest (ADR 0100), never a masked success - [ ] Given the boot seam test, When run against the production wiring, Then it proves every founding port is either a real adapter or an honest fail-loud — and names which ## Task manifest ```yaml task: app:compose-founding-real implements_seam: "founding orchestrator ports (spec #11) + ADR 0100; consumes #192 (vm), #193 (reachability), #194 (dns)" interface: "the helper's production composition" seam: "the boot seam test, extended to the full founding port set" acceptance: - given: the packaged app; when: founding is driven; then: every port answers real or fails loud legibly — S10 checks real, private-path VM standup real where prerequisites hold depends_on: [] out_of_scope: [broker (deferred business decision), break-glass (rescue arc), the real-hardware journey itself (#183)] needs_human_decision: [] ``` ## Blocks #183 — Phase A (private-path founding) and leg B·1 (own-VPS S10 checks).
Author
Owner

Done in a5b91e7 (pushed to main).

app/helper/cmd/helper/wiring_prod.go now injects six real founding ports, not two. Added to the ClanFace + EnrollFace (#191):

  • Reachability → internal/reachability.Prober (#193) via WithReachability — the P1-S10 outside-in check.
  • DNSResolver → internal/dns.Resolver (#194) via WithResolver — the S5 self-host pre-check + S10 own-domain name wiring.
  • HostProbe → internal/hostprobe.Prober (#192) via WithHostProbe — the private path's honest read of THIS computer (measures vm.DefaultConfig().StateDir, where the guest disk lives).
  • LocalVM → internal/vm.Manager (#192, ADR 0056) via WithLocalVM — the private path's local NixOS gateway-guest standup.

Base-image honesty (AC3): the guest image is resolved exactly like the agent's — OURCLOUD_GUEST_IMAGE, else the artifact default under vm.DefaultConfig().StateDir/nixos-guest.qcow2. A missing image or missing KVM makes vm.Manager.Create fail loud legibly (ADR 0056/0100), never a fabricated guest.

Fail-loud (honest nil): broker (deferred business decision, ADR 0047/0048) and the seeding/hand-off ports (fleet, enrolment, laptop — their own slices) keep the honest fail-loud.

Boot seam test (AC4): a single-sourced foundingPorts map drives BOTH the wiring and the extended boot seam test TestProductionWiringNamesEveryFoundingPort in wiring_test.go, which proves every founding port is either a real adapter or an honestly-noted fail-loud — and names which. The soft phase reaches no unwired port, so the #131/#191 boot seam test (app/tests/unit/boot.test.ts) is unaffected.

AC1 (own-VPS S10 via real #193/#194) and AC2 (private-path VM standup via real #192) are satisfied by the wiring; the behaviour is already proven by the founding seam's own tests and the adapters' contract tests. Note: no Go toolchain in the Sandcastle sandbox — verification is careful review; the Go build + suite gate runs in nix develop (CI). Interface satisfaction is structural (hostprobe↔HostProbe, vm.Manager↔LocalVM) plus the compile-time _ founding assertions in reachability/dns.

Unblocks #183 Phase A (private-path founding) and leg B·1 (own-VPS S10 checks).

Done in a5b91e7 (pushed to `main`). `app/helper/cmd/helper/wiring_prod.go` now injects six real founding ports, not two. Added to the ClanFace + EnrollFace (#191): - **Reachability** → `internal/reachability.Prober` (#193) via `WithReachability` — the P1-S10 outside-in check. - **DNSResolver** → `internal/dns.Resolver` (#194) via `WithResolver` — the S5 self-host pre-check + S10 own-domain name wiring. - **HostProbe** → `internal/hostprobe.Prober` (#192) via `WithHostProbe` — the private path's honest read of THIS computer (measures `vm.DefaultConfig().StateDir`, where the guest disk lives). - **LocalVM** → `internal/vm.Manager` (#192, ADR 0056) via `WithLocalVM` — the private path's local NixOS gateway-guest standup. **Base-image honesty (AC3):** the guest image is resolved exactly like the agent's — `OURCLOUD_GUEST_IMAGE`, else the artifact default under `vm.DefaultConfig().StateDir/nixos-guest.qcow2`. A missing image or missing KVM makes `vm.Manager.Create` fail loud legibly (ADR 0056/0100), never a fabricated guest. **Fail-loud (honest nil):** broker (deferred business decision, ADR 0047/0048) and the seeding/hand-off ports (fleet, enrolment, laptop — their own slices) keep the honest fail-loud. **Boot seam test (AC4):** a single-sourced `foundingPorts` map drives BOTH the wiring and the extended boot seam test `TestProductionWiringNamesEveryFoundingPort` in `wiring_test.go`, which proves every founding port is either a real adapter or an honestly-noted fail-loud — and names which. The soft phase reaches no unwired port, so the #131/#191 boot seam test (`app/tests/unit/boot.test.ts`) is unaffected. AC1 (own-VPS S10 via real #193/#194) and AC2 (private-path VM standup via real #192) are satisfied by the wiring; the behaviour is already proven by the founding seam's own tests and the adapters' contract tests. Note: no Go toolchain in the Sandcastle sandbox — verification is careful review; the Go build + suite gate runs in `nix develop` (CI). Interface satisfaction is structural (hostprobe↔HostProbe, vm.Manager↔LocalVM) plus the compile-time `_ founding` assertions in reachability/dns. Unblocks #183 Phase A (private-path founding) and leg B·1 (own-VPS S10 checks).
ben closed this issue 2026-07-30 22:34:26 +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#195
No description provided.