founding: standup-manual-paths — own-VPS install, machine-at-place methods, device-end consent #66

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

Parent

Feature spec: #11 (founding).

What to build

The device-end stand-up for the two manual public paths — the operator's own VPS and a machine at the operator's place — up to the shared spec gate. On own VPS (P1-S7a) the operator is given a one-line install command; running it installs the agent on the stock OS and the flow proceeds to install-mode consent (S8). For a machine at the operator's place (P1-S7b) the operator chooses the install method: the command-line method runs the install command on the device and proceeds to S8; the desktop-app method (GUI installer) hands off to device-add's P3-S2 (Join with a code), and on Linux the desktop path also offers full install. Once the P3-S2 hand-off completes and the app's agent pairs, probes the device, and specs meet the declared minimum, the flow rejoins at the spec gate (S9). At the device end, install-mode consent (P1-S8) is where the device owner consents on the device itself: they choose full install (wipes and replaces the OS at first deploy — consequences stated) or VM mode (keeps the OS, dedicates resources), and only then does the agent probe the device and pair — nothing wipes or claims a machine without the owner.

The S7b desktop-app method hands off to device-add's Join-with-a-code screen (P3-S2), which is device-add's contract — so this slice depends on device-add:app-join-happy (Ben-confirmed cross-feature edge, 2026-07-25). Runs on the founding orchestrator (ADR 0052).

Acceptance criteria

  • (story 14) Given S7a shows the install command, when the operator runs it on the VPS, then the agent installs on the stock OS and the flow proceeds to install mode and consent (S8).
  • (story 15) Given the operator picks the command-line method, when they run the install command on the device, then the agent installs on the stock OS and the flow proceeds to S8.
  • (story 15) Given the operator picks the desktop-app method (GUI installer), when it starts, then the flow hands off to device-add-app P3-S2 (Join with a code); on Linux the desktop path also offers full install.
  • (story 15) Given the hand-off to P3-S2 completes, when the app's agent pairs and probes the device and specs meet the declared minimum, then the flow rejoins at the spec gate (S9).
  • (story 16) Given the agent is installed, when the device owner consents on the device end, then they choose full install (wipes and replaces the OS at first deploy — consequences stated) or VM mode (keeps the OS, dedicates resources), and only then does the agent probe the device and pair.

Blocked by

  • #57 — the manual paths run through to the gateway deploy.
  • #50 — S7b desktop method hands off to P3-S2 (device-add's contract).

Task manifest

task: founding:standup-manual-paths
implements_flow: p1-founding
implements_edge: S6→S7a, S6→S7b, S7a→S8, S7b→S8, S7b→P3-S2, S8→S9, S8→S9x
wireframe:
  - docs/ux/wireframes/p1-founding/p1-s7a-install-own-vps.html
  - docs/ux/wireframes/p1-founding/p1-s7b-install-machine-at-your-place.html
  - docs/ux/wireframes/p1-founding/p1-s8-install-mode-consent.html
interface: the `founding` orchestrator's manual-path stand-up face — present the own-VPS one-line install command and the machine-at-place method choice (command-line → S8; desktop-app → device-add P3-S2 hand-off, full install offered on Linux), drive device-end install-mode consent (full install vs VM mode) before probe-and-pair, and rejoin at the spec gate (S9) once specs meet the declared minimum
seam: "`founding` orchestrator seam tests (bundled helper, Go) \u2014 fake clan (Enrollment, install-mode consent), in-memory enroll ledger, fake DNS resolver, real brandkit"
acceptance:
  - given: S7a shows the install command
    when: the operator runs it on the VPS
    then: the agent installs on the stock OS and the flow proceeds to S8
  - given: the machine-at-place method choice
    when: command-line / desktop-app is picked
    then: command-line runs the install command → S8; desktop-app hands off to device-add P3-S2 (full install offered on Linux), and once P3-S2 completes with pairing/probe and specs meeting the minimum the flow rejoins at S9
  - given: the agent is installed
    when: the device owner consents on the device
    then: they choose full install (wipe-and-replace at first deploy, consequences stated) or VM mode (keeps the OS, dedicates resources), and only then does the agent probe and pair
depends_on: [deploy-gateway, device-add:app-join-happy]
out_of_scope:
  - "the rented folded checklist — standup-rented's (story 13)"
  - "the private-path VM stand-up — private-path's (story 17)"
  - "the spec gate / reachability screens themselves — spec-gate-and-reachability's (stories 18–20)"
  - "device-add proper (P2/P3) — device-add's contract; founding touches it only at the S7b→P3-S2 hand-off"
