Skip to content

fix(kube)!: remove the verb's two mutation methods — a verb observes (D-VERB-1) - #33

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/kube-observation-verbs
Nov 11, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/kube-observation-verbs

Conversation

@aitrawog

Copy link
Copy Markdown
Contributor

Summary

DESIGN.md §23 states D-VERB-1: "A verb observes and never changes state: a state change is a
field (§14.4), and the one step that changes state is a run: step (D-VERB-5)."
The kube: verb
shipped thirteen methods, and two of them write to the cluster. Measured at origin/main
df96229:

site what it does
methods.go:44 "apply": {"manifest"} in requiredModifiers
methods.go:45 "delete": {"manifest"} in requiredModifiers
methods.go:89-92 case "apply": return runApply(…), case "delete": return runDelete(…)
methods.go:512,521 runApply calls iface.Create, then iface.Update on AlreadyExists
methods.go:556 runDelete calls iface.Delete
schema/kube.cue method: (… | "apply" | "delete" | …), plus manifest?: string, which only they read

Every other method observes: nodes, wait-nodes, pods, wait-ready, ingress, ingressclass,
storageclass, service, lb-external-ip, addons, and raw (whose only API calls are
iface.Get and iface.List, methods.go:588,594).

What the premise measured to. TODO.md 12.7 says the verb "exposes apply and delete, which
are mutations". The tree agrees exactly — and the blast radius is what the row does not say. No
authored config in the org reaches either method, in any of the three spellings the verb admits.
A
sweep of every submodule's origin/HEAD tip — 430 repos, the map key method:, the scalar
kube: <word> sugar, and a nested key — returns 0 hits for the two words, while the same
predicates return 4 (method: nodes) and 3 (kube: nodes) for a live observation method.
The predicate is calibrated, not merely empty. So the fix is a deletion with an empty migration,
not a rename that rewrites authored config.

Why deleting is the right remedy rather than reclassifying. The design already says what each of
the two did belongs to: the workload lowering (deploy.go's kubectl apply -k on the
egress-validated Kustomize tree), the package: helm: action, or a command: step (TODO.md 12.7).
The helm: side of the same row is already observation-only — plugin-helm's verb serves exactly
four methods, release-exists, status, revision, values-hash (git -C plugin-helm grep -n 'case "' origin/main -- candy/plugin-helm/helm.go → 4 hits, helm.go:150,152,154,156) — so this
change closes the one remaining mutation arm of that class.

What this change does. Removes both methods and every part that existed only to serve them: the
two requiredModifiers entries and the two dispatch cases; runApply and runDelete;
readYamlDocs, gvrForObject (methods.go) and kindToPluralResource (cluster.go), the last
users of the manifest path; the four now-unused imports (errors, io, os, yamlutil); and
#KubeInput.manifest, with params/ regenerated by the sanctioned pipeline. The served schema is
what closes it for authored input: #KubeInput refuses method: apply, method: delete and
manifest, while admitting all eleven observation methods — at the boundary the host validates
every authored step at (def.Unify(input).Validate(cue.Concrete(true)) in charly's
validateAuthoredPluginInput).

This is TODO.md item 12.7, tracking issue #32, under the campaign
sequence opencharly/opencharly#950. It adds no row to the D-PAT census and moves none
(opencharly/opencharly#945).

The files in this diff

git diff --stat origin/main...HEAD | tail -1 → 9 files changed, 147 insertions(+), 203 deletions(-).

File What changed
candy/plugin-kube/methods.go The two requiredModifiers entries, the two dispatch cases, runApply/runDelete and the YAML-ingestion helpers are DELETED (140 lines); the four imports that served them go with them; the package and nolint comments say 11 observation methods and cite D-VERB-1.
candy/plugin-kube/schema/kube.cue #KubeInput.method drops "apply" and "delete"; manifest?: string is deleted with them; the def's comment states that every method observes and names both removals.
candy/plugin-kube/params/cue_types_gen.go REGENERATED by charly candy params plugin-kube (never hand-edited): Manifest is gone, and the schema's comment is carried through.
candy/plugin-kube/cluster.go kindToPluralResource — the Kind→plural table whose only caller was gvrForObject — is DELETED; kindToGVR, which wait-ready uses, stays.
candy/plugin-kube/methods_observe_test.go NEW — two controls: the dispatcher refuses both words as unknown with a nil *clusterConn (so the refusal provably precedes any connection), and the plugin's OWN embedded schemaFS refuses apply, delete and manifest while admitting all eleven observation methods.
candy/plugin-kube/go.mod cuelang.org/go v0.16.1 loses its // indirect marker — the schema arm imports cue/cuecontext directly. No version moves and go.sum is unchanged (the module was already in the graph through sdk).
candy/plugin-kube/charly.yml The candy description: says 11-method OBSERVATION surface with the two words gone, and the check-k8s skill's triggers: line stops naming apply/delete.
README.md 13 methods → 11 observation methods; the method list loses the two; a sentence names D-VERB-1 and the removal.
.agents/skills/check-k8s/SKILL.md The table's two rows are replaced by the D-VERB-1 paragraph; both field lists lose manifest:; the method-notes bullet for apply / delete is gone; the cluster.go/methods.go implementation lines stop naming them; the front-matter description says every method observes.

How tested

Every command below ran against this head 7f91343182017f30365e318fcedc412eeb8c0e5e, in a
session worktree branched off origin/main df96229 (the merge base), each redirecting to a file
and pasted from it. The tree the gates ran on is the tree that is pushed: the only post-gate change
was a commit-message amendment, and git diff --stat HEAD@{1} HEAD reports 0 lines of diff.
go version → go1.27.3-X:nodwarf5 linux/amd64; the module declares go 1.26.8.

The gate this repo declares (its AGENTS.md, "Build / validate / test") is go build ./... and
go test ./... in candy/plugin-kube/, plus charly box validate at the repo root — this repo
carries no per-repo candy gate; the merge gate is the org-wide charly/pr-validator.

1. The coverage fails without the change

Red on the base tree df96229 — the committed test file copied onto a pristine origin/main
checkout, with no implementation change, so the failures are ASSERTIONS rather than missing symbols:

$ go test . -count=1 -run 'TestDispatch_RefusesRemovedMutationMethods|TestKubeInput_ObservationMethodsOnly' -v   # pristine df96229
=== RUN   TestDispatch_RefusesRemovedMutationMethods
    methods_observe_test.go:44: requiredModifiers still carries the mutation method "apply" (requires [manifest]): D-VERB-1 says a verb observes
    methods_observe_test.go:52: dispatch("apply") error = missing required modifier(s): manifest, want an unknown-kube-method refusal so a mutation never reaches the cluster
    methods_observe_test.go:44: requiredModifiers still carries the mutation method "delete" (requires [manifest]): D-VERB-1 says a verb observes
    methods_observe_test.go:52: dispatch("delete") error = missing required modifier(s): manifest, want an unknown-kube-method refusal so a mutation never reaches the cluster
--- FAIL: TestDispatch_RefusesRemovedMutationMethods (0.00s)
=== RUN   TestKubeInput_ObservationMethodsOnly
    methods_observe_test.go:88: #KubeInput accepts method apply ({method: "apply"}): a mutation method and its manifest field must not be authorable (D-VERB-1)
    methods_observe_test.go:88: #KubeInput accepts method delete ({method: "delete"}): a mutation method and its manifest field must not be authorable (D-VERB-1)
    methods_observe_test.go:88: #KubeInput accepts manifest field ({method: "nodes", manifest: "/tmp/smoke.yaml"}): a mutation method and its manifest field must not be authorable (D-VERB-1)
--- FAIL: TestKubeInput_ObservationMethodsOnly (0.00s)
FAIL
FAIL	github.com/opencharly/plugin-kube/candy/plugin-kube	0.015s
FAIL

Green on this head, same command:

$ go test . -count=1 -run 'TestDispatch_RefusesRemovedMutationMethods|TestKubeInput_ObservationMethodsOnly' -v   # this head 7f91343
=== RUN   TestDispatch_RefusesRemovedMutationMethods
--- PASS: TestDispatch_RefusesRemovedMutationMethods (0.00s)
=== RUN   TestKubeInput_ObservationMethodsOnly
--- PASS: TestKubeInput_ObservationMethodsOnly (0.01s)
PASS
ok  	github.com/opencharly/plugin-kube/candy/plugin-kube	0.019s
rc=0

2. The authored-input boundary, before and after

The pinned CUE v0.16.1 that charly candy params provisions, over the plugin's own
schema/kube.cue — the same bytes NewMeta serves, evaluated with the same unify-and-validate
shape the host uses.

BEFORE (df96229), every one rc=0 — the three authored forms are admitted:

$ cue export -e '#KubeInput & {method: "apply"}' schema/kube.cue
{
    "method": "apply"
}
rc=0
$ cue export -e '#KubeInput & {method: "delete"}' schema/kube.cue
{
    "method": "delete"
}
rc=0
$ cue export -e '#KubeInput & {method: "nodes", manifest: "m.yaml"}' schema/kube.cue
{
    "method": "nodes",
    "manifest": "m.yaml"
}
rc=0

THIS HEAD, the observation methods still admitted:

$ cue export -e '#KubeInput & {method: "nodes"}' schema/kube.cue
{
    "method": "nodes"
}
rc=0
$ cue export -e '#KubeInput & {method: "raw", kube_resource: "pods"}' schema/kube.cue
{
    "method": "raw",
    "kube_resource": "pods"
}
rc=0

…and the two mutation words, and the field that carried them, refused:

$ cue export -e '#KubeInput & {method: "apply"}' schema/kube.cue
method: 12 errors in empty disjunction:
method: conflicting values "addons" and "apply":
    ./schema/kube.cue:52:137
    --expression:1:1
    --expression:1:23
method: conflicting values "ingress" and "apply":
    ./schema/kube.cue:52:60
    --expression:1:1
    --expression:1:23
method: conflicting values "ingressclass" and "apply":
    ./schema/kube.cue:52:72
    --expression:1:1
    --expression:1:23
method: conflicting values "k3s-post-provision" and "apply":
    ./schema/kube.cue:52:156
    --expression:1:1
    --expression:1:23
method: conflicting values "lb-external-ip" and "apply":
    ./schema/kube.cue:52:118
    --expression:1:1
    --expression:1:23
method: conflicting values "nodes" and "apply":
    ./schema/kube.cue:52:11
    --expression:1:1
    --expression:1:23
method: conflicting values "pods" and "apply":
    ./schema/kube.cue:52:36
    --expression:1:1
    --expression:1:23
method: conflicting values "raw" and "apply":
    ./schema/kube.cue:52:148
    --expression:1:1
    --expression:1:23
method: conflicting values "service" and "apply":
    ./schema/kube.cue:52:106
    --expression:1:1
    --expression:1:23
method: conflicting values "storageclass" and "apply":
    ./schema/kube.cue:52:89
    --expression:1:1
    --expression:1:23
method: conflicting values "wait-nodes" and "apply":
    ./schema/kube.cue:52:21
    --expression:1:1
    --expression:1:23
method: conflicting values "wait-ready" and "apply":
    ./schema/kube.cue:52:45
    --expression:1:1
    --expression:1:23
rc=1
$ cue export -e '#KubeInput & {method: "delete"}' schema/kube.cue
method: 12 errors in empty disjunction:
method: conflicting values "addons" and "delete":
    ./schema/kube.cue:52:137
    --expression:1:1
    --expression:1:23
method: conflicting values "ingress" and "delete":
    ./schema/kube.cue:52:60
    --expression:1:1
    --expression:1:23
method: conflicting values "ingressclass" and "delete":
    ./schema/kube.cue:52:72
    --expression:1:1
    --expression:1:23
method: conflicting values "k3s-post-provision" and "delete":
    ./schema/kube.cue:52:156
    --expression:1:1
    --expression:1:23
method: conflicting values "lb-external-ip" and "delete":
    ./schema/kube.cue:52:118
    --expression:1:1
    --expression:1:23
method: conflicting values "nodes" and "delete":
    ./schema/kube.cue:52:11
    --expression:1:1
    --expression:1:23
method: conflicting values "pods" and "delete":
    ./schema/kube.cue:52:36
    --expression:1:1
    --expression:1:23
method: conflicting values "raw" and "delete":
    ./schema/kube.cue:52:148
    --expression:1:1
    --expression:1:23
method: conflicting values "service" and "delete":
    ./schema/kube.cue:52:106
    --expression:1:1
    --expression:1:23
method: conflicting values "storageclass" and "delete":
    ./schema/kube.cue:52:89
    --expression:1:1
    --expression:1:23
method: conflicting values "wait-nodes" and "delete":
    ./schema/kube.cue:52:21
    --expression:1:1
    --expression:1:23
method: conflicting values "wait-ready" and "delete":
    ./schema/kube.cue:52:45
    --expression:1:1
    --expression:1:23
rc=1
$ cue export -e '#KubeInput & {method: "nodes", manifest: "m.yaml"}' schema/kube.cue
manifest: field not allowed:
    --expression:1:32
rc=1
$ cue export -e '#KubeInput & {method: "nodes", zzz: 1}' schema/kube.cue      # the CALIBRATION
zzz: field not allowed:
    --expression:1:32
rc=1

The last line is the calibration: an invented field is refused the same way, so a rc=1 above is
the named field or word being refused, not the evaluation failing for an unrelated reason.

3. Zero verdicts moved — live, against a real cluster

This host holds a reachable k3s control plane in ~/.kube/config (context
vm-check-k8s-deploy). I drove the SAME request charly's grpcProvider.Invoke sends a kube: verb
(charly/plugin_grpc.go:381 — Reserved = the word, ParamsJson = the full #Op, EnvJson =
{"mode":"live"}) straight into NewProvider().Invoke: once linked to a pristine origin/main
checkout of this plugin, once to this worktree, through a throwaway module under /tmp with
replace github.com/opencharly/plugin-kube/candy/plugin-kube => <tree> (never committed — the repo
gains no probe binary).

$ kubectl --context vm-check-k8s-deploy get nodes --request-timeout=5s
NAME        STATUS   ROLES                  AGE   VERSION
archlinux   Ready    control-plane,master   27d   v1.31.11+k3s1

$ go run .                                                                  # base df96229
nodes (observation)    {"status":"pass","message":"archlinux Ready\n"}
pods (observation)     {"status":"pass","message":"kube-system/coredns-54856c55b8-m4n9m Running\nkube-system/helm-install-traefik-bfgbf Succeeded\nkube-system/helm-install-traefik-crd-wxk55 Succeeded\nkube-system/local-path-provisioner-5b5f758bcf-6gcwn Running\nkube-system/metrics-server-7bf7d58749-lnpws Running\nkube-system/svclb-traefik-a33ab0c8-xmflt Running\nkube-system/traefik-79f8d498fd-mq4kf Running\n"}
apply (removed)        {"status":"fail","message":"kube: apply: exit=1, want 0 (stderr: missing required modifier(s): manifest)"}
delete (removed)       {"status":"fail","message":"kube: delete: exit=1, want 0 (stderr: missing required modifier(s): manifest)"}

$ go run .                                                                  # this head 7f91343
nodes (observation)    {"status":"pass","message":"archlinux Ready\n"}
pods (observation)     {"status":"pass","message":"kube-system/coredns-54856c55b8-m4n9m Running\nkube-system/helm-install-traefik-bfgbf Succeeded\nkube-system/helm-install-traefik-crd-wxk55 Succeeded\nkube-system/local-path-provisioner-5b5f758bcf-6gcwn Running\nkube-system/metrics-server-7bf7d58749-lnpws Running\nkube-system/svclb-traefik-a33ab0c8-xmflt Running\nkube-system/traefik-79f8d498fd-mq4kf Running\n"}
apply (removed)        {"status":"fail","message":"kube: apply: exit=1, want 0 (stderr: unknown kube method \"apply\")"}
delete (removed)       {"status":"fail","message":"kube: delete: exit=1, want 0 (stderr: unknown kube method \"delete\")"}

$ diff <(sed -E 's/^([a-z ()]+) +//' base.out) <(sed -E 's/^([a-z ()]+) +//' head.out)
3,4c3,4
< {"status":"fail","message":"kube: apply: exit=1, want 0 (stderr: missing required modifier(s): manifest)"}
< {"status":"fail","message":"kube: delete: exit=1, want 0 (stderr: missing required modifier(s): manifest)"}
---
> {"status":"fail","message":"kube: apply: exit=1, want 0 (stderr: unknown kube method \"apply\")"}
> {"status":"fail","message":"kube: delete: exit=1, want 0 (stderr: unknown kube method \"delete\")"}
$ head -2 head.out | diff - <(head -2 base.out) && echo "nodes+pods byte-identical"
nodes+pods byte-identical

Exactly two lines move — the two removed methods — and the observation verdicts are
byte-identical on the same live objects. Nothing was applied or deleted: the probe carried no
manifest, so on the base tree each method refuses for a missing modifier rather than mutating
the shared cluster, while on this head it refuses because the method does not exist. That is also
what the base side proves: the words were DISPATCHED before this change and are UNKNOWN after it.

4. The census: no authored config reaches the deleted path

Every submodule's origin/HEAD tip (fetched in this session), all three authored spellings:

The per-repo table has one row per repo (430 rows); exactly two rows are non-zero on the nodes
column (charly|origin/main|0|1 and plugin-kube|origin/main|0|1 — the two places a kube: step is
authored) and no row is non-zero on the apply/delete column. The totals:

$ awk -F'|' 'NR>1{a+=$3; n+=$4} END{print "apply/delete lines:", a, " nodes lines:", n, " repos:", NR-1}' census_kube.out
apply/delete lines: 0  nodes lines: 4  repos: 430
$ bash /tmp/census_kube2.sh              # scalar sugar `kube: <word>` + nested keys
scalar apply/delete: 0  scalar nodes: 3  nested apply/delete lines: 6  repos: 430
$ for r in clawsweeper lobster openclaw; do git -C $r grep -n -E '^[[:space:]]+(apply|delete):' origin/main -- '*.yml'; done
clawsweeper: origin/main:.crabbox.yaml:29:  delete: true
lobster:     origin/main:.crabbox.yaml:29:  delete: true
openclaw:    origin/main:.crabbox.yaml:60:  delete: true
openclaw:    origin/main/.github/crabbox/openclaw-performance-untrusted.yaml:19:  delete: true
openclaw:    origin/main/.github/workflows/duplicate-after-merge.yml:14:      apply:
openclaw:    origin/main/.github/workflows/sticky-disk-cleanup.yml:35:  delete:
$ git show origin/main:charly.yml | grep -cE 'method:[[:space:]]*"?(nodes|apply|delete)"?'
0

All six nested hits are crabbox configuration (delete: true) and GitHub-Actions workflow keys —
none is a kube step. The umbrella root's own charly.yml authors no kube: step at all (the
calibrating nodes count is 0 there too). Migration: empty.

5. Two planted breaks, each red on ASSERTION, restored byte-identical

Plant A — re-admit the words in the dispatcher (requiredModifiers entries plus
case "apply", "delete": return "", nil). It COMPILES and vets clean, so the red below is an
assertion, not a build error:

$ go vet ./...; echo "planted vet rc=$?"
planted vet rc=0
$ go test . -count=1 -run 'TestDispatch_RefusesRemovedMutationMethods|TestKubeInput_ObservationMethodsOnly' -v
    methods_observe_test.go:44: requiredModifiers still carries the mutation method "apply" (requires [manifest]): D-VERB-1 says a verb observes
    methods_observe_test.go:52: dispatch("apply") error = missing required modifier(s): manifest, want an unknown-kube-method refusal so a mutation never reaches the cluster
    methods_observe_test.go:44: requiredModifiers still carries the mutation method "delete" (requires [manifest]): D-VERB-1 says a verb observes
    methods_observe_test.go:52: dispatch("delete") error = missing required modifier(s): manifest, want an unknown-kube-method refusal so a mutation never reaches the cluster
--- FAIL: TestDispatch_RefusesRemovedMutationMethods (0.00s)
--- PASS: TestKubeInput_ObservationMethodsOnly (0.00s)
FAIL
$ cp /tmp/methods.go.orig methods.go && sha256sum -c /tmp/methods.sha256; echo "sha rc=$?"; cmp methods.go /tmp/methods.go.orig; echo "cmp rc=$?"
methods.go: OK
sha rc=0
cmp rc=0

Plant B — re-admit "apply" in the schema enum. This one is CUE-only, compiles, and the params
drift gate does NOT catch it (measured — which is exactly why the test exists):

$ go test . -count=1 -run 'TestKubeInput_ObservationMethodsOnly' -v
    methods_observe_test.go:88: #KubeInput accepts method apply ({method: "apply"}): a mutation method and its manifest field must not be authorable (D-VERB-1)
--- FAIL: TestKubeInput_ObservationMethodsOnly (0.01s)
FAIL
$ charly candy params plugin-kube --check; echo "drift-gate rc=$?"
charly candy params: /home/atrawog/Sync/Atrapub/lo/dsh/opencharly/.worktrees/todo-12-7/plugin-kube/candy/plugin-kube/params/cue_types_gen.go is current
drift-gate rc=0
$ cp /tmp/kube.cue.orig schema/kube.cue && sha256sum -c /tmp/kube_cue.sha256; echo "sha rc=$?"; cmp schema/kube.cue /tmp/kube.cue.orig; echo "cmp rc=$?"
schema/kube.cue: OK
sha rc=0
cmp rc=0

6. The gate arms, on the committed tree

$ gofmt -l . ; echo "gofmt rc=$?"
gofmt rc=0
$ go build ./... ; echo "build rc=$?"
build rc=0
$ go vet ./... ; echo "vet rc=$?"
vet rc=0
$ go test ./... -count=1 ; echo "test rc=$?"
ok  	github.com/opencharly/plugin-kube/candy/plugin-kube	0.017s
?   	github.com/opencharly/plugin-kube/candy/plugin-kube/cmd/serve	[no test files]
?   	github.com/opencharly/plugin-kube/candy/plugin-kube/params	[no test files]
test rc=0
$ grep -c '^=== RUN' /tmp/gate_verbose.log
44
$ grep -c '^--- SKIP' /tmp/gate_verbose.log
1
$ charly box validate          # repo root
charly box validate: OK — checked 1 candy, 7 distros, 7 builders; 0 warnings, 0 errors
$ charly candy params plugin-kube --check
charly candy params: /home/atrawog/Sync/Atrapub/lo/dsh/opencharly/.worktrees/todo-12-7/plugin-kube/candy/plugin-kube/params/cue_types_gen.go is current

The one SKIP is pre-existing and by design: TestKindSaveImageArchive skips visibly when
KIND_LOAD_TEST_IMAGE is unset (kind_load_image_test.go:28, "live or skip").

7. The live arm — what ran, and what could not

What ran live: the changed path itself. The provider's Invoke — the exact entry the host
calls — executed against a real k3s control plane (§3), returning byte-identical observation
verdicts and unknown kube method "apply" / "delete" for the two removed words. The schema
boundary executed in the pinned CUE engine (§2), and charly box validate ran the repo's structural
gate over the real candy manifest and schema.

What could not run, and is not substituted by a compile check: the assembled R10 beds
(check-k3s, check-k8s-deploy, check-kindcluster-*) compose this candy by a released ref
(@github.com/opencharly/plugin-kube/candy/plugin-kube:<tag>), so they cannot be pointed at a
pre-merge plugin tree; the bed leg is the consumer's pin bump, exactly as producer-first requires.
No bed authors either removed method (§4), so a bed would exercise unchanged code. The other
kube: context on this host (vm-check-k3s-vm) is unreachable — its endpoint answers with a
certificate this host does not trust — so it was not used.

Evidence fence

$ python3 -c 'import json; d=json.load(open("/home/atrawog/.dsh/storages/session_projcache/sessions/db0a2722-1c6a-408c-84b4-d3ad7ba32968.json")); ms=d["record"]["rows"]["modelSelection"]["val"]; print(ms["lastUsed"]["provider"], ms["lastUsed"]["model"])'
ollama-cloud deepseek-v4.1-flash
$ dsh --version
0.2.1-rc.2

The tier names the runtime's own names, read out of the session record by key.

Rulebook compliance

