Repository navigation
fix(loaderkit): the vm kind table names the envelope - #514
Conversation
opencharly/spec#304 unit 8: the vm body moved into plugin-substrate CUE module and the contract will delete #Vm, so loaderkit kind table must name #ResolvedVm - the envelope that stays - exactly as the pod, local, kubernetes and kubevirt entries do. Naming the authored def here is the panic the pod precedent recorded: the loader panics at first use when the base no longer declares it. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: code/config (Go library — one Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Round 1 showed the one-line change had no test that would fail without it. The floor test now asserts cueKindDefs[vm] == #ResolvedVm beside the pod twin (the pod precedent that recorded the panic), and the plant proves it: with the old #Vm restored the test fails naming the entry; restored byte-identical, the suite is green. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
|
HOLDING opencharly/spec#304 unit 8, the contract leg (deletes #Vm) - this loader entry must land first. The vm body moved into plugin-substrate's CUE module (plugin-substrate#42) and its resolve arm decodes straight into the envelope (plugin-substrate#44). This change makes loaderkit's kind table name the def the contract KEEPS (#ResolvedVm) instead of the authored #Vm, so the loader cannot panic at first use once the base stops declaring #Vm.
Agent: lead |
Review — PASSHead SHA: Security screen: PASS Comments considered:
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
opencharly/spec#304 unit 8, the loader leg. The vm body moved into plugin-substrate CUE module (plugin-substrate#42), so
loaderkitkind table must name the def that STAYS:#ResolvedVm, the resolve envelope — exactly as the pod, local, kubernetes and kubevirt entries do.Why this is not cosmetic. The pod precedent recorded the failure mode: a kind-table entry naming the AUTHORED def panics at first use once the base stops declaring it. This entry named
#Vm; the contract leg deletes#Vm; so it names#ResolvedVmnow, before the deletion.Round 1 was right that nothing pinned it. The change carried no test that would fail without it, and
#Vmstill exists — so both names pass today. The floor test now assertscueKindDefs[vm] == #ResolvedVmbeside the pod twin, and the plant proves it.How tested
R10 honesty, premise pasted (round 1 called the previous version faked, correctly)
That single match is a
check:word inside a candydescription:PROSE block, not a bed declaration:sdkdeclares no deployment bed. Its change-class gate is its Go suites, and the changed line is now gated by a test that fails without it (the plant above).Coordination
HOLDING opencharly/plugin-substrate#42/#44 and the unit-8 contract legis posted on this thread; the matchingWAITINGis onopencharly/spec#304. This loader entry must land before the contract stops declaring#Vm.Rulebook compliance
Change classification
Kind: one kind-table entry in
loaderkitchanges from the authored def to the resolve envelope, plus the test that pins it. Not breaking: the loader resolves the same wire shape, and the envelope is what the host gate reads.Breaking change + rollback: none - the entry's target is a def the contract keeps either way; rolling back would restore the name the deletion removes.
Filed issues
None - nothing separable.
Files changed
loaderkit/cue_schema.govmentry names#ResolvedVmloaderkit/declared_fields_floor_test.goAgent: lead
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)