Repository navigation
feat(load)!: read the opaque body the contract now sends - #11
Merged
Merged
Conversation
added 9 commits
November 14, 2026 22:09
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)
Round 3: both members fed {} and the assertions watched only names and positions, so any
decode - including one that dropped the bytes - passed. One member now carries from:
postgresql:16 and the test asserts the contract node holds it.
…given (review round)
Review — PASSHead SHA: Security screen: PASS Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Successor to #10 (auto-closed at the verdict threshold with this same commit; the R0/R4 answers and the head-accurate stat are in this body).
Successor to #9 (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 — and the one place it threads authored members now DECODES them from bytes into the contract's projection before they join the ordered tree (visible in
plugin.go, covered byTestInvokeReconstructsMemberTree). 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 suite composes the spec base with this plugin's served CUE unit on every run, so a body that failed to ride the new carrier fails here rather than in a bed.
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
gofor the CUE-generated types the members channel decodes into,pluginfor the per-plugin CUE contract,cutover-policyfor the hard cutover this pin bump is part of.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.map[string]*spec.Deploy)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-example-structkind/plugin.gospec.Deploybefore it joins the ordered treecandy/plugin-example-structkind/plugin_test.gomap[string]spec.RawBody, one member carries a distinguishingfrom:field, and the test asserts the decoded node holds it (a no-op decode can no longer pass)go.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, protobuf, x/{net,sys,text}, go-toml 2.4.3, yaml 3.0.5 — all transitive, none used by this plugin's own code.go.sumkeeps the supersededspec/sdkh1:lines becausego mod tidyis not run in this repo's gateAgent: lead
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)