app: bootstrap — a launchable operator app over the helper #131

Closed
opened 2026-07-26 22:03:49 +00:00 by ben · 1 comment
Owner

Parent

Feature spec: #22 (shell) / #23 (ui-kit contract). Filed from Ben's rulings 2026-07-26 after the review sweep of 6596977..9e946b7: integration-last was deliberate seam-first sequencing — now build the integration layer; and pay all standards debt now.

What to build

The operator app becomes a real desktop app: a shell that launches, renders the resting frame, and routes its navigation intents through a production navigator; the helper process is spawned and the existing Bridge clients (founding, break-glass, join) are finally instantiated over its stdio — no fake in the production path once real helper adapters exist. Includes the launch-and-24h update-check scheduler owed from #30.

Acceptance criteria

  • Given the built app, when it launches, then the welcome/resting frame renders and every navigation intent routes for real.
  • Given the founding wizard, it drives the helper over stdio end-to-end (the Bridge clients are the production wiring).
  • Given app launch and every 24h after, the update check runs per #30.

Blocked by

  • standards:wire-snake-case — the stdio frames are a real wire.

Task manifest

task: app:bootstrap
implements_flow: shell
implements_edge: "W → resting frame; app intents through a production navigator; app ↔ helper stdio live"
wireframe: docs/ux/wireframes/shell/shell-w-welcome.html
interface: "a desktop shell bootstrap spawning the helper and instantiating the Bridge clients over stdio + production navigator + update-check scheduler"
seam: "a boot test: launch → resting frame → drive one founding step through the real helper process"
acceptance: "see Acceptance criteria above"
depends_on: [standards:wire-snake-case]
out_of_scope: [real broker/DNS/clan adapters inside the helper (fakes:testing-seam gates that), packaging/signing]
needs_human_decision: []
## Parent Feature spec: #22 (shell) / #23 (ui-kit contract). Filed from Ben's rulings 2026-07-26 after the review sweep of `6596977..9e946b7`: integration-last was deliberate seam-first sequencing — now build the integration layer; and pay all standards debt now. ## What to build The operator app becomes a real desktop app: a shell that launches, renders the resting frame, and routes its navigation intents through a production navigator; the helper process is spawned and the existing Bridge clients (founding, break-glass, join) are finally instantiated over its stdio — no fake in the production path once real helper adapters exist. Includes the launch-and-24h update-check scheduler owed from #30. ## Acceptance criteria - [ ] Given the built app, when it launches, then the welcome/resting frame renders and every navigation intent routes for real. - [ ] Given the founding wizard, it drives the helper over stdio end-to-end (the Bridge clients are the production wiring). - [ ] Given app launch and every 24h after, the update check runs per #30. ## Blocked by - standards:wire-snake-case — the stdio frames are a real wire. ## Task manifest ```yaml task: app:bootstrap implements_flow: shell implements_edge: "W → resting frame; app intents through a production navigator; app ↔ helper stdio live" wireframe: docs/ux/wireframes/shell/shell-w-welcome.html interface: "a desktop shell bootstrap spawning the helper and instantiating the Bridge clients over stdio + production navigator + update-check scheduler" seam: "a boot test: launch → resting frame → drive one founding step through the real helper process" acceptance: "see Acceptance criteria above" depends_on: [standards:wire-snake-case] out_of_scope: [real broker/DNS/clan adapters inside the helper (fakes:testing-seam gates that), packaging/signing] needs_human_decision: [] ```
Author
Owner

Done in d6ebca4 (on main). The operator app is now a launchable shell over the real helper.

What shipped

  • app/src/bootstrap.ts — bootstrapApp composition root: spawns the bundled Go helper and instantiates the production BridgeFoundingClient + BridgeBreakglassClient over its live stdio (no fake in the production path).
  • app/src/lib/stdioBridge.ts — StdioBridge: spawns a helper subcommand and frames its NDJSON stdio (the Go internal/stdiobridge contract, ADRs 0051/0052), pairing responses FIFO; rejects in-flight/later requests once the child dies or on close.
  • app/src/lib/appNavigator.ts — production AppNavigator (reactive route) replacing the recording FakeNavigator; every resting-screen intent routes for real (founding/AU) or fires a leave-the-app effect (dashboard/local VM). Drill-in and other-feature edges route to a pending state; those surfaces land with their own slices.
  • app/src/lib/updateScheduler.ts — UpdateScheduler: the launch-and-24h silent update check owed from #30 (ADR 0098); a failed check is swallowed so the current version keeps working.
  • app/src/components/AppShell.vue — mounts the welcome resting frame (shell-w-welcome) + drives the founding journey over the live helper; the app-update strip rides the resting frame once a verified release is ready.

