app: real-composition — package the operator app (Electron/Quasar) + wire the helper’s real founding adapters #191

Closed
opened 2026-07-30 19:53:50 +00:00 by ben · 4 comments
Owner

Parent

Engine-adapters close-out #183 (spec #161). Filed 2026-07-30 while preparing #183's driver checklist; re-scoped 2026-07-30 per the swarm's investigation (comment below) — Ben confirmed the split in a driven session: this ticket is now the two slices that are landable today; the unbuilt adapters moved to their own tickets (#193 Reachability, #194 DNSResolver), VM standup to #192, the real-hardware proof stays #183's.

What's true today

  • The app code lives at app/ — founding wizard + screens, composed by bootstrapApp (app/src/bootstrap.ts) over the bundled Go helper (app/helper/cmd/helper), proven by the #131 boot seam test.
  • There is no Electron/Quasar packaging and no dev entry: no quasar.config, no electron main, no index.html, no dev script.
  • The helper's production wiring fails loud on all three seams — but two of founding's ports have real adapters ready to wire: ClanFace → clan.Adapter (internal/clan/adapter.go, ADR 0102) and EnrollFace → enroll.Ledger (internal/enroll/ledger.go).

What to build

  1. App packaging — the deferred Electron/Quasar desktop entry mounting bootstrapApp per the ui-kit mount-slot contract (#29, closed), plus a -tags dev dev entry. Launches on a Linux operator machine. No real-infra dependency — buildable and seam-verifiable on its own.
  2. Helper production wiring, partial — wiring_prod.go constructs the two real adapters that exist (ClanFace = clan.Adapter, EnrollFace = enroll.Ledger). Every unbuilt port (Reachability, DNSResolver, VM standup, broker) and the break-glass seam keep the honest ADR 0100 fail-loud message.

Acceptance criteria

  • Given the packaged production app on a Linux machine, When launched, Then it boots the live helper and the helper's wiring constructs the real ClanFace and EnrollFace; driving any surface that reaches an unbuilt port fails loud with the honest ADR 0100 message — never a fake
  • Given a dev build (-tags dev + dev entry), When a developer runs the app, Then the seam fakes drive the full founding surfaces, clearly marked dev
  • Given the #131 boot seam test, When extended to the packaged entry, Then it proves the packaged composition boots the real helper

Task manifest

task: app:packaging-and-partial-wiring
implements_seam: "app boot seam (#131) + ADR 0052 (founding orchestrator in the helper) + ADR 0100; clan via the arc's real adapter (ADR 0102)"
interface: "the packaged operator app on the operator's own machine"
seam: "the boot seam test, extended to the packaged entry"
acceptance:
  - given: the packaged app on Linux; when: launched; then: real ClanFace+EnrollFace wired, all unbuilt ports fail loud, dev build drives fakes
depends_on: []
out_of_scope: [Reachability adapter (own ticket), DNSResolver adapter (own ticket), the QEMU VM manager and founding's private-path VM standup (#192), break-glass engines (rescue arc), broker (deferred business decision ADR 0047/0048), the real-hardware end-to-end (#183), macOS/Windows packaging]
needs_human_decision: []

Blocks

#183 — the packaged app is what Ben drives in both phases.

## Parent Engine-adapters close-out #183 (spec #161). Filed 2026-07-30 while preparing #183's driver checklist; **re-scoped 2026-07-30 per the swarm's investigation (comment below) — Ben confirmed the split in a driven session**: this ticket is now the two slices that are landable today; the unbuilt adapters moved to their own tickets (#193 Reachability, #194 DNSResolver), VM standup to #192, the real-hardware proof stays #183's. ## What's true today - The app code lives at `app/` — founding wizard + screens, composed by `bootstrapApp` (`app/src/bootstrap.ts`) over the bundled Go helper (`app/helper/cmd/helper`), proven by the #131 boot seam test. - There is **no Electron/Quasar packaging and no dev entry**: no `quasar.config`, no electron main, no `index.html`, no `dev` script. - The helper's production wiring fails loud on all three seams — but two of founding's ports have **real adapters ready to wire**: ClanFace → `clan.Adapter` (`internal/clan/adapter.go`, ADR 0102) and EnrollFace → `enroll.Ledger` (`internal/enroll/ledger.go`). ## What to build 1. **App packaging** — the deferred Electron/Quasar desktop entry mounting `bootstrapApp` per the ui-kit mount-slot contract (#29, closed), plus a `-tags dev` dev entry. Launches on a Linux operator machine. No real-infra dependency — buildable and seam-verifiable on its own. 2. **Helper production wiring, partial** — `wiring_prod.go` constructs the two real adapters that exist (ClanFace = `clan.Adapter`, EnrollFace = `enroll.Ledger`). Every unbuilt port (Reachability, DNSResolver, VM standup, broker) and the break-glass seam keep the honest ADR 0100 fail-loud message. ## Acceptance criteria - [ ] Given the packaged production app on a Linux machine, When launched, Then it boots the live helper and the helper's wiring constructs the real ClanFace and EnrollFace; driving any surface that reaches an unbuilt port fails loud with the honest ADR 0100 message — never a fake - [ ] Given a dev build (`-tags dev` + dev entry), When a developer runs the app, Then the seam fakes drive the full founding surfaces, clearly marked dev - [ ] Given the #131 boot seam test, When extended to the packaged entry, Then it proves the packaged composition boots the real helper ## Task manifest ```yaml task: app:packaging-and-partial-wiring implements_seam: "app boot seam (#131) + ADR 0052 (founding orchestrator in the helper) + ADR 0100; clan via the arc's real adapter (ADR 0102)" interface: "the packaged operator app on the operator's own machine" seam: "the boot seam test, extended to the packaged entry" acceptance: - given: the packaged app on Linux; when: launched; then: real ClanFace+EnrollFace wired, all unbuilt ports fail loud, dev build drives fakes depends_on: [] out_of_scope: [Reachability adapter (own ticket), DNSResolver adapter (own ticket), the QEMU VM manager and founding's private-path VM standup (#192), break-glass engines (rescue arc), broker (deferred business decision ADR 0047/0048), the real-hardware end-to-end (#183), macOS/Windows packaging] needs_human_decision: [] ``` ## Blocks #183 — the packaged app is what Ben drives in both phases.
Author
Owner

This was generated by AI during triage.

Triage verification: confirmed against the codebase — app/helper/cmd/helper/wiring_prod.go currently fails loud on all three seams (founding/clan/break-glass) per ADR 0100, matching the ticket's claim; no Electron/Quasar entry exists under app/ (app/src/surface.ts still marks the full bootstrap as deferred to the closed ui-kit mount-slot contract, #29 — which is done, so that dependency is clear). Referenced ADRs 0052/0056/0100/0102 all exist and are accepted; the agent-control-plane and clan seam contracts are status: confirmed; the p1-founding flow and all referenced wireframe screens (S7a, S7b, S8, S9, S9x, S10, S11, S12, VAR) exist under docs/ux/wireframes/p1-founding/. No missing-design gate triggered, no prior .out-of-scope/ rejection found, nothing pre-existing that makes this redundant.

Agent Brief

Category: enhancement
Summary: Package the operator app with a real Electron/Quasar entry and wire the helper's production founding/clan adapters so the founding journey can be driven end-to-end against real infrastructure.

Current behavior:
bootstrapApp composes the founding wizard and screens, proven only by the boot seam test (#131) — there is no way to actually launch the app as a desktop program, and no dev entry either. The helper's production wiring selects a real adapter for none of its three seams; every seam fails loud at startup with the honest ADR 0100 message. Founding's ports (clan face, broker, DNS/name wiring) have no real adapter behind them in production.

Desired behavior:
A packaged desktop entry (plus a separate dev entry) mounts bootstrapApp per the ui-kit mount-slot contract and launches on a Linux operator machine. The helper's production wiring constructs a real founding orchestrator: the clan face reuses the arc's real clan adapter (internal/clan, ADR 0102, the pinned CLI), and founding's remaining ports (broker, DNS/name wiring) get real adapters. Break-glass stays deliberately fail-loud (out of this ticket's scope — rescue arc). The private path (local NixOS VM via the agent-bundled QEMU single-VM manager, ADR 0056) and the own-VPS lane (P1-S7a) both drive to completion through the real helper.

Key interfaces:

  • The app's bootstrap/mount-slot contract (bootstrapApp, the ui-kit mount contract from #29) — needs a real desktop shell around it, not a new contract
  • The helper's production adapter selectors for the founding and clan seams (currently unconditional errUnconfigured stubs) — each should construct a real adapter instead
  • Founding orchestrator's broker and DNS/name-wiring ports — need real implementations
  • A -tags dev dev entry that keeps driving the existing seam fakes, clearly marked as dev

Acceptance criteria:

  • Given the packaged app on a Linux operator machine, When the operator drives founding's private path, Then a local NixOS gateway VM stands up, pairs, passes the spec gate and deploys — no fake anywhere in the path (ADR 0100)
  • Given the own-VPS lane (P1-S7a), When the operator enters a VPS IP and runs the one-line install, Then founding proceeds to the reachability/name checks against the real machine — the clan-lab skill's real droplets are the way to exercise this without a physical machine
  • Given a dev build (-tags dev + dev entry), When a developer runs the app, Then the seam fakes drive the same surfaces, clearly marked dev
  • Given the break-glass seam, When the packaged production app starts, Then it still fails loud with the honest ADR 0100 message

Out of scope:

  • Break-glass engine adapters (rescue arc, separate ticket)
  • macOS/Windows packaging (Linux first, per the #183 journey)
  • The device-end agent (its own ticket, #192 — currently ready-for-human, see its note on the hardware-takeover leg)
> *This was generated by AI during triage.* **Triage verification:** confirmed against the codebase — `app/helper/cmd/helper/wiring_prod.go` currently fails loud on all three seams (founding/clan/break-glass) per ADR 0100, matching the ticket's claim; no Electron/Quasar entry exists under `app/` (`app/src/surface.ts` still marks the full bootstrap as deferred to the closed ui-kit mount-slot contract, #29 — which is done, so that dependency is clear). Referenced ADRs 0052/0056/0100/0102 all exist and are accepted; the `agent-control-plane` and `clan` seam contracts are `status: confirmed`; the `p1-founding` flow and all referenced wireframe screens (S7a, S7b, S8, S9, S9x, S10, S11, S12, VAR) exist under `docs/ux/wireframes/p1-founding/`. No missing-design gate triggered, no prior `.out-of-scope/` rejection found, nothing pre-existing that makes this redundant. ## Agent Brief **Category:** enhancement **Summary:** Package the operator app with a real Electron/Quasar entry and wire the helper's production founding/clan adapters so the founding journey can be driven end-to-end against real infrastructure. **Current behavior:** `bootstrapApp` composes the founding wizard and screens, proven only by the boot seam test (#131) — there is no way to actually launch the app as a desktop program, and no dev entry either. The helper's production wiring selects a real adapter for none of its three seams; every seam fails loud at startup with the honest ADR 0100 message. Founding's ports (clan face, broker, DNS/name wiring) have no real adapter behind them in production. **Desired behavior:** A packaged desktop entry (plus a separate dev entry) mounts `bootstrapApp` per the ui-kit mount-slot contract and launches on a Linux operator machine. The helper's production wiring constructs a real founding orchestrator: the clan face reuses the arc's real clan adapter (`internal/clan`, ADR 0102, the pinned CLI), and founding's remaining ports (broker, DNS/name wiring) get real adapters. Break-glass stays deliberately fail-loud (out of this ticket's scope — rescue arc). The private path (local NixOS VM via the agent-bundled QEMU single-VM manager, ADR 0056) and the own-VPS lane (P1-S7a) both drive to completion through the real helper. **Key interfaces:** - The app's bootstrap/mount-slot contract (`bootstrapApp`, the ui-kit mount contract from #29) — needs a real desktop shell around it, not a new contract - The helper's production adapter selectors for the founding and clan seams (currently unconditional `errUnconfigured` stubs) — each should construct a real adapter instead - Founding orchestrator's broker and DNS/name-wiring ports — need real implementations - A `-tags dev` dev entry that keeps driving the existing seam fakes, clearly marked as dev **Acceptance criteria:** - [ ] Given the packaged app on a Linux operator machine, When the operator drives founding's private path, Then a local NixOS gateway VM stands up, pairs, passes the spec gate and deploys — no fake anywhere in the path (ADR 0100) - [ ] Given the own-VPS lane (P1-S7a), When the operator enters a VPS IP and runs the one-line install, Then founding proceeds to the reachability/name checks against the real machine — the `clan-lab` skill's real droplets are the way to exercise this without a physical machine - [ ] Given a dev build (`-tags dev` + dev entry), When a developer runs the app, Then the seam fakes drive the same surfaces, clearly marked dev - [ ] Given the break-glass seam, When the packaged production app starts, Then it still fails loud with the honest ADR 0100 message **Out of scope:** - Break-glass engine adapters (rescue arc, separate ticket) - macOS/Windows packaging (Linux first, per the #183 journey) - The device-end agent (its own ticket, #192 — currently `ready-for-human`, see its note on the hardware-takeover leg)
Author
Owner

Blocked — needs re-scoping (ready-for-human)

Investigated in full this iteration. As written, #191 is not a single vertical slice: each of its two real-infra acceptance lanes depends on unbuilt real adapters that are explicitly other slices' work — one of them explicitly out_of_scope here — and the end-to-end proof needs real hardware that is this ticket's downstream (#183). A swarm iteration cannot satisfy "no fake anywhere in the path … on the operator's machine" without first landing those slices.

What is actually ready

Two of founding's ports already have real, production adapters and would wire cleanly:

  • ClanFace → clan.Adapter (internal/clan/adapter.go:44 ctor clan.New(repo, cli, log), ExecCLI-backed, ADR 0102). ✅
  • EnrollFace → enroll.Ledger (internal/enroll/ledger.go:151, real in-process ledger). ✅

AC1 (private path — "a local NixOS gateway VM stands up") — blocked on an unbuilt, out-of-scope component

  • The ADR-0056 QEMU single-VM manager is unbuilt: only the interface join.VMManager (internal/join/join.go:30) + FakeVMManager exist; the real backend is deferred ("spike #12's, out of the seam", internal/join/testing/fakes.go), and the agent's production wiring fails loud (agent/cmd/agent/wiring_prod.go:14). It belongs to the device-end agent, which this ticket lists out_of_scope (#192).
  • The clan adapter's VM-mode Enroll does not create a VM — it runs clan machines update against an already-reachable NixOS host (internal/clan/enrollment.go:299,350). Founding's private path (internal/founding/privatepath.go:133) direct-drives that enroll and never wires any VM manager — its host probe is a hardcoded stand-in (privatepath.go:181). So no code path can stand up a local NixOS VM today.
  • Beyond "deploys", the private-path seed/hand-off tail (Fleet/Enrolment/Laptop) is fake-only too (internal/founding/testing/fakes.go).
  • Verifying AC1 requires real KVM hardware — this is precisely the leg #183 (the ready-for-human real-hardware close-out) owns; #191 is listed as blocking #183 A·1/B·1, i.e. the real-VM proof lives there, not in a headless swarm.

AC2 (own-VPS — "reachability/name checks against the real machine") — blocked on two unbuilt adapters

  • Reachability (internal/founding/standup.go:66) — only FakeReachability; the real "Matou-side outside-in check" is unwritten.
  • DNSResolver (internal/founding/access.go:210) — only FakeResolver; the real resolver is unwritten.
    Both are their own slices, plus a real clan-lab droplet to probe.

Not the blocker, but noted

  • BrokerClient is a declared deferred human decision (business terms, ADR 0047/0048; broker/ is skeleton-only). Neither AC lane touches the broker (private path skips it; own-VPS uses it only if the operator later picks a matou.nz subdomain), so it does not gate this work — but it can't be "wired real" as the ticket's item 2 implies until that decision lands.

To re-arm — split into landable slices (suggested)

  1. app-packaging — the Electron/Quasar desktop entry + -tags dev dev entry mounting bootstrapApp (buildable/verifiable on its own; no real-infra dependency).
  2. helper prod wiring (partial) — wire the two real adapters that exist (ClanFace=clan.Adapter, EnrollFace=enroll.Ledger) in wiring_prod.go; keep unbuilt ports + break-glass fail-loud (ADR 0100).
  3. real Reachability adapter (AC2).
  4. real DNSResolver adapter (AC2).
  5. ADR-0056 QEMU VM manager + wire it into founding's private path (AC1) — currently the device-end agent's scope (#192); needs a decision on who owns founding's VM standup.
  6. Leave the real-hardware end-to-end proof to #183.

Or: confirm a narrower deliverable for #191 (e.g. just slices 1+2) and move 3–6 to their own tickets.

Environment note

This sandbox additionally lacks the pinned toolchain (go/nix/qemu//dev/kvm), so even the buildable subset couldn't be compiled or the ADR-0052 stdio round-trip seam run here — a separate concern from the scoping above, but it means no partial slice was verifiable this iteration.

No code changed. Swapping ready-for-agent → ready-for-human for a scoping decision.

## Blocked — needs re-scoping (`ready-for-human`) Investigated in full this iteration. As written, **#191 is not a single vertical slice**: each of its two real-infra acceptance lanes depends on *unbuilt* real adapters that are explicitly other slices' work — one of them explicitly `out_of_scope` here — and the end-to-end proof needs real hardware that is this ticket's downstream (#183). A swarm iteration cannot satisfy "no fake anywhere in the path … on the operator's machine" without first landing those slices. ### What is actually ready Two of founding's ports already have real, production adapters and would wire cleanly: - **ClanFace** → `clan.Adapter` (`internal/clan/adapter.go:44` ctor `clan.New(repo, cli, log)`, ExecCLI-backed, ADR 0102). ✅ - **EnrollFace** → `enroll.Ledger` (`internal/enroll/ledger.go:151`, real in-process ledger). ✅ ### AC1 (private path — "a local NixOS gateway VM stands up") — blocked on an unbuilt, out-of-scope component - The ADR-0056 QEMU single-VM manager is **unbuilt**: only the interface `join.VMManager` (`internal/join/join.go:30`) + `FakeVMManager` exist; the real backend is deferred ("spike #12's, out of the seam", `internal/join/testing/fakes.go`), and the agent's production wiring fails loud (`agent/cmd/agent/wiring_prod.go:14`). It belongs to the **device-end agent, which this ticket lists `out_of_scope`** (#192). - The clan adapter's VM-mode `Enroll` does **not** create a VM — it runs `clan machines update` against an *already-reachable* NixOS host (`internal/clan/enrollment.go:299,350`). Founding's private path (`internal/founding/privatepath.go:133`) direct-drives that enroll and **never wires any VM manager** — its host probe is a hardcoded stand-in (`privatepath.go:181`). So no code path can stand up a local NixOS VM today. - Beyond "deploys", the private-path seed/hand-off tail (Fleet/Enrolment/Laptop) is fake-only too (`internal/founding/testing/fakes.go`). - Verifying AC1 requires real KVM hardware — this is precisely the leg **#183** (the ready-for-human real-hardware close-out) owns; #191 is listed as *blocking* #183 A·1/B·1, i.e. the real-VM proof lives there, not in a headless swarm. ### AC2 (own-VPS — "reachability/name checks against the real machine") — blocked on two unbuilt adapters - **Reachability** (`internal/founding/standup.go:66`) — only `FakeReachability`; the real "Matou-side outside-in check" is unwritten. - **DNSResolver** (`internal/founding/access.go:210`) — only `FakeResolver`; the real resolver is unwritten. Both are their own slices, plus a real clan-lab droplet to probe. ### Not the blocker, but noted - **BrokerClient** is a *declared deferred human decision* (business terms, ADR 0047/0048; `broker/` is skeleton-only). Neither AC lane touches the broker (private path skips it; own-VPS uses it only if the operator later picks a `matou.nz` subdomain), so it does not gate this work — but it can't be "wired real" as the ticket's item 2 implies until that decision lands. ### To re-arm — split into landable slices (suggested) 1. **app-packaging** — the Electron/Quasar desktop entry + `-tags dev` dev entry mounting `bootstrapApp` (buildable/verifiable on its own; no real-infra dependency). 2. **helper prod wiring (partial)** — wire the two real adapters that exist (ClanFace=`clan.Adapter`, EnrollFace=`enroll.Ledger`) in `wiring_prod.go`; keep unbuilt ports + break-glass fail-loud (ADR 0100). 3. **real Reachability adapter** (AC2). 4. **real DNSResolver adapter** (AC2). 5. **ADR-0056 QEMU VM manager + wire it into founding's private path** (AC1) — currently the device-end agent's scope (#192); needs a decision on who owns founding's VM standup. 6. Leave the real-hardware end-to-end proof to **#183**. Or: confirm a narrower deliverable for #191 (e.g. just slices 1+2) and move 3–6 to their own tickets. ### Environment note This sandbox additionally lacks the pinned toolchain (`go`/`nix`/`qemu`/`/dev/kvm`), so even the buildable subset couldn't be compiled or the ADR-0052 stdio round-trip seam run here — a separate concern from the scoping above, but it means no partial slice was verifiable this iteration. No code changed. Swapping `ready-for-agent` → `ready-for-human` for a scoping decision.
Author
Owner

Ben confirmed the split (driven session 2026-07-30), cut along the investigation's seams: this ticket narrows to the two landable slices (packaging + partial helper wiring of the real ClanFace/EnrollFace); the Reachability and DNSResolver adapters are #193 / #194 (armed ready-for-agent); the QEMU VM manager + founding's private-path standup move to #192 (the agent owns the VM manager per ADR 0056, and ADR 0043's private path installs the standing agent locally — that answers the ownership question); the real-hardware proof stays #183's. Body re-scoped, re-armed ready-for-agent.

**Ben confirmed the split** (driven session 2026-07-30), cut along the investigation's seams: this ticket narrows to the two landable slices (packaging + partial helper wiring of the real ClanFace/EnrollFace); the Reachability and DNSResolver adapters are #193 / #194 (armed `ready-for-agent`); the QEMU VM manager + founding's private-path standup move to #192 (the agent owns the VM manager per ADR 0056, and ADR 0043's private path installs the standing agent locally — that answers the ownership question); the real-hardware proof stays #183's. Body re-scoped, re-armed `ready-for-agent`.
Author
Owner

Landed in 35cb1cd (on origin/main). The two landable slices Ben confirmed:

App packaging (ADR 0108, agent-decided; Ben's post-hoc review pending). First real desktop packaging for the operator app: an Electron main/preload (app/src-electron/) opens the window and hands the renderer a boot bridge, and a Vite renderer (app/index.html → app/src/renderer/index.ts → production.ts/dev.ts) boots the composition root bootstrapApp (#131) over the bundled helper. The production entry drives the REAL helper; the dev entry drives the -tags dev fake-driving helper and is marked visibly data-build="dev". The packaged seam is app/src/entry/boot.ts (buildPackagedConfig + bootPackagedApp); the not-yet-built app edges (update channel ADR 0033, seat source ADR 0019) are honest placeholders (app/src/entry/boundaries.ts), never fakes. Build/dev flow in app/PACKAGING.md; the full Quasar app-vite UI layer is a documented deferral (ADR 0108).

Helper prod wiring, partial (app/helper/cmd/helper/wiring_prod.go, ADR 0100). newClanFace and founding's ClanFace are the real clan.Adapter (ADR 0102, pinned-CLI over the config repo under the app-data dir); founding's EnrollFace is the real enroll.Ledger (ADR 0043, seeded with the gateway spec floor). Every other founding port (broker, DNS resolver, reachability, VM standup, fleet, enrolment, laptop) and the whole break-glass seam stay UNwired and fail loud. wiring_test.go rewritten to the new contract.

Acceptance evidence.

  • Packaged production app boots the real helper with real ClanFace+EnrollFace; unbuilt ports/break-glass fail loud (ADR 0100) — wiring_prod.go + wiring_test.go; boot seam test's production case.
  • Dev build (-tags dev + dev entry) drives the fakes, clearly marked dev — boot.test.ts dev case + packagedBoot.test.ts (data-build marker).
  • Boot seam test (#131) extended to the packaged entry, proving the packaged composition boots the real helper — app/tests/unit/boot.test.ts (production + dev, go-gated / nix develop).

Verified here: renderer + main/preload both build under Vite; app vue-tsc + 345 vitest green; ESLint clean; pnpm install --frozen-lockfile green (electron postinstall denied in pnpm-workspace.yaml). The go-gated boot seam test runs in CI (go is not on PATH in the swarm sandbox, as before).

Compose follow-ups (not this ticket): wire the now-landed Reachability #193 / DNSResolver #194 / VM standup #192 adapters into wiring_prod.go; the Quasar app-vite UI layer; the real-hardware end-to-end #183 (which this unblocks).

Landed in `35cb1cd` (on `origin/main`). The two landable slices Ben confirmed: **App packaging (ADR 0108, agent-decided; Ben's post-hoc review pending).** First real desktop packaging for the operator app: an Electron main/preload (`app/src-electron/`) opens the window and hands the renderer a boot bridge, and a Vite renderer (`app/index.html` → `app/src/renderer/index.ts` → `production.ts`/`dev.ts`) boots the composition root `bootstrapApp` (#131) over the bundled helper. The **production entry** drives the REAL helper; the **dev entry** drives the `-tags dev` fake-driving helper and is marked visibly `data-build="dev"`. The packaged seam is `app/src/entry/boot.ts` (`buildPackagedConfig` + `bootPackagedApp`); the not-yet-built app edges (update channel ADR 0033, seat source ADR 0019) are honest placeholders (`app/src/entry/boundaries.ts`), never fakes. Build/dev flow in `app/PACKAGING.md`; the full Quasar app-vite UI layer is a documented deferral (ADR 0108). **Helper prod wiring, partial (`app/helper/cmd/helper/wiring_prod.go`, ADR 0100).** `newClanFace` and founding's ClanFace are the real `clan.Adapter` (ADR 0102, pinned-CLI over the config repo under the app-data dir); founding's EnrollFace is the real `enroll.Ledger` (ADR 0043, seeded with the gateway spec floor). Every other founding port (broker, DNS resolver, reachability, VM standup, fleet, enrolment, laptop) and the whole break-glass seam stay UNwired and fail loud. `wiring_test.go` rewritten to the new contract. **Acceptance evidence.** - Packaged production app boots the real helper with real ClanFace+EnrollFace; unbuilt ports/break-glass fail loud (ADR 0100) — `wiring_prod.go` + `wiring_test.go`; boot seam test's production case. - Dev build (`-tags dev` + dev entry) drives the fakes, clearly marked dev — `boot.test.ts` dev case + `packagedBoot.test.ts` (data-build marker). - Boot seam test (#131) extended to the packaged entry, proving the packaged composition boots the real helper — `app/tests/unit/boot.test.ts` (production + dev, go-gated / `nix develop`). Verified here: renderer + main/preload both build under Vite; app `vue-tsc` + 345 vitest green; ESLint clean; `pnpm install --frozen-lockfile` green (electron postinstall denied in `pnpm-workspace.yaml`). The go-gated boot seam test runs in CI (`go` is not on PATH in the swarm sandbox, as before). **Compose follow-ups (not this ticket):** wire the now-landed Reachability #193 / DNSResolver #194 / VM standup #192 adapters into `wiring_prod.go`; the Quasar app-vite UI layer; the real-hardware end-to-end #183 (which this unblocks).
ben closed this issue 2026-07-30 22:14:20 +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#191
No description provided.