app: pinned QEMU payload has no build source (ADR 0110 carriage) #230
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.
Dependencies
No dependencies set.
Reference
Matou/idss#230
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
Reported during QA session preparing #183 Phase A.
What's wrong
ADR 0110 commits the operator-app install to carrying the private-path payload: the agent binary, a pinned QEMU, and the per-arch guest base image. The guest base image has a clean build entry point (#216), but the pinned QEMU has no build source anywhere — the flake exposes only the guest image and the dev toolchain. The pinned-QEMU half of the payload cannot be produced.
What I expected
A build target that produces the pinned QEMU payload, versioned alongside the guest base image, ready to be staged into the private-path payload.
Steps to reproduce
Blocked by
None — can start immediately.
Additional context
Not a #183 blocker: Ben ruled Phase A rehearses on the apt-installed QEMU stopgap (#183, 2026-07-30). This gap is what stands between the stopgap and ADR 0110's promise ("no network fetch, no apt install"), and any signed bundle on the Matou channel (#211) needs it.
Triage
Category: enhancement · State: ready-for-agent
Verification: confirmed against the codebase —
flake.nixexposes apackages.guest-imagebuild (and per-archourcloud-guest-x86_64/ourcloud-guest-aarch64configs) but no QEMU build target anywhere in the repo.internal/vm/resolve.goalready defines the exact contract the private-path payload must satisfy. No existing implementation, no prior.out-of-scope/rejection.Agent Brief
Category: enhancement
Summary: Add a build target that produces the pinned QEMU payload (ADR 0110), versioned alongside the guest base image.
Current behavior:
The private-path payload's guest base image has a build entry point (the flake's
guest-imagepackage, #216), but the QEMU half of the payload has no build source anywhere in the repo — the flake exposes only the guest image and the dev toolchain.internal/vm/resolve.go'sResolveConfigalready documents the exact artifact contract: givenOURCLOUD_PAYLOAD_DIR, it expects an arch-agnosticqemu-imgbinary and a per-archqemu-system-x86_64/qemu-system-aarch64binary inside that directory. Nothing produces them.Desired behavior:
A reproducible build target (a flake output beside the existing
guest-imagepackage is the established pattern) that produces the pinnedqemu-imgandqemu-system-<arch>binaries, versioned/pinned together with the guest base image, ready to be staged into the private-path payload directory by the assembly step (#231).Key interfaces:
internal/vm/resolve.goalready defines:qemu-imgandqemu-system-x86_64/qemu-system-aarch64(selected viaruntime.GOARCH).Acceptance criteria:
qemu-imgandqemu-system-<arch>binaries for at least x86_64-linux.Out of scope:
Done in
d7ab8fe(onmain).The pinned QEMU now has a build source — the QEMU half of ADR 0110's private-path payload.
What shipped:
.#pinned-qemu(flake.nix) buildsqemu-img+qemu-system-x86_64from nixpkgs'qemu_test— the lean, headless, host-CPU-only build NixOS integration tests boot, exactly thevm.Manager's QEMU shape (virtio + KVM + SeaBIOS, ADR 0056). Cache-substitutable (66.8 MiB, no from-source qemu compile).scripts/build-qemu-payload.sh(thebuild-guest-image.shprecedent) builds it and stages the two binaries — the exact namesinternal/vm/resolve.goresolves — into a dir the assembly step (#231) consumes viaPAYLOAD_QEMU_SRC_DIR.Acceptance:
qemu-imgandqemu-system-x86_64for x86_64-linux.PAYLOAD_QEMU_SRC_DIR);scripts/assemble-payload.shnow produces a COMPLETE payload, no PENDING slot.Verified end-to-end:
nix build .#pinned-qemu→build-qemu-payload.shstages →assemble-payload.shconsumes viaPAYLOAD_QEMU_SRC_DIR→ the assembled dir'sqemu-img/qemu-system-x86_64run (--version).Docs updated (
docs/operator-app/build-and-run.md,app/PACKAGING.md,scripts/assemble-payload.shnotes,STATUS.md). Remaining gap before "install the app": operator-app packaging/installer carrying the assembled payload intoresourcesPath/payload.