Repository navigation
feat(wire)!: the load wire carries opaque bytes, never an authored body - #322
Conversation
First cutover of the schema-ownership mechanism (PROGRAM/schema-ownership-rca-rdd.md).
DESIGN.md §10.2 and D-SCH-3 put every kind body in its owning plugin's CUE module; the
thing that kept ten entities in this contract was the WIRE naming their authored types. Both
authored-type channels now carry bytes:
- #StructuralKindLoadEnv.members: {[string]: #Deploy} -> {[string]: bytes}
- #StandaloneLoad: shape + exactly one of deploy/template/box/candy -> shape + one opaque body
So the contract stops carrying #Deploy, #Box and #Candy on the load wire, and the four shapes
ride one carrier. Consumers echo the body verbatim; a consumer that needs a field decodes it
into its own value or the contract's projection (D-SCH-7, added by the RDD).
Proven on an assembled workspace: charly + THIS contract + sdk + the four repointed kind
plugins + plugin-box/plugin-check at their mains builds clean.
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: Security screen: PASS — no secrets, no guardrail weakening, no instruction-injection, scope matches the two stated files. Prior comment disposition (bot BLOCK at
Blocks
The diff itself is a clean hard cutover (fields deleted, not deprecated; Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Prior comment disposition
Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Round 3 found the real gap: the diff shipped no assertion that fails without it. These two tests pin both channels - the one opaque carrier with its four shapes, and the members map - so a future typed arm breaks the build instead of sliding through review. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
|
HOLDING the four kind readers' repoint (plugin-substrate, plugin-candy-kind, plugin-kubevirt, plugin-example-structkind) - this contract must land first. Each reader's
Agent: lead |
Review — BLOCKHead SHA: Prior comments — re-derived against the current state
Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
RCA — round 4: the missing round RCA, and a hand-written file table that missed a file Mechanism. (1) The Files-changed table is typed by hand from what the author remembers Missed control. The pre-push gate runs the body lint and the diff reconcile, and the reconcile Root fix. This round adds the missing row and posts this RCA before the push. The durable fix Agent: lead |
Review — PASSHead SHA: Security screen: PASS — no secrets, no guardrail weakening, no instruction-injection; scope matches the 3 stated files. Comment disposition:
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
* feat(load)!: read the opaque body the contract now sends 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) * docs: the real gate output and the shape this plugin actually has (review round) * docs: the executed premise and the test file in the accounting (review round) --------- Co-authored-by: aitrawog <[email protected]>
* feat(load)!: read the opaque body the contract now sends 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) * docs: the real gate output and the shape this plugin actually has (review round) * docs: the executed premise and the test file in the accounting (review round) --------- Co-authored-by: aitrawog <[email protected]>
* docs: rename CONTAINERD-IMAGES.md to IMAGES.md and move REASONIX.md into design/ The containerd image contract takes the name it now describes, and the reasonix harness binding moves out of the repo root into design/ beside the design ledger. reasonix loads instruction files only from the workspace root, so a binding that moves off the root is delivered by nobody unless something prints it into the session. The move therefore ships WITH the injection that keeps it loaded: the existing SessionStart hook now emits the binding after the SOUL.md identity, and scripts/check-harness-config.mjs gains check 7b, which asserts both halves (the binding exists at its declared home, and the hook cats it) plus the self-test mutations that prove each half can go RED. The old filename's remaining citations live in six sibling repos, which the umbrella never edits (AGENTS.md Part II #1); they are filed as #1028. Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated) * docs(program): the schema-ownership RCA and the mechanism design The RCA behind the remaining schema cutovers, and the design that replaces per-kind "keeper" judgements with one wire discipline plus a checker. Root cause: the cutover treated the wire shape as a constraint on the kind instead of as part of the cutover, so every kind whose wire named an authored type stayed in spec and was recorded as a keeper. Ten entities are still in that state. Design: five invariants — opaque bodies on the wire, plugin-declared gates, composed resolution with no base fallback, a process-blind threaded gate, and a citation-witnessed ownership checker — plus one registry-driven acceptance test and an ordered migration whose first cutover (the wire collapse) is already merged as opencharly/spec#322. DESIGN.md additions, no scope reduction: a normative row for the deployment entity, a D-SCH-7 wire rule, and the ownership check in the section-25 census. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (documentation reviewed) * docs: the headline counts carry the commands that produced them Review round: the PR body claimed the document holds its commands; now it does, for the three counts a reader can re-run in one line each (the contract's defs, the kind words, and the four dead re-exports). Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (documentation reviewed) * docs: the stat at this PR's head (review round) * docs: the dead-def sweep, and the counts claim narrowed to what is proven Round 2: the document asserted more than it proved. §6 now carries the repo-wide sweep for the four dead re-exports (three sites each: the def, its generated type, and the test that pins it) and the remaining figures no longer claim a command they do not show. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (documentation reviewed) * docs: the stat at the new head (review round) * docs: the claim scoped to what section 6 proves (review round) --------- Co-authored-by: aitrawog <[email protected]>
* feat(load)!: read the opaque body the contract now sends 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) * docs: the real gate output and the shape this plugin actually has (review round) * docs: the executed premise and the test file in the accounting (review round) * test(load): the opaque carrier is echoed verbatim, and an empty body 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) * docs: the accounting matches the diff, and the commit claim the truth (review round) * docs: the verbatim diffstat, the repo-wide premise, and the round RCA (review round) * docs: the executed suite and the verbatim premise sweep (review round) * docs: the test's real mechanism (review round) * docs: the comment names the pre-cutover envelope correctly (review round) * docs: the pre-cutover envelope named correctly, and the rule answers given (review round) --------- Co-authored-by: aitrawog <[email protected]>
* feat(load)!: read the opaque body the contract now sends 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) * docs: the real gate output and the shape this plugin actually has (review round) * docs: the executed premise and the test file in the accounting (review round) * docs: the accounting matches the diff, and the commit claim the truth (review round) * docs: the verbatim diffstat, the repo-wide premise, and the round RCA (review round) * docs: the executed suite and the verbatim premise sweep (review round) * test(members): a distinguishing field, so a no-op decode cannot pass 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. * docs: the stat and the accounting at this head (review round) * docs: the pre-cutover envelope named correctly, and the rule answers given (review round) --------- Co-authored-by: aitrawog <[email protected]>
…in follows (#1147) * feat(load)!: the host threads every member as bytes, and the k8sgen pin follows The host side of the schema-ownership mechanism's first cutover (opencharly/spec#322, opencharly/opencharly#1035). #StructuralKindLoadEnv.members now carries `{[string]: bytes}`: the host marshals each canonical member node once at the seam and the plugin decodes what it needs, instead of threading the authored `*spec.Deploy` across the wire. The four kind readers (plugin-substrate, plugin-candy-kind, plugin-kubevirt, plugin-example-structkind) read the same wire. Also advances the plugin-k8sgen pin to v0.2026318.330: the pinned version still read spec.KubernetesGenInput.Cluster, which unit 5 replaced with cluster_raw - the defect filed as opencharly/opencharly#1026 and the one red in any assembled build. Proven on an assembled workspace: THIS binary + the merged spec + sdk + the four readers + [email protected] + plugin-box/plugin-check at their mains builds clean (rc=0). Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated) * feat(load)!: the host threads every kind gate, and the gate compiles in its module The KindGates channel now works end to end. Three defects had to fall: 1. the registry key is `class:word` (providerKey), not `class/word` -- splitting on the wrong separator left the map EMPTY, so the fill silently fell back to the envelope; 2. N complete CUE files joined verbatim are invalid CUE (two package clauses, imports mid-stream) -- joinCueSources hoists one package clause and the union of imports; 3. the gate source must compile IN ITS MODULE (sdk#525), because a served plugin schema may import the spec schema. With all three, the six TestApplyCueDefaults_* tests pass: a body that lives in a plugin now resolves through the gate the plugin DECLARED. One pre-existing test (TestCueTightening_) now fails on the `#VmValue` (#Vm | #DeployValue) union requiring autostart, filed rather than papered over. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated) * docs: nine pins accounted, the tier at what ran, the red measured (review round) * feat(load): the gate fills its authored and wire shapes apart spec#328 gave KindGate a WireDef beside Def. The host now fills Def with the AUTHORED body (#Vm, autostart defaulted) and WireDef with the value the plugin's InputDef names (#VmValue), following the schema's own #X / #XValue naming. The suite is green with one test skipped: TestCueTightening_RejectsAndAccepts fails in the DOCUMENT DECODE (#1048), measured as failing identically with these loader changes stashed. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated) * feat(load)!: the host threads every kind gate, and the full suite is green The schema-ownership mechanism works end to end. The host fills Threaded.KindGates from each serving plugin DECLARED InputDef plus its served source; the fill resolves the AUTHORED body (#Vm) with the wire value (#VmValue) beside it, per spec#328; and the entity validation reaches the same resolution over the seam (spec#329, implemented by the compiled-in loader, resolved by sdk#527). Three defects fell on the way: the registry key is class:word (not class/word, which left the map empty), N CUE files joined verbatim are invalid CUE, and a gate source must compile in its module. RC=0: the full module suite, no failures. The six TestApplyCueDefaults_* tests and TestCueTightening_RejectsAndAccepts are both green -- the mechanism and the corpus that guards it. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated) * docs: the gates probe on this head, and the tier at what ran (review round) * test(load): the substrate fold marshals its body onto the wire (review round) * test(load): all three marshalling arms carry bytes onto the wire (review round) * test(load): the gates fill ships its own test (review round) * docs: the R7 evidence is the shipped test (review round) * fix(load): a structural kind wins over the host-value-gated route A structural kind that ALSO declares an InputDef was routed to foldHostValueGatedKind, which folds one opaque body and rejects entity children -- "is not structural" -- for a provider that IS one. So a structural plugin kind could not nest authored resource members at all. The carrier the host already holds now decides BEFORE the gated route, and the members channel is reachable and tested (TestRunPluginKindMarshalsEveryMemberAsBytes). Found by finally building the fixture opencharly/opencharly#1057 tracked. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated) * docs: the authored-twin probe is stated as a probe, not a naming rule (review round) * docs: the round RCA names the missed control (review round) * chore(tools)!: the tools modules share the wave pins tools/gomod-canonical enforces ONE sdk/spec pin across every tools module, and the wave advanced charly to sdk v0.2026319.1126 / spec v0.2026319.1226 -- so the five tools modules followed. The canonical check now passes; the CI go job was failing at "Test tools modules" for exactly this. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated) * docs: the tools pins are accounted for in the table (review round) * chore(tools): only the modules that import the pins carry them (review round) * docs: the tools rows are one path per line (review round) * docs: the two bare tools modules differ only by the go directive (review round) * docs: the round RCA names the missed control (review round) * docs: the tools RCA is on the thread for this head (review round) * docs(load): the gate source is the UNION of served sources (review round) * docs: the round RCA precedes this push (review round) * test(load): the stub carries no dead field (lint) --------- Co-authored-by: aitrawog <[email protected]>
Summary
First cutover of the schema-ownership mechanism diagnosed in
PROGRAM/schema-ownership-rca-rdd.md. The RCA's root cause: the cutover treated the wire's shape as a constraint on the kind instead of as part of the cutover, so every kind whose wire named an authored type stayed in this contract and was recorded as a "keeper". Ten entities are still in that state.This change removes the permission slip. Both authored-type channels on the load wire now carry bytes:
#StructuralKindLoadEnv.members:{[string]: #Deploy}becomes{[string]: bytes};#StandaloneLoad:shapeplus exactly one ofdeploy/template/box/candybecomesshapeplus one opaquebody.Consequences, deliberately: the contract no longer carries
#Deploy,#Boxor#Candyon a wire at all — which is what makes their moves possible (DESIGN.md §3.1 puts the candy body and boxes in the build plugin, and the deployment kinds own their kind state). A consumer that needs a field decodes the bytes into its own CUE-declared value or the contract's projection; none receives the authored node.shapekeeps its four existing values (deploy,template,candy-image,candy-layer), so the wire's discriminator is unchanged and only the carrier moves.How tested
The proof is an ASSEMBLED build, because the contract's consumers are plugins the binary embeds:
The consumers' state, stated exactly: the four readers' repoints are on sibling
feat/wire-opaque-bodiesbranches, NOT yet merged — they cannot be, because the code they carry (.Body) only compiles once this contract is available. The org's producer-first order is therefore: this contract merges, then each reader bumps itsspecpin and merges, then the umbrella wave.plugin-boxandplugin-checkneed NO code change, measured per consumer against this contract:So the ONE red in the assembled build is
plugin-k8sgen's pinned version (#1026, reproduced without this change); everything else compiles.Each reader's own suite, run over the new contract:
This repo's own gate:
Thirty packages exercised, zero failures,
go vetclean, and the regeneration a no-op on the committed tree.R10 honesty, premise pasted
specis the contract module and owns no deployment bed; its change-class gate is its Go suite plus regeneration (pasted above), and the behavioural proof is the assembled build.Rulebook compliance
plugin-k8sgen's pin no longer compiles because unit 5 reshaped#KubernetesGenInput— filed as plugin-k8sgen's pin no longer compiles against spec after unit 5's wire reshape opencharly#1026; (b)plugin-boxandplugin-checkare stale only as PINNED versions in charly's module cache, while theirorigin/maincompiles against this contract (measured,build_rc=0). (b) is a pin-currency observation, not a defect, so there is nothing to file for it; (a) is filed because it IS a broken compile.#StandaloneLoad{...}literal in the four consumers is repointed in the same wave.plugin-k8sgen's pinned version (#1026, pre-existing and filed).charly task cue-genproves the generated types follow the source.Change classification
Kind: a contract wire reshape.
#StandaloneLoadand#StructuralKindLoadEnv.membersstop carrying authored types;deploy/box/candy/templatecollapse into onebodybytes field. Not breaking for the YAML author — no authored shape or field name changes — but it IS a breaking Go/protocol change for every plugin that reads those fields.Breaking change + rollback: every plugin reading
Standalone.Deploy/Box/Candy/TemplateorMembers[...]as a node stops compiling until it echoes or decodesBody. After this merges, a consumer that has not yet bumped itsspecpin stays on the previous contract (thebehindstate the pin contract reports) and keeps working; the four first-party readers are the ones that must bump to use the new shape. This contract's ownmainis green; what is already broken onmaintoday isplugin-k8sgen's pin (#1026), which this change neither causes nor fixes. Rolling back is reverting this squash: the four typed arms and the#Deploymap return, and every plugin compiles again because no authored body moved.Filed issues
plugin-k8sgen's pin no longer compiles againstspecafter unit 5's wire reshape (reproduced without this change).Files changed
schema/deploy.cue#StructuralKindLoadEnv.membersbecomesmap[string]bytes;#StandaloneLoadbecomesshape+bodyspec/cue_types_gen.goStandaloneLoad{Shape, Body RawBody},Members map[string]RawBodyspec/wire_opaque_bodies_test.goAgent: lead
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)