Repository navigation
fix(check): deploy a VM member's nested local children, and make the beds assert - #50
Conversation
…beds assert check-group has never asserted anything. It printed "No plan steps to run." on every run and passed. Moving its host-mutating local: member into a disposable eval VM surfaced two pre-existing structural defects, both RCA'd before any fix. D1 - a composed candy's plan: never reaches a deploy-scope check runner for a non-image deploy. checkLocalDeployScope sources plan from the template's plan, the node's plan, and the folded entry; a candy's plan runs only when baked into an image label. check-group's and check-structkind's marker checks lived only in their candies, so both beds asserted nothing. Isolated by contrast with check-substrate, whose check is node-authored and genuinely passes. D2 - bringUpMembers never deploys a VM member's nested target:local children. plugin-deploy-vm's PostApply brings up nested pod children in-guest but skips local ones. The isVM bed ROOT compensated with an inline loop; the VM-member branch had none, so the member never deployed and the marker was written nowhere. Fixed with ONE shared helper, deployNestedLocalChildren, called from both sites that own a VM venue (R3). Check-coverage differential, run both ways: with the check authored and the helper reverted (binary rebuilt pre-fix), the check EXECUTES and FAILS (exit=2, guest marker ABSENT, guest deploys=1 - the VM node registered, its nested child skipped). With the fix: PASS, marker in the GUEST, absent on the host. Only the passing run proves the dotted path resolves through the VM member's guest over NestedExecutor - a host-venue check would have failed identically when the marker was absent everywhere. Lifecycle defects surfaced by the RCA, fixed in the same tree: - summary.yml reported ok: true for runs that exit 1: res.OK=false was set only inside step(), while fail() - the single failure tail every non-step path goes through - wrote the summary without it. Fixed in fail(), one place. - total_seconds: 19 against a 3m09s wall clock: vm create, cold boot, ssh-wait and the member deploy all ran outside step(). A phase() recorder times them. - a targetless group bed drove the pod teardown path (charly remove --purge on a root with no container) and its notice claimed "pod left running". - tearDownMembers destroyed the VM member's domain but leaked its ledger record. Claim-keyed sweep (R1/R5): both beds advertised "its hoisted marker check asserts ... proving ... end-to-end" - an assertion neither made. Corrected in the bed descriptions, the charly.yml comments, and all three marker candies, each now stating why the check must live on the node plan. check-local stays a top-level host: local bed: it is the sole witness of the host-side ShellExecutor + HostDeployTarget arm, and a nested child runs on NestedExecutor - nesting it would delete the coverage it exists to provide. R10: full disposable roster fanned out CONCURRENTLY (cross-cutting change to the bed runner + the shared deploy ledger; a concurrency defect is invisible to serial runs). 18/18 PASS, wall clock 894s vs the ~7400s serial sum. No orphan domains or containers, all host markers absent afterward, no EACCES/store-lock/ ledger contention. No bed prints "No plan steps to run." any more. Assisted-by: Claude (fully tested and validated)
pr-validator — CHANGES REQUESTED ❌Change class: Blocking finding — R5 / R1: the claim-keyed sweep is incomplete
This is now false. This cutover moves check-group's member inside the eval VM — I proved it live: the marker asserts in the guest and is absent on the host. The PR body states "Every site is corrected." — this site was not. On Fix: rewrite the Related — fix in the same round for a genuinely complete sweep
Warnings (item raised, judged — NOT the basis for this FAIL)Every VM bed of the R10 gate emits Checklist
What I independently verified (so the fix round is targeted)
Decision: Not merged; PR left OPEN. One blocking documentation-divergence fix ( Assisted-by: Claude (analysed on a live system) |
The pr-validator caught two sites this cutover's own sweep left behind, while the PR body claimed "Every site is corrected". Both contradicted the corrected bed description in the same file: - charly.yml check-group-app: the kind:local TEMPLATE description still said it drops /etc/check-group-marker "on the host" with a "host-side deploy effect". That template is consumed only by check-group-member, which this cutover nests inside the eval VM, so the marker lands in the guest. - candy/check-group-layer: the check id was still check-group-marker-host while the candy's own description now says the marker never lands on the host. An R5 sweep is claim-keyed, not identifier-keyed: the claim survived because I swept the strings I remembered editing instead of grepping for the claim itself. R10: check-group re-run against the final code, exit 0, marker check PASS in both the initial and fresh-rebuild legs, marker in the guest, absent on the host, no orphan domains, no warnings beyond the disclosed xorriso -volid one. Assisted-by: Claude (fully tested and validated)
CHANGES-REQUESTED addressed — fixed in place (
|
pr-validator — APPROVED ✅ (re-validation of head c7858ff)Change class: charly Go (check-bed-runner) + candy/deploy config + docs Fresh independent re-derivation. Binary rebuilt from Previously-blocking findings — both fixed at c7858ff:
Checklist:
My bed run ( Decision: Both prior blocking findings are genuinely fixed, the R5 claim-keyed sweep is clean across the superproject and every submodule, the original change's substance is untouched by the fix commit, and the bed passes end-to-end on a fresh rebuild against the final code with no host mutation and no undisclosed warnings. Approving and merging (squash) with a merge-time CalVer + tag. Assisted-by: Claude (fully tested and validated) |
pr-validator: stamp the merge-time CHANGELOG version at merge (was 2026.191.0900 placeholder). Folded into the squash landing. Assisted-by: Claude (fully tested and validated)
#385) * feat: the batch-1 candies move to their standalone kind-prefixed repos The candy cutover, batch 1 — the 15 most-required base candies leave the charly repo for their standalone repos (kind-prefixed naming): layer-supervisord, layer-nodejs, layer-golang, pod-dbus, pod-pipewire, layer-ffmpeg, pod-sway, layer-cuda, layer-tmux, layer-socat, pod-selkies, layer-chrome, layer-python, layer-gemini, pod-chrome-cdp. Every bare require:/candy: reference across the repo reworks to the pinned @github.com/opencharly/<kind>-<name>:v<tag> ref; package-list false positives reverted; the parity fixture moves to debootstrap-builder (tmux moved) with the golden regenerated; the agent-profile fixture drops the moved gemini. * feat: the batch-1 candies move to their standalone kind-prefixed repos The candy cutover, batch 1 — the 15 most-required base candies leave the charly repo for their standalone repos (kind-prefixed naming): layer-supervisord, layer-nodejs, layer-golang, pod-dbus, pod-pipewire, layer-ffmpeg, pod-sway, layer-cuda, layer-tmux, layer-socat, pod-selkies, layer-chrome, layer-python, layer-gemini, pod-chrome-cdp. Every bare require:/candy: reference across the repo reworks to the pinned @github.com/opencharly/<kind>-<name>:v<tag> ref; package-list false positives reverted; the parity fixture moves to debootstrap-builder (tmux moved) with the golden regenerated; the agent-profile fixture drops the moved gemini. * feat: the batch-1 candies move to their standalone kind-prefixed repos The candy cutover, batch 1 — the 15 most-required base candies leave the charly repo for their standalone repos (kind-prefixed naming): layer-supervisord, layer-nodejs, layer-golang, pod-dbus, pod-pipewire, layer-ffmpeg, pod-sway, layer-cuda, layer-tmux, layer-socat, pod-selkies, layer-chrome, layer-python, layer-gemini, pod-chrome-cdp. Every bare require:/candy: reference across the repo reworks to the pinned @github.com/opencharly/<kind>-<name>:v<tag> ref; package-list false positives reverted; the parity fixture moves to debootstrap-builder (tmux moved) with the golden regenerated; the agent-profile fixture drops the moved gemini. * feat: the batch-1 candies move to their standalone kind-prefixed repos The candy cutover, batch 1 — the 15 most-required base candies leave the charly repo for their standalone repos (kind-prefixed naming): layer-supervisord, layer-nodejs, layer-golang, pod-dbus, pod-pipewire, layer-ffmpeg, pod-sway, layer-cuda, layer-tmux, layer-socat, pod-selkies, layer-chrome, layer-python, layer-gemini, pod-chrome-cdp. Every bare require:/candy: reference across the repo reworks to the pinned @github.com/opencharly/<kind>-<name>:v<tag> ref; package-list false positives reverted; the parity fixture moves to debootstrap-builder (tmux moved) with the golden regenerated; the agent-profile fixture drops the moved gemini. * feat: the batch-1 candies move to their standalone kind-prefixed repos The candy cutover, batch 1 — the 15 most-required base candies leave the charly repo for their standalone repos (kind-prefixed naming): layer-supervisord, layer-nodejs, layer-golang, pod-dbus, pod-pipewire, layer-ffmpeg, pod-sway, layer-cuda, layer-tmux, layer-socat, pod-selkies, layer-chrome, layer-python, layer-gemini, pod-chrome-cdp. Every bare require:/candy: reference across the repo reworks to the pinned @github.com/opencharly/<kind>-<name>:v<tag> ref; package-list false positives reverted; the parity fixture moves to debootstrap-builder (tmux moved) with the golden regenerated; the agent-profile fixture drops the moved gemini. * feat: the batch-1 candies move to their standalone kind-prefixed repos The candy cutover, batch 1 — the 15 most-required base candies leave the charly repo for their standalone repos (kind-prefixed naming): layer-supervisord, layer-nodejs, layer-golang, pod-dbus, pod-pipewire, layer-ffmpeg, pod-sway, layer-cuda, layer-tmux, layer-socat, pod-selkies, layer-chrome, layer-python, layer-gemini, pod-chrome-cdp. Every bare require:/candy: reference across the repo reworks to the pinned @github.com/opencharly/<kind>-<name>:v<tag> ref; package-list false positives reverted; the parity fixture moves to debootstrap-builder (tmux moved) with the golden regenerated; the agent-profile fixture drops the moved gemini. * feat: the batch-1 candies move to their standalone kind-prefixed repos The candy cutover, batch 1 — the 15 most-required base candies leave the charly repo for their standalone repos (kind-prefixed naming): layer-supervisord, layer-nodejs, layer-golang, pod-dbus, pod-pipewire, layer-ffmpeg, pod-sway, layer-cuda, layer-tmux, layer-socat, pod-selkies, layer-chrome, layer-python, layer-gemini, pod-chrome-cdp. Every bare require:/candy: reference across the repo reworks to the pinned @github.com/opencharly/<kind>-<name>:v<tag> ref; package-list false positives reverted; the parity fixture moves to debootstrap-builder (tmux moved) with the golden regenerated; the agent-profile fixture drops the moved gemini. * feat: the batch-1 candies move to their standalone kind-prefixed repos (worktree state) The ref advances + plugin go.mod sdk/spec bumps + fleet-compile parity golden that the batch-1 move carries (pod-dbus v2026.235.2115, the distro-repo charly candy, the out-of-process plugin go.mod bumps). * feat: advance box/cachyos + box/fedora gitlinks; allowlist the mkinitcpio chroot autodetect error - box/cachyos → 1e52b4e (distro-cachyos main post-#22: the batch-1 moved candy refs advance to standalone repos) and box/fedora → 46f7cf7 (post-#36): unblocks TestCandySourceDirs_OverrideAnchorsRemoteApk, whose scan of box/cachyos resolved deleted charly/candy/* refs under CHARLY_REPO_OVERRIDE. - candy/plugin-check: allowlist mkinitcpio's 'failed to detect root filesystem' — the autodetect hook cannot find a root device inside the pacstrap chroot and falls back to a full initramfs (the correct initramfs for a booting VM); CONDITIONAL on 'Initcpio image generation successful' in the same log, scoped by TestMkinitcpioChrootAutodetectIsConditional (recovered / no-recovery-fatal / unrelated-error-not-exempted). This is the named-batch exit the distro-cachyos#23 vm checks need to reach zero warnings. * Revert "feat: advance box/cachyos + box/fedora gitlinks; allowlist the mkinitcpio chroot autodetect error" This reverts commit 8eba902. * fix(plugin-check): allowlist mkinitcpio's chroot autodetect rootfs error mkinitcpio's autodetect hook reads the kernel cmdline/fstab for the root device; inside the pacstrap chroot (bootstrap VM base-image build) there is no booted kernel, so it prints '==> ERROR: failed to detect root filesystem' and falls back to a full initramfs — the CORRECT initramfs for a booting VM whose real root device arrives via the kernel cmdline at boot. CONDITIONAL on '==> Initcpio image generation successful' in the same log (a build that never creates the image still fails the step); scoped by TestMkinitcpioChrootAutodetectIsConditional (recovered / no-recovery-fatal / unrelated-error-not-exempted). This is the named-batch exit the distro-cachyos#23 vm checks need to reach zero warnings. * Revert "fix(plugin-check): allowlist mkinitcpio's chroot autodetect rootfs error" This reverts commit 91aa2c2. * feat: advance the box/* gitlinks to the post-batch-1 distro mains The committed gitlinks pointed at pre-batch-1 distro commits whose box files still pinned moved candies in OLD form (arch-builder: charly/candy/nodejs@0530 etc.). The test scan (TestCandySourceDirs_ OverrideAnchorsRemoteApk) reads the COMMITTED gitlink content, so it resolved candy/nodejs@0530 under CHARLY_REPO_OVERRIDE to the local repo where the moved candy is deleted -> 'remote candy .../candy/nodejs not found'. Advance all five box/* gitlinks to the merged distro mains (arch#24 98941f3, cachyos#23 0cbfc67, debian#15 6cf14eb, fedora#36 46f7cf7, ubuntu#15 a371170) whose boxes reference the standalone layer/pod refs. This unblocks the charly#385 go gate. * fix(candy/charly): the meta-candy's candy list advances socat to layer-socat The batch-1 move deleted candy/socat (moved to [email protected]) but the charly meta-candy's OWN candy: list still had the bare name. Under CHARLY_REPO_OVERRIDE (TestCandySourceDirs_OverrideAnchorsRemoteApk) the bare socat resolves to the local repo where candy/socat is deleted -> 'remote candy .../candy/socat not found'. Advance to the standalone ref, matching every other in-repo candy's rewritten deps. * feat: advance box/cachyos gitlink to the post-#24 main (arch import fix) distro-cachyos#24 advanced the arch namespace import to distro-arch v2026.236.0159 (the batch-1 tag whose arch-builder references layer-nodejs/layer-cuda). Advance the charly repo's box/cachyos gitlink to that merged main (7a9a9b4) so the TestCandySourceDirs_OverrideAnchorsRemoteApk scan resolves the arch namespace from the fixed tag. With this + the meta-candy socat fix (45397f4) + the box gitlink advances (758463c), the go gate passes: candySourceDirs entries: 136, android-emulator-layer present, resolved apk OK. * fix: resolve the plugin-build go.mod spec pin conflict (keep the post-#50 pin) * fix(charly-coder): the three coder skills' nodejs candy refs advance to layer-nodejs R5 sweep completion: the arch-coder-skill / debian-coder-skill / fedora-coder-skill candy lists still referenced the moved nodejs candy by bare name (the ubuntu-coder-skill and nine other files had already converted). All three now pin @github.com/opencharly/layer-nodejs. (The remaining bare nodejs/socat/tmux/ffmpeg names elsewhere are distro package-list entries — OS package names, never candy refs, per the cutover's package-vs-candy rule.) * chore: re-sync PR head (validator re-run at the green head)
Summary
check-grouphas never asserted anything. It printedNo plan steps to run.on everyrun and passed. Moving its host-mutating
local:member into a disposable eval VM surfacedtwo pre-existing structural defects, both RCA'd before any fix.
D1 — a composed candy's
plan:never reaches a deploy-scope check runner for a non-imagedeploy.
runGroupCheckrunsentry.Plan;checkLocalDeployScopesources plan from thekind: localtemplate's plan, the deploy node's plan, and the folded bundle entry. Acandy's plan executes only when baked into an image label (
if !isVM && !isLocal && image != "").check-group's andcheck-structkind's marker checks lived only in their candies.Isolated by controlled contrast across three beds with identical intent:
check-substrateplan:PASS … 1 step: 1 passedcheck-structkindNo plan steps to run.check-groupNo plan steps to run.D2 —
bringUpMembersnever deploys a VM member's nestedlocal:children.plugin-deploy-vm's PostApply brings up nested pod children in-guest but skips localones (no image). The
isVMbed ROOT compensated with an inline loop; the VM-memberbranch had none. The member never deployed and the marker was written nowhere.
Fixed with ONE shared helper
deployNestedLocalChildren, called from both sites that owna VM venue (R3). They differ only in how a child deploy executes (the root records a
step(),a member shells out), so that is the injected
applyfunc.Change class
charlyGo code + candy/deploy config. Gate:go test+task build:charly(R9) + the fulldisposable roster fanned out concurrently (cross-cutting: bed runner + shared deploy ledger).
Check-coverage — the differential, run BOTH ways
Differential A — marker check authored, shared helper reverted, binary rebuilt pre-fix.
The check executes (no
No plan steps to run.) and fails:Probed live mid-run, the guest confirmed the mechanism:
guest marker: ABSENT,guest deploys: 1— the VM node registered, its nested child skipped.Differential B — final code:
B is also the discriminator for a question A could not answer: with the marker absent
everywhere, a host-venue check would have failed identically. Only B — marker present in the
guest, absent on the host, check passes — proves the dotted path resolves through the VM
member's guest over
kit.NestedExecutor. That was a flagged RDD unknown; the code read couldnot settle it.
Lifecycle defects surfaced by the RCA, fixed in the same tree
summary.ymlreportedok: truefor a run that exits 1.res.OK = falsewas set onlyinside
step(), whilefail()— the single failure tail every non-step path goes through —wrote the summary without it. Fixed in
fail(), one place, covering every non-step route.total_seconds: 19vs a 3m09s wall clock): VM create,cold boot, ssh-wait and the member deploy all ran outside
step(). Aphase()recordertimes them. Now:
bring-up-members 86s,re-bring-up-members 82s,total_seconds: 194.charly remove <bed> --purgeagainsta root with no container/quadlet/volumes — and its failure notice claimed "pod left running".
tearDownMembersleaked the VM member's ledger record:vm destroyremoved the domain,but bring-up had also registered it via
bundle add. Records accumulated run over run.Claim-keyed sweep (R1 / R5)
Both beds advertised "its hoisted marker check asserts /etc/check--marker … proving …
end-to-end"* — an assertion neither made. Corrected in the bed descriptions, the surrounding
charly.ymlcomments, and all three marker candies (check-group-layer,check-structkind-layer,check-substrate-layer), each now stating why the check must liveon the node plan.
check-substrategenuinely asserted; only its "hoisted" wording was wrong.git grep 'hoisted check\|hoisted marker'afterwards returns only the CHANGELOG.R10 evidence — full roster, CONCURRENT
Cross-cutting change ⇒ every bed, launched at once (a ledger race or store-lock cascade is
invisible to serial runs).
18/18 PASS. Wall clock ≈ the slowest single bed (894s), not the ~7400s serial sum. No
EACCES, store-lock, or ledger contention surfaced under full parallelism.The hollow-pass test: no bed prints
No plan steps to run.any more, and bothcheck-group(guest venue) andcheck-structkind(host venue) execute their marker check inthe initial and the fresh-rebuild leg.
Warnings — stated, not rounded to zero
Every VM bed still emits, twice:
xorriso : WARNING : -volid text does not comply to ISO 9660 / ECMA 119 rules. charly passes-volid cidata(lowercase) fromsdk/vmshared/cloud_init_iso.go. It is non-corrupting — the label lands verbatim (file seed.iso→ISO 9660 CD-ROM filesystem data 'cidata'; PVD volume identifier'cidata') —pre-existing, and unrelated to this change's surface. It is nonetheless charly's own warning
and is the immediate-next cutover (it lives in the
sdkrepo, so it lands there first).Naming it rather than claiming a zero I did not measure. (On PR #49 I reported "zero warnings"
from a grep pattern that could not have matched such lines; that lesson is applied here.)
Scope note
check-localdeliberately stays a top-levelhost: localbed: it is the sole witness of thehost-side
ShellExecutor+HostDeployTargetarm, and a nested child runs onNestedExecutorinstead — nesting it would silently delete the coverage it exists to provide. Same for
check-structkind's member. Redirecting those to run inside the eval VM needs thecharly --host <alias>surface (a fresh charly re-exec'd in the guest, whosehost: localdeploy uses
ShellExecutorthere); that lands as its own cutover, together with teaching/verify-bedsto redirect host-local beds instead of refusing them.Tier
fully tested and validated— differential run both ways, full concurrent roster against thefinal code, both outputs pasted.
Assisted-by: Claude (fully tested and validated)