founding: deploy-gateway — control-plane stand-up, VM-mode retry, full-install recovery #57

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

Parent

Feature spec: #11 (founding).

What to build

The gateway deploy (P1-S11) that turns a paired, reachable server into a working community over the established clan connection. When deploy runs and completes, the control plane — config repo, deploy runner, IdP, web dashboard — is live on the gateway, the brand kit is applied to every surface it binds (portal, IdP login, dashboard), the operator's admin account exists from seeded declarative config, and the whole deploy ran over the clan connection, fully logged with drill-in (ADR 0027). Failure is honest per install mode: a VM-mode deploy failure retries cleanly — the VM is deleted and stand-up retries from Review (S6), leaving no wreckage; a full-install failure offers resume-the-deploy or reinstall-the-agent / rescue boot and states plainly there is no old OS to roll back to, returning via S6.

This slice runs on the founding orchestrator (ADR 0052) driving clan.Deploy with layered outcome detection. Seeding, identity hand-off, and scrub are downstream slices; this slice ends with a live control plane on the gateway.

Acceptance criteria

  • (story 21) Given deploy runs, when it completes, then the control plane (config repo, deploy runner, IdP, web dashboard) is live on the gateway, the brand kit is applied to every bound surface (portal, IdP login, dashboard), the operator's admin account exists from seeded declarative config, and the whole deploy ran over the established clan connection, fully logged with drill-in (ADR 0027).
  • (story 22) Given deploy fails in VM mode, when the operator retries, then the VM is deleted and stand-up retries cleanly from Review (S6).
  • (story 23) Given deploy fails on a full install, when the failure surfaces, then the operator is offered resume-the-deploy or reinstall-the-agent / rescue boot, and the wizard states plainly there is no old OS to roll back to; the path returns via S6.

Blocked by

  • #47 — deploy runs over the proven connection.

Task manifest

task: founding:deploy-gateway
implements_flow: p1-founding
implements_edge: S11→S12, S11→S6
wireframe: docs/ux/wireframes/p1-founding/p1-s11-deploy-gateway.html
interface: the `founding` orchestrator's deploy face over `clan.Deploy` with layered outcome detection — stand up the control plane on the gateway, apply the captured brand kit to bound surfaces, seed the operator admin from declarative config, stream deploy events with drill-in, and branch on failure by install mode (VM-mode clean delete-and-retry from S6; full-install honest recovery, no rollback, return via S6)
seam: "`founding` orchestrator seam tests (bundled helper, Go) \u2014 fake clan scripting deploy success and deploy-fail in both install modes, real brandkit, in-memory enroll ledger"
acceptance:
  - given: deploy runs
    when: it completes
    then: config repo, deploy runner, IdP, and dashboard are live; brand kit applied to portal/IdP/dashboard; admin account seeded from declarative config; deploy ran over the clan connection, logged with drill-in (ADR 0027)
  - given: deploy fails in VM mode
    when: the operator retries
    then: the VM is deleted and stand-up retries cleanly from Review (S6)
  - given: deploy fails on a full install
    when: the failure surfaces
    then: resume-the-deploy or reinstall/rescue-boot are offered, no-rollback is stated plainly, and the path returns via S6
depends_on: [spec-gate-and-reachability]
out_of_scope:
  - "enrollment handover, crown-jewel seeding, config-repo push — seed-fleet-authority's (stories 24–26)"
  - "passkey enrolment, recovery kit, scrub, hand-off landing — identity-handoff-scrub's (stories 27–32)"
  - "Service selection — never at founding (ADR 0020)"
needs_human_decision: []
## Parent Feature spec: #11 (founding). ## What to build The gateway deploy (P1-S11) that turns a paired, reachable server into a working community over the established clan connection. When deploy runs and completes, the control plane — config repo, deploy runner, IdP, web dashboard — is live on the gateway, the brand kit is applied to every surface it binds (portal, IdP login, dashboard), the operator's admin account exists from seeded declarative config, and the whole deploy ran over the clan connection, fully logged with drill-in (ADR 0027). Failure is honest per install mode: a VM-mode deploy failure retries cleanly — the VM is deleted and stand-up retries from Review (S6), leaving no wreckage; a full-install failure offers resume-the-deploy or reinstall-the-agent / rescue boot and states plainly there is no old OS to roll back to, returning via S6. This slice runs on the `founding` orchestrator (ADR 0052) driving `clan.Deploy` with layered outcome detection. Seeding, identity hand-off, and scrub are downstream slices; this slice ends with a live control plane on the gateway. ## Acceptance criteria - [ ] (story 21) Given deploy runs, when it completes, then the control plane (config repo, deploy runner, IdP, web dashboard) is live on the gateway, the brand kit is applied to every bound surface (portal, IdP login, dashboard), the operator's admin account exists from seeded declarative config, and the whole deploy ran over the established clan connection, fully logged with drill-in (ADR 0027). - [ ] (story 22) Given deploy fails in VM mode, when the operator retries, then the VM is deleted and stand-up retries cleanly from Review (S6). - [ ] (story 23) Given deploy fails on a full install, when the failure surfaces, then the operator is offered resume-the-deploy or reinstall-the-agent / rescue boot, and the wizard states plainly there is no old OS to roll back to; the path returns via S6. ## Blocked by - #47 — deploy runs over the proven connection. ## Task manifest ```yaml task: founding:deploy-gateway implements_flow: p1-founding implements_edge: S11→S12, S11→S6 wireframe: docs/ux/wireframes/p1-founding/p1-s11-deploy-gateway.html interface: the `founding` orchestrator's deploy face over `clan.Deploy` with layered outcome detection — stand up the control plane on the gateway, apply the captured brand kit to bound surfaces, seed the operator admin from declarative config, stream deploy events with drill-in, and branch on failure by install mode (VM-mode clean delete-and-retry from S6; full-install honest recovery, no rollback, return via S6) seam: "`founding` orchestrator seam tests (bundled helper, Go) \u2014 fake clan scripting deploy success and deploy-fail in both install modes, real brandkit, in-memory enroll ledger" acceptance: - given: deploy runs when: it completes then: config repo, deploy runner, IdP, and dashboard are live; brand kit applied to portal/IdP/dashboard; admin account seeded from declarative config; deploy ran over the clan connection, logged with drill-in (ADR 0027) - given: deploy fails in VM mode when: the operator retries then: the VM is deleted and stand-up retries cleanly from Review (S6) - given: deploy fails on a full install when: the failure surfaces then: resume-the-deploy or reinstall/rescue-boot are offered, no-rollback is stated plainly, and the path returns via S6 depends_on: [spec-gate-and-reachability] out_of_scope: - "enrollment handover, crown-jewel seeding, config-repo push — seed-fleet-authority's (stories 24–26)" - "passkey enrolment, recovery kit, scrub, hand-off landing — identity-handoff-scrub's (stories 27–32)" - "Service selection — never at founding (ADR 0020)" needs_human_decision: [] ```
Author
Owner

