Repository navigation
feat(load)!: read the opaque body the contract now sends - #48
Conversation
opencharly/spec#322 collapsed the load wire: #StructuralKindLoadEnv.members carries bytes and #StandaloneLoad carries shape plus one opaque body, so the authored Deploy/Box/Candy/Template arms are gone. This kind plugin echoes the body verbatim (a consumer that needs a field decodes it into its own value or the contract projection) and, where it threads authored members, decodes them from bytes. Pins brought current to the cutover: spec v0.2026318.2106, sdk v0.2026318.1654. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: code/config (plugin Go code + Security screen: PASS — no embedded directives, no secrets/egress, no guardrail weakening, placement is a candy capability (correct layer). No maintainer sign-off required. Comment thread: empty — no comments to disposition. Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Security screen: PASS — no embedded directives, no secrets/egress, no guardrail weakening, placement is a candy capability (correct layer). No maintainer sign-off required. Blocks
Comment disposition
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — PASSHead SHA: Security screen: PASS — no embedded directives, no secrets/egress, no guardrail weakening; placement is a candy capability (correct layer). No maintainer sign-off required. Prior comments (re-derived against current state):
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
opencharly/spec#322 collapsed the load wire:
#StructuralKindLoadEnv.memberscarries bytes and#StandaloneLoadcarriesshapeplus ONE opaquebody, so the authored#Deploy/#Box/#Candy/ typed-templatearms are gone.This plugin follows it. Nothing about the wire's discriminator moved:
shapekeeps its four values, so the arm still selects by shape and only the carrier changed.Why this shape and not a compatibility field: the RCA (
PROGRAM/schema-ownership-rca-rdd.md) found the wire was what kept ten authored bodies in the contract. Its mechanism is one carrier of bytes plus a projection — the plugin never receives the authored node.Pins brought current to the cutover:
spec v0.2026318.2106,sdk v0.2026318.1654(thesdkbump is load-bearing: itscueKindDefsstill named#Vm).How tested
Real output from this tree:
R10 honesty, premise pasted
The
check:matches are the candy ADE plan's build-context checks, not a bed; there is nodisposable:line anywhere in this repo, so no target is autonomously rebuildable and no R10 bed exists here to run. The change-class gate for a plugin library is the module suite pasted above; the assembled substrate beds that exercise this plugin live in the umbrella and were not run for this pin-level change.Rulebook compliance
loaderkit: CUE kind "vm": definition #Vm not found: field not found: #Vm [recovered, repan— because the pinnedsdkstill named#Vm; thesdkbump fixes it, and the green run below is the proofsdkbump and passes with itChange classification
Kind: the plugin reads the contract's opaque load carrier instead of the deleted authored arms, and its
spec/sdkpins advance to the cutover.Breaking change + rollback: none for this repo's consumers — the same
kindword is served with the same behaviour; the wire it reads changed in the contract, and that is the pin this commit takes. Rolling back restores the typed-arm reads, which only compile against the pre-#322 contract.Filed issues
None — the one anomaly (the stale sdk pin) is fixed here.
Files changed
candy/plugin-substrate/plugin.gocandy/plugin-substrate/load_pod_substrate_test.godeployBodyhelper + the twoBody:literals that replace the deletedDeploy:fieldgo.mod/go.sumspec v0.2026318.2106,sdk v0.2026318.1654Agent: lead
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)