agent: real-composition — device-end join adapters (QEMU/mesh/clan) + the install command #192
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#192
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; re-scoped 2026-07-30 per triage's analysis — Ben confirmed in a driven session: the full-install takeover criterion (old AC2) moves out — it needs physical hardware no swarm substrate can reach and is exactly #183's B·2 leg, where the takeover proof always lived (spike Q2.2). What remains is fully agent-doable.
What's true today
agent/cmd/agent, but its production wiring fails loud on the join seam — no real QEMU/mesh/clan device-side adapters (ADR 0100). Onlyjoin.VMManager's interface + fake exist; the real ADR 0056 QEMU single-VM manager is unbuilt.internal/founding/privatepath.go) never wires a VM manager — its host probe is a hardcoded stand-in — so the local-VM stand-up (P1 VAR) has no code path. Ownership ruling per ADR 0043/0056: the VM manager is the agent's — the private path has the helper install the standing agent locally and drive its VM manager.What to build
join.VMManager, agent-bundled.wiring_prod.goconstructs the real device-side adapters: the VM manager for VM-mode joins, the mesh join (devices are mesh peers — members never are), and the device-side clan enrolment against the control plane (enroll seam, MintCode/RevokeCode contract).Acceptance criteria
Task manifest
Blocks
#183 — leg B·2 (VM-mode joins incl. the laptop backup-target device) and Phase A's local-VM call-in (leg A·1).
Triage verification: confirmed against the codebase —
agent/cmd/agent/wiring_prod.gofails loud on the join seam exactly as described, with no real QEMU/mesh/clan adapters wired. Referenced ADRs 0056/0100 exist and are accepted; theagent-control-planeandclanseam contracts arestatus: confirmed. No missing-design gate triggered, no prior.out-of-scope/rejection found, nothing pre-existing that makes this redundant.Why
ready-for-humanand notready-for-agent: this is a judgment call, not a missing-design or spec gap — the task manifest's ownneeds_human_decisionis empty, and I don't think that's wrong for most of the ticket. The blocker is narrower: the two acceptance criteria have different reach.--phasesresumable) is the exact leg STATUS.md already calls out as substrate-limited — the #175 smoke on the golden clan-lab could not exercise it because "VMs had no outbound for the kexec fetch," and the real-hardware proof was explicitly deferred to spike Q2.2, re-proven at #183 (itselfready-for-humanfor the same reason). Cloud lab droplets (theclan-labskill) can't stand in for a physical machine with real BIOS/UEFI and a MAC-matched NIC to take over — there's no substrate an agent can reach that satisfies this criterion.Since this ticket bundles both criteria into one deliverable and can't be called done without AC2, routing the whole thing to
ready-for-humanmatches the precedent already set at #183 rather than have an agent either stall on AC2 or claim done without it. Whoever picks this up in a driven session can still delegate the AC1 adapter-wiring work to an agent and reserve only the AC2 hardware leg for themselves — that split is the maintainer's call, not something to bake into the label.Leaving
needs_human_decisionin the manifest empty as-authored since the call here is about this ticket's scope, not a missing spec detail.Ben confirmed the split (driven session 2026-07-30): the full-install takeover criterion moves out to #183 B·2 (physical hardware, spike Q2.2 — where that proof always lived). This ticket narrows to the agent-doable remainder: the real QEMU single-VM manager (ADR 0056), the agent's real join seam, the install command, and founding's private-path VM standup through the locally-installed agent (ADR 0043). Body re-scoped, re-armed
ready-for-agent.Landed in
e3c2f0fonmain(STATUS.md updated same commit).What shipped real (ADR 0056/0100 — no fake in the shipped path):
internal/vm.Manager— the productionjoin.VMManager, the agent-bundled QEMU single-VM manager: sized qcow2 guest backed by the per-arch NixOS base image → systemd unit runningqemu-systemwith KVM accel + virtio →enable --nowautostart (guest + membership survive reboots, ADR 0053) →Existsoff the durable disk,Healthoff the supervising unit → idempotent teardown. Logic injected behind aSystemseam; contract-tested (internal/vm/manager_test.go).internal/hostprobe.Prober— the productionjoin.Prober: honest arch/OS/cores/mem/disk//dev/kvm-virt read, never a fabricated spec.internal/install— the install command's real ports: HTTP/getGatewayat the fleet's pinned release (never upstream, ADR 0054) + a systemdServiceInstaller/SelfRemover(the doorway's only residue, ADR 0028/0053).agent/cmd/agent/wiring_prod.go— constructs the real VM/probe/self + install ports, so the pending path (Redeem → consent → Pair → Pending) stands a VM-mode guest up for real.agent installis the runnable one-shot doorway.LocalVM.Createbefore the clan enrolment, which VM-mode onlyupdates an already-existing guest) and the realHostProbe; the hardcodedprivateVMHostProbestand-in is gone (P1 VAR, ADR 0043).Acceptance:
agent install/agent enrolldrive the realvm.Manager.Create+ realhostprobeto reach pending — approve with honestly-probed specs, no fake in the path. The real-hardware KVM stand-up is the driver-gatedscripts/smoke-vm.sh+control-plane/cmd/smoke-vm(no swarm substrate carries/dev/kvm).TestProductionUnbuiltPortsFailLoud), never a fake; the agent still boots and reaches approval.Remaining (driver's / their own slices, per the #193/#194 split precedent): the real device-side mesh (Netbird) and clan adapters (post-approval, need real mesh/control-plane infra); the real-KVM/real-mesh AC1/AC2 end-to-end on hardware; and wiring the real
vm.Manager/hostprobe.Proberinto the helper'swiring_prod.go(#191, the compose ticket — the helper still fails loud on founding until then).Verification: both build tags + the Go suite +
golangci-lintclean.limesurvey-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 #1321userthemerootdiris derived from the DEFAULTuploaddirbefore config.php is merged, and a theme it cannot see is sile… #1330