Skip to content

F2: the genericNode bridge dies — candy/cue/doc-stream restated on the parsed node (wave: spec 533, sdk 531, plugin-loader 534) - #565

Merged
github-actions[bot] merged 3 commits into
mainfrom
feat/f2-bridge-deletion
Sep 8, 2026
Merged

github-actions[bot] merged 3 commits into
mainfrom
feat/f2-bridge-deletion

Conversation

@atrawog

@atrawog atrawog commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

F2: the genericNode bridge dies — candy/cue/doc-stream restated on the parsed node (wave: spec 533, sdk 531, plugin-loader 534)

Summary

Parser-consolidation F2 — the core bridge deletion (plan/nested-capture-architecture.md, Cutover F2): the genericNode dual representation dies.

What died (all 5 files deleted):

  • node_parsed.go — the JSON→yaml→JSON round-trip machine (parsedNodeToGeneric/genericToParsedNode) + the normalizeNodeInto test bridge;
  • node_parse.go — the genericNode type (and with it the last type naming it, KindProvider + its no-op bijection gate);
  • node_candy.go — the yaml-key candyIsImage + buildCandy re-conversion;
  • node_build.go — the decodeNodeValue wrapper;
  • node_normalize.go — the two self-labeled (R3) one-line wrappers (isStandaloneResourceKind/foldStandaloneTemplateReply), inlined at their call sites; ensureMap moved beside its consumer.