needs_human_decision: []
## Parent Feature spec: #11 (founding). ## What to build The device-end stand-up for the two manual public paths — the operator's own VPS and a machine at the operator's place — up to the shared spec gate. On own VPS (P1-S7a) the operator is given a one-line install command; running it installs the agent on the stock OS and the flow proceeds to install-mode consent (S8). For a machine at the operator's place (P1-S7b) the operator chooses the install method: the command-line method runs the install command on the device and proceeds to S8; the desktop-app method (GUI installer) hands off to device-add's P3-S2 (Join with a code), and on Linux the desktop path also offers full install. Once the P3-S2 hand-off completes and the app's agent pairs, probes the device, and specs meet the declared minimum, the flow rejoins at the spec gate (S9). At the device end, install-mode consent (P1-S8) is where the device owner consents on the device itself: they choose full install (wipes and replaces the OS at first deploy — consequences stated) or VM mode (keeps the OS, dedicates resources), and only then does the agent probe the device and pair — nothing wipes or claims a machine without the owner. The S7b desktop-app method hands off to device-add's Join-with-a-code screen (P3-S2), which is device-add's contract — so this slice depends on device-add:app-join-happy (Ben-confirmed cross-feature edge, 2026-07-25). Runs on the `founding` orchestrator (ADR 0052). ## Acceptance criteria - [ ] (story 14) Given S7a shows the install command, when the operator runs it on the VPS, then the agent installs on the stock OS and the flow proceeds to install mode and consent (S8). - [ ] (story 15) Given the operator picks the command-line method, when they run the install command on the device, then the agent installs on the stock OS and the flow proceeds to S8. - [ ] (story 15) Given the operator picks the desktop-app method (GUI installer), when it starts, then the flow hands off to device-add-app P3-S2 (Join with a code); on Linux the desktop path also offers full install. - [ ] (story 15) Given the hand-off to P3-S2 completes, when the app's agent pairs and probes the device and specs meet the declared minimum, then the flow rejoins at the spec gate (S9). - [ ] (story 16) Given the agent is installed, when the device owner consents on the device end, then they choose full install (wipes and replaces the OS at first deploy — consequences stated) or VM mode (keeps the OS, dedicates resources), and only then does the agent probe the device and pair. ## Blocked by - #57 — the manual paths run through to the gateway deploy. - #50 — S7b desktop method hands off to P3-S2 (device-add's contract). ## Task manifest ```yaml task: founding:standup-manual-paths implements_flow: p1-founding implements_edge: S6→S7a, S6→S7b, S7a→S8, S7b→S8, S7b→P3-S2, S8→S9, S8→S9x wireframe: - docs/ux/wireframes/p1-founding/p1-s7a-install-own-vps.html - docs/ux/wireframes/p1-founding/p1-s7b-install-machine-at-your-place.html - docs/ux/wireframes/p1-founding/p1-s8-install-mode-consent.html interface: the `founding` orchestrator's manual-path stand-up face — present the own-VPS one-line install command and the machine-at-place method choice (command-line → S8; desktop-app → device-add P3-S2 hand-off, full install offered on Linux), drive device-end install-mode consent (full install vs VM mode) before probe-and-pair, and rejoin at the spec gate (S9) once specs meet the declared minimum seam: "`founding` orchestrator seam tests (bundled helper, Go) \u2014 fake clan (Enrollment, install-mode consent), in-memory enroll ledger, fake DNS resolver, real brandkit" acceptance: - given: S7a shows the install command when: the operator runs it on the VPS then: the agent installs on the stock OS and the flow proceeds to S8 - given: the machine-at-place method choice when: command-line / desktop-app is picked then: command-line runs the install command → S8; desktop-app hands off to device-add P3-S2 (full install offered on Linux), and once P3-S2 completes with pairing/probe and specs meeting the minimum the flow rejoins at S9 - given: the agent is installed when: the device owner consents on the device then: they choose full install (wipe-and-replace at first deploy, consequences stated) or VM mode (keeps the OS, dedicates resources), and only then does the agent probe and pair depends_on: [deploy-gateway, device-add:app-join-happy] out_of_scope: - "the rented folded checklist — standup-rented's (story 13)" - "the private-path VM stand-up — private-path's (story 17)" - "the spec gate / reachability screens themselves — spec-gate-and-reachability's (stories 18–20)" - "device-add proper (P2/P3) — device-add's contract; founding touches it only at the S7b→P3-S2 hand-off" needs_human_decision: [] ```
Author
Owner

Done in 9fa2535 (on origin/main).

