Skip to content

test: the external-verb dispatch fixture names kube: {method: apply}, a method the plugin no longer serves (plugin-kube#32) #1117

Closed

Description

@aitrawog

What

charly/external_verb_dispatch_test.go (TestInvokeVerbProvider_ExternalCharlyVerb, and its copy in
the plugin-herdr submodule's charly/ checkout) models its canonical out-of-process verb request
as:

op := &spec.Op{Plugin: "kube", PluginInput: map[string]any{"method": "apply", "namespace": "demo"}}

method: apply is no longer a live kube: method: the verb's two mutation methods (apply,
delete) and the manifest field that carried them were removed in
opencharly/plugin-kube#32 because D-VERB-1 (DESIGN.md §23) says a verb observes and never
changes state. A kube: step carrying method: apply is now refused by the served #KubeInput
schema at load, so the fixture's payload is one the host cannot produce.

Why this is a finding and not a bug in the test

The test's own claim — "the full #Op reaches the out-of-process provider as params_json" —
stays true, which is why this is non-blocking for that change: the fake provider accepts any word,
so the fixture passes either way. What went stale is the EXAMPLE: the fixture reads as "here is a
real kube step", and it now names a method no author can write. That is the class of divergence
that makes a later reader trust a shape that does not exist.

Root fix

One line in each copy: use a live observation method, e.g.

op := &spec.Op{Plugin: "kube", PluginInput: map[string]any{"method": "nodes", "namespace": "demo"}}

with the two assertions that read PluginInput["method"] following it ("nodes"). Nothing else in
the test changes: it never dispatches to the real plugin.

Blast radius

charly/external_verb_dispatch_test.go (one fixture, two assertions) and the same file under the
plugin-herdr submodule's charly/ checkout, which re-pins with the next wave. No product code, no
authored config, no bed.

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

Activity

  1. aitrawog commented on Nov 11, 2026

    @aitrawog
    ContributorAuthor

    CLAIM — taking this one; the fix is already in flight.

    head 9c95a793 on feat/kube-fixture-observation, PR #1120.

    • The fixture now models {"method": "nodes"} and the two assertions that read PluginInput["method"] follow it — charly/external_verb_dispatch_test.go, three lines.
    • Calibrated, claim-keyed sweep: zero further occurrences of apply/delete as a kube method value in charly, and zero occurrences of the manifest modifier in any kube: block, each predicate run beside a known-live control word (nodes, namespace) in the same place. Full commands and outputs are in the PR body.
    • Siblings: the same three sites survive in plugin-herdr and pod-herdr's vendored charly checkout (both pin eda33c00), filed as chore(pin): advance the vendored charly so the kube fixture stops modelling the retired mutation methods (plugin-kube#33) plugin-herdr#16. They are not edited here: that is another repo's pin, and this change must not touch a pin.
    • Gate on the committed tree: go test ./charly/..., go vet, gofmt and golangci-lint all green, plus a planted-break proof that fails on the assertion rather than the compiler and then restores byte-identical.

    Next update: when the fresh validator reports.

    Agent: dsh-1117 (charly session b70509b7-f600-435a-bd9b-a8d99ad1c14e)

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

  2. self-assigned this
    on Nov 11, 2026
  3. aitrawog commented on Nov 11, 2026

    @aitrawog
    ContributorAuthor

    RESOLVED — landed as 9ce5edefa88b218897817ea1b1789dba00cf05d3 (the squash of #1120), tagged v2026.315.1754.

    charly/external_verb_dispatch_test.go now models {"method": "nodes"}, the natural observing method, and the two PluginInput["method"] assertions follow it. Nothing else in the file changed: it still never dispatches to the real plugin, which is why the stale word cost no red test.

    Post-merge sweep on origin/main, the same three site-form predicates the change was made against:

    $ git grep -nE '"method": "(apply|delete)"' origin/main -- ':!CHANGELOG'
    grep exit: 1
    $ git grep -nE '\["method"\][[:space:]]*[!=]=[[:space:]]*"(apply|delete)"' origin/main -- ':!CHANGELOG'
    grep exit: 1
    $ git grep -nE 'want method=(apply|delete)' origin/main -- ':!CHANGELOG'
    grep exit: 1
    

    Siblings filed, not fixed here: opencharly/plugin-herdr#16 — plugin-herdr and pod-herdr both pin a charly gitlink at eda33c00da9fd40a17787d0d590f07ad9475e435, whose vendored copy of this same file is the pre-fix one. That is each repo's own pin advance, so it cannot ride this diff.

    Closing as resolved.

    Agent: dsh-1117 (charly session b70509b7-f600-435a-bd9b-a8d99ad1c14e)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions