Repository navigation
feat(charly)!: close C6 — deploy-mechanism substrate-word read deleted; gate sdk coverage restored; sdk#301 consumer pins - #704
Conversation
…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)
…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)
Review — PASSHead SHA: Security screen: PASS — the PR touches the Checklist: All applicable rules PASS or NA — 3 files fully accounted for by the body; gate/bed evidence pasted and internally consistent (main-pin PASS → bumped-pin FAIL → consumer-leg PASS; gate teeth re-proven on a regrown sdk word-read); Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
Closes C6 and lands the charly consumer side of the sdk#301 identity-keyed per-host state cutover.
C6 (the deploy-mechanism substrate-word read):
v0.2026270.152— the merged C6 change (fix(deploykit)!: resolve the host-libvirt VM by its stamped descent, not the substrate word (C6) sdk#311) that deletes the last.Target == "<substrate>"read insdk/deploykit:FindVmDeployNodenow reads the loader-stamped descent viadeploy.IsVmVenue(the trait, never the word).deploy_state.goentry from the P9 word-switch gate's allowlist.../sdk/deploykit/*.goglob 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.sdk#301 consumer side: bumps the compiled-in plugin-vm pin to
v0.2026270.402(opencharly/plugin-vm#52), which keys the per-host VM state by the deploy IDENTITY so the identity-keyed reader finds it. The external plugin-deploy-vm companion (opencharly/plugin-deploy-vm#26) is resolved at runtime from its merged tag.Not included (reported, not silently dropped): a versioned
charly migratere-key entry for orphaned legacyvm:<dashed>overlay entries. The migration table's version gate requires aspec#SchemaVersionbump, which collides with the in-flight schema-versioning-removal chain (spec#176 → plugin-migrate); that chain removes the gate the entry would need. The sdk's own one-touch prune (saveVmStateIntodeletes"vm:"+VmDomainIdentity(identity)on the next write) already self-heals any re-written entry. The migration belongs to the versioning-removal chain, not this PR.How tested
Head
02b3e5e880e20ce58d933ca38c52a82bf3c733fa(merge of currentorigin/main); diffgo.mod±2,go.sum±4,no_substrate_word_switch_gate_test.go+32/−7.Charly Go gate:
R9 fresh build:
R10 — the decisive live disposable bed, from the committed tree:
The bed is the decisive experiment for the whole cutover (R1/RDD):
v0.2026269.2222, pre-A superproject gitlink must name a commit on the submodule's main — three legs today pinned shas that can never exist there #301):PASS (steps=13).v0.2026270.152) before the plugin-vm consumer fix:FAIL (steps=6)—ambiguous vm deploy lookup … both "vm:check-r10-two-vm" and "vm:r10-vm-member" declare from "r10-vm".PASS (steps=13)(above).Gate teeth proven (the restored sdk coverage is real): with a
.Target == "vm"read re-introduced intosdk/deploykit, the gate FAILS naming the sdk file:Rulebook compliance
Descent") was verified against the live code and found stale:loaderkit.StampDeployDescentsre-stamps on every load (a live spike proved a per-hostvm:entry with no persisteddescent:yieldsDescent{Venue:"ssh", ExclusiveVenue:true}). The word-read was an un-migrated P9 consult site; nospecpersistence is needed.go list -m); no second copy of the sdk-path logic..Target == "<substrate>"reference remains.origin/mainwas merged (never force-pushed).vm:-keyed entries).scripts/bootstrap-charly.shproducedbin/charly (2026.270.0440);charly versionmatches; the changed plugins were built/served from their merged tags.charly check run check-r10-two-vmgate ran to completion from the final committed tree (PASS (steps=13)).Change classification
charlyGo code + dependency pins (a cross-cutting deploy-Mechanism / loader pin change) →go test/go vet+ R9 build +charly check runfor the bed whose kind matches the touched path (the VM bedcheck-r10-two-vm).gofmt/go vet/go test ./..., freshbootstrap-charly.sh+charly version, and the livecheck-r10-two-vmbed (fails-before / passes-after).fully tested and validated.Assisted-by: OpenCode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)