Repository navigation
refactor(sdk)!: rename K8s* identifiers to Kubernetes* (k8s→kubernetes substrate) - #128
Conversation
…s substrate) Renames the sdk-side identifiers in lockstep with the spec-side wire-key rename (spec v0.2026223.1018): ResolveK8sEntityViaExecutor → ResolveKubernetesEntityViaExecutor, the "k8s" → "kubernetes" kind word in the loader kind→def table (cue_schema.go) and fleetCrossRefKeys (deploy_nodeform.go), the K8s* → Kubernetes* vmshared aliases (K8sDeployConfig → KubernetesDeployConfig), and the "k8s" → "kubernetes" substrate words in tests. go.mod bumps github.com/opencharly/spec to v0.2026223.1018. Intentional confusables NOT renamed: kube: check verb, k3s, k8sgen, k8s.io/* deps, .opencharly/k8s/ output path, bed names, kubectl/kubeconfig. Assisted-by: Claude Code deepseek-v4-flash:cloud (analysed on a live system)
pr-validator — CHANGES REQUESTED ❌PR: #128 — The technical substance of this cutover is sound — I independently re-derived every claim and the rename itself is correct, complete, and consistent with the landed spec tag. However, the PR fails the mandatory template/evidence requirements on three items and cannot merge as submitted. All three are author-fixable in the same tree; nothing here questions the rename's correctness. Security & anti-tampering screen (T0/T1–T4): PASS
Checklist (per-item)
Comments consideredNone — the PR carries zero comments. Cross-PR interactions considered
Decision — FAIL (not merged)The rename itself is verified correct end-to-end; the blocking findings are template/evidence compliance and one incomplete comment sweep:
Author must: fill every template section with the pasted standalone-battery output (per B2: Assisted-by: Claude Code deepseek-v4-flash:cloud (analysed on a live system) |
The re-export comment still listed capabilities.go / status_collector.go / service.go / start.go as charly-core call sites — none of those files exists in charly core on main (all moved to candies in prior cutovers); the check harness is likewise a candy now. The only remaining production core caller is build_overlay.go, so the comment now names exactly that + the candies (R1 claim-keyed sweep on a comment this rename already touches). Assisted-by: Claude Code deepseek-v4-flash:cloud (analysed on a live system)
pr-validator — CHANGES REQUESTED ❌Change class: charly/sdk Go — K8s* → Kubernetes* identifier rename + spec submodule bump (cross-repo cutover leg) Head validated: Checklist (every rule):
Comments considered:
Cross-PR interactions considered:
Decision: FAIL — not merged. Blocking findings (the same class of error the prior validator flagged, incompletely fixed):
Per R1 (a comment diverging from reality is an incident), R5 (the claim-keyed transitive sweep), item 13(a) (touching a surface obligates curing it), and the "when in doubt, FAIL" mandate, this is blocking. What the author must fix:
Assisted-by: Claude Code deepseek-v4-flash:cloud (analysed on a live system) |
…shims The re-export comments in kit/box_metadata.go + deploykit/read_labels.go named charly core files (build_overlay.go, host_build_pod_config_seams.go, init_def_label_test.go) as ExtractMetadata/InspectLabels call sites. Verified against the tree: charly core has ZERO such call sites (K3-W2 removed the build_overlay.go read; host_build_pod_config_seams.go is deleted; init_def_label_test.go is comment-only). The real call sites are all candies: plugin-substrate reads kit.ExtractMetadata; plugin-check, plugin-deploy-pod, plugin-kube, plugin-pod read deploykit.ExtractMetadata. No InspectLabels call sites remain. Comments rewritten to name the actual consumers. Assisted-by: Claude Code deepseek-v4-flash:cloud (documentation reviewed)
pr-validator — APPROVED ✅ (supersedes the prior CHANGES REQUESTED verdict)Change class: charly/sdk Go — K8s* → Kubernetes* identifier rename + spec submodule bump (cross-repo cutover leg) Head validated: Checklist (every rule):
Comments considered:
Cross-PR interactions considered:
Decision: PASS. The blocking finding is cured and independently verified against the tree:
Full battery re-ran green at the new head: Assisted-by: Claude Code deepseek-v4-flash:cloud (analysed on a live system) |
Assisted-by: Claude Code deepseek-v4-flash:cloud (analysed on a live system)
Summary of changes
Renames the sdk-side identifiers in lockstep with the spec-side wire-key rename (spec
v0.2026223.1018, already landed + tagged):ResolveK8sEntityViaExecutor→ResolveKubernetesEntityViaExecutor, the"k8s"→"kubernetes"kind word in the loader kind→def table (cue_schema.go) andfleetCrossRefKeys(deploy_nodeform.go), theK8s*→Kubernetes*vmshared aliases (K8sDeployConfig→KubernetesDeployConfig), and the"k8s"→"kubernetes"substrate words in tests.go.modbumpsgithub.com/opencharly/spectov0.2026223.1018.Intentional confusables NOT renamed:
kube:check verb,k3s,k8sgen,k8s.io/*deps,.opencharly/k8s/output path, bed names,kubectl/kubeconfig.Second commit: completes the claim-keyed comment sweep in
kit/box_metadata.go— the re-export comment still namedcapabilities.go/status_collector.go/service.go/start.go(and the "check harness") as charly-core call sites; none of those files exists in charly core on main (all moved to candies in prior cutovers), so the comment now names the sole remaining production core callerbuild_overlay.go+ the candies (R1).Change class
sdk Go contract module — the consumer-facing half of the cross-repo
k8s:→kubernetes:deploy-substrate-kind rename (specv0.2026223.1018landed + tagged first; this module consumes it). Landing order: spec → sdk → plugins/docs → distro repos → superproject.How R10-tested — exact gate, commands, and pasted output
GOWORK=off—go mod tidy -diff+go mod verify+go build ./...+go test ./...— the module proof. The fresh-rebuild disposable bed belongs to the superproject leg, not here.ResolveK8sEntityViaExecutor,K8sDeployConfig, …) cannot compile againstspec v0.2026223.1018, and the loader'ssharedCueSchemapanics on a missing kind def.Attribution tier
analysed on a live system— the full standalone battery ran green on the pushed tree; the fresh-rebuild disposable bed R10 belongs to the superproject leg, so this leg's ceiling isanalysed on a live system, notfully tested and validated.Harness rulebook compliance — state HOW each is satisfied (or
N/A — <reason>)/charly-internals:git-workflow,/charly-internals:go,/charly-internals:strict-policy,/charly-internals:cutover-policy,/charly-internals:plugin— loaded and honored; the rename follows the spec/sdk conventions.build_overlay.go) + the candies; verified each named file againstorigin/mainwithgit cat-file -e. Zero warnings.kube:verb,k3s,k8sgen,k8s.io/*,.opencharly/k8s/output path, bed names,kubectl/kubeconfig) are distinct surfaces, not deferred work.read_labels.gois pre-existing and unchanged.CHANGELOG/history and migration help-text; no transitional/dual-mode path survives (verified by the validator's own re-grep).loaderkit/deploykit/vmshared/kit— all in the contract module's own layer; no layer moves, no alias forms, no new kit imports.gofmt -lempty,go vet ./...clean,go test ./...green (all 9 packages),go mod tidy -diffclean,go mod verifyclean.CHANGELOG/2026.223.1018.mdstaged (placeholder CalVer — the pr-validator finalizes it at merge).Assisted-by: Claude Code deepseek-v4-flash:cloud (analysed on a live system)