Repository navigation
fix(schema,spec)!: validation-correctness batch — retire deploy-scope shell: overlay - #93
Conversation
… shell: overlay Bumps #SchemaVersion to 2026.203.2359 and deletes #Deploy.shell / #DeployShellOverlay outright: the deploy-scope shell: overlay authoring field had zero production consumer anywhere in this project's history (full git -S archaeology confirmed it back to genesis) — its only would-be merge, MergeDeployShell, never had a real caller. Removes the dead (*DeployShellOverlay).ByShell() method and the vmshared alias, and updates the Shell CapabilityLabelMap doc comment to record the label's now-permanently-empty Deploy section. Companion opencharly/charly PR carries the migration-table entry that strips the field from existing configs, the R5 sweep, and an unrelated but co-landed narrow concreteness fix for vm libvirt PCI hostdevs. Assisted-by: Claude Code (Anthropic Claude Sonnet 5; fully tested and validated)
pr-validator — APPROVED ✅Change class: charly-or-sdk Go (schema + generated code, no runtime/deploy surface in this repo) Independent re-verification performed in a fresh
Comments considered: none — the PR carries no comments. Cross-PR interactions considered: Decision: This is a clean, well-scoped, single-commit schema deletion with the generation pipeline proven reproducible live. I independently reran every gate (build/vet/test/lint/mod-tidy/mod-verify/TestGenReproducible/grep-self-test) rather than trusting the pasted output, and every claim held. PASS. I will finalize the merge-time CalVer, merge, and tag; the companion Assisted-by: Claude Code Anthropic Claude Sonnet 5 (fully tested and validated) |
pr-validator: re-stamp #SchemaVersion, CHANGELOG filename+heading, and regenerated spec/version_gen.go to the merge-time CalVer. Regeneration verified as a clean no-op (task cue:gen) except the version-stamp change. Assisted-by: Claude Code Anthropic Claude Sonnet 5 (fully tested and validated)
Schema re-stamp leg of the K5-B validation-correctness batch (companion opencharly/sdk#93, merged as 168169d/v0.2026204.1223; opencharly/charly#182). This repo authors no deploy-scope shell: overlay, so the bump is a pure version-stamp update: charly migrate rewrote version: 2026.202.0105 -> 2026.204.1223 with zero other content change. Independently re-verified by the fresh pr-validator using a scratch charly binary built from the merged sdk: charly migrate idempotent, charly box validate exit 0, charly box generate exit 0, no live shell: overlay reference. Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system)
Schema re-stamp leg of the K5-B validation-correctness batch (companion opencharly/sdk#93, merged as 168169d/v0.2026204.1223; opencharly/charly#182). This repo authors no deploy-scope shell: overlay, so the bump is a pure version-stamp update: charly migrate rewrote version: 2026.202.0105 -> 2026.204.1223 with zero other content change. Independently re-verified by the fresh pr-validator using a scratch charly binary built from the merged sdk: charly migrate idempotent, charly box validate exit 0, charly box generate exit 0, no live shell: overlay reference. Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system)
Schema re-stamp leg of the K5-B validation-correctness batch (companion opencharly/sdk#93, merged as 168169d/v0.2026204.1223; opencharly/charly#182). This repo authors no deploy-scope shell: overlay, so the bump is a pure version-stamp update: charly migrate rewrote version: 2026.202.0105 -> 2026.204.1223 with zero other content change. Independently re-verified by the fresh pr-validator using a scratch charly binary built from the merged sdk: charly migrate idempotent, charly box validate exit 0, charly box generate exit 0, no live shell: overlay reference. Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system)
Schema re-stamp leg of the K5-B validation-correctness batch (companion opencharly/sdk#93, merged as 168169d/v0.2026204.1223; opencharly/charly#182). This repo authors no deploy-scope shell: overlay and no vm: PCI hostdev, so the bump is a pure version-stamp update: charly migrate rewrote version: 2026.202.0105 -> 2026.204.1223 with zero other content change. Independently re-verified by the fresh pr-validator using a scratch charly binary built from the merged sdk: charly migrate idempotent, charly box validate exit 0, charly box generate exit 0 (confirmed genuine, non-hung wall-clock cost from this repo's large plugin-candy set; Containerfiles present for every composed image), no live shell: overlay reference. Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system)
Schema re-stamp leg of the K5-B validation-correctness batch (companion opencharly/sdk#93, merged as 168169d/v0.2026204.1223; opencharly/charly#182). This repo authors no deploy-scope shell: overlay, so the bump is a pure version-stamp update: charly migrate rewrote version: 2026.202.0105 -> 2026.204.1223 with zero other content change. Independently re-verified by the fresh pr-validator using a scratch charly binary built from the merged sdk: charly migrate idempotent, charly box validate exit 0, charly box generate exit 0 (confirmed genuine, non-hung wall-clock cost; Containerfiles present for every composed image including the arch-namespaced ones this repo imports). Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system)
…k repoint, box gitlinks Fix round addressing both blocking findings from an independent PR-validator review of the original commit (RCA'd in CHANGELOG/2026.204.1223.md): 1. Kernel/plugin boundary-law violation: the vm PCI-hostdev concreteness check (validateKindValueConcrete) was landed directly in charly/provider_kind_invoke.go, hardcoding a kind-word branch + PCI field-path knowledge in core. Relocated to candy/plugin-substrate's "vm" capability via the sanctioned F7/C8 deep OpValidate mechanism: only the "vm" capability declares Validates:true, a new shared dispatchKindOpValidate helper (R3) drives the dispatch kind-blindly from both the flat op.Params kind path and the new foldSubstrateKind call site, and validateKindValueCUE is restored to closedness-only permanently. New candy/plugin-substrate/validate_vm.go (+ 5 unit tests) implements the check; the former 5 host-side unit tests became 5 charly-side integration tests proving the end-to-end wiring through the real compiled-in registry. 2. Committed-tree R7/R10 regression: box/fedora and box/cachyos were only LOCALLY re-stamped in the author's prior working tree, so a fresh checkout of the original commit would have failed go test ./charly/... the moment it merged. Fixed by resequencing: all 5 box/<distro> re-stamp PRs land FIRST as their own PRs (arch/debian/ubuntu at v2026.204.1300, fedora at v2026.204.1329, cachyos at v2026.204.1336), and this commit bumps all 5 gitlinks to their merged commits, so the committed tree is self-consistent. Also: sdk gitlink repointed to the MERGED opencharly/sdk#93 commit (168169d6, tag v0.2026204.1223, not the earlier unmerged branch tip); charly/go.mod's sdk require bumped to match; migrations.cue's strip-deploy-shell-overlay entry re-stamped to 2026.204.1223 (must equal the finalized schema version — a coupled pair); every in-repo charly.yml + test fixture re-stamped to match; CHANGELOG/2026.203.2359.md renamed to CHANGELOG/2026.204.1223.md with content updated to record both findings and their fixes. Assisted-by: Claude Code (Anthropic Claude Sonnet 5; fully tested and validated)
…oncreteness + shell overlay retirement Two independent fixes sharing one schema-version bump (companion opencharly/sdk#93, merged 168169d6/v0.2026204.1223): 1. vm PCI-hostdev concreteness: validateKindValueCUE's CUE gate is closedness-only by design (a blanket cue.Concrete(true) was tried and reverted, breaking 9 real corpus cases). The proven gap - a libvirt PCI hostdev whose source.{domain,bus, slot,function} were never authored silently passed validation - is closed via candy/plugin-substrate's "vm" capability serving the F7/C8 deep OpValidate check (validate_vm.go), dispatched kind-blindly by the new shared dispatchKindOpValidate helper. No kernel branch on the kind word; the check lives entirely in the plugin. 2. Deploy-scope shell: overlay retirement: #Deploy.shell/#DeployShellOverlay (sdk companion) had zero production consumer anywhere in this repo's history. New migration-table entry strip-deploy-shell-overlay (touches_host: true) strips only a sequence-valued shell: key, leaving a candy's own mapping-valued shell: untouched. R5 sweep: vmshared_aliases.go, shell_schema_test.go, deploy.go, shellcollect.go comments updated. All 5 box/<distro> gitlinks bumped to their independently-validated, merged, tagged commits (arch/debian/ubuntu v2026.204.1300, fedora v2026.204.1329, cachyos v2026.204.1336) so the committed tree is self-consistent end to end. This PR went through two independent pr-validator rounds: the first round found a real go-test regression (box/fedora + box/cachyos were only locally re-stamped, uncommitted) and a kernel/plugin boundary-law violation (the concreteness check originally landed in charly/provider_kind_invoke.go instead of the vm-serving plugin); both were fixed and independently reverified in the second round, including a fresh full-suite test run, golangci-lint, and a live re-proof against a freshly-built binary confirming the rejection flows through the relocated plugin path. Assisted-by: Claude Code (Anthropic Claude Sonnet 5; fully tested and validated)
…n-correctness batch Documentation-only follow-on to the prior architecture-docs divergence batch, for the just-merged opencharly/sdk#93 + opencharly/charly#182 (K5-B validation-correctness batch). That prior batch correctly flagged MergeDeployShell as dead code but described the FIELD itself (#Deploy.shell/#DeployShellOverlay) as still authorable ("parsed but not applied"). The companion PRs deleted the field from the schema outright, so that description was stale. Fixes internals/skills/capabilities/SKILL.md and internals/skills/install-plan/SKILL.md to state the field's actual deletion. Independently re-verified by the fresh pr-validator, including checking the underlying fact behind the doc change (not just that the prose reads plausibly): the Origin field is an unconstrained string with no live call site ever setting it to "deploy", confirming that value's removal from the doc's descriptive list is accurate. Assisted-by: Claude Code (Anthropic Claude Sonnet 5; documentation reviewed)
…ordination The BLOCK was body-only: the consumer leg was named in prose instead of filed, and the thread carried no WAITING/HOLDING. Both are addressed (opencharly/plugin-deploy-pod#94 filed and cited; RCA + WAITING posted on this thread, HOLDING on #93 and #94). This commit exists to give the required validator a new head to judge; it changes no file.
* fix(deploy)!: never run a unit as container root A unit with a bind mount now always runs as the IMAGE USER under UserNS=keep-id: the image user is the invoking host user there, so a host-owned volume is writable with no chown and nothing runs as root. The CDI device is emitted only on a unit WITHOUT bind mounts. Measured: keep-id + CDI fails at the spec's first file mount for the nvidia-ctk spec AND for a minimal devices+libs spec (crun mount_setattr EPERM, exit 126), while a devices-only CDI spec applies fine — so a bind unit takes its GPU as device-node injection plus driver-library bind mounts instead. userns=host --user 1000 with an idmapped volume is also denied; the old root branch is gone. Measured end to end in that shape: uid=1000, host bind written 1000:1000, cuInit/device/context/16 MiB alloc ok, nvidia-smi -L lists the GPU, and an ONNX Runtime MatMul executed on CUDAExecutionProvider with the model stored on a gocryptfs volume. gofmt/vet/test/golangci-lint (module toolchain go1.26.8): clean. Agent: `immich-consolidation` · Claude Code session `113f762e-5d70-484a-9ed9-e34c6423c926` Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated) * fix(deploy): the CDI device rides a bind unit; keep-id only rejects its mounts The first commit on this branch dropped the CDI device from every unit with a bind mount. That over-corrected: the measured wall is the CDI spec's `mounts` section, not the device. keep-id + stock /etc/cdi/nvidia.yaml (has mounts) -> crun mount_setattr /usr/bin/nvidia-cuda-mps-control: EPERM, exit 126 keep-id + a DEVICES-ONLY spec (same device name, deviceNodes only) + the driver libs bound to their SONAME paths -> user/uid 1000, device node present, cuInit=0 on the RTX 4080 SUPER So the emitter keeps `AddDevice=nvidia.com/gpu=all` on every GPU unit, bind or not; the caller (plugin-deploy-pod) supplies a devices-only spec and the library binds. The only rule the emitter enforces is the user-namespace one: keep-id as the image user, never UserNS=host with User=0:0. Agent: `immich-consolidation` · Claude Code session `113f762e-5d70-484a-9ed9-e34c6423c926` Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated) * chore: round 1 — cite the consumer leg as filed issue #94 and post coordination The BLOCK was body-only: the consumer leg was named in prose instead of filed, and the thread carried no WAITING/HOLDING. Both are addressed (opencharly/plugin-deploy-pod#94 filed and cited; RCA + WAITING posted on this thread, HOLDING on #93 and #94). This commit exists to give the required validator a new head to judge; it changes no file. * feat(deploy): carry extra podman args and read-only binds for a keep-id GPU unit A keep-id unit needs two things the emitter could not express: the engine flag that points podman at a devices-only CDI spec (`--cdi-spec-dir`), and the driver libraries bound `:ro` to their SONAME paths. QuadletConfig gains PodmanArgs (emitted as ONE PodmanArgs= line, because quadlet splits that line into argv words) and ResolvedBindMount gains ReadOnly. Both are internal library inputs, no wire or schema change. Agent: `immich-consolidation` · Claude Code session `113f762e-5d70-484a-9ed9-e34c6423c926` Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated) * chore: re-sync the pull request head * chore: round 2 — body accounts for every commit, gate re-run on the pushed head Body-only round: the Summary accounts for the second code commit, R11 states the two added internal fields and their disposition, and the module gate was re-run on the exact pushed head with the new test's output pasted. The round RCA is posted on the thread. No file changes. Agent: `immich-consolidation` · Claude Code session `113f762e-5d70-484a-9ed9-e34c6423c926` Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)
Summary of changes
The sdk contract-repo leg of the K5-B validation-correctness batch — retires the deploy-scope
shell:overlay authoring field outright (it had zero production consumer anywhere in this project's history) and bumps#SchemaVersionso the companionopencharly/charlyPR's migration can strip it from existing configs. The companion PR'svalidateKindValueConcretevm-PCI-hostdev fix rides the same schema-version bump but needed no sdk-side schema change.Concrete edits:
schema/version.cue:#SchemaVersionbumped2026.202.0105→2026.203.2359(placeholder — the pr-validator finalizes the merge-time CalVer).schema/deploy.cue:#Deploy.shellfield and the#DeployShellOverlaydef deleted.spec/cue_types_gen.go,spec/version_gen.go: regenerated viatask cue:gen.spec/charly_methods.go: dead(*DeployShellOverlay).ByShell()method removed.vmshared/spec_aliases.go:DeployShellOverlayalias removed.deploykit/capabilities.go:ShellCapabilityLabelMapdoc comment updated (the label'sDeploysection is now permanently empty).CHANGELOG/2026.203.2359.md: placeholder cutover narrative.Change class
charly-or-sdk Go (schema + generated code). Cross-repo:
opencharly/sdk(this PR, producer) →opencharly/charly(companion PRfeat/k5b-validation-concreteness, consumer — carries the migration-table entry, the R5 sweep, and the unrelated co-landed vm-PCI-hostdev concreteness fix). Landing order: this PR merges first; the charly PR'ssdkgitlink +go.modrequire version are repointed to the merged/tagged commit before it merges.How R10-tested — exact gate, commands, and pasted output
GOWORK=off go build/vet/test ./...(sdk is a standalone-consumed contract module — full standalone battery per/charly-internals:git-workflow"Per-module verification") +TestGenReproduciblefresh +go mod tidy/go mod verify. No check bed applies directly to this repo (sdk carries no runnable candy/box); the companion charly PR'sgo test ./charly/...is the exercising gate for both halves of this schema change (a schema-shape defect here would fail that suite'sTestCueKinds_Corpus/loader tests).charly.yml/check beds of its own; the companionopencharly/charlyPR is the runtime-exercising gate for this schema change.GOWORK=off go build ./...at HEAD of this branch — clean, zero warnings.TestGenReproduciblere-runs the actualcue exp gengotypes+schemagentoolchain against the newschema/deploy.cue/schema/version.cueand diffs against the committed generated files (fresh run, not cached, pasted below). This proves the schema change is real and the generated Go matches it exactly.Attribution tier
fully tested and validated— the changed generation pipeline (schema →cue exp gengotypes→ generated Go) actually executed against the fresh rebuild viaTestGenReproducible, and the full standalone test/build/vet/tidy/verify battery is green.Assisted-by: Claude Code (Anthropic Claude Sonnet 5; fully tested and validated)
Harness rulebook compliance
/charly-internals:go,/charly-internals:plugin,/charly-internals:strict-policy,/charly-internals:git-workflow,/charly-internals:cutover-policy,/charly-build:migrate,/charly-build:validatebefore touching any code (this session's dispatch).shell:never had a consumer) was found via fullgit -Sarchaeology, not a guess. Zero warnings in every gate run above.git grep 'DeployShellOverlay'in this repo returns zero hits post-commit (the def and every Go reference deleted in this same commit).git status/git branch --show-currentchecked before every branch/commit action; no destructive action taken.go test ./charly/...exercises this schema change end-to-end (loader, corpus validation, migration).task cue:genregenerated the Go,TestGenReproducibleproves the regeneration is a no-op on a clean re-run. RDD — the "zero production consumer" claim was proven bygit -Shistory search, not assumed. ADE — N/A (no candy in this repo).gofmt -l .clean (verified across the full sdk+charly tree),go vet ./...clean,go test ./...green.CHANGELOG/2026.203.2359.mdstaged (placeholder CalVer — the pr-validator finalizes it).