Repository navigation
chore(schema): remove the eight inert #Kubernetes cluster-template fields (R5) - #225
Conversation
…elds (R5)
Eight fields of the `kind: kubernetes` cluster template were AUTHORABLE and silently
inert: `#Kubernetes` is CLOSED, so they validated, and then nothing read them — 0
consumers against the read set of the one generator that consumes a cluster template.
For `secret:` that is worse than a missing field: an operator writing
`secret: {backend: external-secrets, store: vault-prod, prefix: prod/}` got no
ExternalSecret, no secretKeyRef wiring, and no error, while the schema comment read as a
live contract.
Removed, with the six definitions that existed only to type them:
`replica`, `resources` (+ #KubernetesResources/#KubernetesResourceValues), `hostnames`
(+ #KubernetesHostname), `gateway_api` (+ #KubernetesGatewayAPI), `secret`
(+ #KubernetesSecretsBackend), `observability` (+ #KubernetesObservability),
`network_policy`, and the cluster template's `plan` (the per-deploy `plan` and the
per-deploy `replica` are different fields on a different type, and stay).
Proven before removal, org-wide over the pinned materialised checkout (428 submodules,
1154 charly.yml files, all parseable): 27 kind:kubernetes blocks exist, and NONE sets any
of the eight. Executed premise + controls with the repo-pinned cue: the new schema
refuses a doc setting them (rc=1, three `field not allowed`), the PRE-CHANGE schema
accepts the same doc silently (rc=0 — the defect), and the retained surface still
validates (rc=0). Also corrected: the `kubevirt` comment's stale `secret` reference.
This alters AUTHORED wire keys, so a consuming repo's stale config makes `charly migrate`
its own problem — declared, and measured empty in the org (the sweep above).
Closes #222
Agent: dsh-k8s-ext
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: Contract / library module — Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
BLOCKS — opencharly/sdk (its next pin advance) and opencharly/charly (its own pin advance) Blocked item: the consumer legs of this schema removal, now tracked as Blocking change: Why it blocks them. What would unblock it: Measured, before removal: the six names have zero users org-wide; the 19 references are all Agent: dsh-k8s-ext |
|
RCA — round 0 BLOCK (CONC(d)/R5: unexecuted sweep claims; COORD: a declared cross-repo obligation with no BLOCKS) Mechanism. The body asserted two sweep results as prose — "the doc surfaces that could present The second half: the body stated that Missed control. The ledger already records the lesson from Blast radius. Every body claim of the shape "X was searched and none/Y was found" (three per PR Root fix. All three sweeps are now executed against this diff and pasted with their commands Agent: dsh-k8s-ext |
Review — PASSHead SHA: Security screen: PASS — T1–T4 clear: pure field/type removal in Checklist: All applicable rules PASS or NA. Diff is internally consistent (8 fields + 6 private defs removed in CUE, matching 8 struct fields + 6 Go types in Comment dispositions: 6163133431 (bot BLOCK) — Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
…ts no longer exist for (#378) `opencharly/spec#225` removed eight silently-inert `#Kubernetes` cluster-template fields and the six wire types that typed them. This file re-exported all six as pass-through aliases, so the next `go get github.com/opencharly/spec@<post-#225 tag>` in this repo could not compile. Witnessed here, not argued — the pin bumped with the aliases still present: $ go build ./... vmshared/spec_aliases.go:56:36: undefined: spec.KubernetesGatewayAPI vmshared/spec_aliases.go:57:36: undefined: spec.KubernetesHostname vmshared/spec_aliases.go:60:36: undefined: spec.KubernetesObservability vmshared/spec_aliases.go:64:36: undefined: spec.KubernetesResources vmshared/spec_aliases.go:65:36: undefined: spec.KubernetesResourceValues vmshared/spec_aliases.go:66:36: undefined: spec.KubernetesSecretsBackend The deletion has to ride the pin bump in ONE commit, which is why it is here rather than in a PR of its own: against the old pin the aliases have live referents, against the new one they have none, and there is no revision in between that is both consistent and compiling. Nothing referenced them: a recursive grep over the module for all six names now returns **zero** matches, and before the deletion every one of the org's 19 references was a definition site (the six lines here plus the thirteen in the older pinned `spec/spec/cue_types_gen.go`). With this merged, `opencharly/plugin-kube` — which pins `spec v0.2026287.716` today for exactly this reason — and `opencharly/charly` can both advance. Pins: `spec` v0.2026287.638 → **v0.2026287.727** (a merged, tagged ref — Policy B). Closes #377 Agent: dsh-k8s-ext Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated) Co-authored-by: Andreas Trawoeger <[email protected]>
Summary
Eight fields of the
kind: kubernetescluster template were authorable and silently inert.#Kubernetesis CLOSED, so they validated, and nothing read them. Forsecret:that is worse thana missing field — an operator writing
got no
ExternalSecret, nosecretKeyRefwiring, and no error, while the schema comment readas a live contract.
Removed, together with the six definitions that existed only to type them:
replicaresources#KubernetesResources,#KubernetesResourceValueshostnames#KubernetesHostnamegateway_api#KubernetesGatewayAPIsecret#KubernetesSecretsBackendobservability#KubernetesObservabilitynetwork_policyplanThe per-deploy
planand the per-deployreplicaare fields on a DIFFERENT type(
#KubernetesDeploy) and are untouched — that is the read set the one generator that consumes acluster template (
plugin-k8sgen'sopts.Cluster.*) actually uses. A stalesecretreference inthe
kubevirtcomment was corrected in the same edit.This alters AUTHORED wire keys, so a consuming repo whose config still sets one gets a hard
field not allowedandcharly migratebecomes its problem — declared here as this repo'sAGENTS.md requires, and measured empty below.
Round 1 (head
b36342f6) answers the validator's round-0 verdict, which was fair on bothcounts: the two sweep claims in R5 and in Change classification were prose, not executed evidence,
and a cross-repo obligation was described without a
BLOCKS. Both are fixed here — the sweeps arenow run and pasted verbatim, and
opencharly/sdk#377is filed andBLOCKS-linked from this threadand from that one. The RCA, with the named missed control, is in this PR's round comment.
Closes #222
How tested
Change class: Contract / library module (
schema/*.cue+ generated Go). The repo's owncommitted module CI is the gate (
/charly-check:check"R10 gate by change class"), run on theCOMMITTED tree (commit -> gate -> paste -> push) so the evidence names the revision it belongs to.
The claim-keyed sweep (R5) — run BEFORE the removal
Org-wide, over the pinned materialised checkout — all 428 submodules are present, and there are
1154 authored
charly.ymlfiles on disk, so a local recursive sweep IS the org-wide sweep. Aname-only grep is not discriminating (
plan:,resources:,secret:are ubiquitous in otherkinds), so every file was parsed and every
kind: kubernetesblock inspected semantically:The doc/skill/text sweep (R5) — the four distinctive names, in KEY position, org-wide
All five are OUTSIDE charly's authored config and outside its docs: one Go local variable
(
plugin-tunnel/.../tunnel_exec.go:290), and four YAML/JS occurrences inside the unrelatedopenclaw-enterpriseapp's own Gateway-API templates. No charly skill, schema text or doc namesany of the eight as a cluster-template knob, and the schema source no longer contains them at all
(they were deleted by this diff).
The alias-user sweep — the
opencharly/sdkpass-through aliasesEvery one of the 19 is a DEFINITION site — the six alias lines in
vmshared/spec_aliases.go(which this change makes dangling, hence
opencharly/sdk#377) and the thirteen in the OLDERpinned
spec/spec/cue_types_gen.go(the umbrella's gitlink, still at the pre-removal tag). Thereis no user of any of the six names.
The executed premise, with its control (R7)
Schema files are package-less and unified as ONE instance by the loader, so the check replicates
that (concatenate, then
cue vetwith the repo-pinnedcue):The module gate, on this head
Base (branched off fresh
origin/main):6a12828f. PR head this run was made on:b36342f6.charly task cue-genis a no-op on the committed tree —TestGenReproduciblepasses andgit statusstays empty after it, pasted inside the block above. The regen emitted exactly the sixdeleted Go types and the field removals (6 insertions / 98 deletions, the insertions being the
corrected comment's reflow).
Rulebook compliance
/charly-internals:go,/charly-internals:plugin,/charly-internals:cutover-policy,/charly-internals:git-workflow,/charly-internals:strict-policy,/charly-internals:root-cause-analyzer.opencharly/spec#222before thechange. Round 0's two findings were both R1-class and are both fixed: the unexecuted sweep
claims are now executed and pasted, and the cross-repo obligation is filed (
opencharly/sdk#377)and
BLOCKS-linked on both threads. The RCA is in this PR's round comment. The gate on this headis green with zero warnings.
with them, in the same cutover.
the change.
charly.ymlsweep, the key-position doc/text sweep, and the alias-user sweep).git statusclean before the branch and before this round; branched off freshorigin/main(6a12828f) in a session worktree; no force-push, no bypass, PR-only.pre-change one), and the emitted artifact is validated where it is actually consumed — the CUE
instance the loader unifies, not a grep of the source.
beds.
warnings, on the committed tree.
stale comment move together, and no deferral is parked inside its scope. The consumer legs are in
OTHER repos behind this one's tag (producer-first, B6), filed and linked below.
the pasted proof, which names the head SHA it was produced on.
Change classification
spec) - CUE schema + generated Go, an authored-keyremoval (declared:
charly migrateis the consumer's problem).fully tested and validated- the class-mandated gate passed on this exact head, andthe premise + control were executed.
opencharly/sdkmust drop the six now-dangling pass-throughaliases in
vmshared/spec_aliases.goin the same commit that bumps this repo's pin — filedas
opencharly/sdk#377, andBLOCKS-linked both ways.charlythen picks the schema up withits own pin advance (the org-wide wave). Nothing is broken in between: an older pin still
carries the types.
Filed issues
opencharly/sdk#377- the six pass-through aliases whose referents this diff removes; filedthis round because the obligation was described but not tracked.
opencharly/spec#222and is closed bythis PR.
Agent: dsh-k8s-ext
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)