Repository navigation
feat(spec): Threaded gains the structural declared-fields channel - #104
Merged
Merged
Conversation
…e parent-disc guard's field awareness) One data channel, zero hardcoded word lists: StructuralDeclaredFields maps a STRUCTURAL kind word to the declared body FIELD NAMES of its registered input schema (the capability's InputDef, e.g. plugin-group's #GroupInput). The host fills it from the registered schema; the sdk parse (follow-up PR) consults it so a structural body's DECLARED fields stay data even when a field name could collide with a kind word (group's `iterate:` carrying an `agent:` key — the distro-arch corpus regression). A kind word absent from the map (no declared schema threaded) falls back to every kind-word key being a member — the documented, tested no-declared-schema fallback. Gate: go build/vet/test ./... -count=1 green on the committed tree. MSG && git push -u origin feat/threaded-declared-fields 2>&1 | tail -2
Review — PASSHead SHA: Security screen: PASS — single additive struct field + doc; no secrets, no exfiltration, no scope mismatch, no guardrail weakening, no supply-chain change. Checklist: All applicable rules PASS or NA.
Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
atrawog
added a commit
that referenced
this pull request
Sep 6, 2026
…th the merged #104 precedent + the pr-validator spec item-3 tier vocabulary (see the RCA comment)
github-actions Bot
pushed a commit
that referenced
this pull request
Sep 6, 2026
…task 1, contract half) (#105) * feat(schema)!: remove the group kind from the spec schema (Cutover C task 1, contract half) The targetless deploy kind group: (C2-group) is REMOVED at the schema boundary: the new member-tree bed shape makes its dual representation forbidden at R10. #ResourceKind drops the word; the former authored shape (a bed-level group: key carrying scalars with member entities as sibling keys) is migrated by the charly migrate rewrite (the charly wave, in flight): the first member becomes the deploy primary substrate node, the group scalars move onto that primary, remaining members stay deploy-level siblings. - schema/node.cue: group dropped from #ResourceKind; live group doc claims rewritten (the removed #GroupInput had no schema def left, only a doc reference, now gone); the removal + the post-migrate spelling documented inline - schema/deploy.cue: group removed from the edge-discriminator doc + the venue/lifecycle doc clauses - schema/_common.cue: the Calamares package surface is candy-only now - spec/charly_methods.go: Deploy.IsGroup() deleted (a targetless member-bearing deploy is no longer an authorable shape) - spec/member_tree_test.go: the IsGroup fixture migrated to the post-migrate primary-substrate spelling - spec/loader_seam.go: stale #GroupInput / targetless-group examples in the Threaded seam docs reworded - spec/{cue_types_gen,vocab_gen}.go: regenerated (task cue:gen twice, hash-identical) * docs: re-trigger validator — PR body corrected (the initial create consumed a stale shared-/tmp body file; the correct body describing this diff is now on the PR) * docs: re-trigger fresh per-HEAD review — A1 footer ruling answered with the merged #104 precedent + the pr-validator spec item-3 tier vocabulary (see the RCA comment)
github-actions Bot
pushed a commit
that referenced
this pull request
Sep 6, 2026
…el (the #Deploy-schema twin of StructuralDeclaredFields) (#107) * feat(spec): Threaded gains the deploy-substrate declared-fields channel (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. * docs: re-trigger fresh per-HEAD review — A3 tier downgraded per the validator ruling (the field is data-only in this diff; the behavioral execution lives in the follow-up sdk PR)
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
One data channel on the loader seam, zero hardcoded word lists:
spec.ThreadedgainsStructuralDeclaredFields map[string]map[string]bool— a STRUCTURAL kind word → the declared body FIELD NAMES of its registered input schema (the capability's InputDef, e.g. plugin-group's#GroupInput). The HOST fills it from the registered schema; the sdk parse (follow-up PR referencing opencharly/sdk#222) consults it so a structural body's DECLARED fields stay data even when a field name could collide with a kind word — the distro-arch corpus regression (group'siterate:block carrying anagent:key) is the live case.A kind word absent from the map (no declared schema threaded) falls back to every kind-word key being a member — the documented, tested no-declared-schema fallback.
How tested
The consumer fixtures proving the channel (declared-field exclusion + no-declared-schema fallback) land in the sdk follow-up PR that bumps this pin.
Rulebook compliance
Change classification
-count=1) on the committed tree — pasted above.fully tested and validated.Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (fully tested and validated)