Skip to content

test(eval): move host-mutating local check beds off the operator workstation into disposable VMs - #79

Merged
atrawog merged 2 commits into
mainfrom
feat/eval-bed-hygiene
Jul 12, 2026
Merged

atrawog merged 2 commits into
mainfrom
feat/eval-bed-hygiene

Conversation

@atrawog

@atrawog atrawog commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

What

Operator directive: keep read-only local: check beds host-local; move the host-MUTATING
ones 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 /etc or ~:

  • 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. Instead it's a disposable vm: bed (eval-host-vm
    guest) 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 two
    out-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-local 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 local: deployables nested as members (kit.NestedExecutor
    into 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 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.

R10 — all 4 VM beds pass on the fresh rebuild (rebased onto current main 5f2d136)

charly check run check-local-vm:    PASS (steps=7)   guest-as-host proven live
charly check run check-builder-vm:  PASS (steps=9)   builder-under-nest via RunHostStep
charly check run check-structkind:  PASS (steps=5)   out-of-process F5 authored-member deploy
charly check run check-substrate:   PASS (steps=9)   nested local-substrate fold

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 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 + 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

…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
@atrawog

atrawog commented Jul 12, 2026

Copy link
Copy Markdown
Contributor Author

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: charly version 2026.193.1750. I re-derived every check and re-ran all 4 VM beds myself — the pasted PASS table was not trusted.

Checklist (every rule)

  • 0. Security/anti-tampering (T1–T4): PASS — no exfiltration, secrets, weakened gate, supply-chain change, scope-mismatch, or instruction-to-validator. New egress is the guest's own outbound go-module fetch + an Arch cloud-image URL — legitimate for a disposable VM bed.
  • 1. Description complete: PASS (What / MOVED-4 / KEEP-8 / R10 table / known-characteristic + follow-up / attribution).
  • 2. Change-class gate: PASS — the gate is build+run the bed composing each changed entity; I ran all 4.
  • 3. Attribution tier: PASS — fully tested and validated justified: all 4 beds passed their fresh-rebuild (update) step on my own runs.
  • 4. R0 skills: PASS — /charly-check:check (bed R10, LONG-vm-bed run_in_background), /charly-image:layer, /charly-core:deploy, /charly-internals:disposable. Claims spot-checked.
  • 5. R1 / zero-warnings: PASS — box validate rc=0 zero warnings; go vet clean. The one apparent ~/.npm-global/is-number on the operator host RCA'd (below) → pre-existing, not a gate warning.
  • 6. R2: PASS — serial-domain characteristic → feat(deploykit): adopt sdk/deploykit step vocabulary (P4-unit-3 consumer) #33; the pkg/host-command-plugins.txt + CLAUDE.md-naming doc divergences → feat(buildkit): adopt sdk/buildkit vocabulary resolver (P3-unit-2 consumer) #26 docs sweep. Both genuinely separable (this cutover's R10 passes without them). Not parked to justify landing.
  • 7. R3: PASS — the vm-with-nested-local-member shape reuses the check-group precedent; no sibling <name>-host/<name>-pod duplication.
  • 8. R4: PASS — no sleep/retry/magic-number; the rsync/ssh delivery drives the charly-provisioned charly-eval-host-vm alias, not an ad-hoc bypass.
  • 9. R5 grep self-test: PASS — charly preempt restore STEP gone (survives only in an explanatory comment); the "stays a top-level host:local bed" claim swept from the check-group note; check-{structkind,substrate}-layer + check-builder-npm marker candies retained; check-builder-local survives only as the retained template.
  • 10. R6/R8/R9: PASS/NA — R6 N/A (no destructive git); R8 N/A (no Containerfile/label generation change); R9 the localpkg weld is proven live by check-local-vm.
  • 11. R10 (disposable, fresh-rebuild, coverage): PASS — my own runs on 2026.193.1750, all disposable, all torn down clean, ZERO warnings:
bed my verdict summary total fresh-rebuild step operator-host leak?
check-substrate PASS (9) 166s update 77s /etc/check-substrate-marker absent ✓
check-structkind PASS (5) 248s re-bring-up + check-live-rebuild /etc/check-structkind-marker absent ✓
check-local-vm PASS (7) 305s update 113s /etc/check-local-marker + examplestep probe absent ✓
check-builder-vm PASS (9) 167s update 78s see RCA ↓

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).

  • 12. RDD / ADE / SDD: PASS — composition proven on 4 disposable beds; bed plans carry deterministic check: steps; SDD N/A (no schema/*_gen.go change — config only).
  • 13. Concurrency + anti-cheat: PASS — LONG vm beds owned serially by the persistent session (in-spec for the class). No load-surfaced failure dismissed.
  • 14. Hard cutover: PASS — ONE atomic commit.
  • 15. Kernel/plugin boundary: N/A — no core/sdk code change.
  • 16. Disposable-only autonomy: PASS — every bed disposable: true.
  • 17. Clean architecture + Go gates: PASS — gofmt -l empty, golangci-lint run 0 issues, go vet clean.
  • 18. CHANGELOG: PASS — CHANGELOG/2026.193.1900.md present (finalized to the merge-time CalVer at merge).

RCA — the apparent ~/.npm-global/is-number on the operator host (not a leak from this PR)

check-builder-vm PASS(9), but $HOME/.npm-global/lib/node_modules/is-number exists on the operator host. Investigated (R1, no assumptions): its mtime is 2026-07-11 07:41:40 and the whole ~/.npm-global/lib/node_modules dir mtime is unchanged by my 2026-07-12 run — so my run added nothing to the operator's npm-global. It is a pre-existing leftover from the retired check-builder-local host:local bed (exactly the leak this cutover eliminates), not caused by this cutover; the bed's own builder-artifact-present-in-guest probe asserts the GUEST's ~/.npm-global via NestedExecutor. Confined-to-guest confirmed. Informational: the operator may rm the stale ~/.npm-global/lib/node_modules/is-number — it is not fixable in-tree.

Assessment of the deferred serial-domain follow-up (code-check 4)

Reasonable per R2: the 3 eval-vm beds share charly-eval-vm because the libvirt domain derives from the from: eval-vm template name (pre-existing vm-plugin behavior, not introduced here). Making them collision-free-by-construction (domain = deploy name) is an ecosystem-wide vm-plugin cutover touching every bed's domain + SSH stanzas — tracked as #33. The beds are correct and pass when sequenced; only cross-bed parallelism is deferred. Agreed disposition, not a blocking defect.

Decision: APPROVED. Every CLAUDE.md rule verified from the diff + my own re-runs; the cutover does exactly what it claims — moves every host-mutating eval bed's side-effects into disposable guests, verified by absent-on-operator-host on all 4 beds.

Assisted-by: Claude (fully tested and validated)

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
@atrawog
atrawog merged commit 30cabf2 into main Jul 12, 2026
@atrawog
atrawog deleted the feat/eval-bed-hygiene branch July 12, 2026 18:27
atrawog added a commit that referenced this pull request Jul 12, 2026
…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)
atrawog added a commit that referenced this pull request Aug 18, 2026
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant