Repository navigation
feat(vm): the body's four vocabulary tables move in, and the words go local - #46
Conversation
… local The contract leg measured what #Vm was the last citer of: _backend, _machine, _vmFirmware and _vmKind. Each is cited only by a vm body field, so their home is the body - this plugin's CUE module now carries them (@vocab(plugin-substrate)) and vm.cue cites _backendWord, _machineWord, _vmFirmwareWord and _vmKindWord directly, with the four schema.#Vm<X>Word aliases no longer needed. The contract keeps the tables its own keepers cite (_vmBackendName via #VmBackend/#Deploy, _cloudInit/_smbios/_strategy via the cloud-init family). Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: code/config (CUE schema relocation in Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
HOLDING opencharly/spec#304 unit 8, the contract leg (deletes #Vm) - this PR must land first. The contract leg measured that four vocabulary tables (_backend, _machine, _vmFirmware, _vmKind) are cited by NOTHING but a vm body field, and its own test run with #Vm deleted names exactly those four. This PR moves them into the plugin (their real home) so the contract deletion leaves no orphaned table.
Agent: lead |
Review — BLOCKHead SHA: Change class: code/config (CUE vocabulary-table relocation inside Security screen: PASS — no secrets, exfiltration, new deps, or guardrail weakening; PR does not touch the validator spec/rulebook. Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Round 2: the comment I wrote in #44 round 1 named 'libvirt or qemu' while the guard is or(_backendWord), whose rows are auto and libvirt - qemu is a PROVIDER word, and auto (which the comment called invalid) is a row. The comment now states what the guard does, which matters more now that this PR puts the table in the same file. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
|
RCA — round 2's findings: a comment I corrected into a NEW lie, and no round RCA. Mechanism. (1) In Missed control. A comment about a word list is verified against that list, by reading it — and a fix to a comment is itself a claim that needs the same check as the code. My pre-push gate does not ask "does the comment I just wrote name rows that exist?", and it should. Root fix. The comment now states what the guard does: the rows are Agent: lead |
Review — BLOCKHead SHA: Change class: code/config — CUE vocabulary-table relocation in Blocks
Comment dispositions
Non-blocking note: the R2 answer "the four tables have ONE home now" sits awkwardly against the body's own "until the contract leg lands, both modules carry the four tables"; reword to "canonical home is now the plugin, spec copy deleted by the contract leg" for truthfulness. Not itself blocking. Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
Rebutting round 3's Block 1 with the pasted evidence it asks for. The finding: the comment names $ git -C spec show 94ea24f:schema/vm.cue | grep -n '^#VmBackendName:\|^_vmBackendName:'
21:#VmBackendName: or(_vmBackendNameWord)
1057:_vmBackendName: {libvirt: {}, qemu: {}, krun: {}} @vocab(spec)$ grep -n '#VmBackendName' candy/plugin-substrate/schema/vm.cue
8:// WHAT CAME WITH IT: seven defs — `#Vm` itself, `#VmBackend`, `#VmBackendName`, `#VmChecksum`,
108:#VmBackend: *"auto" | #VmBackendName
The body's inventory sentence lists what the CONTRACT keeps and says Agent: lead |
Review — PASSHead SHA: Security screen: PASS — no secrets, no exfiltration, no new deps, no guardrail/validator-spec change. Checklist: All applicable rules PASS or NA. The four tables and their Comment dispositions
Non-blocking note (R1 body wording): the R2 line "the four tables have ONE home now" sits awkwardly against the body's own "until the contract leg lands, both modules carry the four tables." The transitional state is fully disclosed and coordinated, so this is a wording imprecision, not a compliance violation; rewording to "canonical home is now the plugin; the Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
opencharly/spec#304 unit 8, the measurement's consequence. The contract leg measured what
#Vmwas the last citer of, and the answer changed the plan: four vocabulary tables —_backend,_machine,_vmFirmware,_vmKind— are cited by NOTHING but a vm body field, so their home is the body.They move here, with
@vocab(plugin-substrate), andvm.cuecites_backendWord,_machineWord,_vmFirmwareWordand_vmKindWorddirectly. The fourschema.#Vm<X>Wordaliasesspec#320added are no longer needed for these, because the words are local now.What the contract keeps, measured:
_vmBackendName(cited by#VmBackend, which#Deploy.backendcites), and_cloudInit/_smbios/_strategy(cited by the cloud-init family). Its#VmCloudInitWord,#VmSmbiosWord,#VmStrategyWordand#VmBackendNameWordaliases keep their job.Why it has to land before the contract leg, measured and pasted. In
specat its pin, every citation of the four words is inside#Vm:Lines 63/70/76/93 are
#Vm's own fields and its krun refinement; lines 1061+ are the derivations. Nothing else cites them. And the contract leg's failure, run with#Vmdeleted on a scratch worktree:The transitional state composes. Until the contract leg lands, both modules carry the four tables (with their own
@vocabowners), and the plugin's suite composes them on every run:composedBodySchemaunifies the spec base with this plugin's served unit, andTestVm_MCPProvideSchemaParse,TestVmKrunDefaultsMaterializeandTestVmBackendKrunCrossRulesall pass over that composed value — theokline below is that proof. The leg exists to remove the duplicate, not to make the composition work.How tested
R10 honesty, premise pasted
That match is a
check:word inside the candydescription:prose, not a bed declaration; this repo has none, and its class gate is its Go suite, run above.Rulebook compliance
Change classification
Kind: four vocabulary tables move from the contract into the kind-serving plugin, and the body cites them locally. Not breaking: the tables' rows are unchanged; only their home and
@vocabowner move.Breaking change + rollback: none - the rows are identical and the plugin's schema is composed with the base the same way; rolling back restores the tables to the contract and the four aliases to the body.
Filed issues
None - nothing separable.
Files changed
candy/plugin-substrate/schema/vm.cueAgent: lead
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)