Repository navigation
fix(charly,candy)!: SDD-conversion consumer fixes — GroupAccessible + VFIOGpu - #181
Conversation
… VFIOGpu Companion to opencharly/sdk#92 (merged, v0.2026203.1311): bumps the sdk gitlink + charly/go.mod require, and updates every consumer of the two representation reshapes that PR's HostProbeReply.GroupAccessible and VFIOGpu conversion required (both wire-format-identical, Go-source breaking). GroupAccessible is now map[string]bool (was map[int]bool) — updated the two real construction/read sites (charly/host_build_hostprobe.go, candy/plugin-doctor/command.go) to key via strconv.Itoa. VFIOGpu no longer embeds VFIOPCIDevice anonymously — every VFIOGpu{VFIOPCIDevice: d} composite literal replaced with the new spec.NewVFIOGpu(d) constructor across candy/plugin-gpu/{detect,switch,switch_test}.go and charly/{gpu_prereq_test,gpu_allocate_test}.go. One doc-comment citation in candy/plugin-build/schema/build.cue repointed (R5 sweep, out of sdk#92's own grep scope since the file lives in this repo). Breaking: matches the upstream sdk breaking change these types now carry. Verified: task build:binary clean, go vet clean, go test ./... green (charly + candy/plugin-gpu + candy/plugin-doctor), and the check-exampledeploy R10 composing bed (deploy/check wire types) run TWICE — once pre-merge via a go.work override, once here against the real merged sdk pin — both 6/6 steps + 5/5 checks PASS. Assisted-by: Claude Code (Anthropic Claude Sonnet 5; fully tested and validated)
Mechanical gofmt -w on 8 files flagged by `gofmt -l charly/` (checkrun_act.go, deploy.go, distro.go, distro_test.go, engine.go, shellcollect.go, sidecar_test.go, update_deploy_dispatch_test.go) — #179's dead-code radical-removal batch left each with a stray trailing blank line at EOF. None are otherwise touched by this PR's own cutover. Verified whitespace-only: `git diff --stat` shows exactly 1 line removed per file (8 total); `git diff --ignore-blank-lines` is empty, confirming zero semantic change. go build/go vet clean after. Fixed now rather than left for the next validator to independently rediscover via the same gofmt -l check. Assisted-by: Claude Code (Anthropic Claude Sonnet 5; fully tested and validated)
pr-validator — APPROVED ✅Change class: charly Go code (cross-repo companion to Head verified:
Independent re-verification performed (not taken on the author's word)
Comments considered: none (PR carried zero comments). Cross-PR interactions considered: Decision: All 19 checklist items PASS, verified independently (not from the author's claims alone) including a from-scratch rebuild + bed re-run on the exact PR head. Approved for merge. Assisted-by: Claude Code (Anthropic Claude Sonnet 5; fully tested and validated) |
pr-validator merge-time stamp for PR #181. Assisted-by: Claude Code (Anthropic Claude Sonnet 5; fully tested and validated)
Merged ✅
Proceeding to validate the companion docs PR Assisted-by: Claude Code (Anthropic Claude Sonnet 5; fully tested and validated) |
…c/*_wire.go files land Documentation-only sweep: repoints every skill reference to the 13 hand-written `sdk/spec/*_wire.go` files (`deploy`/`init`/`gpu`/`doctor`/ `enc`/`feature`/`k8sgen`/`resource`/`settings`/`substrate_template`/`agent`/ `distro`/`vm`) to their new CUE homes, following `opencharly/sdk#92` (merged, `v0.2026203.1311`) and its companion `opencharly/charly#181` (merged, `v2026.203.1349`). - Rewrites the "Generation coverage" bullet in `internals/skills/go/SKILL.md` to mark the whole `sdk/spec/*_wire.go` class LANDED. - Repoints the deploy-wire file-map rows in `internals/skills/install-plan/SKILL.md`, `internals/skills/plugin/SKILL.md`, `check/skills/android/SKILL.md`, `automation/skills/enc/SKILL.md`, `core/skills/charly-doctor/SKILL.md`. - Closes an R1 divergence: `internals/agents/pr-validator.md`'s `arbiter_wire.go` worked example updated from "still in-flight" to its actual LANDED state. Independently re-verified by a fresh pr-validator against the real merged sdk content (every cited CUE/Go file confirmed to exist at sdk 922b3469; sdk/spec/*_wire.go confirmed EXTINCT; R5 grep self-test re-run from scratch). Assisted-by: Claude Code (Anthropic Claude Sonnet 5; documentation reviewed)
plugins/main currently holds the PROJECTION of prose whose SOURCE is in this PR, so a regeneration from a current charly tree would revert it. This bump reconciles the pair, and this PR landing is what closes that window. The pin is re-derived from plugins origin/main immediately before validation rather than reused from an earlier reading: eb805ee8 is the current tip and carries both the regenerated skills (06f1071) and #181 beneath it. Assisted-by: Claude Code Claude Opus 5 (documentation reviewed)
Summary of changes
Companion to
opencharly/sdk#92(merged,v0.2026203.1311): bumps thesdkgitlink +
charly/go.modrequire, and updates every consumer of the tworepresentation reshapes that PR's
HostProbeReply.GroupAccessibleandVFIOGpuCUE conversion required (both wire-format-identical, Go-sourcebreaking).
sdkgitlink bumped to922b3469;charly/go.modrequire bumped tov0.2026203.1311.HostProbeReply.GroupAccessibleis nowmap[string]bool(wasmap[int]bool) — updatedcharly/host_build_hostprobe.go(construction,keyed via
strconv.Itoa) andcandy/plugin-doctor/command.go(read, samekey form).
VFIOGpuno longer embedsVFIOPCIDeviceanonymously — everyVFIOGpu{VFIOPCIDevice: d}composite literal replaced with the newspec.NewVFIOGpu(d)constructor:candy/plugin-gpu/{detect,switch}.go(1 site each) + test fixtures
candy/plugin-gpu/switch_test.go(2 sites),charly/gpu_prereq_test.go(2 sites),charly/gpu_allocate_test.go(restructured into 2 named
spec.NewVFIOGpu(...)calls).candy/plugin-build/schema/build.cue— one stale doc-comment citation ofthe now-deleted
sdk/spec/deploy_wire.gorepointed tosdk/schema/buildwire.cue(R5 sweep; out ofsdk#92's own grep scopesince this file lives in this repo).
candy/plugin-vm/vmshared_aliases.go's danglingValidateLibvirtSnippetalias needed NO fix here —
opencharly/charly#179already deleted it;verified absent on this branch's base before scoping this cutover.
Change class
charly Go code (cross-repo companion to
opencharly/sdk#92, already merged).How R10-tested — exact gate, commands, and pasted output
go test ./...+go vet+task build:binary(R9) + thecheck-exampledeploydisposable bed (theONE bed composing the changed deploy/check-wire consumer surface —
InstallPlanView/InstallStepView/ReverseOpround-trip through theexternal deploy plugin;
check-pod/check-local/check-k3s-vmdo nottouch
GroupAccessible/VFIOGpuat all, so this is the correct, not anover-broad, gate).
check-exampledeploy | local (pod) | ok | 6 steps | ~80s total,run TWICE on
charly version 2026.203.1305— once pre-merge (via atemporary
go.workoverride pointed at the then-unmerged sdk branch, seesdk#92's own evidence) and once here against the REAL merged+tagged sdkpin (
.check/check-exampledeploy/2026.203.1326/) — both PASS identically.task build:binaryran clean from this exactcommit (sdk gitlink + go.mod bump included) before either bed run.
candy/plugin-doctorreads
GroupAccessibleandcandy/plugin-gpuconstructsVFIOGpuviaspec.NewVFIOGpuin their own unit tests (both green below); the bed runexercises the OTHER converted deploy-wire types end-to-end (this PR's own
changed lines are consumer glue for a doctor/GPU-detection surface that
has no disposable GPU hardware on this host to drive live — the unit
tests are the correct exerciser for THIS PR's specific lines, the bed is
the R10 proof that the shared sdk pin bump breaks nothing else).
Attribution tier
fully tested and validated— every changed code path (GroupAccessibleread/write, NewVFIOGpu construction) executed live in green unit tests
against a fresh rebuild, plus the composing R10 bed proving the shared sdk
pin bump is behaviorally inert, run twice (pre- and post-merge) with
identical results.
Harness rulebook compliance
/charly-internals:go,/charly-internals:plugin,/charly-internals:strict-policy,/charly-internals:git-workflowloaded.go test ./...run FAILED withTestPluginInstallstepEnvelopeParityerrors; traced to my OWN worktree's uninitialized
box/fedorasubmodule(
git submodule update --init box/fedora), NOT a code regression —confirmed by a clean re-run immediately after. Zero warnings in the final
battery (vet/lint/test all clean).
gofmt -l charly/flags 8 files with atrailing-blank-line nit, ALL last touched by
opencharly/charly#179(thedead-code radical-removal batch) and NONE touched by this PR — confirmed
via
git log -1 --per file. Genuinely unrelated (R2); reported in theCHANGELOG for its own lint-sweep batch, not folded in here.
spec.NewVFIOGpuconstructor is the ONE sharedfix point for all 6 embed-flatten call sites (not per-site spreading).
go.work/go.modoverrides used DURING pre-merge verification (documentedin
sdk#92) were reverted before this commit — this commit'sgo.modchange is the real, permanent require bump.
git grep 'ValidateLibvirtSnippet'confirmszero hits (deleted by fix(charly,plugin-vm): dead-code radical-removal batch (superproject leg) #179, verified before scoping this PR to exclude
it);
git grep 'sdk/spec/deploy_wire.go'in this repo returns only theONE citation this PR fixes (now zero after).
(
git worktree add feat/sdd-wire-conversion-consumers off origin/main);no destructive action on the shared checkout.
check-exampledeploybed IS the end-to-end gate.task build:binary+charly versionmatches (
2026.203.1305); no new runtime OS deps.check-exampledeployisdisposable: true;the existing
TestGpuModeFromDriver/TestSelectGPUByVendor/etc. unittests (unchanged, still passing) are the coverage that would FAIL without
these fixes (a stale
map[int]bool/embedded-field reference would notcompile at all).
type, no new schema surface.
kernel/plugin placement change.
disposable: true;charly updateran unattended per standing authorization.gofmt -lclean for every file this PRtouches (the 8 unrelated pre-existing hits noted above are NOT in this
diff);
golangci-lint run ./...0 issues (3 modules);go vetclean;go test ./...green.CHANGELOG/2026.203.1330.mdstaged (placeholder CalVer).Assisted-by: Claude Code Anthropic Claude Sonnet 5 (fully tested and validated)