design: the private path fetches its VM payload on demand, and an opt-in offline founding bundle keeps ADR 0110's promise #1771

Open
opened 2026-09-23 15:09:30 +00:00 by ben · 0 comments
Owner

Per ADR 0272 (docs/adr/0272-the-target-fetches-its-own-bytes-the-installer-carries-only-the-pre-gateway-bootstrap.md, landed 180b4975), decisions 4 and 5 — the half of the ruling that has a UI surface, so it needs a flow and wireframes before it needs code.

What was ruled

QEMU and the guest image cannot move to the target: you need QEMU running on the host to have a VM at all. So they stay host-side — but they move out of the default installer. The app fetches them the first time an operator actually chooses the private path, so only the people who use them pay, and they pay once.

And ADR 0110's promise — "founds from the install alone: no network fetch, no apt install, no hand-placed image" — survives as an opt-in offline bundle (Ben's ruling), rather than the default every operator pays ~1 GB for without being asked.

What needs designing

  1. The on-demand fetch, as a screen. Choosing the private path now means a download of hundreds of MB before anything happens. What does the operator see, what does it cost them, and what happens when it fails or is interrupted? This is the same class of problem as #1765 — a long silent step an operator cannot distinguish from a hang — so it should be designed with progress, not retrofitted with it.
  2. How someone knows they want the offline bundle before they need it. By the time an operator discovers they have no connection, they cannot download the thing that solves it. The bundle has to be discoverable at the moment they still have a connection — which is a wayfinding problem, not a packaging one.
  3. What the bundle is. One file or several; whether it covers only the private path or a whole offline founding; how it is verified once carriage stops being the trust boundary (decision 2).
  4. The failure state. An operator who picked the private path, has no connection, and did not take the bundle. That screen has to be honest and has to offer something.

Current slots this touches

pinned relocatable QEMU (qemu-img, qemu-system-x86_64, lib/, qemu-datadir/ — scripts/build-qemu-payload.sh, resolved internal/vm/resolve.go:105-111, consumed internal/founding/privatepath.go:924) and nixos-guest.qcow2 (scripts/build-guest-image.sh, resolve.go:108). Both are required slots today (app/scripts/verify-payload.mjs:44-53).

Note for whoever picks this up: verify-payload.mjs, scripts/package-layout-check.sh and scripts/run-app.sh currently check overlapping but not identical slot lists (run-app.sh omits lib//qemu-datadir/), so a payload that passes one can fail another. Close that disagreement while they are being rewritten rather than carrying it forward.

Per ADR 0272 (`docs/adr/0272-the-target-fetches-its-own-bytes-the-installer-carries-only-the-pre-gateway-bootstrap.md`, landed `180b4975`), decisions 4 and 5 — the half of the ruling that has a UI surface, so it needs a flow and wireframes before it needs code. ## What was ruled QEMU and the guest image **cannot** move to the target: you need QEMU running on the host to have a VM at all. So they stay host-side — but they move out of the default installer. The app fetches them the first time an operator actually chooses the private path, so only the people who use them pay, and they pay once. And ADR 0110's promise — *"founds from the install alone: no network fetch, no `apt install`, no hand-placed image"* — survives as an **opt-in offline bundle** (Ben's ruling), rather than the default every operator pays ~1 GB for without being asked. ## What needs designing 1. **The on-demand fetch, as a screen.** Choosing the private path now means a download of hundreds of MB before anything happens. What does the operator see, what does it cost them, and what happens when it fails or is interrupted? This is the same class of problem as #1765 — a long silent step an operator cannot distinguish from a hang — so it should be designed with progress, not retrofitted with it. 2. **How someone knows they want the offline bundle before they need it.** By the time an operator discovers they have no connection, they cannot download the thing that solves it. The bundle has to be discoverable at the moment they still have a connection — which is a wayfinding problem, not a packaging one. 3. **What the bundle is.** One file or several; whether it covers only the private path or a whole offline founding; how it is verified once carriage stops being the trust boundary (decision 2). 4. **The failure state.** An operator who picked the private path, has no connection, and did not take the bundle. That screen has to be honest and has to offer something. ## Current slots this touches pinned relocatable QEMU (`qemu-img`, `qemu-system-x86_64`, `lib/`, `qemu-datadir/` — `scripts/build-qemu-payload.sh`, resolved `internal/vm/resolve.go:105-111`, consumed `internal/founding/privatepath.go:924`) and `nixos-guest.qcow2` (`scripts/build-guest-image.sh`, `resolve.go:108`). Both are required slots today (`app/scripts/verify-payload.mjs:44-53`). Note for whoever picks this up: `verify-payload.mjs`, `scripts/package-layout-check.sh` and `scripts/run-app.sh` currently check **overlapping but not identical** slot lists (run-app.sh omits `lib/`/`qemu-datadir/`), so a payload that passes one can fail another. Close that disagreement while they are being rewritten rather than carrying it forward.
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.

Dependencies

No dependencies set.

Reference
Matou/idss#1771
No description provided.