What replaced them (all on the wire-safe spec.ParsedNode through the loader seam):

  • foldCandyKind: pl.CandyIsImage(pn)/pl.BuildCandy(pn) (the loaderkit parsed-node restatement, sdk v0.2026251.531) + the SHARED spec set-body folds spec.SetBoxInto/spec.SetCandyInto (spec v0.2026251.533, F2.4) — no genericNode reconstruction anywhere in the dispatch.
  • validateKindValueCUE: the mapping-shape check reads the CANONICAL JSON body directly; the CUE ingest is CueDocFromJSON (F2.3) — the gn→yaml.Marshal→CueDocFromYAML round trip is gone.
  • materializeDiscoveredNode: pl.CandyIsImage(pn) (F2.1).
  • materializeDocStream: the ONE loaderkit doc-stream composer pl.ParseDocStream (F2.5) drives the embedded-vocab stream with the same per-document pipeline as the file walk; the hand-rolled classify/gate/parse loop is deleted.
  • pluginPrimaries (F2.6): the frozen 11-entry literal is DELETED — the table is seeded at init from the compiled-in units' declared capability primaries (the embedded charly.yml verb_primaries: data directive, admitted by #NodeDoc via spec v0.2026251.533); the expectation is a parity assertion (node_desugar_test.go).
  • Moved tests: the five bridge test files' candy/child-form coverage moved beside the loaderkit implementation as candy_node_test.go + node_childform_test.go (sdk); the charly-side plugin e2e + node-form tests were rewritten against parsed-node fixtures (parsednode_helpers_test.go).
  • R5 claim-keyed sweep: stale claims about the deleted bridge fixed in loader_threaded.go / plugin_prescan.go / materialize.go / plugin_inproc.go / materialize_seam_parity_test.go / KERNEL_MANIFEST.md (rows + citations).
  • Pins: spec v0.2026251.533, sdk v0.2026251.531, plugin-loader/candy/plugin-loader v0.2026251.534 (the wave's released tags; dev replaces dropped).

How tested

All commands on the final COMMITTED tree (real tag pins, no replaces), -count=1:

$ gofmt -l .            # empty
$ go build .            # exit 0
$ go vet ./...          # exit 0
$ go test ./... -count=1
ok  github.com/opencharly/charly/charly                121.847s
ok  github.com/opencharly/charly/charly/internal/pluginsgen  29.953s

The bridge-deletion acceptance points, verbosely:

$ go test . -run 'TestCandyKind|TestSubstrateKind|TestPluginPrimaries' -count=1 -v
--- PASS: TestCandyKind_BothShapesByteEquivalent (0.00s)     # foldCandyKind == direct decode, parsed-node baselines
--- PASS: TestSubstrateKind_BothShapesByteEquivalent (0.00s) # foldSubstrateKind byte-equivalence, parsed-node fixtures
--- PASS: TestSubstrateKind_ImagelessAgentProvisionedPodFoldsToDeploy (0.00s)
--- PASS: TestSubstrateKind_PlainImagelessPodStaysTemplate (0.00s)
--- PASS: TestSubstrateKind_ImagelessAgentProvisionedWithSiblingStillFolds (0.00s)
--- PASS: TestPluginPrimaries_ParseTimeParity (0.00s)        # the 11-entry convention, asserted

The moved/rewritten coverage lives in sdk/loaderkit (candy_node_test.go, node_childform_test.go, parse_doc_stream_test.go — green in sdk #240) and the loader-plugin seam tests (plugin-loader #8).

B14(d) sweeps (identifier-keyed, word-boundary):

$ grep -rn 'parsedNodeToGeneric|genericToParsedNode|normalizeNodeInto|genericNodesFromDoc|candyNodeFromYAML|substrateNodeFromYAML' charly --include='*.go'
(nothing — zero live references; only the deleted-file history remains)
$ grep -rn 'candyIsImage|buildCandy|decodeNodeValue' charly --include='*.go' | grep -v '_test.go'
(nothing — the loaderkit uppercase seam names are the only spellings; no genericNode consumer survives)

A2/A3 — the F-wave R10 bed batch (fresh rebuilds on DISPOSABLE targets), run on the completed F2 wave:

Both beds ran to completion (exit 0, all steps ok: true) from a FRESH scratch project — a fresh clone of distro-fedora pinned at 93dee42d (git HEAD verified), NOT in-repo — with this branch's binary (built at e17d798, charly version → 2026.251.0539) on PATH. Same recipe as the F1 wave's bed batch (distro-fedora clone + dev binary, step matrices below). No CHARLY_REPO_OVERRIDE was set — the runs resolve the @github pins as authored.

POD bed check-cross-local-http (disposable pod, distro-fedora bed) — calver 2026.251.0621, PASS (steps=15):

$ charly check run check-cross-local-http    (cwd: fresh distro-fedora@93dee42d clone)
charly check run check-cross-local-http: [image-build] PASS after 108s (cache=59/142)
charly check run check-cross-local-http: [check-image] PASS after 15s
charly check run check-cross-local-http: [deploy-add] PASS after 3s
charly check run check-cross-local-http: [config] PASS after 4s
charly check run check-cross-local-http: [start] PASS after 3s
charly check run check-cross-local-http: [bring-up-members] PASS after 3s
charly check run check-cross-local-http: [check-live] PASS after 6s
charly check run check-cross-local-http: [feature-run] PASS after 4s
charly check run check-cross-local-http: [rebuild-members-down] PASS after 2s
charly check run check-cross-local-http: [update] PASS after 15s
charly check run check-cross-local-http: [re-bring-up-members] PASS after 2s
charly check run check-cross-local-http: [check-live-rebuild] PASS after 5s
charly check run check-cross-local-http: [feature-run-rebuild] PASS after 4s
charly check run check-cross-local-http: [cleanup] PASS after 5s
charly check run check-cross-local-http: [cleanup-members] PASS after 25s
charly check run check-cross-local-http: PASS (steps=15)

Summary artifact: .check/check-cross-local-http/2026.251.0621/summary.yml — 15/15 steps ok: true, ok: true overall, 0 errors (only the allowlisted dev-worktree-binary-notice).

VM bed check-cross-vm-http (disposable Fedora-Cloud VM, distro-fedora bed) — calver 2026.251.0627, PASS (steps=11):

$ charly check run check-cross-vm-http      (cwd: same fresh distro-fedora@93dee42d clone)
charly check run check-cross-vm-http: [vm-build] PASS after 1s
charly check run check-cross-vm-http: [vm-create] PASS after 1s
charly check run check-cross-vm-http: [deploy-add] PASS after 22s
charly check run check-cross-vm-http: [bring-up-members] PASS after 3s
charly check run check-cross-vm-http: [check-live] PASS after 5s
charly check run check-cross-vm-http: [rebuild-members-down] PASS after 2s
charly check run check-cross-vm-http: [update] PASS after 31s
charly check run check-cross-vm-http: [re-bring-up-members] PASS after 3s
charly check run check-cross-vm-http: [check-live-rebuild] PASS after 3s
charly check run check-cross-vm-http: [cleanup] PASS after 2s
charly check run check-cross-vm-http: [cleanup-members] PASS after 2s
charly check run check-cross-vm-http: PASS (steps=11)

Summary artifact: .check/check-cross-vm-http/2026.251.0627/summary.yml — 11/11 steps ok: true, ok: true overall, 0 errors (only the allowlisted dev-worktree-binary-notice).

Both disposable targets are named above; both are the plan's F-wave R10 roster (one pod bed + one VM bed on the consolidated binary), now RUN — no deferral.

R1 note — boxload-pod (pre-existing, not this PR): an earlier probe of check-boxload-pod (the pod bed whose instrument step needs host-env plumbing) fails at check-live (exit 2) under BOTH this branch's binary AND the F1-tag binary (c1aed4c, charly version 2026.250.2055 — identical failure, log /tmp/f1-bed-boxload.log, calver 2026.251.0557). RCA: the pod's config-setup path hits the host-env nested-podman threading gap tracked in the scratchpad (plugin-deploy-pod's fallback resolveHostCharlyBin uses its own binary; upstream spec pin < 1030 cannot read a 1030 project) — unrelated to the F2 bridge deletion, which is why the F-wave roster runs the two cross-{local,vm}-http beds above instead. The wave re-run on the merged wave binary will re-prove the roster.

Rulebook compliance

  • R3 — one parsed-node implementation per behavior (loaderkit), one set-body fold (spec), one doc-stream composer; the deleted bridge had NO copy left standing.
  • R5 — the bridge + its wrappers are deleted in the same PR that removes their last callers; the moved tests were rewritten against the parsed node, never keeping the old fixtures; stale manifest rows/citations swept.
  • R1 — parse-time determinism for the platform live-container verbs (proven load-bearing by the corpus fixtures) is preserved BY DATA (verb_primaries) — the literal deletion surfaced the requirement through the corpus tests before anything shipped; boxload-pod's live-step failure reproduced identically under the F1-tag binary and is recorded above as pre-existing.
  • R6 — branch-only (feat/f2-bridge-deletion), no force-push, no hook bypass. R10 — all gates on the final committed real-pinned tree + the disposable bed batch above.

Change classification

  • Change class: refactor (parser-consolidation F2 bridge deletion + wave tag pins)
  • Verification gate: gofmt/build/vet + FULL kernel suite green on the final committed real-pinned tree; parity tests green; B14 sweeps clean; pod + VM R10 beds run on the final tree (calvers 2026.251.0621 / 2026.251.0627, both PASS)
  • Attribution tier: fully tested and validated

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

…ion)

Parser consolidation F2 (plan/nested-capture-architecture.md, Cutover F2). The
dual-representation member-tree IR is gone: node_parsed.go (the
JSON→yaml→JSON round-trip machine parsedNodeToGeneric/genericToParsedNode +
the normalizeNodeInto test bridge), node_parse.go (the genericNode type),
node_candy.go (the yaml-key candyIsImage + buildCandy re-conversion) and
node_build.go (decodeNodeValue's wrapper) are DELETED. Their last prod callers
(foldCandyKind, validateKindValueCUE, materializeDiscoveredNode) now operate
on the wire-safe spec.ParsedNode through the loader seam:

- foldCandyKind: pl.CandyIsImage(pn)/pl.BuildCandy(pn) (the loaderkit parsed-node
  restatement) + the SHARED spec set-body folds (spec.SetBoxInto/SetCandyInto,
  F2.4) — no genericNode reconstruction anywhere in the dispatch.
- validateKindValueCUE: the mapping-shape check reads the canonical JSON body
  directly; the CUE ingest is CueDocFromJSON (F2.3) — the
  gn→yaml.Marshal→CueDocFromYAML round trip is gone.
- materializeDiscoveredNode: pl.CandyIsImage(pn) (F2.1).
- materializeDocStream: the ONE loaderkit doc-stream composer
  (pl.ParseDocStream, F2.5) drives the embedded-vocab stream with the same
  per-document pipeline as the file walk; the hand-rolled classify/gate/parse
  loop is deleted.
- The three self-labeled (R3) one-line wrappers (isStandaloneResourceKind,
  foldStandaloneTemplateReply, decodeNodeValue) are inlined at their call
  sites / die with buildCandy; node_normalize.go disappears, ensureMap moves
  beside its consumer.
- pluginPrimaries (F2.6): the frozen 11-entry table is DELETED — the table is
  seeded at init from the compiled-in units' declared capability primaries
  (the embedded charly.yml verb_primaries: data directive, admitted by
  #NodeDoc), and the expectation is a parity assertion (node_desugar_test.go).
- KindProvider (the last type naming genericNode) + its no-op bijection gate
  die with the type; the reserved-registry test iterates the live ClassKind
  registry instead.
- R5 sweep: stale claims about the deleted bridge fixed across
  loader_threaded.go / plugin_prescan.go / materialize.go /
  materialize_seam_parity_test.go / plugin_inproc.go / the kernel manifest.
- Moved tests: the bridge test files' candy/child-form coverage lives beside
  the loaderkit implementation in sdk (candy_node_test.go,
  node_childform_test.go); the charly-side plugin e2e + node-form tests were
  rewritten against parsed-node fixtures (parsednode_helpers_test.go).

Full kernel suite green on the committed tree (with the wave's worktree
replaces; the final pin commit swaps them for the released tags).
….531, plugin-loader v0.2026251.534

The F2 bridge-deletion wave's seam surface + implementations are released
(spec #123/#124, sdk #240, plugin-loader #8). The dev worktree replaces are
dropped; the full kernel suite is green on the final committed real-pinned
tree.
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: e17d798579ce825ef411d4388c628e4cc882ab54 (branch: feat/f2-bridge-deletion)

Change class: refactor (runtime/code — parser-consolidation F2 genericNode bridge deletion + wave tag pins)

Blocks

  1. A2/A3/R10 — the runtime bed batch is deferred, not run. This is a runtime/code refactor that rewrites the materialize path (materializeDocStream, foldCandyKind, validateKindValueCUE, materializeDiscoveredNode) and deletes the genericNode bridge. R10 requires a FRESH-rebuild, disposable: true bed run with pasted output for the changed pieces. The body's "How tested" supplies only gofmt/go build/go vet/go test output — no disposable bed run, no FAIL-RED/PASS-GREEN output. The body explicitly defers the required proof: "The F-wave R10 bed batch (one pod bed + one VM bed on the consolidated binary) runs as the wave step, per the plan's F-wave R10 scheduling." That is the forbidden "will test later" pattern (A2), and the claimed tier "fully tested and validated" is inflated (A3) because the changed code paths have not executed against a fresh rebuild on a disposable target. The author must run the pod + VM beds on the final committed real-pinned tree and paste the output (naming the disposable: true targets), or the tier must be downgraded and the bed proof supplied before this can land.

Verdict: BLOCK


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

View action run

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: bcfadc667495ad47d5a8002b4103d85d039694f2 (branch: feat/f2-bridge-deletion)

Security screen: PASS — no scope mismatch (all diff items accounted for in the body), no secrets/exfiltration, no weakened guardrails, no supply-chain surprises beyond the wave's released tag pins (spec 533 / sdk 531 / plugin-loader 534, matching the body's stated pins).

Checklist: All applicable rules PASS or NA.

  • A1/A2/A3 — Body is complete and accounts for every diff item (5 deleted bridge files, the parsed-node replacements, moved/rewritten tests, R5 sweep, pins). The prior BLOCK's finding (deferred bed batch) is resolved: the current body now supplies the F-wave R10 roster — pod bed check-cross-local-http (calver 2026.251.0621, 15/15 ok: true) and VM bed check-cross-vm-http (calver 2026.251.0627, 11/11 ok: true), both on named disposable: true targets from a fresh distro-fedora@93dee42d clone with the branch binary (charly version 2026.251.0539, built at e17d798 — code-identical to head since the final commit is body-only). Tier fully tested and validated is justified: the changed materialize/desugar paths executed live against the fresh rebuild. Attribution footer present in exact form.
  • B16 architecture gate — placement: CORRECT. Capability moves OUT of core (genericNode bridge deleted; candy/cue/doc-stream restated on spec.ParsedNode through the loader seam into sdk/loaderkit). No new/grown charly/*_aliases.go, no new core import of an sdk kit, no *Legacy* identifier.
  • B5/B12/B14(d) — gofmt/vet/build green, full suite ok; parity tests PASS; B14(d) sweeps pasted with real command+output showing zero live references to the deleted identifiers. R10 proof internally consistent (real bed names, plausible step counts, same binary version named throughout).
  • R1 boxload-pod note — acceptable disclosure, not a forbidden R2 split: the failure reproduces identically under the F1-tag binary (proven pre-existing, in a different subsystem — plugin-deploy-pod host-env threading), is not part of this PR's required roster (which ran and passed), and carries a specific RCA + routing mechanism. Not used to dodge proof.
  • B13/B18 — no new/changed candies (ADE NA), no schema/generated-file changes (SDD NA), no duplication, no ad-hoc workarounds, no dead code left in touched modules.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) September 8, 2026 06:40
@github-actions
github-actions Bot merged commit 349ed47 into main Sep 8, 2026
3 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Sep 8, 2026
@aitrawog
aitrawog deleted the feat/f2-bridge-deletion branch September 25, 2026 19:04
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