Repository navigation
feat(fleet)!: drop the removed schema-version fields (schema-versioning removal) - #25
Conversation
…ng removal) spec#183 removed `version` from `#Deploy` and `#CandyRecord`, and sdk#313 changed `kit.ScaffoldCandy` to take no version stamp. plugin-fleet still read the removed fields, so it no longer compiles against the merged contracts (`sdk v0.2026270.1147` + `spec v0.2026270.938`) — the direct blocker of the charly host leg (opencharly/charly#714). Hard cutover, every removed reader deleted: - deploy_target.go: drop `extra["version"] = req.Node.Version` and the `rec.Version = reply.Record.Version` / `rec.Version = ver` ledger writes. - node_resolve.go: drop the `node.Version` tag-propagation block; the resolved tag is the CLI --tag / a CalVer git tag only. - from_box_vm_test.go: the fixture header no longer carries a `version:` stamp. - node_resolve_test.go: delete the node.Version propagation test (the field is gone). - migrate_ledger_candy_keys_test.go: delete the schema_version read-path gate test (the gate went with the field in sdk#313). Re-pin sdk v0.2026269.1752 -> v0.2026270.1147, spec v0.2026269.1640 -> v0.2026270.938. Assisted-by: OpenCode ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
Review — BLOCKHead SHA: Change class: runtime/code change (Go-source consumer fix — removed-field reads deleted — plus an sdk/spec dependency re-pin) in the Security screen: PASS — no T1–T4 findings. The diff only deletes reads of removed fields; no secrets/egress, no guardrail weakening, no scope mismatch (the body's accounting matches the diff). Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…esolution Address the validator's R10-coverage finding: the deleted node.Version test left resolveNodeOverlays (whose behavior changed — the tag now comes solely from the CLI --tag) without a test. Add TestResolveNodeOverlays_ResolvesFromCLIAndNodeFields, which pins the resolved tag, the refStr from node.Image, and the node.AddCandy overlay. Assisted-by: OpenCode ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
Review — PASSHead SHA: Security screen: PASS — T1–T4 clean: deletions of removed-field reads plus an org sdk/spec re-pin; no secrets/egress, no guardrail or rulebook weakening, no scope mismatch (all 7 diff files accounted for in the body). Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
Drop the schema-version readers that the merged contracts removed, so
plugin-fleetcompiles and its module gate is green againstsdk v0.2026270.1147+spec v0.2026270.938.spec#183removedversionfrom#Deployand#CandyRecord;sdk#313changedkit.ScaffoldCandyand deleted the per-candy version arbiter.plugin-fleetstill read the removed fields, which is the direct blocker of thecharlyhost leg (opencharly/charly#714) — the host build failed at exactly two compiled-in plugins, this one andplugin-box.Hard cutover — every removed reader deleted, no fallback:
candy/plugin-fleet/deploy_target.go— dropextra["version"] = req.Node.Version; drop therec.Version = reply.Record.Versionandrec.Version = verledger writes (the venue path now passesniltokit.AddCandyDeploymentVia, whoseupdatecallback is nil-guarded — evidence in §5).candy/plugin-fleet/node_resolve.go— drop thenode.Versiontag-propagation block; the resolved tag is the CLI--tag/ a CalVer git tag only.candy/plugin-fleet/node_resolve_test.go— replace the deletednode.Versionpropagation test withTestResolveNodeOverlays_ResolvesFromCLIAndNodeFields(pins the new tag resolution +refStr+addCandyoverlay).candy/plugin-fleet/from_box_vm_test.go— the fixture header no longer carries aversion:stamp.candy/plugin-fleet/migrate_ledger_candy_keys_test.go— delete theschema_versionread-path gate test (the gate went with the field insdk#313).go.mod/go.sum—sdk v0.2026269.1752 → v0.2026270.1147,spec v0.2026269.1640 → v0.2026270.938.How tested
All commands run FRESH on the final committed tree at head
e96f9826ca9251ddffb954f3e3ae5b97da2b58f8, fromcandy/plugin-fleet:The changed
resolveNodeOverlayspath is covered by a test that pins its new behavior:§4. R5 stale-reference sweep — the raw, executed output:
Both hits are the cutover's own negation comments in the edits — zero live references to any removed identifier.
§5. Nil-callback guard (B18).
kit.AddCandyDeploymentVia'supdateparameter is nil-guarded on BOTH its local-fallback and its remote paths (sdk v0.2026270.1147,kit/install_ledger.go):§6. Bed inventory (A2/R10).
plugin-fleetships NOdisposable: truebed and no deploy entity in itscharly.yml— the executed proof:The only hits are a CLI-flag help string and a unit test that re-serialization preserves the flag — no bed. This module-local gate is the authorized disposition: the assembled end-to-end bed (the disposable deploy that composes this plugin) is the
charlyhost leg's (opencharly/charly#714), which is the consumer this leg unblocks (producer → consumer, B6). The maintainer boundary scope reduction recorded onopencharly/plugin-migrate#10("the end-to-end R10 … is thecharlyhost leg's … tieranalysed on a live system") is the authorization for this disposition.Rulebook compliance
/charly-internals:git-workflow,/charly-internals:cutover-policy,/charly-internals:strict-policy,/charly-check:check) before any edit.plugin-fleet/plugin-box; recorded on charly host leg: consume sdk v0.2026270.1147 + spec v0.2026270.938 (schema-versioning-removal) and host the assembled R10 bed charly#714.feat/branch, no force-push, no directmainpush.resolveNodeOverlaysbehavior has a test that pins it (§How tested); the module does not compile without the removed reads deleted.charlyhost leg's per the maintainer sign-off (§6).Change classification
gofmt -l .+go build ./...+go vet ./...+go test ./... -count=1) per the maintainer boundary sign-off; the assembled end-to-end bed is thecharlyhost leg's (charly host leg: consume sdk v0.2026270.1147 + spec v0.2026270.938 (schema-versioning-removal) and host the assembled R10 bed charly#714).analysed on a live system— the module gate ran live and the changed path is covered; the assembled fresh-rebuild bed is the host leg's.Refs opencharly/charly#714.
Assisted-by: OpenCode ollama-cloud/deepseek-v4.1-flash (analysed on a live system)