app: real-composition — package the operator app (Electron/Quasar) + wire the helper’s real founding adapters #191
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
Matou/idss#191
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
app/— founding wizard + screens, composed bybootstrapApp(app/src/bootstrap.ts) over the bundled Go helper (app/helper/cmd/helper), proven by the #131 boot seam test.quasar.config, no electron main, noindex.html, nodevscript.clan.Adapter(internal/clan/adapter.go, ADR 0102) and EnrollFace →enroll.Ledger(internal/enroll/ledger.go).What to build
bootstrapAppper the ui-kit mount-slot contract (#29, closed), plus a-tags devdev entry. Launches on a Linux operator machine. No real-infra dependency — buildable and seam-verifiable on its own.wiring_prod.goconstructs 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
-tags dev+ dev entry), When a developer runs the app, Then the seam fakes drive the full founding surfaces, clearly marked devTask manifest
Blocks
#183 — the packaged app is what Ben drives in both phases.
Triage verification: confirmed against the codebase —
app/helper/cmd/helper/wiring_prod.gocurrently fails loud on all three seams (founding/clan/break-glass) per ADR 0100, matching the ticket's claim; no Electron/Quasar entry exists underapp/(app/src/surface.tsstill 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; theagent-control-planeandclanseam contracts arestatus: confirmed; thep1-foundingflow and all referenced wireframe screens (S7a, S7b, S8, S9, S9x, S10, S11, S12, VAR) exist underdocs/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:
bootstrapAppcomposes 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
bootstrapAppper 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:
bootstrapApp, the ui-kit mount contract from #29) — needs a real desktop shell around it, not a new contracterrUnconfiguredstubs) — each should construct a real adapter instead-tags devdev entry that keeps driving the existing seam fakes, clearly marked as devAcceptance criteria:
clan-labskill's real droplets are the way to exercise this without a physical machine-tags dev+ dev entry), When a developer runs the app, Then the seam fakes drive the same surfaces, clearly marked devOut of scope:
ready-for-human, see its note on the hardware-takeover leg)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_scopehere — 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:
clan.Adapter(internal/clan/adapter.go:44ctorclan.New(repo, cli, log), ExecCLI-backed, ADR 0102). ✅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
join.VMManager(internal/join/join.go:30) +FakeVMManagerexist; 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 listsout_of_scope(#192).Enrolldoes not create a VM — it runsclan machines updateagainst 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.internal/founding/testing/fakes.go).AC2 (own-VPS — "reachability/name checks against the real machine") — blocked on two unbuilt adapters
internal/founding/standup.go:66) — onlyFakeReachability; the real "Matou-side outside-in check" is unwritten.internal/founding/access.go:210) — onlyFakeResolver; the real resolver is unwritten.Both are their own slices, plus a real clan-lab droplet to probe.
Not the blocker, but noted
broker/is skeleton-only). Neither AC lane touches the broker (private path skips it; own-VPS uses it only if the operator later picks amatou.nzsubdomain), 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)
-tags devdev entry mountingbootstrapApp(buildable/verifiable on its own; no real-infra dependency).clan.Adapter, EnrollFace=enroll.Ledger) inwiring_prod.go; keep unbuilt ports + break-glass fail-loud (ADR 0100).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-humanfor a scoping decision.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-armedready-for-agent.Landed in
35cb1cd(onorigin/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 rootbootstrapApp(#131) over the bundled helper. The production entry drives the REAL helper; the dev entry drives the-tags devfake-driving helper and is marked visiblydata-build="dev". The packaged seam isapp/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 inapp/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).newClanFaceand founding's ClanFace are the realclan.Adapter(ADR 0102, pinned-CLI over the config repo under the app-data dir); founding's EnrollFace is the realenroll.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.gorewritten to the new contract.Acceptance evidence.
wiring_prod.go+wiring_test.go; boot seam test's production case.-tags dev+ dev entry) drives the fakes, clearly marked dev —boot.test.tsdev case +packagedBoot.test.ts(data-build marker).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-lockfilegreen (electron postinstall denied inpnpm-workspace.yaml). The go-gated boot seam test runs in CI (gois 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).services.limesurvey.uploadsDir— an option nixpkgs has never had — and three more nixpkgs faults wait behind it #1318limesurvey-adminruns nixpkgs'console.phpwith noLIMESURVEY_CONFIG, andsurveys-brandcannot write under the root-owned Nix-store copy nixpkgs seedsupload/from #1319surveys-healthyred for the full 360s warm-up: LimeSurvey ships its RemoteControl JSON-RPC interface OFF, and OFF answers an empty HTTP 200 — the port's own health gate can never open a session #1321surveys-healthy(found while verifying): the render'sconfig.configdefinition outranks nixpkgs'mkDefaultand WIPES nixpkgs' entire LimeSurvey config subtree —uploaddir,tempdir,force_sslall fall back to the read-only Nix store #1322userthemerootdiris derived from the DEFAULTuploaddirbefore config.php is merged, and a theme it cannot see is sile… #1330