Acceptance

  • AC1 — launch → welcome resting frame renders + every navigation intent routes through the production navigator (appShell.test.ts, appNavigator.test.ts, boot test).
  • AC2 — the founding wizard drives the helper over stdio end-to-end via BridgeFoundingClient (boot.test.ts builds and drives the real Go helper: offered → begin → start).
  • AC3 — the update check runs on launch and every 24h (updateScheduler.test.ts, fake timers).

Evidence: app/tests/unit/boot.test.ts (the manifest seam, builds + drives the real helper), plus unit suites for the transport (real spawned process), navigator, scheduler and shell. 28 new tests; full app suite 337 green; vue-tsc typecheck + eslint clean.

Out of scope (untouched): the real broker/DNS/clan helper adapters (still fakes:testing-seam) and Electron packaging/signing.

Follow-up noted (pre-existing, not this slice): after #126 the Go founding bridge emits access_options/pre_check but BridgeFoundingClient still reads resp.accessOptions/resp.preCheck — a latent camelCase↔snake_case mismatch on those two access-and-address response keys. The founding-step keys exercised here (draft, offered) are single-word and unaffected.

Done in d6ebca4 (on `main`). The operator app is now a launchable shell over the real helper. **What shipped** - `app/src/bootstrap.ts` — `bootstrapApp` composition root: spawns the bundled Go helper and instantiates the production `BridgeFoundingClient` + `BridgeBreakglassClient` over its live stdio (no fake in the production path). - `app/src/lib/stdioBridge.ts` — `StdioBridge`: spawns a helper subcommand and frames its NDJSON stdio (the Go `internal/stdiobridge` contract, ADRs 0051/0052), pairing responses FIFO; rejects in-flight/later requests once the child dies or on close. - `app/src/lib/appNavigator.ts` — production `AppNavigator` (reactive route) replacing the recording `FakeNavigator`; every resting-screen intent routes for real (founding/AU) or fires a leave-the-app effect (dashboard/local VM). Drill-in and other-feature edges route to a `pending` state; those surfaces land with their own slices. - `app/src/lib/updateScheduler.ts` — `UpdateScheduler`: the launch-and-24h silent update check owed from #30 (ADR 0098); a failed check is swallowed so the current version keeps working. - `app/src/components/AppShell.vue` — mounts the welcome resting frame (`shell-w-welcome`) + drives the founding journey over the live helper; the app-update strip rides the resting frame once a verified release is ready. **Acceptance** - AC1 — launch → welcome resting frame renders + every navigation intent routes through the production navigator (`appShell.test.ts`, `appNavigator.test.ts`, boot test). - AC2 — the founding wizard drives the helper over stdio end-to-end via `BridgeFoundingClient` (`boot.test.ts` builds and drives the **real** Go helper: `offered → begin → start`). - AC3 — the update check runs on launch and every 24h (`updateScheduler.test.ts`, fake timers). **Evidence**: `app/tests/unit/boot.test.ts` (the manifest seam, builds + drives the real helper), plus unit suites for the transport (real spawned process), navigator, scheduler and shell. 28 new tests; full app suite 337 green; `vue-tsc` typecheck + `eslint` clean. **Out of scope (untouched)**: the real broker/DNS/clan helper adapters (still `fakes:testing-seam`) and Electron packaging/signing. **Follow-up noted** (pre-existing, not this slice): after #126 the Go founding bridge emits `access_options`/`pre_check` but `BridgeFoundingClient` still reads `resp.accessOptions`/`resp.preCheck` — a latent camelCase↔snake_case mismatch on those two access-and-address response keys. The founding-step keys exercised here (`draft`, `offered`) are single-word and unaffected.
ben closed this issue 2026-07-27 11:56:58 +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#131
No description provided.