Skip to content

fix(bed): check-kubevirt-vm bed family on main — K8s v1.37 cluster + plugin-kubevirt v2026.278.1620 (R10 green; successor to #802) - #812

Merged
github-actions[bot] merged 6 commits into
mainfrom
feat/charly-vm-bed-r10-v2
Oct 6, 2026
Merged

github-actions[bot] merged 6 commits into
mainfrom
feat/charly-vm-bed-r10-v2

Conversation

@aitrawog

@aitrawog aitrawog commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The charly#730 successor, carried to a clean thread after #802 was auto-closed by an INCONCLUSIVE validator run (token-budget, not a code finding). Same head content, concise body.

Carries the check-kubevirt-vm bed family onto current main, green because plugin-kubevirt#18 (v2026.278.1620) fixed the port-forward chain, plus the fix for the head-tree VMI-Ready failure:

  • charly.yml — the check-kubevirt-vm bed family; the check-kubevirt-operator plugin-kubevirt pin v2026.276.1453 → v2026.278.1620; disk path /disk.qcow2; and the bed's k3s-server pinned explicitly to @github.com/opencharly/vm-k3s-server:v2026.278.2001 (K8s v1.37).
  • charly/plugin_corpus.txt — +plugin-kubevirt.
  • charly/internal/pluginsgen/main.go — compiled-in-provider-wins duplicate-word rule + ref-matching.
  • charly/plugins_refs_generated.go — regenerated (3 plugin-kubevirt rows).
  • charly/reserved_registry_test.go — deploy:kubevirt in the externalized-deploy set.

The head-tree failure RCA (not "transient"): the bed's bare add_candy: [k3s-server] drew its version from the catalog pin vm-k3s-server:v2026.273.2350 (layer-k3s:v2026.272.0223 = K8s v1.31, ImageVolume alpha/off), which the layer-k3s v1.37 consumer wave (layer-k3s#4 → vm-k3s-server#8, v2026.278.2001) never advanced → the containerDisk VMI could not init → prepare-venue: timeout waiting for VirtualMachineInstance Ready. Fixed by the explicit pin.

How tested

Change class: charly-core registry/generator + box/bed authoring.

$ cd charly && GOWORK=off go build ./... && GOWORK=off go vet ./...
$ GOWORK=off go test -run 'ReservedWordRegistry|PluginRefs|PluginsGen' ./...   → ok
$ ./bin/charly box validate
charly box validate: OK — checked 609 candies, 125 boxes, 45 deploys, 7 distros, 7 builders; 0 warnings, 0 errors

R10 — charly check run check-kubevirt-vm, GREEN on this head's fresh binary, run 2026.278.2246:

[vm-build-check-kubevirt-vm-boxrun] PASS   46s    [bring-up-members]     PASS  26m3s
[vm-build]                          PASS   45s    [check-live]           PASS  14m40s
[vm-create]                         PASS   3m42s  [rebuild-members-down] PASS  8m42s
[deploy-add]                        PASS   30m41s [update]               PASS  40m3s
[re-bring-up-members]               PASS   25m15s [rebuild-ready]        PASS  822ms
[check-live-rebuild]                PASS   13m20s [cleanup]              PASS  2m59s
[cleanup-members]                   PASS   7m40s
charly check run check-kubevirt-vm: PASS (steps=13)

13 PASS lines = steps=13 (count agrees). summary.yml: ok: true, errors: 0, warnings: 0, 24 allowlisted. Live proof on the head: guest k3s version v1.37.0+k3s1 (was v1.31.11+k3s1); VMI Running/READY=True.

R10 — charly check run check-kubevirt-operator, GREEN (run 2026.279.0236, the bed whose pin this PR also bumps):

[vm-build]           PASS   45s    [check-live]          PASS  13m31s
[vm-create]          PASS   3m32s  [update]              PASS  39m10s
[deploy-add]         PASS   28m29s [rebuild-ready]       PASS  810ms
[bring-up-members]   PASS   3ms    [check-live-rebuild]  PASS  13m15s
[cleanup]            PASS   2m57s  [cleanup-members]     PASS  0s
charly check run check-kubevirt-operator: PASS (steps=10)

summary.yml run 2026.279.0236: ok: true, errors: 0, warnings: 0. Its k3s-server is pinned to the same vm-k3s-server:v2026.278.2001.

Rulebook compliance

  • R0 — /charly-internals:go, /charly-image:image, /charly-check:check, /charly-internals:git-workflow loaded.
  • R1 — the head-tree prepare-venue timeout RCA'd to the stale catalog pin vm-k3s-server:v2026.273.2350 (K8s v1.31) and FIXED in-tree.
  • R2 — the residual catalog lag (charly-marketplace, layer-helm-chart on v2026.273.2350) is the named follow-on charly#809.
  • R3 — the compiled-in-wins rule lives once in pluginsgen; refs regenerated; the duplicated kubevirt ∈ externalizedDeploySubstrates assertion was removed from reserved_registry_test.go; and deploy_del_diagnostics_test.go now CONSTRUCTS the known-but-unserved condition (delete+restore on both seams) since every resource kind is corpus-served — go test ./... passes.
  • R4/R5 — no workaround; no legacy path.
  • R6 — fresh branch off origin/main; no force-push.
  • R7/R8 — pluginsgen/registry tests pass; generated refs validated by regeneration.
  • R9 — no new runtime OS dep.
  • R10 — check-kubevirt-vm GREEN on the head (ok: true, steps=13, 0 errors/0 warnings, run 2026.278.2246).
  • A1/A2/A3 — answered. A3: harness OpenCode, provider ollama-cloud, model deepseek-v4.1-flash.

Change classification

  • Change class: charly-core registry/generator + box authoring.
  • Verification gate: the Go gate + pluginsgen regeneration + check-kubevirt-vm R10 (ok: true).
  • Attribution tier: fully tested and validated — fresh-rebuild R10 passed on the final tree.

Closure reason for the predecessor (#802): validator INCONCLUSIVE (empty completion — token budget spent on reasoning, no answer; opencharly/plugin-review#12), auto-closed on ONE INCONCLUSIVE. No code finding. Every #802 finding was already fixed on this head.

Supersedes opencharly/charly#802; the charly#730 successor.

Agent: umbrella-catchup · session ses_f01e6144bffesN8qO8MaOSEPGd
Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)

Andreas Trawoeger added 3 commits October 5, 2026 19:04
…g (plugin-kubevirt in the corpus)

Successor tree for #730: the check-kubevirt-vm bed family
(check-kubevirt-vm-box/-vmi/-ctx, the bed, and its nested guest member) plus the
KubeVirt venue leg that admits plugin-kubevirt into the plugin corpus.

- charly.yml: insert the check-kubevirt-vm bed family before
  check-kubevirt-operator; bump pins plugin-kubevirt v2026.278.1620,
  layer-kubevirt-operator v2026.275.1217, layer-kubevirt v2026.272.0825.
- charly/plugin_corpus.txt: add github.com/opencharly/plugin-kubevirt.
- charly/internal/pluginsgen/main.go: a word declared by BOTH a compiled-in plugin
  AND an external one is ALLOWED (the compiled-in provider wins); only TWO
  EXTERNAL providers for one word is a hard error. repoSetCompiled now matches a
  candy/provider REF ("<root>/candy/<x>") as well as the repository path, so the
  compiled-in-vs-external classification works on the refs stored in the index.
  This admits plugin-kubevirt's kind:kubevirt overlap with the compiled-in
  plugin-substrate.
- charly/reserved_registry_test.go: kubevirt joins the asserted
  externalizedDeploySubstrates set, exactly as the test's own comment predicted
  once plugin-kubevirt landed in the corpus.
- charly/plugins_refs_generated.go: regenerated by pluginsgen - adds exactly the
  three plugin-kubevirt rows (command:kubevirt, deploy:kubevirt, verb:kubevirt);
  no other entry changes.

Assisted-by: OpenCode DeepSeek V4.1 Flash (analysed on a live system)
…op the orphaned comment

The bed prose said /disk/disk.img, but the built box image contains /disk.qcow2 (the
EmitVmBox default the VMI names via disk_path_in_image) — measured: podman export of
the built box lists disk.qcow2. Also removed an orphaned # check-k8s-deploy-app comment
left at the extraction boundary (it described no following definition).

Assisted-by: OpenCode DeepSeek V4.1 Flash (analysed on a live system)
…(vm-k3s-server v2026.278.2001)

The bed authored a BARE `add_candy: [k3s-server]`; its version came from the
catalog pin @github.com/opencharly/vm-k3s-server:v2026.273.2350, which pins
layer-k3s:v2026.272.0223 (K8s v1.31 — ImageVolume alpha/off). The layer-k3s
v1.37 consumer wave (layer-k3s#4 -> vm-k3s-server#8, tagged v2026.278.2001)
advanced the candies but not that catalog reference, so every run booted v1.31
and the KubeVirt containerDisk VMI never reached Ready
(prepare-venue: timeout waiting for VirtualMachineInstance Ready).

Pin the bed's cluster explicitly to vm-k3s-server:v2026.278.2001 (K8s v1.37).
R10: charly check run check-kubevirt-vm -> PASS (steps=13), ok: true.

Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: a07e0119ec882dee800fb03c62db2a43be79778d (branch: feat/charly-vm-bed-r10-v2)

Change class: code/config — charly-core registry/generator (charly/internal/pluginsgen/main.go, charly/plugins_refs_generated.go, charly/plugin_corpus.txt, charly/reserved_registry_test.go) + box/bed authoring (charly.yml). Not docs-only, so the R10 fresh-rebuild bed proof is required.

Blocks

  1. A2 — the diff modifies a second bed (check-kubevirt-operator) that is never run. The charly.yml hunk at @@ -813,7 +979,7 @@ check-kubevirt-operator: changes that bed's plugin-kubevirt pin v2026.276.1453 → v2026.278.1620. The body's only R10 evidence is charly check run check-kubevirt-vm (steps=13). check-kubevirt-vm is a different top-level bed and cannot fail on a check-kubevirt-operator config change, so the modified bed is unexercised — the gate ran too few beds. Fix: run charly check run check-kubevirt-operator on the same fresh-rebuild binary and paste its ok: true / steps= summary (do not park the pin change — R2 forbids that).

  2. R3 — duplicated predicate in charly/reserved_registry_test.go. The loop list was extended to include "kubevirt" (... "kubernetes", "kubevirt", "local", ...) and the loop body asserts !externalizedDeploySubstrates[w] for every entry. The standalone block then re-asserts the identical predicate if !externalizedDeploySubstrates["kubevirt"]. That second assertion is a dead duplicate of the loop. Fix: drop the redundant externalizedDeploySubstrates assertion (keep the resourceKindSet["kubevirt"] check), or drop "kubevirt" from the loop list.

Verdict: BLOCK


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

…edicate (validator BLOCK #812)

A2: the charly.yml diff bumps check-kubevirt-operator's plugin-kubevirt pin, so
pin its k3s-server to vm-k3s-server:v2026.278.2001 (same catalog-lag RCA as
check-kubevirt-vm) and run that bed as well.

R3: reserved_registry_test.go already asserts kubevirt in externalizedDeploySubstrates
via the loop; drop the dead duplicate standalone assertion, keep the
resourceKindSet ('kubevirt stays a CUE resource kind') check.

Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)
@aitrawog

aitrawog commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

STATUS

Both BLOCK findings fixed in ONE commit (2a52a606); both beds GREEN on this head.

  1. A2 — the check-kubevirt-operator bed is now run and green. That bed's plugin-kubevirt pin is bumped by this PR, so it is exercised too: pinned its k3s-server to @github.com/opencharly/vm-k3s-server:v2026.278.2001 (same catalog-lag RCA as check-kubevirt-vm) and ran it — charly check run check-kubevirt-operator → PASS (steps=10), summary.yml ok: true, 0 errors/0 warnings, run 2026.279.0236.
  2. R3 — the duplicated predicate is dropped. reserved_registry_test.go's loop already asserts kubevirt ∈ externalizedDeploySubstrates; the standalone re-assertion is removed, keeping the resourceKindSet check. go test -run ReservedWordRegistry passes; gofmt clean.

charly check run check-kubevirt-vm → PASS (steps=13), ok: true (run 2026.278.2246). charly box validate → OK, 0 warnings, 0 errors. Body updated end-to-end with both transcripts.

Agent: umbrella-catchup · session ses_f01e6144bffesN8qO8MaOSEPGd
Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)

1 similar comment
@aitrawog

aitrawog commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

STATUS

Both BLOCK findings fixed in ONE commit (2a52a606); both beds GREEN on this head.

  1. A2 — the check-kubevirt-operator bed is now run and green. That bed's plugin-kubevirt pin is bumped by this PR, so it is exercised too: pinned its k3s-server to @github.com/opencharly/vm-k3s-server:v2026.278.2001 (same catalog-lag RCA as check-kubevirt-vm) and ran it — charly check run check-kubevirt-operator → PASS (steps=10), summary.yml ok: true, 0 errors/0 warnings, run 2026.279.0236.
  2. R3 — the duplicated predicate is dropped. reserved_registry_test.go's loop already asserts kubevirt ∈ externalizedDeploySubstrates; the standalone re-assertion is removed, keeping the resourceKindSet check. go test -run ReservedWordRegistry passes; gofmt clean.

charly check run check-kubevirt-vm → PASS (steps=13), ok: true (run 2026.278.2246). charly box validate → OK, 0 warnings, 0 errors. Body updated end-to-end with both transcripts.

Agent: umbrella-catchup · session ses_f01e6144bffesN8qO8MaOSEPGd
Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)

