Repository navigation
feat(load)!: read the opaque body the contract now sends - #9
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)
…is rejected Round 2 found the arm had no test: a compile-only argument proves neither the verbatim echo nor the empty-body guard. Both are asserted now. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Blocks
Comment dispositionsComment 6884598179 (@github-actions[bot], head
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Blocks
Comment dispositions
Security screen: PASS (no secrets/egress; new indirects are transitive from the Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…given (review round)
Review — PASSHead SHA: Security screen: PASS (no secrets/egress; new indirects are transitive from the Comment dispositions (all re-derived against the current head):
The new test exercises the changed arm ( Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
Successor to #8 (auto-closed at the verdict threshold with this same commit; every finding was body accounting, and this body is regenerated from the head's own
git diff --stat).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:
The added test constructs the envelope directly (
spec.StandaloneLoad{Shape: …, Body: RawBody(...)}) and asserts the verbatim echo per shape plus the empty-body error, so it fails to COMPILE against the PRE-cutover envelope — the one that carried the typed Box/Candy arms and had no Body field. and fails at run time if the arm stops echoing. The repo's other suite (schema_serve_test.go) is the one that composes the served CUE unit.R10 honesty, premise pasted
rc=1with no lines is the empty result of a REAL repo-wide sweep (-r --include), so nodisposable:declaration exists anywhere in this repo: nothing here is autonomously rebuildable, and there is no bed in this repo to run. The singlecheck:match is the candy plan's build-context check, not a bed. The change-class gate for a plugin library is the module suite pasted above, and the changed decode path is exercised by it.Rulebook compliance
specfor the opaque carrier, andsdkbecause itscueKindDefstable names the pre-unit-8 defs; the green suite above is the proof. No failure output is claimed beyond what was measured here.Change 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-candy-kind/plugin.gocandy/plugin-candy-kind/load_opaque_body_test.gogo.mod/go.sumspec v0.2026318.2106,sdk v0.2026318.1654) plus whatgo getpulled with them: thegodirective to 1.26.8, six new indirects (ociregistry, go-digest, image-spec, go-internal, oauth2, x/sync) and the bumps grpc 1.83.2, genproto 20260825, protobuf 1.36.12, x/{net,sys,text}, pelletier 2.4.3, yaml 3.0.5 — all transitive, none used by this plugin's own codeAgent: lead
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)