founding: private-path — local VM stand-up, no device-end consent, reachability skipped #78

Closed
opened 2026-07-25 04:58:31 +00:00 by ben · 1 comment
Owner

Parent

Feature spec: #11 (founding).

What to build

The private-path stand-up (P1-VAR): founding a community on just this computer, with no public address yet. Because the private path was chosen in the soft phase (its Address step is skipped, going public stated as a later step), creating the community stands up a local NixOS VM on this computer with no device-end consent step — the operator owns both the machine and the app. The VM calls in and pairs, and its specs are probed against the declared gateway minimum. From there the flow joins the shared spec gate (S9); since there is no public address, reachability (S10) is skipped and the gateway deploy (S11) begins directly.

This slice wires the private path's VAR→S9→S11 stand-up through to the gateway deploy and hand-off. It runs on the founding orchestrator (ADR 0052) with the clan connection driven directly (the private-VM carrier). Going public later for a private-path community is a pointer, not a founding capability (it lands with device-add/provisioning work).

Acceptance criteria

  • (story 17) Given the private path was chosen, when the community is created, then a local NixOS VM is stood up on this computer with no device-end consent step (the operator owns both the machine and the app), the VM calls in and pairs, and its specs are probed against the declared minimum.
  • (story 9, stand-up) Given the private-path VM passes the spec gate (S9), when it has no public address, then reachability is skipped and the gateway deploy (S11) begins directly.

Blocked by

  • #57 — the private path runs the gateway deploy.
  • #72 — the path completes at hand-off (S12).

Task manifest

task: founding:private-path
implements_flow: p1-founding
implements_edge: S6→VAR, VAR→S9, S9→S11
wireframe: docs/ux/wireframes/p1-founding/p1-var-private-path.html
interface: the `founding` orchestrator's private-path stand-up face — stand up a local NixOS VM with no device-end consent (direct-drive carrier), have it call in and pair, probe specs against the declared minimum, join the spec gate (S9), and on pass skip reachability and begin the gateway deploy (S11) directly
seam: "`founding` orchestrator seam tests (bundled helper, Go) \u2014 fake clan (direct-drive VM Enrollment + Deploy), in-memory enroll ledger, real brandkit"
acceptance:
  - given: the private path was chosen
    when: the community is created
    then: a local NixOS VM is stood up with no device-end consent, it calls in and pairs, and specs are probed against the declared minimum
  - given: the private-path VM passes the spec gate (S9)
    when: it has no public address
    then: reachability is skipped and the gateway deploy (S11) begins directly
depends_on: [deploy-gateway, identity-handoff-scrub]
out_of_scope:
  - "the rented folded checklist — standup-rented's (story 13)"
  - "own-VPS / machine-at-place install and device-end consent — standup-manual-paths's (stories 14–16)"
  - "the going-public step for a private-path community — deferred, lands with device-add/provisioning"
needs_human_decision: []
## Parent Feature spec: #11 (founding). ## What to build The private-path stand-up (P1-VAR): founding a community on just this computer, with no public address yet. Because the private path was chosen in the soft phase (its Address step is skipped, going public stated as a later step), creating the community stands up a local NixOS VM on this computer with no device-end consent step — the operator owns both the machine and the app. The VM calls in and pairs, and its specs are probed against the declared gateway minimum. From there the flow joins the shared spec gate (S9); since there is no public address, reachability (S10) is skipped and the gateway deploy (S11) begins directly. This slice wires the private path's VAR→S9→S11 stand-up through to the gateway deploy and hand-off. It runs on the `founding` orchestrator (ADR 0052) with the clan connection driven directly (the private-VM carrier). Going public later for a private-path community is a pointer, not a founding capability (it lands with device-add/provisioning work). ## Acceptance criteria - [ ] (story 17) Given the private path was chosen, when the community is created, then a local NixOS VM is stood up on this computer with no device-end consent step (the operator owns both the machine and the app), the VM calls in and pairs, and its specs are probed against the declared minimum. - [ ] (story 9, stand-up) Given the private-path VM passes the spec gate (S9), when it has no public address, then reachability is skipped and the gateway deploy (S11) begins directly. ## Blocked by - #57 — the private path runs the gateway deploy. - #72 — the path completes at hand-off (S12). ## Task manifest ```yaml task: founding:private-path implements_flow: p1-founding implements_edge: S6→VAR, VAR→S9, S9→S11 wireframe: docs/ux/wireframes/p1-founding/p1-var-private-path.html interface: the `founding` orchestrator's private-path stand-up face — stand up a local NixOS VM with no device-end consent (direct-drive carrier), have it call in and pair, probe specs against the declared minimum, join the spec gate (S9), and on pass skip reachability and begin the gateway deploy (S11) directly seam: "`founding` orchestrator seam tests (bundled helper, Go) \u2014 fake clan (direct-drive VM Enrollment + Deploy), in-memory enroll ledger, real brandkit" acceptance: - given: the private path was chosen when: the community is created then: a local NixOS VM is stood up with no device-end consent, it calls in and pairs, and specs are probed against the declared minimum - given: the private-path VM passes the spec gate (S9) when: it has no public address then: reachability is skipped and the gateway deploy (S11) begins directly depends_on: [deploy-gateway, identity-handoff-scrub] out_of_scope: - "the rented folded checklist — standup-rented's (story 13)" - "own-VPS / machine-at-place install and device-end consent — standup-manual-paths's (stories 14–16)" - "the going-public step for a private-path community — deferred, lands with device-add/provisioning" needs_human_decision: [] ```
Author
Owner

