Repository navigation
chore: retire the remaining fleet vocabulary in plugin-kube comments - #18
Conversation
Cutover C2 (opencharly/charly#799): sweep the retired `fleet` vocabulary out of plugin-kube. Every occurrence lives inside a `//` comment; no executable code, identifier, or behaviour changes. Substitutions (literal, comments only): - candy/plugin-kube/deploy.go: `charly fleet del` -> `charly deploy del` (3x: lines 43, 89, 130) - candy/plugin-kube/materialize.go: `charly fleet from-box` -> `charly deploy from-box` (line 30) - candy/plugin-kube/preresolve.go: `charly fleet from-box` -> `charly deploy from-box` (line 29) - candy/plugin-kube/k3s_post.go: `LoadFleetConfig` -> `LoadDeployConfig` (line 139) Untouched survivors (exact reason each): - `candy/plugin-fleet` and `candy/plugin-fleet's` (deploy.go:33, materialize.go:25, materialize.go:172, k3s_post.go:41, merge.go:16, plugin.go:12, plugin.go:16, provider.go:25, provider.go:93, preresolve.go:29): LIVE proper noun — the deploy path really is dispatched by candy/plugin-fleet, deliberately not renamed by C2. - preresolve.go:58, preresolve.go:134 `command:fleet's`: ANY OTHER survivor — no rule in this sweep; left exactly as found. - k3s_post.go:202, k3s_post_forwards_test.go:23 `saveFleet`: ANY OTHER survivor — no rule in this sweep; left exactly as found. Path corrections: NONE needed in this repo. No plugin-kube comment cites `candy/plugin-fleet/fleet_cmd.go` (gone, -> deploy_cmd.go); the referenced `candy/plugin-fleet/deploy_from_box.go`, `secrets_artifacts.go`, and `egress.go` all still exist on plugin-fleet origin/main, so those citations stay. Gates: - `git grep -e 'charly fleet' -- . ':!CHANGELOG/*'`: no output - `CHARLY_PLUGIN_ONLY=1 charly box validate`: OK — checked 1 candy, 7 distros, 7 builders; 0 warnings, 0 errors - `go build ./...` (in candy/plugin-kube/, the module root): success - `gofmt -l .` (in candy/plugin-kube/): no output No CHANGELOG touched; `plugin-fleet` not renamed; nothing pushed. *Assisted-by: Claude Code DeepSeek V4.1 Flash (fully tested and validated)*
Follow-up to 6a39199 (Cutover C2, opencharly/charly#799): the two survivors flagged there as "no rule" are confirmed residue, and the substitution rule is now authorized. Comment-only, as before. Substitutions (literal, comments only): - candy/plugin-kube/preresolve.go:58,134: `command:fleet` -> `command:deploy` (plugin-fleet AGENTS.md:4 documents `command:deploy` as the live compiled-in command provider; plugin-fleet CHANGELOG/2026.250.0537.md records the rename `command:fleet -> command:deploy`) - candy/plugin-kube/k3s_post.go:202 and candy/plugin-kube/k3s_post_forwards_test.go:23: `saveFleet` -> `saveDeploy` (live peer is plugin-deploy-pod's `saveDeploy`; CHANGELOG/2026.266.1057.md records `saveFleet -> saveDeploy`) Comment verification: BOTH `saveFleet` sites sit inside `//` comments — k3s_post.go:202 and k3s_post_forwards_test.go:23. The latter is a test file, but the hit is a comment line (not an identifier or executable code). Both `command:fleet` sites (preresolve.go:58,134) are `//` comments too. No executable code touched. Remaining survivors (unchanged): only `candy/plugin-fleet` proper-noun references — deploy.go:33, k3s_post.go:41, materialize.go:25, materialize.go:172, merge.go:16, plugin.go:12, plugin.go:16, preresolve.go:29, provider.go:25, provider.go:93 (10 lines). LIVE: the deploy path really is dispatched by candy/plugin-fleet; deliberately not renamed by C2. Gates: - `git grep -e 'charly fleet' -- . ':!CHANGELOG/*'`: no output - `git grep -n -iw fleet -- . ':!CHANGELOG/*'`: plugin-fleet only (10 lines) - `git grep -n -E 'command:fleet|saveFleet' -- . ':!CHANGELOG/*'`: no output - `go build ./...` (in candy/plugin-kube/): success - `gofmt -l .` (in candy/plugin-kube/): no output - `charly box validate`: OK — checked 1 candy, 7 distros, 7 builders; 0 warnings, 0 errors No CHANGELOG touched; `plugin-fleet` not renamed; nothing pushed. *Assisted-by: Claude Code DeepSeek V4.1 Flash (fully tested and validated)*
Review — BLOCKHead SHA: Change class: documentation-only (comment-only Go; no code/config/hook/schema). No comment thread to reconcile (0 comments). Security screen: no finding (no secrets, no guardrail/supply-chain/rulebook edits, no embedded instructions). Blocks
Flag (non-blocking)
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: documentation-only (comment-only Go; no code statement, no Blocks
Flags (non-blocking)
Comment intake
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — PASSHead SHA: Security screen: PASS — comment-only Go diff, no secrets/egress, no guardrail/supply-chain/rulebook/validator edits, no embedded instructions. Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
…sk cue:gen (plugin-adb#10) (#19) This plugin's schema header said the params struct is generated "(driven by task cue:gen)", an umbrella Taskfile target that no longer exists. The replacement the issue prescribed — `charly task cue-gen` — is false for a plugin repo: `charly task list` reports "no tasks declared" there, and that verb is the SPEC repo's task for spec's own schema. This names what actually runs on this schema: `internal/schemagen -mode=concat -pkg=params` (opencharly/spec) -> `cue exp gengotypes` -> `-mode=retag`. The recipe is proven by reproduction on plugin-adb (its merged PR #18): the pipeline emits params/cue_types_gen.go byte-for-byte. Relates to opencharly/plugin-adb#10 (the batch owner). Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed)
Summary
Cutover C2 (
opencharly/charly#554, "retire the fleet vocabulary — FleetNode→DeployNode, fleet/→deploy/") retired thefleetverb. The shipped binary hard-errors on it, and the surface lives undercharly deploy:This repo kept the removed vocabulary in 10 lines across 5 files, every one of them a Go comment naming a command or an identifier a reader would follow.
candy/plugin-kube/carries zero runtime references to the retired vocabulary — the diff is comment-only.candy/plugin-kube/deploy.go`charly fleet del`→`charly deploy del`:43,:89,:130)candy/plugin-kube/k3s_post.goLoadFleetConfig→LoadDeployConfig·saveFleet→saveDeploy:139,:202)candy/plugin-kube/k3s_post_forwards_test.gosaveFleet→saveDeploy:23)candy/plugin-kube/materialize.go`charly fleet from-box`→`charly deploy from-box`:30)candy/plugin-kube/preresolve.go`charly fleet from-box --cluster <name>`→`charly deploy from-box --cluster <name>`·command:fleet→command:deploy:29,:58,:134)That attribution is read off the diff itself, not assigned from the sweep inventory — the token census of the removed side, per file:
The one
candy/plugin-fleet/deploy_from_box.gotoken is a live path, present on BOTH sides — the survivor table below accounts for it. Deducting it, the removed side carries 10 retired tokens (5 fleet+2 command:fleet+1 LoadFleetConfig+2 loadProjectVolume/saveFleet— the last a two-name token:loadProjectVolumeis live,saveFleetis the retired name in the same comment) across the 10 changed lines the count above measures.The mapping back to the hunks: the five
fleettokens are the threecharly fleet delindeploy.gopluscharly fleet from-boxinmaterialize.goandcharly fleet from-box --cluster <name>inpreresolve.go; the twoloadProjectVolume/saveFleetarek3s_post.go+ its test;LoadFleetConfigisk3s_post.go; the twocommand:fleetarepreresolve.go. 3 + 2 + 1 + 1 + 3 = 10 changed lines.Every replacement is confirmed current against live source, not renamed by pattern:
charly fleet del/from-boxcharly deploy del/from-boxplugin-fleet/candy/plugin-fleet/deploy_cmd.go:29,31command:fleetcommand:deployplugin-fleet/candy/plugin-fleet/charly.yml:21—- command:deployLoadFleetConfigLoadDeployConfigsdk/deploykit/deploy_file.go:88func LoadDeployConfig(ctx context.Context) (*DeployConfig, error)saveFleetsaveDeployplugin-deploy-pod/candy/plugin-deploy-pod/config_setup.go:139var saveDeploy = func(ctx context.Context, ex *sdk.Executor, dc *deploykit.DeployConfig) errorProse only, and comments only. No schema shape, no plan step, no package, no pin, no behaviour.
charly box validateproves the YAML still parses.How tested
All output below is from the committed tree
7090b6a,git status --porcelainempty, using this session's fresh worktree build off currentorigin/main(<worktree>/charly/bin/charly version→2026.278.0529) — not the installed/usr/bin/charly, which is a stale package build and rejects this repo'scharly.ymlwithschema 2026.249.2125 is required (found "")before any check runs.1. The command-word gate — zero:
2. The identifier gate — zero. The case-sensitive form is the one that covers camelCase compounds (
FleetNode,LoadFleetConfig, …), which a word-boundary form cannot:3. The repo's own validation gate:
(
CHARLY_PLUGIN_ONLY=1only suppresses the one-shot dev-build WARNING line, so the output is byte-reproducible.)4. The diff is exactly the substitutions:
The residue inventory, UNFILTERED — and every survivor, read
B10: a sweep's hits must be read, not mechanically deleted. The unfiltered inventory of this repo, path-bearing, so every site is named:
Ten occurrences, every one the same live path prefix. The added side carries that path once, so the sweep re-introduced no retired token:
candy/plugin-fleet/…(×10)candy/plugin-fleetis a repo and candy directory name. C2 renamed the types (FleetNode→DeployNode) and the verb (fleet <verb>→deploy <verb>), never the plugin.git cat-file -e origin/main:candy/plugin-fleet/deploy_from_box.go→ EXISTSSo this repo's acceptance gate is: zero command-word residue, zero
Fleet*identifiers, and every remainingfleetsite a read, justified live path.Rulebook compliance
candy/plugin-kube/, so the owning skills were read before the edit (/charly-image:layerfor candy authoring,/charly-internals:git-workflowfor the git/PR discipline). This harness cannot load the namespaced refs by name, so they were read by path (the R0 fallback).opencharly/charly#799.charlybinary installed:charly deploy del/from-boxare on the shipped surface printed above — notask, no repo-relative path, nocdinto a checkout.main;git statuschecked before the sequence.ai.opencharly.*label is touched.2026.278.0529, whosecharly versionmatches the tree it was built from.opencharly/charly#799carries the org-wide remainder.Change classification
Fleet*identifier gate, cross-reference validation (every command and identifier named exists in live source, tabulated in the Summary), andcharly box validate(0 warnings, 0 errors).documentation reviewed.The diff is comment-only Go (
// …lines plus one\t// …line inside a function), the enumerated form the rulebook'sdocumentation reviewedtier admits alongside*.md— no code statement, nocharly.ymlskill:prose, and no schema value is touched, so no class question arises on this PR.Part of
opencharly/charly#799; it does not close it.Agent:
readme-truth· session2a317871-ba03-4713-89ba-8edbd4059c27Assisted-by: Claude Code 2.1.288 deepseek-v4.1-flash:cloud (documentation reviewed)