Repository navigation
feat(agentteams): VM substrate + machine-venue extract (Unit 6) - #253
Conversation
The AgentTeams box now deploys on the vm: substrate, not just pod:. The controller's rootless podman socket is provisioned inside the guest by charly's systemd init (no supervisord in a VM), and the Manager/Worker images are delivered into the guest store via `charly vm cp-box --domain`. The check-agentteams-vm bed proves the full controller-spawns-manager → create-worker → room sequence in-guest on a fresh update. Machine-venue extract materialization (spec #24 → sdk #130 → main): a candy's extract: entries are a build-time Containerfile operation on a container venue, but a machine venue has no image build — the plan executes over the venue's own filesystem. This cutover adds the ExtractStep to the InstallPlan IR (spec), RunVenueExtractStep (sdk, pulls the source image with charly's own podman machinery), and the extract dispatch in the host-step reverse seam (main). The higress binaries — which exist only in higress/all-in-one:2.2.1 — now land on the VM. Volume refactor per the operator's directive: every agentteams candy owns a home-relative volume at a freely configurable location (~/.agentteams/minio|matrix|higress|controller) instead of a shared /data; element carries none. Each candy is installable alone or in any combination. Venue-dependent network: pasta + host.docker.internal on machine venues, charly + $HOSTNAME on container venues (guest kernel lacks the bridge module netavark needs). Init-polymorphism restart parity (root cause): the systemd service template now defaults Restart=always for unset/always/unless-stopped, matching supervisord's autorestart=true. The higress gateway declares restart: always (envoy V8 WASM segfault recovery). Machine-venue install fixes: write: creates parent dirs on machine venues (sdk); the arch pacman -Syu before package install. Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)
spec v0.2026224.1942 (a38780e) + sdk v0.2026224.2004 (e6950fa) — the B6 cross-repo landing of the machine-venue extract cutover. Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)
pr-validator — CHANGES REQUESTED ❌Change class: charly-or-sdk Go + candy/config (VM substrate + machine-venue extract, Unit 6) Head SHA validated: Blocking findings1. Evidence: 2. R9 binary freshness not satisfied at the final head. The worktree 3. Attribution tier inflated. The claimed Checklist
Comments considered: none (the PR carries 0 comments). Cross-PR interactions considered: none open in What the author must fix
Assisted-by: Claude Code deepseek-v4-flash:cloud (analysed on a live system) |
The sdk gitlink bump (e6950fa) requires spec v0.2026224.1942; the 90 plugin candy + charly go.mod pins still required v0.2026224.403, breaking the external-plugin module graph (GOWORK=off e2e). Align every pin to the released spec tag. Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)
pr-validator — APPROVED ✅Change class: charly-or-sdk Go + candy/config (AgentTeams Unit 6: the VM substrate + machine-venue extract) Head SHA validated: Checklist
Comments considered: one comment — Cross-PR interactions considered: none found — the sweep of DecisionAPPROVED. The prior validator's three blocking findings are independently verified resolved at the final head; the R10 evidence on disk is genuine and load-bearing (both beds re-ran at the final head on the rebuilt binary, Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated) |
…te (Unit 6) Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)
Summary of changes
Unit 6 of the AgentTeams integration — the VM substrate. The full AgentTeams stack (minio, matrix/tuwunel, element, higress, controller) now deploys on BOTH substrates: the existing
pod:bed and a newvm:bed that installs theagentteamstop composition into a disposable Arch cloud-image guest viaadd_candy, with services running as systemd units under uid 1000 (init polymorphism — no supervisord in a VM).The three-repo fix (spec → sdk → main)
The
extract:entries (higress binaries exist only inhigress/all-in-one:2.2.1) are a build-time Containerfile operation on a container venue, but a machine venue has no image build — the install plan executes over the venue's own filesystem. This cutover makes extract work on a VM:ExtractStepin the InstallPlan IR + wire type. MERGED + TAGGEDv0.2026224.1942(squasha38780e).RunVenueExtractStep— pull the source image on the host, extract the requested path, ship it into the venue over the DeployExecutor. Plus the machine-venuewrite:verb now creates the parent dir first (install -d), matching the container-venue COPY behavior, and the spec-pin bump tov0.2026224.1942. MERGED + TAGGEDv0.2026224.2004(squashe6950fa).extractword dispatch incandy/plugin-installstep+charly/plugin_executor_reverse.go, the VM entity + bed, the candy/init fixes below, and the 90 plugin-candy +charlygo.modspec pins bumped tov0.2026224.1942(the sdk gitlink bump requires the released spec; the stalev0.2026224.403pins broke the external-plugin module graph —TestExternalPluginStep_ReverseChannelEndToEndfailed "updates to go.mod needed" until the pins aligned).Init-polymorphism restart parity (root cause)
supervisord's service template defaults to
autorestart=true; the systemd template only renderedRestart=when.Restartwas non-empty (unset →Restart=no). A service that self-heals in a pod stayed dead in a VM. Fixed at the root: the systemd template now defaults toRestart=alwaysfor unset/always/unless-stopped (candy/plugin-init/resolve.go+charly/charly.yml), with a parity test (render_service_unit_test.go). The higress gateway service also declaresrestart: alwaysexplicitly (envoy's V8 WASM engine segfaults once at startup under the upstream--concurrencydefault; the init's restart policy covers the ~15s down window on both substrates).Venue-dependent network (root cause)
The controller's DockerBackend passed
NetworkMode: "charly"(bridge), but the Arch cloud-image guest kernel has no bridge module →Netlink error: Operation not supported (os error 95). Fixed by venue-dependent network:pastaon machine venues,charlyon container venues.Volume refactor (per the user's architectural directive)
Every agentteams candy now uses its own uniquely-named home-relative volume (
~/.agentteams/minio,~/.agentteams/matrix,~/.agentteams/higress,~/.agentteams/controller) instead of a shared/data— each candy is installable in any combination, alone or with others, at freely configurable locations. Element has no volume (static nginx).Other fixes
/dev/stdoutvenue defect: the higress gateway's mesh configaccessLogFile: /dev/stdoutfails in a VM (ENXIO on the pipe) →/var/log/proxy/access.log.pacman -Syu: the arch distro's machine-venue install template now runs-Syu(partial-upgrade on fresh cloud-image guests).charly vm cp-box --domain: new flag for per-deploy domain identity (a check bed's domain is the bed name, not the entity).Change class
charly-or-sdk Go+candy/config— the VM substrate cutover: plugin dispatch, init template, VM entity + bed, and the shared candy fixes.How R10-tested — exact gate, commands, and pasted output
charly check run check-agentteams-vm(the new VM bed) +charly check run check-agentteams-pod(the existing pod bed — the change set modifies the shared candies it exercises) +go test ./...+charly box validate. All gates re-run at the FINAL head2e4a69d1+e11f9972with the rebuilt worktree binary (charly version2026.224.2024).charly check run check-agentteams-vm(run 2026.224.2039) — full fresh-rebuild sequence, all 9 bed steps PASS (vm-build → vm-create → deploy-add → bring-up-members → check-live → update → check-live-rebuild → cleanup → cleanup-members), both check-live legs 13/13 PASS, zero failures/skips:charly check run check-agentteams-pod(run 2026.224.2105) — full fresh-rebuild sequence, all 13 bed steps PASS (image-build → check-image → deploy-add → config → start → bring-up-members → check-live → feature-run → update → check-live-rebuild → feature-run-rebuild → cleanup → cleanup-members), both check-live legs 73 steps: 64 passed, 0 failed, 9 skipped (the 9 SKIPs are the mutatingrun:steps that already executed at deploy time — standardcheck livebehavior), zero failures.go test ./...(fromcharly/) — all packages green, includingTestExternalPluginStep_ReverseChannelEndToEnd(the external-plugin e2e that builds a candy module standalone — it failed before the 90-pin bump).charly box validate— zero warnings.Attribution tier
fully tested and validated— both disposable beds (pod + vm) ran the complete fresh-rebuild R10 with the changed paths executed live; both outputs pasted above.Harness rulebook compliance — state HOW each is satisfied (or
N/A — <reason>)/charly-internals:go(plugin dispatch, init template),/charly-image:layer(candy authoring),/charly-image:image(box composition),/charly-check:check(bed authoring + R10),/charly-vm:vm(VM entity + bed),/charly-internals:git-workflow(PR-only landing).charlyCLI (no ad-hoc podman)./datavolume refactor removed every stale reference.charly check runsequence (pasted above).charly box labelsverified theai.opencharly.*labels on the built images.task build:binaryat the final head after the gitlink + pin commits; invoked through this worktree'sbin/;charly version= 2026.224.2024 verified; the schema-version warning the stale binary emitted (box validate) is gone at zero warnings.disposable: trueand RE-RAN at the final head with the rebuilt binary (VM run 2026.224.2039, pod run 2026.224.2105); the VM bed's 13 checks and the pod bed's 64 checks fail without the change (the gateway-restart, netavark, and volume-refactor checks exercise the changed paths).description:+ ≥1 deterministiccheck:. SDD: no CUE schema change in this repo (the wire type lives in spec).extractdispatch lives in the class:step plugin (candy/plugin-installstep) + the host-step reverse seam; the kernel stays kind-blind.gofmt -l .empty,go vetclean,go test ./...green.CHANGELOG/2026.224.1600.mdstaged in this PR (placeholder CalVer, finalized by the pr-validator at merge).Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)