Skip to content

feat(ir): consume the uniform ordered member tree + feed StructuralDeclaredFields (Cutover C task 0, consumer half) - #550

Merged
github-actions[bot] merged 2 commits into
mainfrom
feat/member-tree
Sep 6, 2026
Merged

github-actions[bot] merged 2 commits into
mainfrom
feat/member-tree

Conversation

@atrawog

@atrawog atrawog commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Summary

The Cutover C task 0 consumer half in charly: re-pin sdk v0.2026249.2036 + spec v0.2026249.2030 (the member-tree parse-guard wave: sdk #222 parent gate, spec #104 the StructuralDeclaredFields channel, sdk #223 the KEY rule) and migrate charly's own source to the uniform ordered member tree (commit 2f27420: fleet_add_cmd HasChildren -> InSubstrateMembers; plugin_loader SortedNestedKeys/Children -> InSubstrateMembers/MemberByName; provider_kind_invoke []Member -> the StructuralKindLoadEnv marshal seam).

This PR also implements the guard report's finding #1: loaderThreaded() populates Threaded.StructuralDeclaredFields from the registered structural plugins' #XInput schemas - without the feed the guard's declared-field exclusion is inert.

How tested (pasted, LIVE)

$ go build ./...          -> exit 0
$ go vet ./...            -> exit 0
$ go test -count=1 ./...  -> ok github.com/opencharly/charly/charly 94.674s
                             ok github.com/opencharly/charly/charly/internal/pluginsgen 27.118s
$ go build -o /tmp/charly-cc0c -ldflags "-X main.BuildCalVer=candy-dev" .
$ /tmp/charly-cc0c box validate
charly box validate: OK — checked 7 distros, 7 builders; 0 warnings, 0 errors

Binary: built from THIS PR's tree with the sdk v0.2026249.2036 + spec v0.2026249.2030 pins (the member-tree IR live).

Rulebook compliance

Change classification

Class: consumer migration + pin bump (Cutover C task 0, consumer half). Gate: go build/vet/test + charly box validate, all executed on the final committed tree. Attribution: fully tested and validated.

Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (fully tested and validated)

charly-agent and others added 2 commits September 6, 2026 22:31
…(Cutover C task 0 consumer half)

- Re-pins sdk v0.2026249.1959 -> v0.2026249.2036 (the member-tree parse
  guard wave: sdk #222 parent gate, spec #104 StructuralDeclaredFields
  channel, sdk #223 the KEY rule) and spec v0.2026249.1948 -> v0.2026249.2030.
- loaderThreaded() now populates Threaded.StructuralDeclaredFields from the
  registered structural plugins' #XInput schemas - the guard's declared-field
  exclusion is inert without this feed (the guard report's finding #1).
- New unit gate: loader_threaded_declared_fields_test.go pins the feed.
- Full gates: go build/vet clean, go test -count=1 ok (94.7s suite +
  pluginsgen), charly box validate OK 0 warnings 0 errors.
@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 34aba95fb2c3 (branch: feat/ir-consume-ordered-member-tree)

Security screen: PASS — no scope mismatch (diff matches the described consumer migration + pin bump), no secrets/exfiltration, no weakened guardrails, no unexpected supply-chain refs (all pins to github.com/opencharly/... upstream CalVer releases).

Checklist: All applicable rules PASS or NA.

  • A1/A2/A3: body accounts for the migration (fleet_add_cmd, plugin_loader, provider_kind_invoke) and the new StructuralDeclaredFields feed; How-tested pastes go build/vet/test + charly box validate on the final committed tree with the new pins; attribution fully tested and validated justified (new/changed paths executed live); footer in correct Assisted-by: form.
  • R1: sdk feat(docs): land the excerpt checker, and make the README excerpts tell the truth #221 regression RCAd upstream and consumed, not worked around; box validate at 0 warnings/0 errors.
  • R2: no deferred defect; group: special case routed to named batch CC-1.
  • R3/R5: dual Children/Members maps removed; single ordered member representation; fleet import dropped from plugin_loader.
  • R4: []Member→map conversion at the marshal seam is a CUE-frozen wire-contract conversion, not a workaround.
  • R10: fresh rebuild, full suite + validate on final tree, new loader_threaded_declared_fields_test.go pins the feed (would fail without it).
  • B13 SDD: no schema/generated-file changes; no banned patterns.
  • B16 placement: CORRECT — loader feed and member-tree consumption are core's plugin-loading responsibility; no new aliases, no sdk-kit imports into core, no *Legacy* identifiers.
  • B15: two commits are one atomic cutover task (migration + pin/feed), squash acknowledged; no partial work.
  • B18: gofmt-clean, no lint-visible defects, no invariant violations.

Verdict: PASS


ollama/deepseek-v4-flash — pi-review-action.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) September 6, 2026 20:59
@github-actions
github-actions Bot merged commit dafed49 into main Sep 6, 2026
3 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Sep 6, 2026
github-actions Bot pushed a commit that referenced this pull request Sep 24, 2026
…-C (W3) (#649)

* fix(check): the ephemeral-register-roundtrip assertion is pre-Cutover-C (W3 RCA)

The bed `check-sidecar-pod`'s `ephemeral-register-roundtrip` step asserted the
DOTTED address for `check-sidecar-pod-ephvm` (timer prefix
`…-check-sidecar-pod-check-sidecar-pod-ephvm`, `deploy_address:
check-sidecar-pod.check-sidecar-pod-ephvm`). That member is authored at
4-space indent — a SIBLING of the `pod:` key, i.e. a DEPLOY-LEVEL member.

Cutover C (spec #103 / charly #550, 2026-09-06) made deploy-level members
TOP-LEVEL addressable entries addressed by their BARE name
(sdk/loaderkit/deploy_load.go:81-92; FoldMembers promotes them to
`uf.Deploy[<bare>]`); only IN-SUBSTRATE members (entity keys inside the kind
body) are addressed `root.child`. A VM member is necessarily deploy-level (it
cannot deploy INTO the pod's venue), so `BringUpMembers` dispatches
`deploy add check-sidecar-pod-ephvm` with the bare key BY DESIGN
(sdk/deploykit/deploy_members.go:92), and the bare address propagates through
`lifecycleParams.Name` into `EphemeralRegisterRequest.Name`.

The assertion landed 2026-07-21 (d35a0fd), BEFORE Cutover C reclassified the
member, and was never swept. No product change: the address computation is
faithful — the bare `check-sidecar-pod-ephvm` IS the CLI-addressable identity
(`charly deploy del check-sidecar-pod-ephvm`). This corrects the assertion + the
step/member comments to the Cutover C contract.

R10: `charly check run check-sidecar-pod` on a fresh rebuild —
`[check-live] PASS`, `ephemeral-register-roundtrip` exit=0, 24 passed/0 failed/6
skipped.

Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

* fix(check): sweep the W3 step's residual stale claims + anchor the bare address exactly

Validator round 2 on the W3 fix:
- sweep the step description's remaining "NESTED" framing (the member is
  DEPLOY-LEVEL — the step text now says so);
- cure the parking framing in the very lines this PR rewrites ("PRE-EXISTING,
  universal gap unrelated to this cutover, registered to the bed-robustness
  batch" → the bare statement of the gap, no deferral);
- tighten the deploy_address conjunct to the BARE form
  (`deploy_address: check-sidecar-pod-ephvm`), dropping the `.*` that also
  matched the stale dotted form and so could not distinguish the two.

No product change.

Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

* docs: re-freeze the PR body (validator round 3)

* fix(check): the W3 step description's bare colon broke YAML — wrap pod: in backticks

Round-2's "sibling of the pod: key" put a raw `: ` inside an unquoted YAML
scalar, so `charly.yml` failed to parse at line 1211
(`mapping values are not allowed in this context`), reddening TestCueKinds_Corpus
+ TestCharlyDevCandyDeclared. RCA: the edit added a colon-space mid-scalar and
the local `charly box validate` was not re-run after the round-2 edit. The
backtick form `pod:` has no colon-space and parses.

`charly box validate`: OK — 628 candies, 0 warnings, 0 errors.

Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

* fix(check): sweep the step's RCA #4 text — the timer prefix is the bare alias now

Validator round 4 block 2: the step description's RCA #4 still said the timer
conjunct greps SanitizeUnitName(fullDottedDeployName) "applied to the FULL
dotted deploy address, not the leaf name" and that "the pre-fix pattern used the
leaf name alone and could never match" — while the conjunct now greps exactly the
bare charly-deploy-del-check-sidecar-pod-ephvm. The two cannot both hold.
Swept to the post-Cutover-C contract: the conjunct greps the deploy's
CLI-addressable identity, which for this deploy-level member is the BARE name.

charly box validate: OK — 628 candies, 0 warnings, 0 errors.

Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

* docs: re-freeze the PR body against the final head

* docs: re-freeze the PR body against the final head

---------

Co-authored-by: Andreas Trawoeger <[email protected]>
@aitrawog
aitrawog deleted the feat/member-tree branch September 25, 2026 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant