Skip to content

feat(schema): add the kubevirt substrate kind (6th deploy substrate) - #161

Merged
github-actions[bot] merged 6 commits into
mainfrom
feat/kubevirt
Sep 25, 2026
Merged

github-actions[bot] merged 6 commits into
mainfrom
feat/kubevirt

Conversation

@aitrawog

@aitrawog aitrawog commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

feat(schema): add the kubevirt substrate kind (6th deploy substrate)

Adds kubevirt: as the 6th deploy substrate — a KubeVirt VirtualMachine on a Kubernetes cluster whose plan walks in the guest over SSH (the vm venue shape). Served out-of-process by the new plugin-kubevirt; this schema is the contract it and charly core both decode.

Summary

  • #ResourceKind gains kubevirt; #KubevirtValue added beside the other #<Kind>Value defs (schemagen auto-derives KindValueDefs["kubevirt"] — no hand map).
  • New schema/kubevirt.cue: #KubeVirt (cluster/context/namespace, the 4-arm #KubevirtSource boot medium — container_disk | data_volume | pvc | clone — domain shape, GPU host devices, firmware, network, instancetype/preference, run_strategy, migration, snapshot) plus its sub-blocks. Reuses #VmCloudInit for cloud-init (R3).
  • #Kubernetes gains a kubevirt: cluster-policy sub-block.
  • substrate_template.cue: #ResolvedKubeVirt + resolve input/reply.
  • New schema/kubevirt_client.cue: the host↔plugin internal wire family.
  • #Deploy gains the machine-written kubevirt_state: field (#KubeVirtDeployState, with snapshot: + ephemeral: matching the Go mirror); hand-written KubeVirtDeployState/KubeVirtDeploySnapshot in spec/hand_state_types.go.
  • KubevirtSource hand-written in spec/union_types.go (the VmSource flat-union precedent).
  • #ProjectTemplates gains kubevirt (opaque template map); SubstrateKubevirt status-kind const.
  • #SchemaVersion bump note; regenerated cue_types_gen.go / vocab_gen.go.

How tested

Schema/generator + the live host-side gate (the changed schema + kind path executing in a rebuilt charly against a real kind: kubevirt project):

$ GOWORK=off go build ./... && echo BUILD OK
BUILD OK
$ GOWORK=off go vet ./... && echo VET OK
VET OK
$ GOWORK=off go test ./schema/ ./spec/ -count=1
ok  	github.com/opencharly/spec/schema	13.207s
ok  	github.com/opencharly/spec/spec	2.847s
$ gofmt -l .
(empty)

Live host-side gate — charly rebuilt with this spec + the companion sdk#289 + plugin-substrate#16 worktrees (dev go.work), run against /tmp/kvproj (a real kind: kubevirt template + a kubevirt: disposable bed):

$ charly box validate
charly box validate: OK — checked 1 deploy, 7 distros, 7 builders; 0 warnings, 0 errors

And the deep-validate rejects a bad entity live (GPU with both resource_name and device_name):

$ charly box validate          # gpus: [{resource_name: nvidia.com/gpu, device_name: 01:00.0}]
charly: error: command "validate": validation error: /tmp/kvproj/charly.yml:doc0: node "kv-base":
  kind "kubevirt" validation failed: gpus[0]: must set exactly one of resource_name
  (a cluster device-plugin resource) or device_name (a specific host device)

New unit tests (fail without the change): TestKindValueDefs_HasKubevirt, TestResourceKinds_HasKubevirt, TestKubevirtValue_TemplateAccepted, TestKubevirtValue_UnknownKeyRejected in schema/kubevirt_test.go.

Rulebook compliance

  • R1 — zero warnings (charly box validate reports 0 warnings); the two prior validator findings (the snapshots/snapshot CUE↔Go divergence + the "5-way" comment) are fixed in 26ed2ab.
  • R3 — reuses #VmCloudInit + the #DeployValue disjunct; the schemagen kindValueDefs derivation means no hand-maintained word→def map.
  • R5 — the "5 substrates" comment sweep in node.cue/version.cue lands with the 6th kind.
  • R8 — the regenerated artifacts (cue_types_gen.go, vocab_gen.go) are validated at their boundary by TestGenReproducible + TestCueKinds_Corpus.
  • SDD — the union is CUE-sourced; the flat Go shape follows the VmSource precedent. Regeneration is a no-op (TestGenReproducible).
  • RDD — the high-risk unknown (does the host's closedness-only value gate + deep OpValidate accept a real kubevirt template and reject the XOR violations?) was proved LIVE via the rebuilt binary above, not assumed.
  • R4 — no workaround; the schema is the single source.
  • R6 — git status inspected; branch-only, no force-push.
  • R9 — the binary used for the live gate was built from the worktree source.
  • R10 — the live exercise here is the host-side validate path (the changed path for THIS repo). The KubeVirt VM lifecycle R10 bed lands in the charly-repo phase (plugin-kubevirt + the check beds), which is the change-class gate for the runtime substrate, not for the schema.
  • R2 — no deferral; every surfaced finding fixed in-branch.

Change classification

  • Change class: contract/schema (additive new kind).
  • Verification gate: CUE schema compile + generator reproducibility + the Go unit corpus + the live host-side charly box validate on a real kind: kubevirt project.
  • Attribution tier: analysed on a live system — the changed schema/loader/kind path executed live in a rebuilt charly (charly box validate OK + the XOR rejection), but the full fresh-rebuild R10 VM lifecycle bed is not in this repo (it lands with plugin-kubevirt + the check beds).

Assisted-by: OpenCode DeepSeek V4.1 Flash (analysed on a live system)

Adds kubevirt: as the 6th deploy substrate - a KubeVirt VirtualMachine on a
Kubernetes cluster whose plan walks in the guest over SSH (the vm venue shape).
Served out-of-process by the new plugin-kubevirt.

- #ResourceKind gains kubevirt; #KubevirtValue added (schemagen auto-derives
  KindValueDefs[kubevirt]).
- New schema/kubevirt.cue: #KubeVirt + the 4-arm #KubevirtSource boot medium,
  domain shape, GPU host devices, firmware, network, instancetype, migration,
  snapshot. Reuses #VmCloudInit (R3).
- #Kubernetes gains a kubevirt: cluster-policy sub-block.
- substrate_template.cue: #ResolvedKubeVirt + resolve input/reply.
- New kubevirt_client.cue: the host<->plugin internal wire family.
- #Deploy gains the machine-written kubevirt_state: field (#KubeVirtDeployState).
- KubevirtSource hand-written in spec/union_types.go (the VmSource precedent).
- #SchemaVersion bump note; regen artifacts.
- Tests: KindValueDefs/ResourceKinds membership, valid template accepted,
  unknown key rejected.
@github-actions

Copy link
Copy Markdown

Review — BLOCK

Head SHA: 3e74756c04905fcce41ae272c232571227298088 (branch: feat/kubevirt)

Change class: contract/schema (additive new kubevirt kind) — spec repo: CUE schema + generated Go + hand-written Go. Comment thread is empty (0 comments), so no comment dispositions apply.

Security screen: PASS (no finding — no secrets/egress, no guardrail edits, no new deps).

Blocks

  1. R5 / contract divergence — snapshots (CUE) vs snapshot (Go tag). The CUE def and the Go type that the PR claims are "kept in lockstep" disagree on the field name:

    • schema/deploy.cue, #KubeVirtDeployState: declares snapshots?: [...#KubeVirtDeploySnapshot]
    • spec/hand_state_types.go, KubeVirtDeployState: Snapshots []KubeVirtDeploySnapshot \yaml:"snapshot,omitempty" json:"snapshot,omitempty"`(and the struct comment says "Kept in lockstep with the CUE def"). The machine-written record will serialize asnapshot:key while the validation contract declaressnapshots:, so the declared field is dead and the live field is undeclared. Fix: make the CUE field snapshot?:(matching the#KubeVirt.snapshotconvention) **or** change the Go tags tosnapshots. While there, the Go struct also carries an Ephemeral *EphemeralRuntime` field absent from the CUE def — reconcile so the "faithful mirror" claim holds.
  2. R1 / B5 — comment contradicts reality. schema/kubevirt.cue #KubevirtSource is introduced with // 5-way discriminated union on source.kind, but the union has exactly 4 arms (container_disk, data_volume, pvc, clone) — as the PR body itself states ("the 4-arm #KubeVirtSource"). A comment that diverges from the code is an R1 incident. Fix the comment to 4-way.

Also flag for the author (non-gating detail to address in the same tree): the "How tested" block reports summarized exit codes (→ exit 0, "all packages ok") rather than pasted command output, and the fully tested and validated tier is asserted while the body explicitly defers the live R10 beds — reconcile the tier with the evidence actually supplied for this schema-only change.

Verdict: BLOCK


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

View action run

The 6th deploy substrate needs its SubstrateKind const so the status collectors
and the flat fan-out can label a kind:kubevirt row (R3: the const set mirrors
spec.ResourceKinds).
@github-actions

Copy link
Copy Markdown

Review — BLOCK

Head SHA: d210fc938699fe26e997dbf9ca6cd9001e909f9d (branch: feat/kubevirt)

Change class: contract/schema (additive new kubevirt kind) — spec repo: CUE schema + generated Go + hand-written Go.

Security screen: PASS (no finding — no secrets/egress, no guardrail/rulebook edits, no new deps, no scope-vs-description mismatch that hides behavior).

Blocks

  1. R5 / R1 — #KubeVirtDeployState CUE↔Go contract divergence (snapshots vs snapshot). The wire contract and the Go serializer disagree on the field name:

    • schema/deploy.cue, #KubeVirtDeployState: declares snapshots?: [...#KubeVirtDeploySnapshot]
    • spec/hand_state_types.go, KubeVirtDeployState: Snapshots []KubeVirtDeploySnapshot \yaml:"snapshot,omitempty" json:"snapshot,omitempty"`— and the struct comment claims it is *"Kept in lockstep with the CUE def (schema/deploy.cue #KubeVirtDeployState)"*. The machine-written record serializes asnapshot:key while the validation contract declaressnapshots:, so the declared field is dead and the live field is undeclared — and the "lockstep" comment contradicts the code. Fix: make the CUE field snapshot?:(matching both the#KubeVirt.snapshotconvention and the Go tag) **or** change the Go tags tosnapshots. While there, the Go struct also carries Ephemeral *EphemeralRuntime`, absent from the CUE def — reconcile so the "faithful mirror" claim holds (or drop the claim).
  2. R1 — schema/kubevirt.cue comment contradicts the code. #KubevirtSource is introduced with // 5-way discriminated union on source.kind, but the union has exactly 4 arms (container_disk, data_volume, pvc, clone) — as the PR body itself states ("the 4-arm #KubeVirtSource"). A comment diverging from the code is an R1 incident. Fix to 4-way.

  3. A1/A3 — evidence summarized, not pasted; tier overstates. The "How tested" block reports summarized results (→ exit 0, "all packages ok") rather than the pasted command output A1 requires, and asserts fully tested and validated while the body itself defers the live R10 beds ("the live R10 beds land in the charly-repo phase"). Paste the actual gate output, or lower the tier to match the evidence actually supplied for this schema-only change.

Comment dispositions

  • Comment 5839492739 (github-actions[bot], head 3e74756c0490…) — reviewed against the CURRENT head d210fc938699…. It is one commit behind (the later SubstrateKubevirt const commit), but the files it flags (deploy.cue, hand_state_types.go, kubevirt.cue) are untouched by that commit, so both findings reproduce: verified-blocking (adopted as Blocks 1 and 2). Its "non-gating" flag on the How-tested/tier — verified-blocking, raised to Block 3.

Verdict: BLOCK


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

View action run

The status/venue consumers need the kind:kubevirt template map alongside
kubernetes/pod/vm/local/android (R3: #ProjectTemplates mirrors #ResourceKinds).
Adds KubeVirt to #ProjectTemplates (CUE-sourced, opaque RawBody).
@github-actions

Copy link
Copy Markdown

Review — BLOCK

Head SHA: 6c4e47abeccb8306204303d2c9c4115873248ab8 (branch: feat/kubevirt)

Change class: contract/schema (additive new kubevirt kind) — spec repo: CUE schema + generated Go + hand-written Go.

Security screen: PASS (no finding — no secrets/egress, no guardrail or rulebook edits, no new deps, no hidden behavior beyond the stated kind addition).

Blocks

  1. R1 / R5 — #KubeVirtDeployState CUE↔Go contract divergence (snapshots vs snapshot). The declared validation contract and the Go serializer disagree on the field name:

    • schema/deploy.cue, #KubeVirtDeployState: snapshots?: [...#KubeVirtDeploySnapshot]
    • spec/hand_state_types.go, KubeVirtDeployState: Snapshots []KubeVirtDeploySnapshot \yaml:"snapshot,omitempty" json:"snapshot,omitempty"`— and the struct comment asserts it is *"Kept in lockstep with the CUE def (schema/deploy.cue #KubeVirtDeployState)"*. The machine-written record serializes asnapshot:key while the CUE contract declaressnapshots:, so the declared field is dead and the live field is undeclared. The same "lockstep" comment is also contradicted by Ephemeral *EphemeralRuntime, present in the Go struct and absent from the CUE def. Fix: make the CUE field snapshot?:(matching the Go tag and the#KubeVirt.snapshotconvention) **or** change the Go tags tosnapshots; and reconcile the Ephemeral` field so the "lockstep / faithful mirror" claim holds (or drop the claim).
  2. R1 — schema/kubevirt.cue comment contradicts the code. #KubevirtSource is introduced with // 5-way discriminated union on source.kind, but the union has exactly 4 arms (container_disk, data_volume, pvc, clone) — as the PR body itself states ("the 4-arm #KubevirtSource") and as #KubeVirtDeployState.boot_kind's comment repeats (container_disk | data_volume | pvc | clone). Fix the comment to 4-way.

  3. A1 — body evidence summarized, not pasted; incomplete accounting; A3 tier overstates. The "How tested" block reports paraphrased results (→ exit 0, "all packages ok", "gofmt -l . → empty") rather than the pasted command output A1 requires. The Summary also omits two diff items: the newest commit's #ProjectTemplates.kubevirt map (schema/resolvedproject.cue + ProjectTemplates.KubeVirt in spec/cue_types_gen.go) and SubstrateKubevirt (spec/status_types.go) — neither appears anywhere in the body. Finally, fully tested and validated is asserted while the body itself defers the live exercise ("the live R10 beds land in the charly-repo phase"); reconcile the tier with the evidence actually supplied, or paste the real gate output.

Comment dispositions

  • Comment 5839492739 (head 3e74756c0490…) — reviewed against the CURRENT head 6c4e47abeccb…. The two files it flags (schema/deploy.cue, spec/hand_state_types.go, schema/kubevirt.cue) are untouched by the two later commits, so both findings reproduce against the current diff: verified-blocking (adopted as Blocks 1–2). Its "non-gating" note on the How-tested/tier — verified-blocking, raised to Block 3.
  • Comment 5839583520 (head d210fc938699…) — one commit behind the current head; the extra SubstrateKubevirt const commit does not touch the flagged files, so its three findings all reproduce: verified-blocking (adopted as Blocks 1–3).

Verdict: BLOCK


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

View action run

AI Worker and others added 3 commits September 25, 2026 23:39
…union comment

Addresses the pr-validator findings:
- #KubeVirtDeployState: rename snapshots -> snapshot (matches the Go yaml/json
  tag and the #VmDeployState.snapshot convention) + declare the ephemeral block
  the Go struct mirrors, so the CUE<->Go lockstep claim holds.
- #KubevirtSource: 5-way -> 4-way (the union has exactly 4 arms).
Body-only update after the fix commit (the validator reviews the body at the head
SHA, so a fresh commit is required for it to see the final text).
main added kindcluster as a 6th substrate kind (#162) after this branch opened;
kubevirt becomes the 7th. Resolved:
- node.cue #ResourceKind: both kindcluster + kubevirt.
- resolvedproject.cue / status_types.go: both template maps + both status consts.
- cue_types_gen.go / vocab_gen.go: regenerated (not hand-merged).
Both kind value defs (#KindclusterValue, #KubevirtValue) coexist.
@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: e74dc6accfb4a720f7b14e9004c7ee4f7d8019a8 (branch: feat/kubevirt)

Change class: contract/schema (additive kubevirt kind) — spec repo: CUE defs + generated Go + hand-written Go.

Security screen: PASS (T1–T4 — no secrets/egress, no guardrail/rulebook/validator edits, no new deps or version pins, no scope-vs-description mismatch; every diff item is accounted for in the body).

Checklist: All applicable rules PASS or NA.

Comment dispositions (all re-derived against the CURRENT head, not the SHA each was posted on):

  • 5839492739 — stale-superseded: flagged the snapshots(CUE)↔snapshot(Go) divergence and the "5-way" comment. Both fixed at head: schema/deploy.cue#KubeVirtDeployState now declares snapshot?: matching the Go tag yaml:"snapshot", and schema/kubevirt.cue now reads // 4-way discriminated union. Its How-tested/tier note is also stale (body re-frozen).
  • 5839583520 — stale-superseded: same three claims; the CUE↔Go snapshot/Ephemeral reconciliation is now in the diff (ephemeral?: {…} present, Snapshots … yaml:"snapshot"), and the body now pastes real output with tier analysed on a live system.
  • 5839637935 — stale-superseded: its A1 "incomplete accounting" claim (missing #ProjectTemplates.kubevirt + SubstrateKubevirt) is contradicted by the current body, which names both; its "summarized evidence / inflated tier" claim is contradicted by the current pasted BUILD OK/VET OK/go test/charly box validate output and the non-inflated tier.

All CUE↔Go field names/tags re-verified line-by-line across every new def (#KubeVirt, #KubevirtSource, #KubeVirtDeployState/#KubeVirtDeploySnapshot, #KubernetesKubeVirt, the kubevirt_client.cue family, #ResolvedKubeVirt) — no surviving divergence. New behavior ships tests that fail without it (kubevirt_test.go). Placement is correct: capability stays in plugin-kubevirt, only the wire shape/contract lands in spec (CUE-first), with no alias-file growth, no core mechanism import, and no new @go(-) exception outside the known union_types.go/hand_state_types.go exceptions.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) September 25, 2026 22:14
@github-actions
github-actions Bot merged commit dfbe071 into main Sep 25, 2026
2 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Sep 25, 2026
github-actions Bot pushed a commit to opencharly/plugin-substrate that referenced this pull request Sep 25, 2026
* feat(substrate): add the kubevirt substrate kind (6th word)

Adds kubevirt to candy/plugin-substrate's served substrate words: the kind
provider, the traits entry, the template-resolve arm, the status collector, and
the reap-orphans liveness probe. Companion to spec#161 + sdk#289.

- plugin.go: substrateWords += kubevirt; traits
  {Venue:"ssh", ImageBacked:true, BedTarget:true, SupportsEphemeral:true,
  SupportsFromSnapshot:true} (NO ExclusiveVenue — a cluster VM holds no host
  lease, so the host arbiter is skipped); Validates now covers vm + kubevirt.
- validate_kubevirt.go (NEW): the deep OpValidate (source-arm kind known,
  container_disk forbids storage_class, gpus[] resource_name XOR device_name,
  instancetype XOR explicit cpu).
- resolve.go: the kubevirt substrate-template resolve arm.
- status_kubevirt.go (NEW): the OpStatus collector (deploy-tree rows from
  kubevirt_state + the template; the kubevirt analogue of status_kubernetes.go).
- status_collect.go + status_flat.go: the kubevirt dispatch case + fan-out +
  enrichKubevirtRow.
- command_reap_orphans.go: a conservative kubectl get vm liveness probe.
- charly.yml: kind:kubevirt provider + a doc-comment sweep.
- Tests: the OpValidate XOR table + the status dispatch.

Depends on opencharly/spec#161 + opencharly/sdk#289 landing first.

## How tested
- go build ./... → exit 0
- go test ./... → all packages ok (against the in-flight spec/sdk via a dev go.work)
- gofmt -l . → empty

## Change classification
- Change class: substrate contract (additive kind + collector).
- Verification gate: Go unit tests (+ the substrate kind module check).
- Attribution: fully tested and validated.

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

* fix(substrate): address the pr-validator findings (B12/R3/R1)

- charly.yml: correct the collector comment (the vm/kubernetes/kubevirt/android
  collectors live plugin-side now, not host-side) — R1 doc/code divergence.
- validate_kubevirt_test.go: drop the containsStr re-implementation (use
  strings.Contains, R3) + the no-op err guard; add a conservative reap-probe test.
- command_reap_orphans.go: the kubevirt probe now guards on kubectl presence and
  assumes ALIVE when it cannot probe (the conservative contract its doc claims).
- New coverage for the previously-untested new paths: resolve.go's kubevirt arm
  (TestResolveKubeVirt_FieldCopy), status_kubevirt.go (entries/imageRef/specFor),
  and enrichKubevirtRow — each fails without its change.

* fix(substrate): source-level deep validate applies to the template shape only

A kubevirt DEPLOY (from:/image:) has no source: block, so the deep OpValidate's
source-arm rules must skip it — the Source field is now a pointer, matching
validateVmDeep's arm selectivity. Proven live: charly box validate accepts a real
kind:kubevirt template + deploy, and rejects a GPU with both fields.

* docs: re-freeze the PR body against the final head

Body-only update after the fix commit (the validator reviews the body at the head
SHA, so a fresh commit is required for it to see the final text).

* fix(substrate): address the newest pr-validator findings (B12/B10/R1)

- status_kubevirt.go: extract the pure buildKubevirtRows the collector delegates
  to (directly testable) + reconcile the header comment with the code (no live
  probe; the deploy-tree state is the collector's job, the live VMs are a
  kubevirt: check).
- status_kubevirt_test.go: TestBuildKubevirtRows exercises the collector's own
  row-builder (deployed/not-deployed/context/nil).
- enrichKubevirtRow: route through lookupDeploy (the bed-rolled key shapes).
- charly.yml: sweep the plan-check word list to include kindcluster + kubevirt.

* docs(substrate): sweep the plan-comment word list to include kindcluster + kubevirt

* fix(substrate): reconcile the charly.yml word list + prove the reap probe (B12/R1)

- charly.yml: remove the kindcluster word from this plugin's lists — this
  provider does NOT serve it (substrateWords has no kindcluster; that is the
  separate kindcluster session's plugin-substrate#17). Reconcile with what
  substrateWords actually declares.
- validate_kubevirt_test.go: add TestEphemeralUnderlyingResourceAlive_KubevirtPresent
  — a fake kubectl on PATH that drives the PRESENT branch (exit 0 -> alive,
  non-zero -> not alive) and asserts the invoked argv. Proven to FAIL without the
  case kubevirt arm (the absent-branch test could not discriminate).

* docs: re-freeze the PR body against the final head

* chore(deps): bump spec v0.2026268.2214 + sdk v0.2026268.2244

The merged tags carrying #KubeVirt (spec#161) + the kubevirt loader (sdk#289).
The committed tree now builds green at the shipped pins (no dev overlay).

* docs: re-freeze the PR body (pin bumps now in the diff)

* docs: re-freeze the PR body (live enrichment + shipped-pin evidence)

---------

Co-authored-by: AI Worker <[email protected]>
Co-authored-by: Andreas Trawoeger <[email protected]>
github-actions Bot pushed a commit to opencharly/charly that referenced this pull request Sep 26, 2026
* feat(deploy): register the kubevirt external deploy substrate

Adds the kubevirt word to the externalized-substrate set (F1). The vocabulary
itself is CUE-derived (spec.ResourceKinds), so the ONLY hand-written entry is the
plugin-path map; the bijection gate then proves it.

- provider_deploy.go: externalDeploySubstratePlugins[kubevirt] =
  plugin-kubevirt; the ALL-SIX comment sweep.
- unify_targets.go + the word-enumerating test fixtures
  (no_kind_switch_in_kernel_test, no_substrate_word_switch_gate_test,
  reserved_registry_test, deploy_plugin_load_test) extended from 5 to 6 words.

The snapshot/from_snapshot/vm_state gates are VENUE-based
(spec/deploy.IsVmVenue reads the stamped ssh venue), so a kubevirt deploy is a
VM venue already — no gate change is needed.

Depends on opencharly/spec#161 (schema) + opencharly/sdk#289 (loader); the
go.mod pin bump lands once they are tagged.

## How tested
- go build ./... → exit 0
- go vet ./... → exit 0
- go test . -run 'Substrate|Kind|Deploy|Cue|Vocab|Reserved|Loader|Provider|Unified|Status|Check' → ok
  (incl. TestReservedWordRegistry_DeployBijection over all six words +
  TestNoSubstrateWordSwitchInDeployConsult + TestCueKinds_Corpus)
- against the in-flight spec/sdk via a dev go.work

## Change classification
- Change class: deploy-substrate registration (additive word).
- Verification gate: Go unit tests + the substrate bijection gate.
- Attribution: fully tested and validated.

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

* feat(deploy): register the kubevirt external deploy substrate + pins

- externalDeploySubstratePlugins: kubevirt -> plugin-kubevirt, and kindcluster
  -> plugin-kube (the spec tag carrying #KubeVirt also carries kindcluster, so
  the tree-global bijection needs both).
- pins: spec v0.2026268.2214, sdk v0.2026268.2244,
  plugin-substrate v0.2026268.2319 (all merged + tagged).
- fixtures + comment sweep to 7 words.

Builds/tests/validate green at the shipped pins (GOWORK=off).

* docs(deploy): sweep the substrate-count comments to SEVEN words

The kubevirt + kindcluster registrations make it seven (5 original +
kindcluster + kubevirt); the 'ALL SIX' comments were stale (R1).

* docs(deploy): complete the substrate-enumeration sweep to SEVEN (incl. kindcluster)

The pr-validator found the sweep stopped at 6 and omitted kindcluster from the
gate vocabularies + the reserved-registry assertion loop. Brings every
enumeration (provider_deploy comments, unified_targets, reserved_registry_test,
deploy_plugin_load_test, no_kind_switch fixture, no_substrate_word_switch
fixture) to the full seven words, matching externalDeploySubstratePlugins and
spec.ResourceKinds (R5/R1).

* docs: re-freeze the PR body (registration live proof + named R10 batch)

* docs(deploy): finish the seven-word sweep (all count/enumeration comments)

Brings every remaining substrate-count claim + enumeration to SEVEN words:
charly.yml, registry_bootstrap.go (x2), substrate_template_resolve.go,
no_kind_switch_in_kernel_test.go. A comment stating SEVEN while listing
five/six is the false-claim divergence R5/R1 forbid.

* docs(test): make the kindSwitchVocabulary doc match its 7+2 map exactly

* docs: finish the substrate enumeration sweep (all files, SEVEN words)

The pr-validator found the remaining incomplete enumerations: the
no_kind_switch_in_kernel_test header list, the two registry_bootstrap.go lists,
plugin_prescan.go, provider_kind_invoke.go (x2), cue_kinds_corpus_test.go — each
listed only five substrate words while the vocabulary is now seven
(pod/vm/kubernetes/local/android/kindcluster/kubevirt). Every enumeration now
agrees with externalDeploySubstratePlugins + spec.ResourceKinds (R5/R1).

* docs: re-freeze the PR body (enumeration sweep complete + attribution)

* docs(charly.yml): reconcile the kind-registration comment with registry_bootstrap.go

The swept charly.yml block still claimed the deploy-shape kinds are 'in-proc
dedicated-builtin KindProviders', contradicting registry_bootstrap.go's
'externalized plugin candy routed through runPluginKind' (R5/R1). Both now state
the externalized mechanism; the enumeration lists all seven substrate words.

* docs: re-freeze the PR body (kindcluster producer merged + attribution)

* chore(tools): adopt the shared spec/sdk pins (mods-tidy)

The contract-pin lockstep gate (TestContractPinsMatchShared in
tools/gomod-canonical) requires every in-repo module to carry charly core's
shared pins. Bumping core's spec/sdk in this PR left tools/generate-packages,
tools/golden-cloudinit, and tools/golden-compile on the old pins — the charly
CI 'go' job caught it. Ran the mods-tidy task's commands to align all three.

* docs: re-freeze the PR body (account for the tools-module pin adoption)

---------

Co-authored-by: AI Worker <[email protected]>
Co-authored-by: AI Worker <ai@local>
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.

2 participants