Done in fa49f6d (pushed to main).

P1-S11 gateway deploy — from the join nodes resting StandupDeploying (issue #47), the founding orchestrators deploy face (internal/founding/deploy.go) over a narrow ClanFace (clan.Deploy + Config):

  • story 21 — RunDeploy runs the control-plane apply against the gateway node over the established clan connection (ADR 0043), streaming checklist-granular events into a drill-in log (ADR 0027, Open/Download). On success the control plane (config repo · deploy runner · sign-in service · web dashboard) is live, the captured brand kit is applied to portal/IdP-sign-in/dashboard (the real brandkit.Compile), and the operator admin is seeded from declarative config (their P1-S2 identity). DeployLive — the slice ends here.
  • story 22 — a VM-mode deploy-fail offers a single clean delete-and-retry: Recover(retry-vm) removes the VM's node (no wreckage, proven via new clan.Fake.Edits()) and returns the wizard to Review (S6).
  • story 23 — a full-install deploy-fail states plainly there is no old OS to roll back to and offers resume-in-place (same closure), reinstall, or rescue-boot (the latter two return via S6).

Evidence: Go seam tests internal/founding/deploy_test.go (stories 21/22/23 + resume + guards, fake clan scripting deploy-fail in both install modes); ships FoundingDeployGateway.vue (wireframe p1-s11-deploy-gateway.html, mounted in FoundingStandup.vue, auto-runs after the gate/reachability passes — no operator click) + run-deploy/recover bridge ops + app/tests/unit/foundingDeployGateway.test.ts. STATUS.md updated.

Note: the Go/pnpm toolchains are Nix-gated and absent from the Sandcastle sandbox, so the suites were verified statically (eslint clean, tsc on the TS lib clean, manual review); CI runs them in full.

Unblocked next: enrollment handover + crown-jewel seeding (seed-fleet-authority, stories 24–26); passkey enrolment, recovery kit, scrub, hand-off S12 (identity-handoff-scrub, stories 27–32).

Done in `fa49f6d` (pushed to `main`). **P1-S11 gateway deploy** — from the join nodes resting `StandupDeploying` (issue #47), the `founding` orchestrators deploy face (`internal/founding/deploy.go`) over a narrow `ClanFace` (`clan.Deploy` + `Config`): - **story 21** — `RunDeploy` runs the control-plane apply against the gateway node **over the established clan connection** (ADR 0043), streaming checklist-granular events into a **drill-in log** (ADR 0027, Open/Download). On success the control plane (config repo · deploy runner · sign-in service · web dashboard) is live, the captured brand kit is applied to portal/IdP-sign-in/dashboard (the **real** `brandkit.Compile`), and the operator admin is seeded from declarative config (their P1-S2 identity). `DeployLive` — the slice ends here. - **story 22** — a VM-mode deploy-fail offers a single clean delete-and-retry: `Recover(retry-vm)` removes the VM's node (no wreckage, proven via new `clan.Fake.Edits()`) and returns the wizard to **Review (S6)**. - **story 23** — a full-install deploy-fail states plainly *there is no old OS to roll back to* and offers **resume-in-place** (same closure), **reinstall**, or **rescue-boot** (the latter two return via S6). **Evidence:** Go seam tests `internal/founding/deploy_test.go` (stories 21/22/23 + resume + guards, fake clan scripting deploy-fail in both install modes); ships `FoundingDeployGateway.vue` (wireframe `p1-s11-deploy-gateway.html`, mounted in `FoundingStandup.vue`, auto-runs after the gate/reachability passes — no operator click) + `run-deploy`/`recover` bridge ops + `app/tests/unit/foundingDeployGateway.test.ts`. STATUS.md updated. Note: the Go/pnpm toolchains are Nix-gated and absent from the Sandcastle sandbox, so the suites were verified statically (eslint clean, tsc on the TS lib clean, manual review); CI runs them in full. **Unblocked next:** enrollment handover + crown-jewel seeding (seed-fleet-authority, stories 24–26); passkey enrolment, recovery kit, scrub, hand-off S12 (identity-handoff-scrub, stories 27–32).
ben closed this issue 2026-07-26 04:05:42 +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#57
No description provided.