app: private-path payload has no assembly step (#196 landed the read side only) #231
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#231
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
#196 landed only the consumption side of ADR 0110: the app resolves a payload directory at runtime and hands it to the bundled helper. Nothing assembles that payload — no step stages the agent binary, the pinned QEMU, and the guest base image into the layout the app reads. The carriage ADR 0110 promises cannot be exercised end to end; the env-var override the ADR demoted to a dev-only convenience is the only working route.
What I expected
A payload assembly step that stages agent + pinned QEMU + guest base image into the payload layout the app resolves, so an installed operator app founds via the private path with no network fetch and no hand-placed image.
Steps to reproduce
Blocked by
None — staging the agent and guest base image can start immediately; the pinned-QEMU slot completes after #230.
Additional context
Not a #183 blocker (Ben's stopgap ruling for Phase A). Operator-app packaging itself is deferred as later work, but the assembly step should exist and run standalone so the payload can be verified before an installer exists.
Triage
Category: enhancement · State: ready-for-agent
Verification: confirmed against the codebase —
app/src-electron/electron-main.tshaspayloadDirPath()(the consumption side, #196) butscripts/has no assembly script and nothing in the repo populates a payload directory.internal/vm/resolve.godefines the exact expected layout (qemu-img,qemu-system-<arch>,nixos-guest.qcow2). No existing implementation, no prior.out-of-scope/rejection.Agent Brief
Category: enhancement
Summary: Add the private-path payload assembly step that stages agent + pinned QEMU + guest base image into the layout the app resolves (ADR 0110).
Current behavior:
#196 landed only the consumption side — the packaged app resolves
OURCLOUD_PAYLOAD_DIRand hands it to the helper, andinternal/vm/resolve.godefines the exact expected layout inside that directory. Nothing assembles that directory; the only working route today is hand-placing files via the dev-only single-artifact env var overrides (OURCLOUD_QEMU_IMG,OURCLOUD_QEMU_SYSTEM,OURCLOUD_GUEST_IMAGE), which ADR 0110 demotes to a dev-only convenience, not the real carriage path.Desired behavior:
A standalone assembly step (script or build target) that stages the agent binary, the pinned QEMU binaries, and the guest base image into a payload directory matching the layout
internal/vm/resolve.goexpects, so the payload can be built and verified independently of any installer — founding via the private path with no network fetch and no hand-placed image.Key interfaces:
internal/vm/resolve.go's constants:qemu-img,qemu-system-x86_64/qemu-system-aarch64,nixos-guest.qcow2, all siblings inside one payload directory.Acceptance criteria:
internal/vm/resolve.goresolves.OURCLOUD_PAYLOAD_DIRand the private path founds with no additional env overrides, no network fetch, no hand-placed files (for the artifacts staged).Out of scope:
Landed in
6523de9onmain.What was done — the write side of ADR 0110's carriage (#196 landed only the read side). New
scripts/assemble-payload.shstages the private-path payload into one directory in the exact layoutinternal/vm/resolve.goresolves:agent— the locally-installed agent binary (built static,CGO_ENABLED=0, from./agent/cmd/agent; the installer places it,resolve.godoes not resolve it).nixos-guest.qcow2— the per-arch guest base image (#216).qemu-img+qemu-system-<arch>— the pinned QEMU.PAYLOAD.txt— a manifest of what was staged and what is pending.Each artifact builds from source or stages a prebuilt via
PAYLOAD_AGENT_SRC/PAYLOAD_GUEST_IMAGE_SRC/PAYLOAD_QEMU_SRC_DIR. The step runs standalone (no installer). Point the app at the result withOURCLOUD_PAYLOAD_DIR.Pinned QEMU (#230) stays PENDING: it has no build source yet, so the step leaves that slot unstaged (recorded in
PAYLOAD.txt) and still stages the rest — a partial payload is a valid, verifiable intermediate. Founding'sCreatestays fail-loud (ADR 0056/0100) until the slot is filled. Building the QEMU binaries (#230) and the installer packaging were out of scope.Evidence / seam:
internal/vm/assemble_test.godrives the step with stand-in artifacts and asserts the assembled dir is exactly onevm.ResolveConfigresolves andCreate's missing-payload precondition accepts — the write side now provably meets the read side, offline (no Go/Nix/QEMU heavy inputs). Verified: full#go-cigate (build/vet/test/golangci-lint + broker) green; a real standalone run built the agent, staged the image, and correctly reported the QEMU slot pending.Docs:
docs/operator-app/build-and-run.mdandapp/PACKAGING.mdreference the step;STATUS.mdupdated (header + milestone log).