Done in b929a07 (on origin/main).

The P1-VAR private-path stand-up on the founding orchestrator (ADR 0052), driving clan's VM Enrollment hot path directly — the direct-drive carrier (ADR 0043).

Story 17 — creating a private-path community stands up a local NixOS VM on this computer with no device-end consent step: Orchestrator.StandUpPrivate (internal/founding/privatepath.go) drives clan.Clan.Enroll in VM mode to completion (the resumable snapshot rides the founding-state document, ADR 0050), then — founding being the device end — mints the gateway code, redeems it in-process, and relays the pair to the shared join node, where the VM's specs are probed against the declared gateway minimum (2 vCPU · 4 GB · 40 GB dedicated, ADR 0030).

Story 9 (stand-up) — on a spec-gate pass, the private path being non-public, reachability (S10) is skipped and the gateway deploy (S11) begins directly (StandupDeploying).

Evidence: internal/founding/privatepath_test.go (stories 17 + 9 + guards, the direct-drive VM Enrollment + Deploy seam); app-side FoundingPrivatePath.vue (the P1-VAR "what changes" screen) wired into FoundingStandup.vue/FoundingWizard.vue, app/tests/unit/foundingPrivatePath.test.ts. All Go + app tests green, typecheck + eslint clean. STATUS.md updated (header + milestone log).

Out of scope (untouched): standup-rented (#77), the manual paths, the S9/S9x/S10 screens, and going-public later.

Done in b929a07 (on origin/main). The P1-VAR private-path stand-up on the `founding` orchestrator (ADR 0052), driving clan's VM Enrollment hot path directly — the direct-drive carrier (ADR 0043). **Story 17** — creating a private-path community stands up a local NixOS VM on this computer with **no device-end consent step**: `Orchestrator.StandUpPrivate` (`internal/founding/privatepath.go`) drives `clan.Clan.Enroll` in VM mode to completion (the resumable snapshot rides the founding-state document, ADR 0050), then — founding being the device end — mints the gateway code, redeems it in-process, and relays the pair to the shared join node, where the VM's specs are probed against the declared gateway minimum (2 vCPU · 4 GB · 40 GB dedicated, ADR 0030). **Story 9 (stand-up)** — on a spec-gate pass, the private path being non-public, reachability (S10) is skipped and the gateway deploy (S11) begins directly (`StandupDeploying`). Evidence: `internal/founding/privatepath_test.go` (stories 17 + 9 + guards, the direct-drive VM Enrollment + Deploy seam); app-side `FoundingPrivatePath.vue` (the P1-VAR "what changes" screen) wired into `FoundingStandup.vue`/`FoundingWizard.vue`, `app/tests/unit/foundingPrivatePath.test.ts`. All Go + app tests green, typecheck + eslint clean. STATUS.md updated (header + milestone log). Out of scope (untouched): standup-rented (#77), the manual paths, the S9/S9x/S10 screens, and going-public later.
ben closed this issue 2026-07-26 06:22:17 +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#78
No description provided.