Repository navigation
feat(vm)!: delete the authored body from the contract - #321
Conversation
#304 unit 8, the contract leg. The vm body lives in the plugin that serves the kind (plugin-substrate#42/#46), its tests moved there first (#43/#45), the resolve arm decodes straight into the envelope (#44) and loaderkit names the envelope (sdk#514) - so this contract stops declaring the body. Deleted: #Vm's seventy-three-line body, the #VmValue twin in node.cue, the four vocabulary tables only the body cited (_backend, _machine, _vmFirmware, _vmKind) with their four public re-exports, and the spec-side copies of the tests that moved (TestVmBackendKrunCrossRules, TestVmKrunDefaultsMaterialize, TestVm_MCPProvideSchemaParse, TestVm_MCPProvideYAMLRoundTrip). KEPT, deliberately and measured: the resolve envelope #ResolvedVm and every def it cites (#VmSource, #VmNetwork, #VmSsh, #VmCloudInit family, the sixty #Libvirt* defs, #VmKrun, #VmSnapshot), #VmBackend/#VmBackendName (cited by #Deploy and the spec.VmBackends generator), and the tables the keepers cite. VmSpec repoints to ResolvedVm. Proven by the ASSEMBLED build: charly + this contract + sdk + all 63 plugins at their merged mains builds clean (rc=0), where it failed on spec.Vm before the consumers landed. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Review — PASSHead SHA: Security screen: PASS — pure contract deletion; no secrets, no exfiltration, no guardrail/spec/rulebook edits, no supply-chain changes, no instruction-injection content. Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
The go CI job's golangci-lint named two unused functions (allErrors in the engine-vocab test, loadSchema in the mcp-provide test) and the compiler then named the imports those deletions orphaned. All removed; the suite is green and the generation reproducible. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Review — PASSHead SHA: Security screen: PASS — pure contract deletion in Checklist: All applicable rules PASS or NA.
Comment disposition:
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
#304 unit 8, the contract leg. Everything the authored body needed has landed and merged — the body (
plugin-substrate#42), its four vocabulary tables (#46), its tests (#43,#45), the envelope-direct arm (#44), the loader (sdk#514) and the two plugin-check collectors (plugin-check#149) — so this contract stops declaring the body.Deleted (the chain is complete):
#Vm's seventy-three-line body inschema/vm.cue;#VmValuetwin innode.cue;_backend,_machine,_vmFirmware,_vmKind) with their four public re-exportsspec#320added for it;TestVmBackendKrunCrossRules,TestVmKrunDefaultsMaterialize,TestVm_MCPProvideSchemaParse,TestVm_MCPProvideYAMLRoundTrip;VmSpecrepoints from the deletedVmto the survivingResolvedVm.KEPT, deliberately and measured: the resolve envelope
#ResolvedVmand EVERY def it cites —#VmSource,#VmNetwork,#VmSsh, the#VmCloudInitfamily, the sixty#Libvirt*domain defs,#VmKrun,#VmSnapshot— plus#VmBackend/#VmBackendName(cited by#Deploy.backendand by thespec.VmBackendsgenerator) and every table those keepers cite. A wire type's citations pin their defs in the contract; that is why only the body moved.The assembled proof, which is what decides this leg: a workspace of charly + this contract (with
#Vmdeleted) + sdk + all 63 compiled plugins at their merged mains + the plugin-check branch builds clean:Before
plugin-check#149the same build failed on exactly two lines (undefined: spec.Vmatcheckproject.go:322andlive_gather.go:360) — that is the check that the consumers landed first.How tested
The three vocabulary tests that outlived their file stay green,
TestVmVocabularyReExportsnow pins the four re-exports that remain (the other four moved with their tables), andTestEveryTableIsCitedAndEveryCitationResolvespasses because the deleted tables left with their only citer.R10 honesty, premise pasted
specis the contract module and owns no deployment bed; its change-class gate is its own Go suite plus the regeneration check, both pasted above. The DESIGN census runs in the umbrella on the pinned tree — this leg's census impact is measured when the pin advances (unit 8's wave).Rulebook compliance
#Vm, no alias left behind.charly task cue-genproves the generation reproducible on the committed tree.Change classification
Kind: a contract deletion — the vm body with its four vocabulary tables, the twin, the four public re-exports, and the spec-side test copies;
VmSpecrepoints to the envelope. The defs that REMAIN for this kind are the resolve envelope, every def it cites (including the sixty-strong libvirt domain family) and the backend vocabulary the deploy and the generator use.Breaking change + rollback: anything naming
spec.Vmor#Vm/#VmValuebreaks — and the org's consumers are adapted ahead of it: the body and its arm (plugin-substrate#42/#44), the loader (sdk#514), the two collectors (plugin-check#149), and the assembled build proves the whole graph. Rolling back is reverting this squash: the body, the tables, the twin and the generated types return, and the plugin's schema still serves because the wire never changed.Filed issues
None — the unit's remaining work is its pin wave, tracked on opencharly/opencharly#1015's successor and on the ledger.
Files changed
schema/vm.cue#Vm, the four body-only tables and their four re-exportsschema/node.cue#VmValuetwinschema/engine_vocab_and_vm_backend_test.goschema/vm_vocab_reexports_test.gospec/charly_names.goVmSpecrepoints toResolvedVmspec/vm_mcp_provide_test.gospec/cue_types_gen.gospec/vocab_gen.goAgent: lead
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)