Repository navigation
fix(kube)!: remove the verb's two mutation methods — a verb observes (D-VERB-1) - #33
Conversation
…(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)
Review — PASSHead SHA: Security screen: PASS — removing the two mutation methods strengthens D-VERB-1 (no weakened guardrail); no secrets/egress; Checklist: All applicable rules PASS or NA. (Comment thread is empty — nothing to disposition.) Non-blocking note: the assembled R10 beds ( Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
…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]>
…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]>
Summary
DESIGN.md§23 states D-VERB-1: "A verb observes and never changes state: a state change is afield (§14.4), and the one step that changes state is a
run:step (D-VERB-5)." Thekube:verbshipped thirteen methods, and two of them write to the cluster. Measured at
origin/maindf96229:methods.go:44"apply": {"manifest"}inrequiredModifiersmethods.go:45"delete": {"manifest"}inrequiredModifiersmethods.go:89-92case "apply": return runApply(…),case "delete": return runDelete(…)methods.go:512,521runApplycallsiface.Create, theniface.UpdateonAlreadyExistsmethods.go:556runDeletecallsiface.Deleteschema/kube.cuemethod: (… | "apply" | "delete" | …), plusmanifest?: string, which only they readEvery other method observes:
nodes,wait-nodes,pods,wait-ready,ingress,ingressclass,storageclass,service,lb-external-ip,addons, andraw(whose only API calls areiface.Getandiface.List,methods.go:588,594).What the premise measured to.
TODO.md12.7 says the verb "exposesapplyanddelete, whichare 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/HEADtip — 430 repos, the map keymethod:, the scalarkube: <word>sugar, and a nested key — returns 0 hits for the two words, while the samepredicates 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'skubectl apply -kon theegress-validated Kustomize tree), the
package: helm:action, or acommand:step (TODO.md12.7).The
helm:side of the same row is already observation-only —plugin-helm's verb serves exactlyfour 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 thischange 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
requiredModifiersentries and the two dispatch cases;runApplyandrunDelete;readYamlDocs,gvrForObject(methods.go) andkindToPluralResource(cluster.go), the lastusers of the manifest path; the four now-unused imports (
errors,io,os,yamlutil); and#KubeInput.manifest, withparams/regenerated by the sanctioned pipeline. The served schema iswhat closes it for authored input:
#KubeInputrefusesmethod: apply,method: deleteandmanifest, while admitting all eleven observation methods — at the boundary the host validatesevery authored step at (
def.Unify(input).Validate(cue.Concrete(true))in charly'svalidateAuthoredPluginInput).This is
TODO.mditem 12.7, tracking issue #32, under the campaignsequence 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(-).candy/plugin-kube/methods.gorequiredModifiersentries, the two dispatch cases,runApply/runDeleteand the YAML-ingestion helpers are DELETED (140 lines); the four imports that served them go with them; the package andnolintcomments say 11 observation methods and cite D-VERB-1.candy/plugin-kube/schema/kube.cue#KubeInput.methoddrops"apply"and"delete";manifest?: stringis deleted with them; the def's comment states that every method observes and names both removals.candy/plugin-kube/params/cue_types_gen.gocharly candy params plugin-kube(never hand-edited):Manifestis gone, and the schema's comment is carried through.candy/plugin-kube/cluster.gokindToPluralResource— the Kind→plural table whose only caller wasgvrForObject— is DELETED;kindToGVR, whichwait-readyuses, stays.candy/plugin-kube/methods_observe_test.go*clusterConn(so the refusal provably precedes any connection), and the plugin's OWN embeddedschemaFSrefusesapply,deleteandmanifestwhile admitting all eleven observation methods.candy/plugin-kube/go.modcuelang.org/go v0.16.1loses its// indirectmarker — the schema arm importscue/cuecontextdirectly. No version moves andgo.sumis unchanged (the module was already in the graph throughsdk).candy/plugin-kube/charly.ymldescription:says 11-method OBSERVATION surface with the two words gone, and thecheck-k8sskill'striggers:line stops namingapply/delete.README.md13 methods→11 observation methods; the method list loses the two; a sentence names D-VERB-1 and the removal..agents/skills/check-k8s/SKILL.mdmanifest:; the method-notes bullet forapply / deleteis gone; thecluster.go/methods.goimplementation lines stop naming them; the front-matter description says every method observes.How tested
Every command below ran against this head
7f91343182017f30365e318fcedc412eeb8c0e5e, in asession worktree branched off
origin/maindf96229(the merge base), each redirecting to a fileand 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} HEADreports 0 lines of diff.go version→go1.27.3-X:nodwarf5 linux/amd64; the module declaresgo 1.26.8.The gate this repo declares (its
AGENTS.md, "Build / validate / test") isgo build ./...andgo test ./...incandy/plugin-kube/, pluscharly box validateat the repo root — this repocarries 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 pristineorigin/maincheckout, with no implementation change, so the failures are ASSERTIONS rather than missing symbols:
Green on this head, same command:
2. The authored-input boundary, before and after
The pinned CUE v0.16.1 that
charly candy paramsprovisions, over the plugin's ownschema/kube.cue— the same bytesNewMetaserves, evaluated with the same unify-and-validateshape the host uses.
BEFORE (
df96229), every onerc=0— the three authored forms are admitted:THIS HEAD, the observation methods still admitted:
…and the two mutation words, and the field that carried them, refused:
The last line is the calibration: an invented field is refused the same way, so a
rc=1above isthe 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(contextvm-check-k8s-deploy). I drove the SAME request charly'sgrpcProvider.Invokesends akube:verb(
charly/plugin_grpc.go:381—Reserved= the word,ParamsJson= the full#Op,EnvJson={"mode":"live"}) straight intoNewProvider().Invoke: once linked to a pristineorigin/maincheckout of this plugin, once to this worktree, through a throwaway module under
/tmpwithreplace github.com/opencharly/plugin-kube/candy/plugin-kube => <tree>(never committed — the repogains no probe binary).
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 mutatingthe 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/HEADtip (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
nodescolumn (
charly|origin/main|0|1andplugin-kube|origin/main|0|1— the two places akube:step isauthored) and no row is non-zero on the
apply/deletecolumn. The totals: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.ymlauthors nokube:step at all (thecalibrating
nodescount 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 (
requiredModifiersentries pluscase "apply", "delete": return "", nil). It COMPILES and vets clean, so the red below is anassertion, not a build error:
Plant B — re-admit
"apply"in the schema enum. This one is CUE-only, compiles, and the paramsdrift gate does NOT catch it (measured — which is exactly why the test exists):
6. The gate arms, on the committed tree
The one
SKIPis pre-existing and by design:TestKindSaveImageArchiveskips visibly whenKIND_LOAD_TEST_IMAGEis 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 hostcalls — 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 schemaboundary executed in the pinned CUE engine (§2), and
charly box validateran the repo's structuralgate 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 apre-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 acertificate this host does not trust — so it was not used.
Evidence fence
The tier names the runtime's own names, read out of the session record by key.
Rulebook compliance
/charly-internals:git-workflow(the git/PR row) and/charly-internals:strict-policy. The owning repo'sAGENTS.mdwas read atorigin/main(Part II #4) and selects/charly-kubernetes:kubernetes,/charly-kubernetes:check-k8sand/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.charly box validatewent 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 returneddirectory prefix . does not contain main module— RCA: the Go module lives atcandy/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-quotedgit submodule foreachbody, 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 opencharlyreturns 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 namesmethod: apply. Non-blocking and separable → filed as opencharly/charly#1117. Zero warnings:charly box validatereports0 warnings, 0 errors.schema/kube.cue;params/cue_types_gen.gois generated from it, and the test reads the plugin's OWN embeddedschemaFSrather than a second copy of the schema. The test'sobservationMethodslist is a CONTROL — the independent statement of the intended surface, which is the legitimate role of an expectation, not a second implementation.kindToGVR(used bywait-ready) is untouched; onlykindToPluralResource, whose only caller was the deletedgvrForObject, is removed.unknown kube methodpath — 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.description:, the skill, thetriggers:line) is corrected to describe the surface that now exists — never to route around a defect.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") andcandy/plugin-kube/deploy.go:230(the DEPLOY path's ownkubectl apply -k/kubectl delete -k, not the verb).CHANGELOG/hits are history. No shim, no alias, no dual path, nothing deferred.git status --shortwas empty before the commit, after it, and after each plant/restore; the work ran onfeat/kube-observation-verbsbranched off freshorigin/maindf96229in a session worktree; both plants were restored and verified bysha256sum -c+cmp; no reset, no force-push, no push tomain, and no submodule checkout edited (the umbrella's own tree is untouched).schemaFS(the bytes served) with the host's own unify-and-validate shape, and the generatedparams/is validated by the drift gate the pipeline declares. Both plants go red on ASSERTIONS withgo vet rc=0on the planted tree (§5).KIND_LOAD_TEST_IMAGEis unset. The unreachable sibling context is named, not silently omitted.github.com/opencharly/plugin-kube/candy/plugin-kubethrough areplaceto the worktree, so the process that answeredunknown kube method "apply"is this commit.charlyitself is used only as a TOOL (the repo's structural gate and the params generator) at2026.306.0314; the change adds no runtime OS dependency, sopackaging:is untouched.7f91343with no warnings (§6):gofmt -lempty,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).plan:is unchanged (kube: {method: nodes}); no step was added and the plan still names a live observation method. SDD — schema first:schema/kube.cuechanged, thenparams/regenerated through the sanctionedcharly candy paramspipeline, drift gate green.client-gostack. Core is untouched, no seam is added, and the schema keeps its one home.N/A — nothing was deployed, updated or removed.The live probe issued onlynodesandpodsreads against an existing cluster; nodisposable: truetarget was touched and no cluster state changed.Change classification
Plugin surface change inside
github.com/opencharly/plugin-kube/candy/plugin-kube— theverb:kubecapability's method enum and dispatcher. No image is built here and no deploy target moves.
kube:step carryingmethod: applyormethod: delete, or amanifest:field, is now refused — at load by the served#KubeInputschema, and at dispatch as
unknown kube method. An authoredkube:step using any of the elevenobservation methods loads and runs exactly as before: byte-identical verdicts for
nodes/podsagainst the same live cluster (§3).
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 amanifest:field beside an observation method). That class is emptyin the org: 0 of 430 repo tips author either word, and the umbrella root's own
charly.ymlauthorsno
kube:step at all. The migration for anyone outside the org who DID author one is the one thedesign already names: the state change becomes a deploy (
kubectl apply -kon the egress-validatedtree, which is
charly deploy add), apackage: helm:action, or arun:step. Rollback is theprevious 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
TODO.md12.7 (D-VERB-1 on the kube verb),filed before this PR with the measured premise and carrying the
CLAIMledger.kube: {method: apply}, a method the plugin no longer serves (plugin-kube#32) charly#1117 —charly/external_verb_dispatch_test.go's fixture models itsout-of-process verb request as
{"method": "apply"}, which this PR makes unauthorable. Its ownclaim (the full
#Opreaches the provider) stays true, so it is non-blocking and separable: filedwith the one-line root fix rather than silently carried.
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)