Repository navigation
feat(spec): Threaded gains the deploy-substrate declared-fields channel (the #Deploy-schema twin of StructuralDeclaredFields) - #107
Conversation
…el (the #Deploy-schema twin of StructuralDeclaredFields) One data channel, zero hardcoded word lists: DeployDeclaredFields maps a DEPLOY-SUBSTRATE word to the declared body FIELD NAMES of its registered input schema (for pod/vm/local/android/kubernetes that is the #Deploy family) — the substrate-side twin of #104's StructuralDeclaredFields. The sdk parse (follow-up PR) consults it so a substrate body's DECLARED #Deploy fields (iterate/plan/record/disk_size/ram/...) stay data even when the field's VALUE SHAPE would classify as an in-substrate member (the sdk #221 regression: pod body iterate:{agent:[...]} misparses because agent is a kind word). A substrate word absent from the map keeps the documented value-shape scan — the no-declared-schema fallback. Gate: go build/vet/test ./... -count=1 green on the committed tree.
Review — BLOCKHead SHA: Change class: additive contract-type change (one hand-written struct field + doc comment in Security screen: PASS — no scope mismatch (diff is exactly the one field the body describes), no secrets/exfiltration, no weakened guardrails, no supply-chain change, no instruction injection. Blocks
Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
…alidator ruling (the field is data-only in this diff; the behavioral execution lives in the follow-up sdk PR)
Review — PASSHead SHA: Security screen: PASS — diff is exactly the one additive struct field the body describes; no scope mismatch, no secrets/exfiltration, no weakened guardrails, no supply-chain change, no instruction injection. Checklist: All applicable rules PASS or NA.
Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
…d #Deploy fields — the deploy-declared-fields channel (sdk #221 class) (#225) The #222/#223 parent-disc + key-rule guards fixed the STRUCTURAL arm, but the SUBSTRATE arm (t.DeploySubstrates) still scanned disc values by VALUE SHAPE (discEntityPairs/isEntityValue): a declared #Deploy field whose value mapping carries a kind-word key classified as an IN-SUBSTRATE MEMBER. The proven repro (the canonical charly-cli ADE iterate-entity bed): a pod primary body with iterate: {sandbox: check-agent-pod, agent: [check-agent-live-claude], plateau_iteration: 1, ...} — `agent` is a kind word, so `iterate:` classified as a member named "iterate", parseNode("iterate") took `agent` as ITS disc, and the scalar `sandbox:` hard-failed "expected a mapping value, got yaml kind 8". Renaming the key to agentsX got past the raw parse (then CUE: field not allowed) — isolating the parse class. Same mechanism as #223, extended to deploy substrates: membership semantics live in the PARENT kind's declared schema — for substrates that is #Deploy's OWN CUE schema. The new spec.Threaded.DeployDeclaredFields channel (opencharly/spec#107, v0.2026249.2215 — the #104 StructuralDeclaredFields twin) is consulted by the substrate branch: a pair whose KEY is a declared #Deploy field is DATA — its value is never looked inside; every other entity-keyed value-shape member (web:/chrome:/sidecar:) stays a member. A substrate word with NO declared schema threaded keeps the plain value-shape scan (the documented no-declared-schema fallback). Zero hardcoded lists. Also pins spec v0.2026249.2215 (the channel's contract change). Gate: go build/vet/test ./... -count=1 green on the committed tree; the repro fixture + the full corpus (authored-depth, 8a external-structural, TestParse_StructuralDeclaredFieldStaysData, TestNoDualMapConstruction) green.
Summary
One data channel, zero hardcoded word lists:
Threaded.DeployDeclaredFieldsmaps a DEPLOY-SUBSTRATE word to the declared body FIELD NAMES of its registered input schema (for pod/vm/local/android/kubernetes that is the#Deployfamily). The substrate-side twin of #104'sStructuralDeclaredFields.The sdk parse's in-substrate member scan (follow-up sdk PR) consults it so a substrate body's DECLARED
#Deployfields (iterate,plan,record,disk_size,ram, ...) stay DATA even when the field's VALUE SHAPE would classify as an in-substrate member — the proven sdk #221 parse regression: a pod primary body carrying the canonical ADE iterate patterniterate: {sandbox: ..., agent: [...], ...}misparses becauseagentis a kind word, so the value-shape scan (isEntityValue) classifiesiterate:as an in-substrate member named "iterate",parseNode("iterate")takesagentas ITS disc, and scalarsandbox:hard-fails "expected a mapping value, got yaml kind 8".A substrate word absent from the map (no declared schema threaded) keeps the documented value-shape scan unchanged — the no-declared-schema fallback, mirroring #104's structural fallback.
No CUE schema change, no
cue:gen(Threaded is a hand-written contract type); no migration.How tested
(all packages ok, zero FAIL, run on the committed tree)
Rulebook compliance
isEntityValue); a declared#Deployfield whose value mapping carries a kind-word key (iterate:→agent:) misclassifies as an in-substrate member. The root cause is the missing field-awareness channel on the deploy side; this PR is the contract half, mirroring the merged feat(spec): Threaded gains the structural declared-fields channel #104 mechanism — no new mechanism invented (R3). RCA of this PR's own validator BLOCK: A3 tier inflation — the new field is a pure data declaration in THIS diff (its behavioral execution lives in the follow-up sdk PR), so the changed path does not execute here; the tier is downgraded per the ruling.StructuralDeclaredFieldspattern (feat(spec): Threaded gains the structural declared-fields channel #104) extended to the deploy-substrate schema; no duplicate channel.-count=1.loaderThreaded()reading registered substrate InputDef field names) and the sdk parse change are separate consumer PRs, deliberately NOT widened into this one (the feat(spec): Threaded gains the structural declared-fields channel #104 precedent).Change classification
-count=1) on the committed tree — pasted above.analysed on a live system— the new field is a data declaration consumed by the follow-up sdk PR; the full gate passed on the live tree, but the field's own behavior does not execute in this diff (A3 ruling).Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (analysed on a live system)