Repository navigation
test(eval): move host-mutating local check beds off the operator workstation into disposable VMs - #79
Conversation
…station into disposable VMs
The operator directive: keep read-only `local:` check beds host-local; move the
host-MUTATING ones off the operator's workstation; drop redundant/overlapping beds
without mercy. This applies that to the superproject's disposable `local:` check beds.
MOVED (4) — every bed that wrote to the operator's /etc or ~ now lands in a disposable VM:
- check-local → check-local-vm (GUEST-AS-HOST). check-local wrote /etc/check-local-marker
on the operator host and is the SOLE witness of the kind:local layer-application path via
ShellExecutor + HostDeployTarget. A nest-as-member move would relocate it to
NestedExecutor and DROP that coverage, so instead it becomes a disposable `vm:` bed
(eval-host-vm guest) that runs check-local as the GUEST's OWN host:local bed via
`charly --host charly-eval-host-vm check run check-local`: the guest builds the two
out-of-tree plugins in-guest and applies check-local-layer to its own host:local, so
the ShellExecutor coverage is preserved OFF the operator's workstation. The inner
`check-local` bed stays a `local:` deploy in the pruned guest project (check/eval-host-project/).
- check-builder-local → check-builder-vm; check-substrate / check-structkind → per-bed
`vm: {from: eval-vm}` beds with their `local:` deployables nested as members
(kit.NestedExecutor into the guest), mirroring check-group. structkind is KEPT LIVE
(nested, not dropped) because it is the sole LIVE witness of out-of-process structural-kind
F5 authored-member deploy — the Go test (TestExternalStructKind_StructuralDecode) covers
only the decode byte-equivalence, not the cross-process live deploy.
KEEP (8) host-local — read-only command/probe beds, no operator system-state mutation:
check-doctor-local, check-feature-local, check-udev-local, check-migrate-local,
check-commands-local, check-gpu-local, check-agent-local, and check-preempt-local
(trimmed to STATUS-ONLY — the live `charly preempt restore` step is dropped because
reconcileStranded reads the operator's GLOBAL lease ledger; its reconcile logic stays
covered by TestArbiter_ReconcileStrandedRestores + the externalized-dispatch e2e + the
kept `status` step). check-group unchanged (already eval-VM-nested).
R5 sweeps: the check-group NOTE rewritten (check-local now witnesses ShellExecutor INSIDE
the guest-as-host VM, not as a top-level host:local bed); check-builder-npm/app descs +
one ensure_image_namespaced_test.go comment for the rename. The
pkg/host-command-plugins.txt header + CLAUDE.md:252 example are handled separately
(the batched docs cutover).
KNOWN CHARACTERISTIC (noted for the follow-up): the four eval-VM beds
(check-builder-vm/structkind/substrate + check-group) all resolve to the libvirt domain
`charly-eval-vm` (the VM identity derives from the `from: eval-vm` template name, not the
bed name), so they run SERIALLY, not concurrently. Making them collision-free by
construction requires a vm-plugin change (domain = deploy name, consistent with pods),
which changes every existing bed's domain + managed SSH stanzas — an operator-level
vm-naming cutover, out of eval-bed scope. Tracked as the immediate follow-up.
R10: all four VM beds pass on the fresh rebuild (rebased onto current main):
check-local-vm PASS (steps=7) — guest-as-host proven live
check-builder-vm PASS (steps=9) — builder-under-nest via RunHostStep
check-structkind PASS (steps=5) — out-of-process F5 authored-member deploy
check-substrate PASS (steps=9) — nested local-substrate fold
Assisted-by: Claude (fully tested and validated)
Claude-Session: https://claude.ai/code/session_01R8UGGr3ui1959oTb5JuSif
pr-validator — APPROVED ✅Change class: candy/box config (eval bed) + a comment-only Go edit riding along. Independent fresh evaluation (T-P14b; not the author). Base 5f2d136 is an ancestor of the head — branch up to date. Per-tree binary built in a clean checkout: Checklist (every rule)
Every marker landed in the disposable guest and is absent on the operator host — the cutover's core claim, verified live (not just a green bed).
RCA — the apparent
|
Merge-time CalVer stamp for the eval-bed hygiene cutover (PR #79), applied by the fresh pr-validator (T-P14b) at merge. Renames the placeholder CHANGELOG to the merge minute and rewrites its H1 to match. No schema bump (config-only cutover). Assisted-by: Claude (fully tested and validated) Claude-Session: https://claude.ai/code/session_01LnxJjgvxzR2WePdDhAp7Wb
…ies (P8b-followup) (#80) The #24 superproject half (consumes opencharly/sdk#32, tag v0.2026193.1801). The pure-compute build helpers relocated into the sdk libraries; charly core repoints to aliases/shims and DELETES the core copies (R5). Producer-first: the sdk half landed + tagged before this. - `installDirAtomic` → `var = kit.InstallDirAtomic` - `formatPhaseTemplate`/`builderPhaseTemplate` → `var = buildkit.*` - the intermediates DAG pure funcs → `sdk/deploykit` via the `candyModelMap` adapter (new `intermediates_shim.go`); no-caller funcs (graphReaches/topoSortByPopularity/ sortByPopularity/addTransitiveDeps) fully DELETED; the *Config-reading RESOLVE orchestration (ComputeIntermediates family) STAYS core - `stepEmitSystemPackages` render → `buildkit.RenderSystemPackagesFragment` (delegates) - sdk gitlink → f0f37fab; `charly/go.mod` require → v0.2026193.1801 R10 (re-run independently by the pr-validator, method-independent byte-parity): built BOTH the pre-move baseline (main, core copies + old sdk) and this branch (shims + released sdk f0f37fab) from source and generated box/fedora at the pinned `--tag 2026.001.0000` — all 46 Containerfiles BYTE-IDENTICAL (diff -q: 0 of 46 differ). R5 grep self-test clean (no stale core def survives). `go test ./charly/...` green; golangci-lint 0 issues; gofmt clean; go vet clean. Re-verified after `gh pr update-branch` onto main (#79) — byte-parity holds. Assisted-by: Claude (fully tested and validated)
Three defects on one page class, each of which passed every gate because the page existed and the build was green. The frontmatter description named one owner of two. It is also the search-result text, so it is read BEFORE the body that contradicts it two lines down. Naming either owner alone is the same defect — a fix that moved the name from one to the other would have looked like a cure while preserving it. The fact table repeated Served by / Placement / Version per owner with no grouping. Both Placement values may coincide, but the versions do not, so three of six rows could not be attributed to a candy at all. Now keyed by owner; single-owner pages keep the plain field names they always had. candy/charly-internals still named `podmanCmd(rootless)` as the helper keeping the load, the integrity probe and the tag addressing one store. This cutover deletes it — the field is deploykit.ImageVenue.PodmanCmd — so a reader following the old name finds nothing. Neither emitter surface had ANY coverage, including the path that silently overwrote a page (56 emitted, 55 written, exit 0). gen_cli_test.go now asserts all three, proved by perturbation rather than asserted: reverting the description to owners[0].Name fails the multi-owner test, and reverting the fact table to unkeyed field names fails it too. The single-owner case is asserted separately so the multi-owner cure cannot leak into the common page. Gated inside candy/plugin-docs, which is a RUNTIME plugin with its own go.mod and is deliberately absent from go.work — running the gate from the workspace root reports "0 issues." while checking nothing. The submodule pointers are deliberately NOT staged here. plugins and docs re-pin to their MERGE commits once #208 and #79 land, never to a pre-merge head. Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system)
What
Operator directive: keep read-only
local:check beds host-local; move the host-MUTATINGones off the operator's workstation into disposable VMs; drop redundant/overlapping beds.
This applies that to the superproject's disposable
local:check beds.MOVED (4) — every bed that wrote the operator's
/etcor~:/etc/check-local-markeron the operator host and is the SOLE witness of the kind:local layer-application path via
ShellExecutor + HostDeployTarget. A nest-as-member move would relocate it to
NestedExecutor and DROP that coverage. Instead it's a disposable
vm:bed (eval-host-vmguest) running check-local as the GUEST's OWN host:local via
charly --host charly-eval-host-vm check run check-local— the guest builds the twoout-of-tree plugins in-guest and applies the layer to its own host:local, so ShellExecutor
coverage is preserved OFF the operator's workstation. Inner
check-localstays alocal:deploy in the pruned guest project (
check/eval-host-project/).vm: {from: eval-vm}beds withlocal:deployables nested as members (kit.NestedExecutorinto the guest), mirroring check-group. structkind stays LIVE (nested, not dropped)
because it is the sole LIVE witness of out-of-process structural-kind F5 authored-member
deploy — the Go test covers only decode byte-equivalence, not the cross-process live deploy.
KEEP (8) host-local read-only command/probe beds (no operator system-state mutation):
doctor, feature, udev, migrate, commands, gpu, agent, and check-preempt-local (STATUS-ONLY
— the live
charly preempt restorestep is dropped because reconcileStranded reads theoperator's GLOBAL lease ledger; its reconcile logic stays covered by
TestArbiter_ReconcileStrandedRestores+ the externalized-dispatch e2e + the keptstatusstep). check-group unchanged.
R10 — all 4 VM beds pass on the fresh rebuild (rebased onto current main 5f2d136)
All disposable, all torn down clean afterward. box validate rc=0 (no warnings), go vet clean.
Branch rebased onto 5f2d136 (was ab6b001, +5 commits, zero file-overlap → conflict-free).
Known characteristic + follow-up (out of scope here)
The four eval-VM beds (check-builder-vm / structkind / substrate + check-group) all resolve to
the libvirt domain
charly-eval-vm— the VM identity derives from thefrom: eval-vmtemplate name, not the bed name — so they run serially, not concurrently. Making them
collision-free by construction requires a vm-plugin change (domain = deploy name, consistent
with pods), which changes every existing bed's domain + the managed SSH stanzas — an
operator-level vm-naming cutover, tracked as the immediate follow-up.
Assisted-by: Claude (fully tested and validated)
https://claude.ai/code/session_01R8UGGr3ui1959oTb5JuSif