Repository navigation
F2: the genericNode bridge dies — candy/cue/doc-stream restated on the parsed node (wave: spec 533, sdk 531, plugin-loader 534) - #565
Merged
Conversation
…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).
Contributor
Review — BLOCKHead SHA: Change class: refactor (runtime/code — parser-consolidation F2 genericNode bridge deletion + wave tag pins) Blocks
Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
….0621 + VM 2026.251.0627, both PASS)
Contributor
Review — PASSHead SHA: 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.
Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
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.
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) + thenormalizeNodeIntotest bridge;node_parse.go— thegenericNodetype (and with it the last type naming it,KindProvider+ its no-op bijection gate);node_candy.go— the yaml-keycandyIsImage+buildCandyre-conversion;node_build.go— thedecodeNodeValuewrapper;node_normalize.go— the two self-labeled (R3) one-line wrappers (isStandaloneResourceKind/foldStandaloneTemplateReply), inlined at their call sites;ensureMapmoved beside its consumer.What replaced them (all on the wire-safe
spec.ParsedNodethrough the loader seam):foldCandyKind:pl.CandyIsImage(pn)/pl.BuildCandy(pn)(the loaderkit parsed-node restatement, sdk v0.2026251.531) + the SHARED spec set-body foldsspec.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 isCueDocFromJSON(F2.3) — the gn→yaml.Marshal→CueDocFromYAML round trip is gone.materializeDiscoveredNode:pl.CandyIsImage(pn)(F2.1).materializeDocStream: the ONE loaderkit doc-stream composerpl.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.ymlverb_primaries:data directive, admitted by #NodeDoc via spec v0.2026251.533); the expectation is a parity assertion (node_desugar_test.go).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).How tested
All commands on the final COMMITTED tree (real tag pins, no replaces),
-count=1:The bridge-deletion acceptance points, verbosely:
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):
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 ofdistro-fedorapinned at93dee42d(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). NoCHARLY_REPO_OVERRIDEwas set — the runs resolve the @github pins as authored.POD bed
check-cross-local-http(disposable pod, distro-fedora bed) — calver2026.251.0621, PASS (steps=15):Summary artifact:
.check/check-cross-local-http/2026.251.0621/summary.yml— 15/15 stepsok: true,ok: trueoverall, 0 errors (only the allowlisted dev-worktree-binary-notice).VM bed
check-cross-vm-http(disposable Fedora-Cloud VM, distro-fedora bed) — calver2026.251.0627, PASS (steps=11):Summary artifact:
.check/check-cross-vm-http/2026.251.0627/summary.yml— 11/11 stepsok: true,ok: trueoverall, 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 atcheck-live(exit 2) under BOTH this branch's binary AND the F1-tag binary (c1aed4c,charly version2026.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 fallbackresolveHostCharlyBinuses 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
Change classification
Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (fully tested and validated)