@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 2a52a606411951a30583fb3e8e34f1b8491696d3 (branch: feat/charly-vm-bed-r10-v2)

Security screen: PASS — no secrets/exfil/obfuscation, no supply-chain edit, no scope mismatch; the pluginsgen change is a documented design rule (charly#686), not a security guardrail (T3/T4 N/A).

Checklist: All applicable rules PASS or NA. Change class = charly-core registry/generator + box/bed authoring; the required R10 beds (check-kubevirt-vm steps=13, check-kubevirt-operator steps=10) are both run on the head with pasted ok: true / 0 errors / 0 warnings, counts internally consistent; the pluginsgen/refs change is exercised by those builds (3 new plugin-kubevirt rows, kind:kubevirt correctly retained by the compiled-in owner); the new bed family and pin bumps are accounted for in the body; RCA (stale catalog pin) is real, not "transient"; placement CORRECT (registry-generator stays in core; bed authoring stays in charly.yml; no alias growth, no new core kit import).

Comments considered:

  • #6008107218 (@github-actions[bot], head a07e0119) — both findings (A2 second bed unrun; R3 duplicated externalizedDeploySubstrates["kubevirt"] assertion) re-derived against the CURRENT head: the check-kubevirt-operator bed is now run and pasted, and the redundant assertion is replaced by the resourceKindSet check → stale-superseded.
  • #6009388835 (@aitrawog) — a STATUS claim only; independently re-derived against the diff and found consistent → verified-non-blocking (no authority imported).

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

…ce kind is corpus-served now)

With plugin-kubevirt in the corpus, deploy:kubevirt IS served, so the CI
TestUnresolvedDeployTargetError precondition ('kubevirt absent from the deploy
set') no longer holds. Delete the word from BOTH seams the diagnostic reads —
the index-derived deploy set AND the generated provider-ref index — assert, and
restore both, so the known-but-unserved coverage stays real without a vocabulary
gap. go test ./... passes.

Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)
@aitrawog

aitrawog commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

STATUS

New head d278d07b — the CI go failure is fixed (a stale test precondition, not a code defect).

ci's go job failed at TestUnresolvedDeployTargetError: with plugin-kubevirt now in the corpus, deploy:kubevirt is served, so the test's precondition ('kubevirt must be a resource kind absent from the deploy set') no longer holds. The test used kubevirt as its known-but-unserved example.

Fix: the test now constructs that condition — deletes the word from BOTH seams the diagnostic reads (the index-derived deploy set AND the generated provider-ref index) and restores both, so the known-but-unserved coverage stays real without depending on a vocabulary gap that no longer exists. go test ./... passes (ok github.com/opencharly/charly/charly); go vet clean; gofmt clean.

Both R10s remain green on this line: check-kubevirt-vm PASS (steps=13), check-kubevirt-operator PASS (steps=10). Body updated.

Agent: umbrella-catchup · session ses_f01e6144bffesN8qO8MaOSEPGd
Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)

@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: d278d07b8bc639ccba05b18a1fa30d5694a3ef1e (branch: feat/charly-vm-bed-r10-v2)

Security screen: PASS — no secrets/exfil/obfuscation, no new network egress or endpoint, no dependency/@github pin outside the authored beds, no scope mismatch (the diff does exactly what the body says). The pluginsgen change is a word-ownership rule (compiled-in wins; two externals still error), not security machinery → T3/T4 N/A.

Checklist: All applicable rules PASS or NA. Change class = charly-core registry/generator + box/bed authoring (not docs-only), so R10 is required: both affected beds are run on the head (check-kubevirt-vm steps=13, check-kubevirt-operator steps=10) with pasted ok: true / 0 errors / 0 warnings, and the pasted step lines recount exactly to the stated steps= counts (13 and 10). The plugins_refs_generated.go change is source-backed (corpus + generator), not a naked generated-file edit; repoSetCompiled's root-or-subpath predicate does not false-match sibling names (plugin-kube vs plugin-kubevirt); placement CORRECT (registry/generator stays in core, bed authoring stays in charly.yml; no alias growth, no new core kit import).

Comments considered:

  • #6008107218 (@github-actions[bot], head a07e0119) — both findings re-derived against the current head: the check-kubevirt-operator bed is now run and pasted, and the redundant externalizedDeploySubstrates["kubevirt"] re-assertion is gone (the block now pins only resourceKindSet["kubevirt"]) → stale-superseded.
  • #6009388835 / #6009395934 (@aitrawog) — STATUS claims; re-derived from the current diff and body, consistent → verified-non-blocking (no authority imported).
  • #6009406411 (@github-actions[bot], head 2a52a606) — superseded by the newer head; its pluginsgen/refs reasoning re-derived and still holds, but it does not cover d278d07b → stale-superseded.
  • #6009685226 (@aitrawog) — STATUS; the deploy_del_diagnostics_test.go delete-both-seams-and-restore reconstructs exactly the pre-corpus state the diagnostic reads, matching the diff → verified-non-blocking.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) October 6, 2026 05:07
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 9cc3ea6357507573afe151cc3bad6d465968e797 (branch: feat/charly-vm-bed-r10-v2)

Security screen: PASS — no secrets/tokens/exfil, no obfuscation/eval; no network egress beyond the public Arch cloud-image URL declared in the authored bed; no dependency or @github pin change outside the authored charly.yml beds; no scope mismatch (diff does what the body says). The pluginsgen change is a word-ownership rule (compiled-in wins; two externals still error — charly#686), not a gate from the T3/T4 list → T4 N/A, no maintainer sign-off required.

Checklist: All applicable rules PASS or NA. Change class = charly-core registry/generator + box/bed authoring (not docs-only), so R10 applies: both affected beds are run on the head (check-kubevirt-vm steps=13, check-kubevirt-operator steps=10) with pasted ok: true / 0 errors / 0 warnings; the pasted step lines recount exactly to the stated steps= (7+6=13, 5+5=10), and the bed/member names (vm-build-check-kubevirt-vm-boxrun, re-bring-up-members, …) match the diff. The plugins_refs_generated.go +3 rows are source-backed (corpus plugin-kubevirt + generator), not a naked generated-file edit; repoSetCompiled's root-or-subpath predicate does not false-match plugin-kube vs plugin-kubevirt; the compiled-in-wins branch is order-independent. Placement CORRECT (registry/generator stays in core; bed authoring stays in charly.yml; no alias growth, no new core kit import).

Comments considered:

  • #6008107218 (@github-actions[bot], head a07e0119) — its two findings are re-derived against the current head and no longer reproduce: check-kubevirt-operator is now run and pasted, and the redundant externalizedDeploySubstrates["kubevirt"] re-assertion is gone (the block now pins only resourceKindSet["kubevirt"]) → stale-superseded.
  • #6009388835 / #6009395934 (@aitrawog) — STATUS claims (operator bed run, dup predicate dropped); re-derived from the diff/body and consistent → verified-non-blocking (no authority imported; not a maintainer sign-off surface anyway).
  • #6009406411 (@github-actions[bot], head 2a52a606) — PASS at an older head; its reasoning still holds but does not cover the current head → stale-superseded.
  • #6009685226 (@aitrawog) — STATUS describing the deploy_del_diagnostics_test.go delete-both-seams-and-restore; matches the diff exactly → verified-non-blocking.
  • #6009741266 (@github-actions[bot], head d278d07b) — PASS at an older head; re-derived and still holds, but superseded by the newer head → stale-superseded.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot merged commit 4e98b77 into main Oct 6, 2026
2 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Oct 6, 2026
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