Repository navigation
fix(deploy-vm)!: drop the retired vm:-prefixed teardown key (sdk#301 consumer leg) - #26
Conversation
…301 consumer leg) sdk#301 keys the per-host deploy state by the deploy IDENTITY (the VM entity is carried in the entry's `vm:` cross-ref). This plugin's OpPostTeardown RemoveEntries list still named the retired `vm:<domain>` key, so a vm teardown left the identity-keyed entry behind (entries accumulate). The list now carries the domain identity (plus the deploy name) — both identity keys. Bump the sdk pin to v0.2026270.152 (which carries #301 and the C6 FindVmDeployNode descent fix); the spec pin moves to v0.2026269.2150 because [email protected]'s own go.mod requires it. Proven live: check-r10-two-vm PASS (steps=13) with the plugin-vm companion. Assisted-by: OpenCode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: plugin/candy code + module pins (runtime-observable at the charly VM-bed boundary). Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Extracts vmTeardownRemoveEntries from vmPostTeardown so the entry set is unit-testable without a live executor, and asserts it names the deploy identity (and the domain identity), never the retired `vm:<domain>` key. Fails pre-fix (the old code appended "vm:"+domain). Assisted-by: OpenCode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: plugin/candy Go code + module pins (runtime-observable at the charly VM-bed boundary). Blocks
Comment intake
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Assisted-by: OpenCode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Review — PASSHead SHA: Security screen: PASS Comment intake:
Re-derived against the current diff: file counts reconcile ( Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
…026270.402) The compiled-in plugin-vm now keys the per-host VM state by the deploy identity (opencharly/plugin-vm#52), so the sdk#301 identity-keyed reader finds it. The external plugin-deploy-vm companion (opencharly/plugin-deploy-vm#26) is resolved at runtime from its merged tag. Proven live: check-r10-two-vm PASS (steps=13). Assisted-by: OpenCode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
…d; gate sdk coverage restored; sdk#301 consumer pins (#704) * feat(charly)!: close C6 — delete the deploy-mechanism substrate-word read; restore the gate's sdk coverage Bump the sdk pin to v0.2026270.152 (the merged C6 sdk change), which deletes the last `.Target == "<substrate>"` read in sdk/deploykit: FindVmDeployNode now reads the loader-stamped descent via deploy.IsVmVenue. Drop the now-obsolete `deploy_state.go` entry from the P9 word-switch gate's allowlist, and restore the gate's sdk/deploykit coverage. Its `../sdk/deploykit` glob assumed an in-tree sdk submodule and has matched NOTHING since the sdk de-submodule cutover, so the gate silently lost the deploy-Mechanism half of its contract (the allowlist entry it carried was a no-op). The sdk source is now located through the build's own module resolution (`go list -m`), and an empty result is a hard failure — a gate that scans nothing must not pass. Assisted-by: OpenCode ollama-cloud/deepseek-v4.1-flash (fully tested and validated) * chore(charly): pin plugin-vm to the merged sdk#301 consumer leg (v0.2026270.402) The compiled-in plugin-vm now keys the per-host VM state by the deploy identity (opencharly/plugin-vm#52), so the sdk#301 identity-keyed reader finds it. The external plugin-deploy-vm companion (opencharly/plugin-deploy-vm#26) is resolved at runtime from its merged tag. Proven live: check-r10-two-vm PASS (steps=13). Assisted-by: OpenCode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Summary
The plugin-deploy-vm consumer leg of sdk#301 (
v0.2026270.3). sdk#301 keys the per-host deploy state by the deploy IDENTITY (the VM entity lives in the entry'svm:cross-ref). This plugin'sOpPostTeardownRemoveEntrieslist still named the retiredvm:<domain>key, so a vm teardown left the identity-keyed entry behind — the entry-accumulation half of the same cutover.vmPostTeardownnow ships the domain identity (plus the deploy namep.Name) as the entries to remove — both identity keys. Novm:-prefixed key remains in the list.vmTeardownRemoveEntriesand covered by a new test (fails pre-fix).v0.2026269.1752 → v0.2026270.152(which carries #301 and the C6FindVmDeployNodedescent fix).specpin movesv0.2026269.1640 → v0.2026269.2150— required by the sdk pin, whose owngo.modrequiresspec v0.2026269.2150(MVS resolves it; matchinggo.sum's two new hashes).This plugin's
PrepareVenuedeliberately ships no state patch (the authoritative writer iscandy/plugin-vm, fixed in opencharly/plugin-vm#52), so no write-key change is needed here.How tested
Head
6815e52349be4c7a074e06d40f24db13547ce2db; diffgo.mod±2,go.sum+4,lifecycle.go+19/−8,lifecycle_teardown_entries_test.go+28.Coverage that fails without the change (the extracted helper, pre-fix key restored):
With the change:
Live disposable bed (charly built at sdk
v0.2026270.152with the plugin-vm companion compiled in; this plugin served from THIS tree viaCHARLY_REPO_OVERRIDE):The per-host overlay after the run contains no
vm:-keyed entries and no leftover bed entries — the identity-aware teardown removed them.R5 sweep — executed at head (
grep -rn '"vm:"' ., every occurrence classified):Classification — no production per-host deploy-state key remains:
lifecycle.go:105— theOpArtifactKeyreply'skey: the per-deploy artifact-LEDGER key (sdk/ops.go: "the per-deploy artifact ledger key"), a DIFFERENT key space from the per-host deploy overlay (task feat(readiness): probe the guest agent + domain state BEFORE the sshd wait #18 scopes it to the domain identity). NOT a per-host state key; #301 did not change it.lifecycle.go:179–180 / 285–286— CLI ADDRESSING parsing (vm:<entity>/vm:<entity>/<instance>), the still-valid destroy-address form.lifecycle.go:661,lifecycle_test.go:107— comments naming the retired key as historical context.lifecycle_test.go:231— a test fixture whosedeploy:field is the string"vm:"(a node-name fixture, not a state key).lifecycle_teardown_entries_test.go:12 / :24— the new regression test itself: its comment quotes the pre-fix key, and its assertion checks the emitted keys do not carry thevm:prefix.Rulebook compliance
RemoveEntrieslist.vm:state-key site) is fixed here; the plugin-vm leg landed as fix(vm)!: key the per-host VM state by its deploy identity (sdk#301 consumer leg) plugin-vm#52 and the charly pin bump follows.vm:state key remains.vm:-keyed entries).charly check run check-r10-two-vmgate ran to completion (PASS (steps=13)).Change classification
check-r10-two-vm, run live against this tree (dev-tree override, pasted).gofmt/go vet/go test(incl. the new fails-without coverage) + the livecheck-r10-two-vmbed.fully tested and validated.Assisted-by: OpenCode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)