founding S12: the hand-off names the FLEET from the seam — every machine, its status, and the services running on it #1448

Closed
opened 2026-09-12 15:55:13 +00:00 by ben · 3 comments
Owner

Why

Ben's ruling (2026-09-12) on the founding v2 hand-off: "{community name} digital
sovereignty stack is now live"
, then Open admin control panel + a disabled
Open members portal, then a full-length card per machine (mark, name, role,
address, location, status) with the control panel's service cards under it — RUNNING
pill, name → product site, OPEN button — and every machine the build provisioned
below the gateway. The screen is built (FoundingHandOff.vue, FoundingFleetSummary.vue).

What it draws is not seam truth. FoundingPage.vue (fleet, fleetServices)
assembles the cards from the PLAN and stamps every machine running: true,
status: "Live", and every service a door at https://<slug>.<host> — because the fake
has no per-machine outcome to read. Against real Go that is a fabrication (ADR 0100):
HandOffStatus (internal/founding/handoff.go:285) carries the portal, the dashboard
door, the gateway-placed Services rows (#1392) and a single Landing.Gateway
FleetEntry{name, role, health}. Nothing per machine.

It also contradicts DDR 0241 decision 4: a device that cannot be provisioned reds
that device's rows and the build stands — so the hand-off WILL render with a
machine that is not up, and the page's comment ("a failure on any machine faults
the stand-up and never reaches here"
) is wrong by design.

What to build

  1. HandOffStatus.Fleet []FleetMachine on the seam, filled by BeginHandOff from the
    stand-up + the placement:
    FleetMachine{id, name, kind, role (gateway|member), ip?, location?, status (live|not-built|failed), fault?, services []DeployServiceRow}. The gateway's
    services are DeployStatus.Services (#1392); an extra machine's are the rows its
    device:<id>:deploy leg produced (#1417). A machine whose legs failed is failed
    with its fault named; a service that did not stand up carries no Address
    (ADR 0100). Landing.Gateway stays for v1.
  2. FoundingPage.vue reads standup.handOff.fleet (and the catalogue for glyph /
    category / product site) instead of building the list from builtPlan; running
    comes from the seam's status; url comes from the row's Address. The plan-based
    assembly is deleted, not kept as a fallback.
  3. FakeFoundingClient.beginHandOff fills fleet from its own per-device snapshots
    (founding.ts:4168-4200), so the harness keeps drawing what it draws today — and
    gains one knob (deviceFails: '<name>') so the failed-machine card is drivable.
  4. FoundingFleetSummary.vue draws a failed machine with its fault and no RUNNING
    pills (FleetDevice.running already exists for exactly this; status shows the
    fault line).

Acceptance criteria

  • AC1 — after a two-machine build, begin-hand-off returns fleet with both machines,
    each carrying the rows of the services placed on it, with Address only on services
    that answered (Go seam test over the clan fake).
  • AC2 — a build whose added machine failed returns that machine failed with the fault
    text, the gateway live, and the hand-off still opens (DDR 0241 decision 4).
  • AC3 — the v2 hand-off renders NOTHING it did not read from handOff.fleet: with the
    seam returning one machine the screen shows one card (harness spec asserting
    [data-field="fleet-device"] count and [data-field="running-badge"][data-status]).
  • AC4 — the OPEN button's href equals the seam's Address; a service with no
    Address renders [data-status="not-open-yet"].
  • AC5 — v1's hand-off is unchanged (foundingHandOff.test.ts green).

Contract

DDR 0241 decisions 3–5; ADR 0100; Ben's rulings 8, 10, 11 (2026-09-12) on the S12
screen; #1392 (DeployServiceRow); #1417 (per-device legs).

Build reference

  • app/src/components/founding/FoundingHandOff.vue, FoundingFleetSummary.vue
    ([data-field="fleet-device"], [data-fact="role|ip|location|status"],
    [data-field="service-card"], [data-field="running-badge"],
    [data-field="product-site"], [data-action="open-service"],
    [data-action="open-your-dashboard"], [data-action="open-members-portal"][disabled]).
  • app/src/components/founding/handOffFleet.ts — FleetDevice / FleetService
    (the presentation shapes the seam's FleetMachine must be able to fill).
  • app/src/components/founding/FoundingPage.vue:683-720 — the assembly to
    replace.
  • Executable spec: FakeFoundingClient.beginHandOff (app/src/lib/founding.ts:4480)
    • the per-device snapshots in launchRented (:4168-4200).

Amended by the review fixes (2026-09-12)

Item 4 is done on the TS side: FleetDevice.state: 'live' | 'waiting' replaces running/status, and FoundingStandup.vue fleetAsBuilt turns any machine whose device:<id>:deploy row is not done back to WAITING before the cards draw. What remains is the SEAM: Go's HandOffStatus must carry the fleet (item 1) and the page must read it (item 2) instead of assembling cards from builtPlan in FoundingPage.vue (fleet / fleetServices computeds). The fake's deviceFailsAt knob (item 3) exists.

What this session already did (2026-09-12, commits 06105d24 and the founding-page replacement on founding-ui-two-colour-rail-ceremony)

  • The page IS the founding surface: AppShell.vue mounts FoundingPage.vue; the wizard is deleted. No env switch — there is one surface.
  • The FAKE is the executable spec for the Go half: FakeFoundingClient in app/src/lib/founding.ts — connectDevice (a refusal registers the device for its dial-in code and records nothing; a correction typed on Connect replaces access.ip), offerDialIn / awaitDialIn (waiting | connected | expired), checkDevice, savePlacement (PlacementDevice now carries place, ip, preset, region, memSource: 'ordered' | 'measured'), deviceSnapshots() (every carrier splices device:<id>:reach|enrol|deploy before finish; deviceFailsAt reds ONE machine's row and leaves the gateway's standing).
  • The hand-off's per-machine state is read off the stand-up's rows (FoundingStandup.vue fleetAsBuilt): a machine is live only when its device:<id>:deploy row is done, else WAITING with no doors.
  • Unit tests that pin the contract: tests/unit/foundingConnectDevice.test.ts, foundingBuildFleet.test.ts, foundingPage.test.ts, foundingHandOff.test.ts.
## Why Ben's ruling (2026-09-12) on the founding v2 hand-off: *"{community name} digital sovereignty stack is now live"*, then **Open admin control panel** + a disabled **Open members portal**, then a full-length card per machine (mark, name, role, address, location, status) with the control panel's service cards under it — RUNNING pill, name → product site, OPEN button — and every machine the build provisioned below the gateway. The screen is built (`FoundingHandOff.vue`, `FoundingFleetSummary.vue`). What it draws is **not seam truth**. `FoundingPage.vue` (`fleet`, `fleetServices`) assembles the cards from the PLAN and stamps every machine `running: true`, `status: "Live"`, and every service a door at `https://<slug>.<host>` — because the fake has no per-machine outcome to read. Against real Go that is a fabrication (ADR 0100): `HandOffStatus` (`internal/founding/handoff.go:285`) carries the portal, the dashboard door, the gateway-placed `Services` rows (#1392) and a single `Landing.Gateway` `FleetEntry{name, role, health}`. Nothing per machine. It also contradicts DDR 0241 decision 4: a device that cannot be provisioned reds **that device's** rows and the build stands — so the hand-off WILL render with a machine that is not up, and the page's comment (*"a failure on any machine faults the stand-up and never reaches here"*) is wrong by design. ## What to build 1. `HandOffStatus.Fleet []FleetMachine` on the seam, filled by `BeginHandOff` from the stand-up + the placement: `FleetMachine{id, name, kind, role (gateway|member), ip?, location?, status (live|not-built|failed), fault?, services []DeployServiceRow}`. The gateway's `services` are `DeployStatus.Services` (#1392); an extra machine's are the rows its `device:<id>:deploy` leg produced (#1417). A machine whose legs failed is `failed` with its fault named; a service that did not stand up carries no `Address` (ADR 0100). `Landing.Gateway` stays for v1. 2. `FoundingPage.vue` reads `standup.handOff.fleet` (and the catalogue for glyph / category / product site) instead of building the list from `builtPlan`; `running` comes from the seam's `status`; `url` comes from the row's `Address`. The plan-based assembly is deleted, not kept as a fallback. 3. `FakeFoundingClient.beginHandOff` fills `fleet` from its own per-device snapshots (`founding.ts:4168-4200`), so the harness keeps drawing what it draws today — and gains one knob (`deviceFails: '<name>'`) so the failed-machine card is drivable. 4. `FoundingFleetSummary.vue` draws a `failed` machine with its fault and no RUNNING pills (`FleetDevice.running` already exists for exactly this; `status` shows the fault line). ## Acceptance criteria - AC1 — after a two-machine build, `begin-hand-off` returns `fleet` with both machines, each carrying the rows of the services placed on it, with `Address` only on services that answered (Go seam test over the clan fake). - AC2 — a build whose added machine failed returns that machine `failed` with the fault text, the gateway `live`, and the hand-off still opens (DDR 0241 decision 4). - AC3 — the v2 hand-off renders NOTHING it did not read from `handOff.fleet`: with the seam returning one machine the screen shows one card (harness spec asserting `[data-field="fleet-device"]` count and `[data-field="running-badge"][data-status]`). - AC4 — the OPEN button's `href` equals the seam's `Address`; a service with no `Address` renders `[data-status="not-open-yet"]`. - AC5 — v1's hand-off is unchanged (`foundingHandOff.test.ts` green). ## Contract DDR 0241 decisions 3–5; ADR 0100; Ben's rulings 8, 10, 11 (2026-09-12) on the S12 screen; #1392 (`DeployServiceRow`); #1417 (per-device legs). ## Build reference - `app/src/components/founding/FoundingHandOff.vue`, `FoundingFleetSummary.vue` (`[data-field="fleet-device"]`, `[data-fact="role|ip|location|status"]`, `[data-field="service-card"]`, `[data-field="running-badge"]`, `[data-field="product-site"]`, `[data-action="open-service"]`, `[data-action="open-your-dashboard"]`, `[data-action="open-members-portal"][disabled]`). - `app/src/components/founding/handOffFleet.ts` — `FleetDevice` / `FleetService` (the presentation shapes the seam's `FleetMachine` must be able to fill). - `app/src/components/founding/FoundingPage.vue:683-720` — the assembly to replace. - Executable spec: `FakeFoundingClient.beginHandOff` (`app/src/lib/founding.ts:4480`) + the per-device snapshots in `launchRented` (`:4168-4200`). ## Amended by the review fixes (2026-09-12) Item 4 is done on the TS side: `FleetDevice.state: 'live' | 'waiting'` replaces `running`/`status`, and `FoundingStandup.vue` `fleetAsBuilt` turns any machine whose `device:<id>:deploy` row is not done back to WAITING before the cards draw. What remains is the SEAM: Go's `HandOffStatus` must carry the fleet (item 1) and the page must read it (item 2) instead of assembling cards from `builtPlan` in `FoundingPage.vue` (`fleet` / `fleetServices` computeds). The fake's `deviceFailsAt` knob (item 3) exists. ## What this session already did (2026-09-12, commits `06105d24` and the founding-page replacement on `founding-ui-two-colour-rail-ceremony`) - The page IS the founding surface: `AppShell.vue` mounts `FoundingPage.vue`; the wizard is deleted. No env switch — there is one surface. - The FAKE is the executable spec for the Go half: `FakeFoundingClient` in `app/src/lib/founding.ts` — `connectDevice` (a refusal registers the device for its dial-in code and records nothing; a correction typed on Connect replaces `access.ip`), `offerDialIn` / `awaitDialIn` (`waiting | connected | expired`), `checkDevice`, `savePlacement` (`PlacementDevice` now carries `place`, `ip`, `preset`, `region`, `memSource: 'ordered' | 'measured'`), `deviceSnapshots()` (every carrier splices `device:<id>:reach|enrol|deploy` before `finish`; `deviceFailsAt` reds ONE machine's row and leaves the gateway's standing). - The hand-off's per-machine state is read off the stand-up's rows (`FoundingStandup.vue` `fleetAsBuilt`): a machine is `live` only when its `device:<id>:deploy` row is done, else WAITING with no doors. - Unit tests that pin the contract: `tests/unit/foundingConnectDevice.test.ts`, `foundingBuildFleet.test.ts`, `foundingPage.test.ts`, `foundingHandOff.test.ts`.

swarm-claim host=elitebook-distributed-server-03 run=22608
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=22608 (automated multi-host claim — lowest live claim id works this ticket)

Ruled by agent under ADR 0174 — veto anytime.

Built per the issue's own amendment (the remaining SEAM work: item 1 — Go's HandOffStatus carries the fleet — and item 2 — the page reads it, deleting the plan-based assembly). BeginHandOff now fills HandOffStatus.Fleet []FleetMachine; FoundingStandup.vue draws the S12 cards straight off standup.handOff.fleet; the TS fake fills it too.

Why two-way door: an additive seam field + a screen that reads it, revertible with zero product loss, proven red→green at the Go seam (AC1/AC2) and the TS harness (AC3/AC4), with v1 (AC5) untouched.

AC2 scope + a #1417 follow-up: buildFleet renders a failed machine honestly (AC2, proven at the BeginHandOff seam over a faulted-seeded state), but #1417's runJourneyDevicesAndFinish still GATES the finish on a device fault — so a REAL build does not yet reach the hand-off carrying a failed machine. Reconciling that gate with DDR 0241 decision 4 (the build STANDS, the failed device is added from P4) is a separate #1417-side change, filed as #1461. This ticket carried the seam + the screen.

Commit ea239d9d on origin/main.

Ruled by agent under ADR 0174 — veto anytime. Built per the issue's own amendment (the remaining SEAM work: item 1 — Go's `HandOffStatus` carries the fleet — and item 2 — the page reads it, deleting the plan-based assembly). `BeginHandOff` now fills `HandOffStatus.Fleet []FleetMachine`; `FoundingStandup.vue` draws the S12 cards straight off `standup.handOff.fleet`; the TS fake fills it too. Why two-way door: an additive seam field + a screen that reads it, revertible with zero product loss, proven red→green at the Go seam (AC1/AC2) and the TS harness (AC3/AC4), with v1 (AC5) untouched. **AC2 scope + a #1417 follow-up:** `buildFleet` renders a `failed` machine honestly (AC2, proven at the `BeginHandOff` seam over a faulted-seeded state), but #1417's `runJourneyDevicesAndFinish` still GATES the finish on a device fault — so a REAL build does not yet reach the hand-off carrying a failed machine. Reconciling that gate with DDR 0241 decision 4 (the build STANDS, the failed device is added from P4) is a separate #1417-side change, filed as #1461. This ticket carried the seam + the screen. Commit ea239d9d on origin/main.

close-report for #1448 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1448,
  "status": "success",
  "commits": [
    "ea239d9da4843bd68ed320bb1026f580e272bd32"
  ],
  "changed_files": [
    "STATUS.md",
    "app/src/components/founding/FoundingPage.vue",
    "app/src/components/founding/FoundingStandup.vue",
    "app/src/lib/founding.ts",
    "app/tests/unit/foundingBuildFleet.test.ts",
    "app/tests/unit/foundingHandOff.test.ts",
    "internal/founding/deviceprovision_internal_test.go",
    "internal/founding/handoff.go"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci -c go test ./internal/founding/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c golangci-lint run ./internal/founding/...",
      "exit_code": 0
    },
    {
      "command": "node_modules/.bin/vue-tsc -p app/tsconfig.json",
      "exit_code": 0
    },
    {
      "command": "node_modules/.bin/vitest run tests/unit/founding*.test.ts (app)",
      "exit_code": 0
    },
    {
      "command": "eslint (app changed files)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "AC1 — two-machine build returns fleet with both machines, each carrying its placed-service rows, Address only on services that answered (Go seam over the clan fake)": "TestBeginHandOff_FleetNamesEveryMachineAndItsServices in internal/founding/deviceprovision_internal_test.go — drives runDeviceProvisioning over the fake DeviceProvisioner then BeginHandOff; asserts fleet=[gateway(live, wiki addressed / calendar not), marae(live, files addressed)]",
    "AC2 — a build whose added machine failed returns that machine failed with the fault, the gateway live, and the hand-off still opens (DDR 0241 dec 4)": "TestBeginHandOff_FailedMachineIsNamedFailedAndTheHandOffOpens — a faulted device (DeviceFaults) then BeginHandOff; marae status=failed with fault, gateway live, step=StandupHandOff, marae services carry no Address. buildFleet in handoff.go renders it; note #1461 tracks un-gating #1417's finish so this is reachable end-to-end",
    "AC3 — the v2 hand-off renders NOTHING it did not read from handOff.fleet; one seam machine → one card": "foundingHandOff.test.ts 'AC3 — with the seam naming one machine, the screen draws exactly one fleet card, running' asserts [data-field=fleet-device] count == 1 and every [data-field=running-badge] has data-status=running; FoundingPage.vue plan-based fleet/fleetServices computeds deleted, FoundingStandup reads standup.handOff.fleet",
    "AC4 — the OPEN button href equals the seam's Address; a service with no Address renders not-open-yet": "foundingHandOff.test.ts 'AC4' — files OPEN href == https://files.example.idss.nz (the seam row address); backup-copy (no-hostname slug, no address) has no open-service link and renders [data-status=not-open-yet]",
    "AC5 — v1's hand-off is unchanged (foundingHandOff.test.ts green)": "foundingHandOff.test.ts all 10 tests green (8 pre-existing + AC3/AC4); full app founding vitest 317 green"
  },
  "summary": "The S12 hand-off names the whole fleet from the seam: Go's HandOffStatus.Fleet ([]FleetMachine) is filled by BeginHandOff and the screen reads standup.handOff.fleet, deleting the plan-based card assembly.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1448 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1448, "status": "success", "commits": [ "ea239d9da4843bd68ed320bb1026f580e272bd32" ], "changed_files": [ "STATUS.md", "app/src/components/founding/FoundingPage.vue", "app/src/components/founding/FoundingStandup.vue", "app/src/lib/founding.ts", "app/tests/unit/foundingBuildFleet.test.ts", "app/tests/unit/foundingHandOff.test.ts", "internal/founding/deviceprovision_internal_test.go", "internal/founding/handoff.go" ], "tests": [ { "command": "nix develop .#go-ci -c go test ./internal/founding/", "exit_code": 0 }, { "command": "nix develop .#go-ci -c golangci-lint run ./internal/founding/...", "exit_code": 0 }, { "command": "node_modules/.bin/vue-tsc -p app/tsconfig.json", "exit_code": 0 }, { "command": "node_modules/.bin/vitest run tests/unit/founding*.test.ts (app)", "exit_code": 0 }, { "command": "eslint (app changed files)", "exit_code": 0 } ], "criteria": { "AC1 — two-machine build returns fleet with both machines, each carrying its placed-service rows, Address only on services that answered (Go seam over the clan fake)": "TestBeginHandOff_FleetNamesEveryMachineAndItsServices in internal/founding/deviceprovision_internal_test.go — drives runDeviceProvisioning over the fake DeviceProvisioner then BeginHandOff; asserts fleet=[gateway(live, wiki addressed / calendar not), marae(live, files addressed)]", "AC2 — a build whose added machine failed returns that machine failed with the fault, the gateway live, and the hand-off still opens (DDR 0241 dec 4)": "TestBeginHandOff_FailedMachineIsNamedFailedAndTheHandOffOpens — a faulted device (DeviceFaults) then BeginHandOff; marae status=failed with fault, gateway live, step=StandupHandOff, marae services carry no Address. buildFleet in handoff.go renders it; note #1461 tracks un-gating #1417's finish so this is reachable end-to-end", "AC3 — the v2 hand-off renders NOTHING it did not read from handOff.fleet; one seam machine → one card": "foundingHandOff.test.ts 'AC3 — with the seam naming one machine, the screen draws exactly one fleet card, running' asserts [data-field=fleet-device] count == 1 and every [data-field=running-badge] has data-status=running; FoundingPage.vue plan-based fleet/fleetServices computeds deleted, FoundingStandup reads standup.handOff.fleet", "AC4 — the OPEN button href equals the seam's Address; a service with no Address renders not-open-yet": "foundingHandOff.test.ts 'AC4' — files OPEN href == https://files.example.idss.nz (the seam row address); backup-copy (no-hostname slug, no address) has no open-service link and renders [data-status=not-open-yet]", "AC5 — v1's hand-off is unchanged (foundingHandOff.test.ts green)": "foundingHandOff.test.ts all 10 tests green (8 pre-existing + AC3/AC4); full app founding vitest 317 green" }, "summary": "The S12 hand-off names the whole fleet from the seam: Go's HandOffStatus.Fleet ([]FleetMachine) is filled by BeginHandOff and the screen reads standup.handOff.fleet, deleting the plan-based card assembly.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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#1448
No description provided.