The device-end stand-up for the two manual public paths (P1-S7a/S7b) up to the shared spec gate. The founding orchestrator gains its manual-path face (internal/founding/manualpath.go):

  • S7a (own VPS, story 14): BeginStandup mints the one gateway enrollment code through the in-process enroll face (ADR 0043, GatewayRole hint ADR 0055) and rests at the one-line install command (curl … | sh -s -- <CODE>) carrying it, targeting the VPS IP. Running it → device-end consent (S8) → pair → S9.
  • S7b (machine at your place, story 15): ChooseInstallMethod routes the choice — the command-line method shows the same install command (S7b→S8, exactly the VPS path); the desktop-app method hands off to device-add's Join-with-a-code (P3-S2, StandupAppJoin) carrying the same code, and on Linux the app also offers full install (device-add's P3-S3L). founding touches device-add only at the hand-off (depends on #50). Once the app pairs/probes and specs meet the minimum, the flow rejoins at S9.
  • Device-end consent (S8, story 16): install-mode consent is a device-end choice by design (ADR 0024) — full install (wipes/replaces the OS) or VM mode (keeps it) rides the paired enroll.PairRequest's Mode into the join node (Orchestrator.Pair), which records it and rejoins the spec gate (S9/S9x) — nothing wipes or claims a machine without the owner. The S8 device-end screen is device-add's shared surface; this slice reaches it, it does not re-own it. Rented/private paths stay unstarted (standup-rented's / private-path's).

Ships: the install-own-vps/install-machine/app-join stand-up steps + Standup.Install, the begin-standup/choose-install-method stdio ops, and FoundingInstallOwnVPS.vue/FoundingInstallMachine.vue mounted in FoundingStandup.vue (which now loads via the idempotent begin-standup).

Evidence: internal/founding/manualpath_test.go (stories 14–16 + idempotency/path-scope guards), internal/founding/stdio_test.go, app/tests/unit/foundingManualPaths.test.ts; go test ./internal/founding/ green, all 174 app unit tests green.

Note for the next iteration: the in-process enroll face is still unwired in the found helper bridge (spec-gate #47's Pair and this slice's begin-standup both need it) — that production wiring is seed-fleet-authority's (#65, the app-hosted enroll control-plane face).

Done in 9fa2535 (on `origin/main`). The device-end stand-up for the two manual public paths (P1-S7a/S7b) up to the shared spec gate. The `founding` orchestrator gains its manual-path face (`internal/founding/manualpath.go`): - **S7a (own VPS, story 14):** `BeginStandup` mints the one gateway enrollment code through the in-process `enroll` face (ADR 0043, `GatewayRole` hint ADR 0055) and rests at the one-line install command (`curl … | sh -s -- <CODE>`) carrying it, targeting the VPS IP. Running it → device-end consent (S8) → pair → S9. - **S7b (machine at your place, story 15):** `ChooseInstallMethod` routes the choice — the command-line method shows the same install command (S7b→S8, exactly the VPS path); the desktop-app method hands off to device-add's Join-with-a-code (P3-S2, `StandupAppJoin`) carrying the same code, and on Linux the app also offers full install (device-add's P3-S3L). founding touches device-add only at the hand-off (depends on #50). Once the app pairs/probes and specs meet the minimum, the flow rejoins at S9. - **Device-end consent (S8, story 16):** install-mode consent is a device-end choice by design (ADR 0024) — full install (wipes/replaces the OS) or VM mode (keeps it) rides the paired `enroll.PairRequest`'s Mode into the join node (`Orchestrator.Pair`), which records it and rejoins the spec gate (S9/S9x) — nothing wipes or claims a machine without the owner. The S8 device-end screen is device-add's shared surface; this slice reaches it, it does not re-own it. Rented/private paths stay unstarted (standup-rented's / private-path's). **Ships:** the `install-own-vps`/`install-machine`/`app-join` stand-up steps + `Standup.Install`, the `begin-standup`/`choose-install-method` stdio ops, and `FoundingInstallOwnVPS.vue`/`FoundingInstallMachine.vue` mounted in `FoundingStandup.vue` (which now loads via the idempotent `begin-standup`). **Evidence:** `internal/founding/manualpath_test.go` (stories 14–16 + idempotency/path-scope guards), `internal/founding/stdio_test.go`, `app/tests/unit/foundingManualPaths.test.ts`; `go test ./internal/founding/` green, all 174 app unit tests green. **Note for the next iteration:** the in-process `enroll` face is still unwired in the `found` helper bridge (spec-gate #47's `Pair` and this slice's `begin-standup` both need it) — that production wiring is seed-fleet-authority's (#65, the app-hosted enroll control-plane face).
ben closed this issue 2026-07-26 04:48: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#66
No description provided.