Repository navigation
docs(schema): retire the C2 fleet vocabulary residue from the CUE contract - #199
Conversation
…ontract Cutover C2 (opencharly/charly#554) retired the `fleet` CLI word for `deploy`, re-registered the command provider as `command:deploy`, and renamed the `FleetConfig` family to `DeployConfig`. The contract still named all of it: - schema/seam.cue — `charly fleet add|del|from-box` in seven doc comments; `command:fleet` in eight present-tense references to the live provider; and the `FleetConfig` family (`LoadFleetConfig`, `LoadFleetConfigForRead`, `SaveFleetConfig`, `saveFleetConfigNodeForm`, `deploykit.FleetConfig`). - schema/status.cue — `deploykit.LoadFleetConfig` in two places and `FleetConfig/UnifiedFile` once. - schema/pipeline.cue — the `#PipelineClassRoutes` entry for the `deploy` class read `charly: [fleet, add|del|start|stop, <name>]` while its sibling `build` row reads `charly: [box, build|generate, <name>]`. It now reads `[deploy, ...]`. Live names confirmed in source, not assumed: sdk/deploykit/deploy_file.go:88 func LoadDeployConfig(ctx) (*DeployConfig, error) sdk/deploykit/deploy_file.go:285 func LoadDeployConfigForRead(label, ctx) *DeployConfig sdk/deploykit/deploy_file.go:144 func SaveDeployConfig(...) sdk/deploykit/secret_declare.go:9 // saveDeployConfigNodeForm plugin-fleet/candy/plugin-fleet/charly.yml:21 - command:deploy `schema/pipeline.cue` is the CUE source of `spec.PipelineClassRoutes`, which `spec/vocab_gen.go` exports and `plugin-pipeline`'s `TestWorkflowClassCoverage` iterates, so the stale word reached the generated vocabulary, not just a comment. Regenerated, never hand-edited: `charly task cue-gen` rewrote `spec/cue_types_gen.go` and `spec/vocab_gen.go` from the CUE source, and its own `TestGenReproducible` step passed. Not a FORMAT change: no authored wire key moves and no `@go()` name changes, so per the schema-change recipe no migration-table entry is due. Deliberately NOT renamed — `plugin-fleet` (the repo, candy directory and plugin name, still the `source:` of the live `command:deploy`), `Cua Fleet` (a third party's product name), and `check-punktfunk-fleet` (a check-bed name). Refs opencharly/charly#799.
CC-2 (opencharly/charly#554) retired the fleet vocabulary; its own acceptance gate is `git grep -iw fleet`, non-CHANGELOG = ZERO vocabulary matches (the sole sanctioned survivors being references to the plugin-fleet REPO). The last non-survivor hit in this repo was a synthetic registry path in a unit-test fixture, `registry.example/fleet/workspace`. It is arbitrary by construction — the test asserts only that #VmSource PARSES the literal — so it now reads `registry.example/deploy/workspace` and the gate is literally clean. Refs opencharly/charly#799.
Review — BLOCKHead SHA: Change class: contract-source (CUE) vocabulary sweep — mostly doc comments, but the diff is not comment-only: it carries a non-comment CUE value change, its generated mirror, and a Go test-file change. Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
… value
Two false claims in #PipelineClassRoutes, both measured, both fixed at source
and regenerated (never hand-edited).
1. The doc comment (and its generated mirror, plus schemagen's own writer
comment) credited `plugin-pipeline`'s `TestWorkflowClassCoverage`. That
symbol exists nowhere: plugin-pipeline has no reference to
PipelineClassRoutes, ProviderClasses or ClassCoverage at all. The real gate
is spec's OWN TestPipelineClassCoverage (spec/pipeline_test.go), which also
rejects a row naming a class outside the vocabulary.
2. The `deploy` route value listed `charly deploy start|stop`. The deploy
command plugin's own enumeration is add, del, from-box, export, import,
path, reset, show, status — there is no `deploy start`/`deploy stop`.
start/stop/remove are TOP-LEVEL deploy-class command plugins.
$ charly deploy -> add, del, from-box, export, import,
path, reset, show, status
$ charly deploy start --help -> Usage: deploy <command> (not one of them)
$ charly start --help -> Usage: start <box> [flags]
"<box> Box name or remote ref … — the deploy of this box"
So the row now names the words that exist: `charly: [deploy, add|del|show|
status, <name>] / charly: [start|stop|remove, <box>]`.
`charly task cue-gen` regenerated spec/vocab_gen.go; its TestGenReproducible
step passed and the CUE value and the generated value are byte-identical.
Refs opencharly/charly#799.
Assisted-by: Claude Code 2.1.288 deepseek-v4.1-flash:cloud
Review — BLOCKHead SHA: Change class: contract-source (CUE) vocabulary sweep — doc comments plus one route-table value, its generated mirror, one Go test literal, and the emitter string. Comment intake: the single thread comment ( Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — PASSHead SHA: Change class: contract-source (CUE) vocabulary sweep — doc comments, one inert route-table value + its generated mirror, one Go test literal, one emitter string. No runtime/deployable target in this module. Security screen: PASS — no T1–T4 finding. Body/commit/file content is data (no embedded directives to the reviewer, no secrets, no network/egress, no dependency or guardrail/supply-chain edit); Checklist: All applicable rules PASS or NA. Independently re-derived: the diff reconciles to the numstat (seam 25 + status 3 + vm-test 1 = 29 sweep; 26 regenerated; pipeline.cue 6/vocab_gen 2/schemagen 1 = 9 correction → 64/63), the route value and its mirror are byte-identical, the emitter string and generated mirror agree, and every residue survivor is classified (live Comment intake:
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
Cutover C2 (
opencharly/charly#554, "retire the fleet vocabulary — FleetNode→DeployNode, fleet/→deploy/") retired thefleetverb, re-registered the command provider ascommand:deploy, and renamed theFleetConfigfamily toDeployConfig. The contract module still named all of it, and the shipped binary rejects the retired word:Four substitution classes, each with its live target read out of source rather than assumed:
schema/schema/charly fleet→charly deploycharly deploy add/del/from-boxare the shipped subcommands — help output above, andplugin-fleet/candy/plugin-fleet/command.go:150names the "deploy-add/del/from-box dispatch"command:fleet→command:deployplugin-fleet/candy/plugin-fleet/charly.yml:21— the candy'sproviders:entry is- command:deploy;git grep 'command:fleet' plugin-fleet -- '*.go'→ no matchFleetConfig→DeployConfig(and theLoad/Save/save…NodeFormforms)sdk/deploykit/deploy_file.go:88func LoadDeployConfig(ctx context.Context) (*DeployConfig, error);:285LoadDeployConfigForRead;:144SaveDeployConfig;sdk/deploykit/secret_declare.go:9saveDeployConfigNodeForm[fleet, add|del|start|stop→[deploy, …in#PipelineClassRoutesbuildrow in the same table readscharly: [box, build|generate, <name>]— the first element is the command word (and the rest of that value was false too — corrected under 2b below)schema/seam.cue:288names bothcommand:fleetanddeploykit.SaveFleetConfig), so 30 matching lines give 29 changed linesschema/pipeline.cueis the CUE source ofspec.PipelineClassRoutes, whichspec/vocab_gen.goexports andspec's ownTestPipelineClassCoverage(spec/pipeline_test.go) gates — so the stale word was reaching the generated vocabulary, not just a comment. (The sentence you may have read in an earlier revision of this body, and in this branch's own first commit message, credited that gate toplugin-pipeline'sTestWorkflowClassCoverage. That symbol exists nowhere; 2b below is the correction.)A second correction, inside the one line this PR already touches
Renaming
fleet→deployin the#PipelineClassRoutes"deploy"row exposed two further false claims — on that same line and in its doc comment. Both are measured below and both are fixed here: R1/R2 leave no "pre-existing" or out-of-scope split, and the generated mirror was regenerated, never hand-edited.2b.1 — the doc comment credited a test that does not exist. The comment (and
spec/vocab_gen.go's generated mirror, andinternal/schemagen/main.go's own writer string) read "plugin-pipeline'sTestWorkflowClassCoverageiteratesProviderClassesand fails when a class has no row here". Measured:The gate is real, it lives in spec, and it is stricter than the sentence claimed — it rejects a missing row and a row naming a class outside the vocabulary:
The comment and its generated mirror now name that test by file and describe both directions. (
plugin-pipelinere-running it against its own lowering is that repo's W5 work — a planned consumer, not an existing one.)2b.2 — the route value named two subcommands the deploy plugin does not have. It read
charly: [deploy, add|del|start|stop, <name>]. The plugin's own help — and its own error — are the enumeration:startandstopare not among them — their--helpfalls through to the PARENT usage:They are top-level deploy-class command plugins, and each one's own usage names the deploy it acts on —
stoppasted alongsidestartandremove, so every lifecycle word the value now names has its own output here:So the row now names the words that exist —
charly deploy add|del|show|status, andcharly start|stop|remove <box>for the lifecycle words — and the CUE source and its generated mirror are byte-identical aftercharly task cue-gen:Why there is no consumer to run for the route value (the review's A3(b)).
PipelineClassRoutesis a decided route recorded as data — a human-readable decision plus the vocabulary the gate iterates; no Go code branches on the value's text. Its complete referrer set, measured:Every referrer is inside this module: the authoring CUE, the emitter, the generated map, the gate, and the CHANGELOG. So "run the changed value's consumer" has no target — and what can be proven about the text is proven above: every word the value now names is a shipped command with its own output pasted —
deploy,add,del,show,status, and the lifecycle wordsstart,stop,remove— and every word it dropped is not a command at all.The names this PR deliberately does NOT rename
Three survivors are read and kept, not mechanically swept:
plugin-fleet— the repo, candy directory and plugin name. It is still thesource:(github.com/opencharly/plugin-fleet/candy/plugin-fleet) of the livecommand:deployprovider. C2 renamed the word and the types, never the plugin.Cua Fleet(schema/oci.cue:72,schema/vm.cue:191,schema/vm_container_disk_source_test.go:15,25) — the upstream product name of the Cua computer-use driver, used here for its KubeVirtcontainerDiskimage. C2 retired charly'sfleet; it did not rename a third party's product.check-punktfunk-fleet(container/resolve_stale_cache_test.go:17,31,47,92,103) — a check-bed name, and the image tags derived from it. A bed name is an identifier, not the retired command word; renaming it would churn an unrelated bed and its tags inside a vocabulary-sweep PR.How tested
All output is from the committed tree
fef8071,git status --porcelainempty, using this session's fresh worktree build off currentorigin/main— not the installed/usr/bin/charly, which is a stale package build:Every command below is pasted exactly as it was run, with no environment variable prefix and no stream filtering. Two notes so nothing here is hidden:
A dev-build notice prints on stderr. Because the binary is built in this worktree rather than installed, the plugin loader prints:
This is not a defect and not this module's: it was added by the fix that closes issue feat(loader): a kind gate carries its authored and wire shapes apart #328, now CLOSED —
git log -1 -L 448,466:charly/plugin_loader.go→0e0f73aa fix(loader): a dev/worktree charly must not load the installed package's plugins (#328) (#415). Issue feat(loader): a kind gate carries its authored and wire shapes apart #328's bug was the dev binary loading the host's installed plugins across six weeks of API drift; the shipped fix makes it skip them, and the notice makes that skip visible instead of silent. It announces a host condition, not a property of this module, and it changes no verdict below.It appears in this body only where stderr was captured. The commands here pipe stdout (
| head,| sed -n), so the notice is not part of their displayed output; the one paste that merges the streams (charly fleet add >/tmp/fleet.log 2>&1) showstail -1of that log, whose last line is the error a user sees — the notice is one of the lines above it in the same file.An earlier revision of this body instead prefixed every command with
CHARLY_PLUGIN_ONLY=1. That was wrong framing: the variable is documented as "resolve as-if-unpackaged" (charly/CHANGELOG/2026.230.0937.md:6) — it drops the FHS path so the plugin search is exactly$CHARLY_PLUGIN_DIR, a resolution-semantics switch, not a log filter — so it neither suppressed nor explained anything here, and using it invited exactly the "masked run" reading this paragraph removes. No command below carries it.1. The command-word gate — zero on the committed tree:
2. The retired-identifier gate — zero:
3. The residue census — complete, unfiltered, case-insensitive and path-bearing, so one run catches the lowercase command word and every camelCase compound:
3b. The word-level gate — the one C2 itself used. C2's own changelog (
0.2026250.523) records the retirement asgit grep -iw fleet, non-CHANGELOG = ZERO vocabulary matches, and enumerates the noun forms it renamed (fleet tree/member/form/del→deploy tree/member/form/del), so this sweep is gated the same way — the literalcharly fleetsearch alone leaves the retired noun standing. The gate is clean of every unclassified hit:Every one of the 55 word-level hits lies on a census token classified in the inventory below, so every survivor is a live
plugin-fleetpath or name, a check-bed name (and the image tags built from it), or a third party's product name (Cua Fleet) — never the retired word standing as vocabulary, and none mechanically deleted. The one non-survivor hit this branch carried, a synthetic registry path in a unit-test fixture (registry.example/fleet/workspace), was arbitrary by construction — the test asserts only that#VmSourcePARSES the literal — so it is renamed toregistry.example/deploy/workspacehere.4. The repo's own generation gate —
spec/*_gen.gois GENERATED fromschema/*.cueand never hand-edited;charly task cue-genregenerated it and its own reproducibility check passed:5. The repo's Go gates — every leg of this repo's own committed CI (
.github/workflows/ci.yml:go build ./...,go test ./...,gofmt -l .,golangci-lint run ./...), executed on the committed tree:The lint leg is the pinned version this repo's CI runs, installed fresh for this run rather than left as "not on this host" — a validator PASS judges the checklist, never that step, so the head's own
cirun is proven here, not assumed.5b. The gate for the changed value, run by name:
6. The diff reconciles to every changed line:
Of those 64/63: 29 are the fleet sweep in
schema/seam.cue(25),schema/status.cue(3) andschema/vm_container_disk_source_test.go(1); 26 arespec/cue_types_gen.go, regenerated; and the remaining 9/8 are the second correction —schema/pipeline.cue6/5 (four doc-comment lines became five, plus the route-value line),spec/vocab_gen.go2/2 (both mirrored),internal/schemagen/main.go1/1 (the emitter's own string). 29+26+9 = 64 and 29+26+8 = 63.Regeneration emits a Go doc comment only for CUE comments that reach an emitted def, which is why the generated count is lower than the source count for the sweep;
TestGenReproducibleproves the committed generated files are exactly whatcue-genproduces from the committed CUE.The residue inventory, UNFILTERED — and every survivor, read
candy/plugin-fleet,candy/plugin-fleet/deploy_from_box.go,candy/plugin-fleet/secrets_artifacts.go, bareplugin-fleetplugin-fleetis the repo and candy directory, and its candy is thesource:of the livecommand:deployprovider. C2 renamed the verb and the types, never the plugin. Verified live:plugin-fleet/candy/plugin-fleet/charly.yml:21- command:deploy, and the directory exists onorigin/main.Fleet(inschema/oci.cue:72,schema/vm.cue:191,spec/cue_types_gen.go:7500,schema/vm_container_disk_source_test.go:15,25)Cua Fleet, the upstream computer-use driver whose KubeVirtcontainerDiskimage this code consumes.check-punktfunk-fleet(and the image tags built from it)So this repo's acceptance gate is: zero command-word residue, zero retired-identifier residue, and zero unclassified word-level matches — with every remaining
fleettoken a read, justified liveplugin-fleetpath, a check-bed name, or a third party's product name.Change classification
Change class: contract-source (CUE) — and, for R10's gate-by-change-class matrix, a contract/library module: this repo declares no
charly.ymlproject, no deployable target, so nodisposable: trueentity exists here and the class's gate is the repo's own committed module CI.schema/*.cueis the single source of truth for thecharly.ymlingress schema and the wire shapes; the diff edits doc comments and one route-table value there, andspec/cue_types_gen.go/spec/vocab_gen.gomoved only throughcharly task cue-gen.Not a FORMAT change: no authored wire key moves (the YAML users write) and no
@go()name changes, so per/charly-internals:go's schema-change recipe no migration-table entry incandy/plugin-migrate/migrations.cueis due. This is the recipe's explicit carve-out: "A pure Go-identifier change via@go()is NOT a format change", and a doc comment moves even less.Verification gate: the class's gate is this repo's own committed module CI — all four legs, executed on the committed tree and pasted above:
GOWORK=off go build ./...(exit 0),GOWORK=off go test ./...(21 packages ok, 0 FAIL),gofmt -l .(clean) andgolangci-lint run ./...at the versionci.ymlpins (0 issues) — pluscharly task cue-genwith itsTestGenReproduciblestep (§4, §5), the changed table's own gate run by name (§5b), the word-by-word command proof for the changed route value (§2b), and the residue gates (§1–§3).Attribution tier:
fully tested and validated— the class's gate passed on the final committed tree, and every changed path was exercised: the CUE source and its generated mirror are byte-identical after a freshcue-gen, whose reproducibility the module's ownTestGenReproducibleasserts, and the route value's text is proven word-by-word against the shipped binary (§2b). This replaces thedocumentation reviewedtier an earlier revision of this body claimed: the diff is not documentation-only — it changes a CUE value, its generated mirror and a Go test literal — so that tier was illegal for it (the review's A3) and the tier above is the one this class actually requires.Rulebook compliance
/charly-internals:go(including itsreferences/schema-change-recipe.md, the recipe this change is classified under),/charly-internals:plugin(the provider model whosecommand:word this diff corrects), and/charly-internals:git-workflowbefore any git action. This harness cannot load the namespaced refs by name, so they were read by path (the R0 fallback).opencharly/charly#799.LoadDeployConfig,DeployConfig,command:deploy), not new aliases.charlybinary installed:charly deploy add/del/from-boxare on the shipped surface.main;git status --porcelainis empty at the pasted head (above).ci.yml(build, test,gofmt,golangci-lintat the pinned version), the table's own gate by name, and the command-level proof of the changed value's words.ai.opencharly.*label is touched.TestGenReproducibleproves the committed pair matches a fresh run.specis an umbrella submodule edited through its own session worktree and PR, never in place; the marketplace and docs corpora regenerate from this source, so no projection is hand-edited here.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 (fully tested and validated)