Rule How this change satisfies it
R0 — skills first Loaded before any code change: /charly-internals:git-workflow (the git/PR row) and /charly-internals:strict-policy. The owning repo's AGENTS.md was read at origin/main (Part II #4) and selects /charly-kubernetes:kubernetes, /charly-kubernetes:check-k8s and /charly-internals:plugin; all three were then loaded. Honest order: the first edit (the new test file) preceded those three loads by a few minutes; they landed before any gate run and before the commit, and nothing they state changed the approach — the schema-source-owns-params contract they describe was already what was followed (charly candy params, never a hand edit). Reported rather than glossed.
R1 — RCA every anomaly, then fix it or file it Six findings, each RCA'd before remediation. (a) charly box validate went red on my own edit: an unquoted ": " inside the skill's YAML front-matter scalar (Every method OBSERVES (D-VERB-1): no method writes). Mechanism: a colon+space is illegal in a plain block scalar. Fix: rephrase to an em dash. Missed control: I edited front-matter without re-running the repo's structural gate. (b) My first gate run from the repo ROOT returned directory prefix . does not contain main module — RCA: the Go module lives at candy/plugin-kube, not the repo root; re-run in the module (rc=0). Not a code defect. (c) My first census instrument was BROKEN: the patterns were shell variables inside a single-quoted git submodule foreach body, so they were unset in each submodule and the empty regex matched every line — betrayed by identical counts for both predicates (1252|1252). Fixed by inlining the patterns, then CALIBRATED (a known-positive word must match). (d) gh search code --owner opencharly returns empty even for a known positive (method: nodes), so it is unusable as an instrument here; abandoned for the git-based sweep rather than trusted. (e) The params drift gate does NOT catch an added schema enum word (measured in Plant B) — so the enum is guarded by the new test alone, stated rather than assumed. (f) A cross-repo stale reference surfaced: charly's dispatch fixture names method: apply. Non-blocking and separable → filed as opencharly/charly#1117. Zero warnings: charly box validate reports 0 warnings, 0 errors.
R2 — no duplication The method words have ONE home, schema/kube.cue; params/cue_types_gen.go is generated from it, and the test reads the plugin's OWN embedded schemaFS rather than a second copy of the schema. The test's observationMethods list is a CONTROL — the independent statement of the intended surface, which is the legitimate role of an expectation, not a second implementation. kindToGVR (used by wait-ready) is untouched; only kindToPluralResource, whose only caller was the deleted gvrForObject, is removed.
R3 — no workarounds No sleep, retry, suppression, magic number or fallback. The refusal is the dispatcher's own unknown kube method path — nothing gates on an env var or a build tag. The live probe was a throwaway driver, not a shim in the product, and the repo gains no binary.
R4 — product before prose The product is the refusal: the dispatcher no longer knows the words and the served schema no longer admits them. The prose (README, candy description:, the skill, the triggers: line) is corrected to describe the surface that now exists — never to route around a defect.
R5 — delete legacy completely Claim-keyed grep over the repo after the change, pasted: grep -rn '13-method|apply/delete|runApply|runDelete|kindToPluralResource|readYamlDocs|gvrForObject|Manifest' --include=*.go --include=*.md --include=*.yml --include=*.cue . | grep -v '^./CHANGELOG/' returns exactly two live hits, both intended: candy/plugin-kube/charly.yml:46 ("the former apply/delete methods are removed, #32") and candy/plugin-kube/deploy.go:230 (the DEPLOY path's own kubectl apply -k / kubectl delete -k, not the verb). CHANGELOG/ hits are history. No shim, no alias, no dual path, nothing deferred.
R6 — preserve user work and Git safety git status --short was empty before the commit, after it, and after each plant/restore; the work ran on feat/kube-observation-verbs branched off fresh origin/main df96229 in a session worktree; both plants were restored and verified by sha256sum -c + cmp; no reset, no force-push, no push to main, and no submodule checkout edited (the umbrella's own tree is untouched).
R7 — prove behavior, not compilation The coverage fails without the change in TWO independent arms — dispatcher and served schema (§1) — and the changed path executes live at the provider boundary against a real cluster (§3). Emitted artifacts are validated at their boundary: the schema is compiled from the embedded schemaFS (the bytes served) with the host's own unify-and-validate shape, and the generated params/ is validated by the drift gate the pipeline declares. Both plants go red on ASSERTIONS with go vet rc=0 on the planted tree (§5).
R8 — live or skip The one live service crossed is the Kubernetes API, and it ran LIVE (a reachable k3s control plane, §3) — never mocked. The pre-existing image test skips VISIBLY when KIND_LOAD_TEST_IMAGE is unset. The unreachable sibling context is named, not silently omitted.
R9 — binary equals source The plugin binary under test was built from THIS tree: the driver links github.com/opencharly/plugin-kube/candy/plugin-kube through a replace to the worktree, so the process that answered unknown kube method "apply" is this commit. charly itself is used only as a TOOL (the repo's structural gate and the params generator) at 2026.306.0314; the change adds no runtime OS dependency, so packaging: is untouched.
R10 — fresh disposable proof The change-class gate for this repo ran on the COMMITTED tree 7f91343 with no warnings (§6): gofmt -l empty, go build ./..., go vet ./..., go test ./... -count=1 (44 tests started, 1 visible skip), charly box validate (0 warnings, 0 errors), charly candy params --check. The assembled beds cannot be pointed at a pre-merge plugin (released-ref composition) and are named as the consumer's next leg rather than replaced by a compile check (§7).
RDD / ADE / SDD RDD — the premise was MEASURED before implementing: the violation read at file:line, and the authored-use census run with a CALIBRATED predicate over 430 repo tips before any code moved. The row was treated as a claim, not a specification. ADE — the candy's plan: is unchanged (kube: {method: nodes}); no step was added and the plan still names a live observation method. SDD — schema first: schema/kube.cue changed, then params/ regenerated through the sanctioned charly candy params pipeline, drift gate green.
Hard cutover One commit: dispatcher, schema, generated params, dead helpers, tests and every prose surface land together — no shim, no deprecation window, no follow-up inside the scope.
Clean architecture / placement The deletion stays where the code lives: the plugin that owns the client-go stack. Core is untouched, no seam is added, and the schema keeps its one home.
Disposable-only autonomy N/A — nothing was deployed, updated or removed. The live probe issued only nodes and pods reads against an existing cluster; no disposable: true target was touched and no cluster state changed.

Change classification

Plugin surface change inside github.com/opencharly/plugin-kube/candy/plugin-kube — the verb:kube
capability's method enum and dispatcher. No image is built here and no deploy target moves.

  • What changes for a consumer: an authored kube: step carrying method: apply or
    method: delete, or a manifest: field, is now refused — at load by the served #KubeInput
    schema, and at dispatch as unknown kube method. An authored kube: step using any of the eleven
    observation methods loads and runs exactly as before: byte-identical verdicts for nodes/pods
    against the same live cluster (§3).
  • Who is affected: nobody in the org's tree — 0 authored uses across 430 repo tips in all three
    spellings (§4), so the pin bump needs no config migration anywhere.

Breaking change + rollback: it breaks exactly one class — an authored kube: {method: apply} or
{method: delete} step (or a manifest: field beside an observation method). That class is empty
in the org: 0 of 430 repo tips author either word, and the umbrella root's own charly.yml authors
no kube: step at all. The migration for anyone outside the org who DID author one is the one the
design already names: the state change becomes a deploy (kubectl apply -k on the egress-validated
tree, which is charly deploy add), a package: helm: action, or a run: step. Rollback is the
previous release tag: the plugin carries no on-disk state, the field is gone from the served def,
and there is no migration to undo — re-pinning to the tag before this merge restores the two
methods verbatim.

Filed issues

Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)

…(D-VERB-1)

DESIGN.md §23 D-VERB-1: "A verb observes and never changes state". The `kube:`
verb shipped `apply` (dynamic Create, then Update on AlreadyExists) and `delete`
(dynamic Delete) beside eleven observation methods. Measured at origin/main
df96229: methods.go:44-45 (requiredModifiers), :89-92 (the dispatch cases),
:512/:521 (Create/Update), :556 (Delete).

The authored-use census is empty: 0 uses of the two methods in any spelling
(the map `method:` key, the `kube: <word>` scalar sugar, a nested key) across
every submodule's origin/HEAD tip — 430 repos, and the same predicate finds the
3 live `method: nodes` uses.

Removed with them: `#KubeInput.manifest` (their only reader), `readYamlDocs`,
`gvrForObject`, `kindToPluralResource`, and the four imports that served those.
The served schema is what closes it for authored config: #KubeInput now refuses
`method: apply`, `method: delete` and `manifest` while admitting all eleven
observation methods, and params/ is regenerated by `charly candy params
plugin-kube` (the drift gate is green).

Live: the same provider entry charly dispatches (Reserved=kube, the full #Op as
params_json, mode=live) against the reachable k3s cluster returns byte-identical
`nodes`/`pods` verdicts before and after, and `unknown kube method "apply"` /
`"delete"` for the removed two.

Closes #32.

Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: 7f91343182017f30365e318fcedc412eeb8c0e5e (branch: feat/kube-observation-verbs)

Security screen: PASS — removing the two mutation methods strengthens D-VERB-1 (no weakened guardrail); no secrets/egress; go.mod only drops the // indirect marker (no version move, go.sum unchanged).

Checklist: All applicable rules PASS or NA. (Comment thread is empty — nothing to disposition.)

Non-blocking note: the assembled R10 beds (check-k3s, check-k8s-deploy, check-kindcluster-*) compose this candy by a released ref, so they structurally cannot be pointed at a pre-merge plugin tree — this is proof that cannot exist yet, not a dodge. The changed path is instead verified live at the provider boundary (§3, byte-identical observation verdicts + unknown kube method) and by a test that fails without the change (§1); SDD holds (schema change → regenerated params/, drift gate green); one-commit hard cutover; attribution footer and ## Filed issues present.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) November 11, 2026 01:52
@github-actions
github-actions Bot merged commit d19e95d into main Nov 11, 2026
3 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Nov 11, 2026
github-actions Bot pushed a commit to opencharly/opencharly that referenced this pull request Nov 11, 2026
…apply/delete, and the design ledgers that cited it follow (#987)

## Summary

`plugin-kube`'s umbrella gitlink advances from `df962299eaeedc4dd83e99ca1e18aef0f4ad203c` to the
commit its `main` serves, `db0392301c533cb78de35e475d3bcff432bf1dcd` — 4 merged commits, and the
recorded pin was an ancestor of the served line, so this is the ordinary `behind` remedy rather
than a re-pin of a divergent lineage:

```console
$ git -C plugin-kube rev-list --count df962299eaeedc4dd83e99ca1e18aef0f4ad203c..db0392301c533cb78de35e475d3bcff432bf1dcd
4
$ git -C plugin-kube log --format='%h %s' df962299ea..db0392301c
db03923 docs: add CHANGELOG 2026.315.1321 for PR #35
921757d fix(schema): derive the kube method union from one S3 vocabulary table (#35)
bafa29d docs: add CHANGELOG 2026.315.0153 for PR #33
d19e95d fix(kube)!: remove the verb's two mutation methods — a verb observes (D-VERB-1) (#33)
```

The advance carries **two schema commits**, which is why this is not a bare pointer move:

- **`opencharly/plugin-kube#33`** (squash `d19e95d1cad420f152a1e983430d437269b9f8d3`, tag
  `v2026.315.0153`) deletes the `kube:` verb's `apply` (`Create`, then `Update` on
  `AlreadyExists`) and `delete` (`Delete`) methods and the `manifest` field that existed only to
  carry their YAML — **14 methods → 12**: 11 observations plus the plugin-internal
  `k3s-post-provision` the k3s finalization synthesizes. The authority it cites is
  **`opencharly/plugin-kube#32`**, the D-VERB-1 audit that established a verb observes.
- **`opencharly/plugin-kube#35`** (squash `921757d07f2e8258c6605fd2d6bddf5418d9b0fc`, tag
  `v2026.315.1321`) rewrites the surviving union as a derived table — `_kubeMethod` plus
  `or(_kubeMethodWord)` — because the spelled-out alternative-by-alternative form is itself a
  D-PAT-3 `union` violation. That commit is what moves the citation `design/dulling.tsv` carried
  into a line that no longer holds the construct.

### The three ledger surfaces that advance falsifies

They are one change, not three, because a pin advance that changes a schema is exactly the event
these three records exist to notice:

1. **`design/dulling.tsv`** — the `verb:kube` row's `today` cell said *"dispatches 14 cluster
   operations (…apply/delete…)"* and cited `plugin-kube/candy/plugin-kube/schema/kube.cue:44`.
   At the new pin that line is `_kubeMethod: {` — the derived table's header, inside a different
   definition — so the row is corrected to **12 methods** (11 observations plus the internal
   `k3s-post-provision`, with the deleted pair named as gone) and its citation is re-anchored to
   the definition the old range covered, `<path>:#KubeInput`, which a pin advance cannot falsify.
2. **`design/cite-baseline.tsv`** — regenerated with `--emit-baseline`. A name citation needs no
   byte record, so exactly one row leaves (the old `44-44` line citation) and nothing else moves.
3. **`design/dpat-baseline.tsv`** — regenerated with `--emit-census`. Exactly one `union` row
   leaves (the spelled-out 14-word disjunction), and **no row is added**: the census moves
   383 → 382, union 148 → 147.

And one prose surface the advance falsifies, because it was written *about* the pending advance:
`TODO.md`'s `12.7` record said the umbrella gitlink *"is still `df962299…`"* and called the
advance a deferred wave. Both statements are false the moment this lands, so its two cells now
say what happened.

This closes **#983**, the issue that carried the advance. The D-PAT census it
lowers is tracked by **#945**; the campaign this leg belongs to is
**#950**.

### The files in this diff

```console
$ git diff --stat origin/main...HEAD | tail -1
 5 files changed, 6 insertions(+), 8 deletions(-)
```

| File | What changed |
|---|---|
| `plugin-kube` | the gitlink: `df962299eaeedc4dd83e99ca1e18aef0f4ad203c` → `db0392301c533cb78de35e475d3bcff432bf1dcd`, rolled in the checkout and staged with `git add`, not by an org-wide `charly task sync`. |
| `TODO.md` | `12.7`'s two cells: the gitlink is described as the one #983 advanced rather than one that "is still" the old commit, and the advance is no longer called deferred. |
| `design/dulling.tsv` | the `verb:kube` row: 14 → 12 methods, the deleted `apply`/`delete`/`manifest` named as gone, the citation re-anchored from a line to `#KubeInput`. |
| `design/cite-baseline.tsv` | one row removed by `--emit-baseline`: the `verb:kube` line citation `44-44`, digest `d8017d99f49fdbe2`. |
| `design/dpat-baseline.tsv` | one row removed by `--emit-census`: the `union` census row for the spelled-out method disjunction. |

## How tested

Every command below ran in the session worktree `.worktrees/pin-kube-983/opencharly`, branched off
`origin/main` `b140dfbb0f88ef5493017837ffcba487871b0b1a`, on the tree this commit publishes.

The run order was the one PART II #2 and #3 mandate: `bash scripts/init-submodules.sh --root .`
(13 of 13 derived paths materialized), `bash charly/scripts/bootstrap-charly.sh`, then
`CHARLY_INIT_PATHS=plugin-kube ./charly/bin/charly task init`.

### 1. The pin moves to the commit its remote serves

```console
$ git ls-remote https://github.com/opencharly/plugin-kube refs/heads/main
db0392301c533cb78de35e475d3bcff432bf1dcd	refs/heads/main
$ git ls-tree HEAD -- plugin-kube
160000 commit db0392301c533cb78de35e475d3bcff432bf1dcd	plugin-kube
```

Both sides are the same 40-character id, which is the whole of the pin's currency claim. The
advance was rolled in the checkout (`git -C plugin-kube checkout db0392301c…`) and staged with
`git add plugin-kube` — the narrow mechanism — deliberately **not** the org-wide
`./charly/bin/charly task sync`, which advances every pin this repo declares and would have
carried any unrelated drift into this PR.

### 2. Currency: before materialization, after it, and after the advance

The instruction that produced this leg names a trap worth recording exactly, because the first
reading is *wrong in a way that reads as complete*.

Before `plugin-kube` had a checkout, the currency verb could not run the ancestry test, printed the
unjudged class, and — the load-bearing half — printed an **empty producer-first leg list** while a
4-commit advance existed:

```console
$ ./charly/bin/charly task pins --param MODE=currency | grep -E 'currency:'
      currency: 1 of 409 pin(s) NOT current [408 cur, 1 differs (no checkout to judge ancestry)]; intents: 403 upstream leaf/leaves (403 implicit), 6 derived-from edge(s); NOT CURRENT: plugin-kube: differs (no checkout to judge ancestry); intent upstream:main (implicit: .gitmodules branch=); recorded df962299ea; served db0392301c (branch); producer-first legs: none reachable from this repo
```

After `CHARLY_INIT_PATHS=plugin-kube ./charly/bin/charly task init` the same verb on the same tree
judges the pin and names the leg:

```console
$ ./charly/bin/charly task pins --param MODE=currency | grep -E 'currency:'
      currency: 1 of 409 pin(s) NOT current [1 behind, 408 cur]; intents: 403 upstream leaf/leaves (403 implicit), 6 derived-from edge(s); NOT CURRENT: plugin-kube: behind; intent upstream:main (implicit: .gitmodules branch=); recorded df962299ea; served db0392301c (branch); producer-first legs: plugin-kube (df962299ea -> db0392301c)
```

After the advance is staged, the tree is CURRENT on every pin it declares:

```console
$ ./charly/bin/charly task pins --param MODE=currency | grep -E 'currency:'
      currency: 0 of 409 pin(s) NOT current [409 cur]; intents: 403 upstream leaf/leaves (403 implicit), 6 derived-from edge(s); producer-first legs: none — every pin is at the ref its intent names
```

`0 of 409` is the answer to D, and it is `0 of 409` because `plugin-kube` was the only pin that was
behind — not because the wave flattened anything else.

### 3. The method count the row now states

The number in the row is the pinned table's own, counted at the pin, not carried over from the
prose it replaces:

```console
$ git -C plugin-kube show db0392301c533cb78de35e475d3bcff432bf1dcd:candy/plugin-kube/schema/kube.cue | sed -n '/^_kubeMethod: {/,/^}/p' | grep -cE '^[[:space:]]*"[a-z0-9-]+":[[:space:]]*\{\}$'
12
```

The surviving words are the 11 observations (`nodes`, `wait-nodes`, `pods`, `wait-ready`,
`ingress`, `ingressclass`, `storageclass`, `service`, `lb-external-ip`, `addons`, `raw`) plus the
internal `k3s-post-provision`; `apply`, `delete` and `manifest` survive only inside the explanatory
comment that records their deletion.

### 4. The citation control named the falsified row, and the re-anchor clears it

The control failed at the new pin before the row was re-anchored — which is the coverage proof for
this change, since it is the gate that would have shipped the stale citation:

```console
$ bash scripts/design-cite.sh .
  FAIL dulling.tsv:verb:kube: plugin-kube/candy/plugin-kube/schema/kube.cue:44 now sits inside _kubeMethod, not the #KubeInput this row was affirmed against (pin db0392301c53) — the pin advance moved the construct out from under the citation
design-cite: FAILED (1 finding(s))
```

After the re-anchor and the `--emit-baseline` regeneration, the same control is green and the
baseline has shrunk by exactly the row a name citation does not need:

```console
$ diff <(git show origin/main:design/cite-baseline.tsv) design/cite-baseline.tsv
158d157
< verb:kube	plugin-kube/candy/plugin-kube/schema/kube.cue	44-44	#KubeInput	d8017d99f49fdbe2
$ bash scripts/design-cite.sh .
design-cite: 3 citation(s) of a repository this tree does not pin are unchecked (not findings)
design-cite: every citation resolves at its pin; 158 line citation(s) still hold the construct and the bytes they were affirmed against
```

### 5. The D-PAT census: one row leaves, none is added

`--emit-census` is applied exactly as emitted. The diff is one removal and no addition, which is
the classification the instruction asked for: a census that *added* a row would be a new violation
rather than a reconciliation, and this one does not.

```console
$ diff <(git show origin/main:design/dpat-baseline.tsv) <(bash scripts/design-dpat.sh --emit-census .)
107d106
< plugin-kube/candy/plugin-kube/schema/kube.cue	union	method: ("nodes" | "wait-nodes" | "pods" | "wait-ready" | "ingress" | "ingressclass" | "storageclass" | "service" | "lb-external-ip" | "addons" | "apply" | "delete" | "raw" | "k3s-post-provision") @go(Method,type=string)	1
```

### 6. The blast radius: 0 authored uses, at the pins this tree ships

The breaking half of `#33` is real, so it is measured rather than asserted. The predicate is
calibrated BOTH ways first — it matches each authored spelling, and it matches nothing for an
observation — and only then swept over every pinned tip:

```console
$ pat='(^|[[:space:]])kube:[[:space:]]*(apply|delete)[[:space:]]*$|(^|[[:space:]])method:[[:space:]]*(apply|delete)[[:space:]]*$'
$ printf 'kube: apply\n' | grep -cE "$pat"
1
$ printf -- '- check: x\n  kube:\n    method: apply\n' | grep -cE "$pat"
1
$ printf -- '- check: x\n  kube:\n    method: nodes\n' | grep -cE "$pat"
0
$ common=$(git rev-parse --path-format=absolute --git-common-dir); tips=0; hits=0
$ for p in $(git ls-files --stage | awk '$1=="160000"{sub(/.*\t/,"");print}'); do
    sha=$(git ls-files --stage | awk -F'\t' -v p="$p" '$2==p{split($1,m," ");print m[2]}')
    if [ -e "$p/.git" ]; then s=$(git -C "$p" rev-parse --path-format=absolute --git-dir); else s="$common/modules/$p"; fi
    git --git-dir "$s" cat-file -e "$sha" 2>/dev/null || { printf 'SKIP %s (pin not in store)\n' "$p"; continue; }
    tips=$((tips+1))
    o=$(git --git-dir "$s" grep -n -E "$pat" "$sha" -- '*.yml' '*.yaml' 2>/dev/null); [ -n "$o" ] && { hits=$((hits+1)); printf '%s\n' "$o"; }
  done
tips read at their pin: 409; tips carrying an authored kube apply/delete: 0
```

All 409 declared gitlinks were read at their pinned commit from their own object store; none had
to be skipped. The denominator is the pins this tree SHIPS rather than the checkout tips a session
happens to have — the question "does anything authored use the removed methods" is about what the
umbrella publishes. The `manifest` field's own scope is the same set: it existed only to carry the
deleted methods' YAML, and the 38 authored `kube:` mapping blocks across those same tips carry no
`manifest:` key.

### 7. The gates, on the committed tree

The change class is a pin/gitlink advance plus the design ledgers that judge it, so the gate that
owns it is the umbrella's own: `charly task verify` (the pin contract) and the seven DESIGN.md
controls. Both ran on this commit with zero warnings.

```console
$ bash scripts/design-check.sh 2>&1 | tail -23
== 4/7 the capability ledger
design-ledger: 264 rows vs 264 parity capabilities; citations resolve and name their subject; enums hold

== 5/7 every citation into a pinned module, at the pin
  note dulling.tsv:command:generate-podcast: candy/desk-plugin-consumer/charly.yml is in the repository plugin-generate-podcast, cited at a commit — this tree does not pin plugin-generate-podcast, so a commit id cannot drift and the control cannot read it
  note dulling.tsv:kind:group: candy/plugin-group/schema/group.cue is in the repository plugin-group, cited at a commit — this tree does not pin plugin-group, so a commit id cannot drift and the control cannot read it
  note dulling.tsv:verb:firecracker: candy/plugin-firecracker/schema/firecracker.cue is in the repository plugin-firecracker, cited at a commit — this tree does not pin plugin-firecracker, so a commit id cannot drift and the control cannot read it
design-cite: 3 citation(s) of a repository this tree does not pin are unchecked (not findings)
design-cite: every citation resolves at its pin; 158 line citation(s) still hold the construct and the bytes they were affirmed against

== 6/7 the schema patterns of every pinned plugin module
design-dpat: 121 pinned modules, 204 CUE files in scope, 1 under a vendor/ tree (foreign mirrors, out of scope)
design-dpat: 382 known violations (close 62, absence 86, open 68, opaque 0, dup 19, union 147) — tracked by #945
design-dpat: no new violation, and the census matches the tree

== 7/7 every pin's relation to a release tag
design-pintag: 409 pinned module(s) in the index, 409 judged, 0 skipped (no module store)
design-pintag: 409 pin(s): tagged 380, changelog-tip 21, changelog-chain 0, pre-release-process 2, not-applicable 5, untagged 1
design-pintag: 1 recorded in design/pintag-baseline.tsv (tracked by #793 — the gap the live instances were filed under (the mechanism is opencharly/.github#286))
design-pintag: tags read from each pin's own module store as GIT resolves it (/home/atrawog/Sync/Atrapub/lo/dsh/opencharly/.git/modules, a linked worktree keeps its own under worktrees/); a tag that was never fetched into a store is invisible to this reading (run --remote to cross-check the untagged pins)
design-pintag: every pin is at a tag, one CHANGELOG commit above one, or explained

design-check: all controls pass
$ ./charly/bin/charly task verify 2>&1 | grep -E '^task verify:'
task verify: 48 step(s), 0 failed, 0 skipped
```

The binary those gates ran was rebuilt from this tree's `charly` pin immediately before the final
run, and reports the CalVer its source stamps:

```console
$ bash charly/scripts/bootstrap-charly.sh 2>&1 | tail -1
bootstrap-charly: built ./bin/charly (2026.315.0907)
$ ./charly/bin/charly version
2026.315.0907
```

The attribution tier rests on the harness that produced all of it:

```console
$ dsh --version
0.2.1-rc.2
```

Session `/home/atrawog/Sync/Atrapub/lo/dsh/opencharly/.worktrees/pin-kube-983/opencharly`,
DeepSeek Harness `0.2.1-rc.2` (`dsh`, profile `web`), model `ollama-cloud/deepseek-v4.1-flash`,
session id `46676099-1034-4489-89e6-2713d8962163`, subagent of
`session-f8a0eb3b-2677-47a9-8139-49b1ba39440c`, on `Linux 7.2.11-arch1-1`.

## Rulebook compliance

| Rule | How this change answers it |
|---|---|
| **R0 — skills first** | `/charly-internals:git-workflow`, `/charly-internals:strict-policy`, `/charly-internals:cutover-policy` and `/charly-kubernetes:check-k8s` were loaded before the first tool action, and `AGENTS.md` Part II #3 plus "Commit, push, land" were read for the pin contract and the body rules. |
| **R1 — RCA, then fix or file** | One anomaly: the citation control failed at the new pin. RCA: `#35` replaced the spelled-out union with `_kubeMethod`, so line 44 moved from `#KubeInput`'s method field to the derived table's header — the mechanism is a producer schema change, the missed control is that a LINE citation cannot survive one, the blast radius is the single `verb:kube` row, and the root fix is the name citation the ledger offers for exactly this. One divergence was filed instead of fixed: the marketplace corpus still publishes the deleted methods, because its own ref list pins `plugin-kube` 5 commits back and the corpus is another repo — opencharly/marketplace#611, under `## Filed issues`. Both gates report zero warnings. |
| **R2 — no duplication** | Every baseline was produced by its own emitter (`--emit-baseline`, `--emit-census`) rather than hand-written, so no second copy of a record exists; the row's count is the pinned table's count, not a parallel transcription. The advance moved one pin with the narrow mechanism instead of running the org-wide wave over 409 pins to move one. |
| **R3 — no workarounds** | No sleep, retry, suppression or fallback. The gitlink moved by rolling the checkout to the merged remote tip and staging it, and the currency answer was read from the verb rather than assembled by hand. |
| **R4 — product before prose** | The prose moved only after the pinned schema was read at its pin: the count, the method list and the citation all follow the schema, and no document is reworded to route around a defect. |
| **R5 — delete legacy completely** | The deleted surface is named as gone in the row, and a claim-keyed sweep over the tree's own records (`git grep -nE '\bkube:' -- '*.md' '*.tsv' '*.cue'`, filtered to `apply`/`delete`/`manifest`) returns only `CHANGELOG/` history and the two records this change rewrites — no live claim that the verb still mutates survives. |
| **R6 — user work and git safety** | `git status --short` was empty in this worktree before the advance, and `git stash list` empty; the work ran in a session worktree off fresh `origin/main`; nothing was reset, rewritten, force-pushed or bypassed, and the branch is pushed to a PR rather than to `main`. |
| **R7 — prove behaviour** | The proof fails without the change and passes with it: the citation control names the falsified row at the new pin (section 4) and is green after the re-anchor; the census emission is one removal with no addition; and the row's count is the pinned table's, counted at the pin. |
| **R8 — live or skip** | N/A — no boundary in this diff crosses a live service: it moves a gitlink and the records that judge it, and runs no probe, deploy or credential. |
| **R9 — binary equals source** | The binary was rebuilt from this tree's `charly` checkout before the final gate run (`bootstrap-charly: built ./bin/charly (2026.315.0907)`) and `charly version` reports the same CalVer; no shared install was used. |
| **R10 — fresh proof, on the committed tree** | The gate that owns this class is the umbrella's pin gate plus the seven DESIGN.md controls, both run on the commit this PR publishes (section 7). No `disposable: true` target is built, deployed or rebuilt, because nothing in this diff is a runtime path — and the schema change itself was proved in the repo that owns it, by `plugin-kube`'s own gate for `#33` and `#35`, which are the merged commits this advance consumes. |

## Change classification

A **pin advance that carries a schema change** — a hard cutover for anything authored against the
`kube:` verb, landed whole in one change so no tree is left half-advanced.

- **Diff shape:** one gitlink, three design-ledger records, and one `TODO.md` record.
- **Schema surface:** the `kube:` check verb goes from 14 methods to 12; `apply`, `delete` and the
  `manifest` field are refused by the served `#KubeInput` at the pinned commit.
- **Not run here, on purpose:** `charly task sync`. It is an org-wide wave; this change moves one
  pin, and the narrow mechanism leaves every other pin exactly where the base had it, which is what
  the `0 of 409` currency reading then proves.
- **Rollback:** a single commit, and it reverts whole — `git revert` restores the gitlink to
  `df962299eaeedc4dd83e99ca1e18aef0f4ad203c` and the three ledger records to the state that cites it.

**Breaking change + rollback:** not "none" — a consumer that authored `kube: apply`, `kube: delete`
or a `manifest:` inside a `kube:` map loses that method and now fails schema validation, and the
`manifest` field is gone with it. The measured blast radius is **0 authored uses across all 409
pinned submodule tips this tree ships** (`tips read at their pin: 409; tips carrying an authored
kube apply/delete: 0`, with the predicate calibrated on both authored spellings and on an
observation in section 6), so nothing in the tree changes behaviour; what a consumer must do is
replace a mutating `kube:` step with a `run:` step or a field, per D-VERB-1. Rollback is the single
`git revert` above, and it needs no migration because the pinned schema is re-read from the gitlink.

## Filed issues

- **opencharly/marketplace#611** — the corpus still publishes `/charly-kubernetes:check-k8s`'s
  `apply` / `delete` method rows, the `manifest` field, and the `kindToPluralResource()` note,
  because `candy/charly-marketplace/charly.yml` pins `plugin-kube` at `v2026.296.1732`, 5 commits
  behind `v2026.315.1321`. Non-blocking for this PR — the source is already correct at the pin, and
  the corpus is generated in another repo whose ref list must move with its own regenerate — but
  the published body is wrong until it does, so it is filed with the RCA, the blast radius and the
  durable half of the fix (a control that refuses a ref more than one release behind its producer).

Agent: charly (subagent of session-f8a0eb3b-2677-47a9-8139-49b1ba39440c) · session 46676099-1034-4489-89e6-2713d8962163
*Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)*

Co-authored-by: aitrawog <[email protected]>
github-actions Bot pushed a commit to opencharly/charly that referenced this pull request Nov 11, 2026
…xture (#1117) (#1120)

The fixture's canonical out-of-process verb request modelled
`{"method": "apply"}` for the `kube:` verb, and the two assertions reading
`PluginInput["method"]` followed it. `apply` and `delete` — and the `manifest`
field that existed only to carry them — were deleted from the verb in
opencharly/plugin-kube#33 (DESIGN.md §23 D-VERB-1: a verb observes and never
changes state), so the served `#KubeInput` refuses all three and the fixture
modelled a payload no author could write.

It now models `nodes`, the natural observing method, and both assertions
follow it. One test fixture, three lines: no product code, no schema, no
authored config, no pin.

Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

Co-authored-by: aitrawog <[email protected]>
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.

1 participant