Repository navigation
fix(vm): drop the six defs the contract kept, and cite them - #47
Conversation
The pin wave census named what the split got wrong: six of the defs this plugin copied in #42 (VmBackend, VmBackendName, VmCharlyInstall, VmChecksum, VmInstaller, VmKeyInjection) are ALSO declared in the contract after #321, because the keepers and the generator cite them - D-PAT-2 dup findings at six lines. The plugin deletes its copies and cites schema.#<Name> instead; #Vm and #VmValue remain the only defs whose home is here. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: schema-only (CUE) edit in a plugin; gate is the plugin's composed-schema Go suite. Security screen: PASS — no secrets, no network, no guardrail weakening, no instruction aimed at the validator. Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Round 1: my schema.-prefix sweep hit the header's own inventory, leaving it claiming seven defs arrived while marking six schema.-prefixed - the six this leg deletes. The header now says #Vm and the twin are the only defs here, and names the six as keepers this file cites. The blank run the excision left is collapsed too. No generated Go: this plugin generates nothing from its schema (no schemaparams/CandyParams in its Go); the wire types are the contract's, generated there. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Review — PASSHead SHA: Security screen: PASS — schema-only deletion, no secrets/network/guardrail weakening, no instruction aimed at the validator. Non-blocking note (QUAL cosmetic): two consecutive blank lines remain where the six defs were excised ( Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
opencharly/spec#304 unit 8, the dedup the pin wave's census found. The D-PAT control named six
dupfindings in this plugin'sschema/vm.cue:#VmBackend,#VmBackendName,#VmCharlyInstall,#VmChecksum,#VmInstallerand#VmKeyInjectionare ALSO declared in the contract afterspec#321, because the keepers and the generator cite them.Measured, not assumed:
The fix: the plugin deletes its six copies and cites
schema.#<Name>instead.#Vmand#VmValueremain the only defs whose home is here — which is exactly the split the contract leg measured: a wire type's citations pin their defs in the contract.No generated Go, stated explicitly (round 1 asked): this plugin generates nothing from its schema — there is no
schemaparams/CandyParamscall in its Go — so deleting the six@go-tagged defs changes no generated file here. The wire types are generated in the CONTRACT from the CUE that stays there, and this leg changes no contract file.How tested
The suite composes the spec base with this plugin's served unit on every run, so the six defs resolving from the contract IS what the
okline proves.R10 honesty, premise pasted
That match is a
check:word inside the candydescription:prose, not a bed; this repo declares no bed, and its class gate is its Go suite, run above.Rulebook compliance
Change classification
Kind: six duplicated defs leave the plugin and are cited from the contract instead. Not breaking: the composed schema resolves the same defs from the same module (the contract), and the body's fields are unchanged.
Breaking change + rollback: none - the plugin's own CUE no longer restates names it can import; rolling back restores the duplicates and the six D-PAT findings.
Filed issues
None - the finding is fixed here; the census tracks the D-PAT class at opencharly/opencharly#945.
Files changed
candy/plugin-substrate/schema/vm.cueschema.#Agent: lead
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)