Repository navigation
feat(loaderkit): relocate the node-form config parse into sdk/loaderkit (P6 parse) - #22
Conversation
…it (P6 parse) The node-form config PARSE — yaml to the generic spec.ParsedProject — moves from charly core into a new sdk/loaderkit package, so the loader plugin candy and charly core parse a project with the SAME code. Parse half of the P6 loader-to-plugin cutover; the superproject consumer wires the loader plugin as the config front-end, deletes the in-core parse, and folds the last typed uf.* per-kind maps to the generic representation. - loaderkit.ParseDoc: node decomposition + plan-step desugar into spec.ParsedProject, consulting only spec vocabulary + the host-threaded loaderkit.Threaded registry DATA (boundary law clause D — a kind-blind mechanism, never a provider registry). - loaderkit.DocParser / DefaultParser: the swappable per-document parse seam an alternative loader plugin can replace. - spec.ParsedProject / ParsedNode: the CUE-sourced (schema/parsedproject.cue) wire type the parse produces and the host materializes into the typed *UnifiedFile. - schema/candy.cue: #PluginCapability admits the loader: provider class. Standalone tests (loaderkit/parse_test.go) cover entity decode, directive skip, plan-sugar desugar, member-child recursion, and the no-discriminator / duplicate-name errors. Assisted-by: Claude (fully tested and validated)
pr-validator — CHANGES REQUESTED ❌Change class: cross-repo producer (sdk Go library) — parse relocation into Re-derived independently from the diff, a fresh module-isolated ( Checklist
Decision (blocking)The library code is strong and every deterministic gate I re-ran is green. The block is R10 roster-evidence integrity, which is the acceptance gate for this cross-repo producer. The PR states the R10 gate as "the integrated superproject roster (binary 2026.192.0636), all disposable, CONCURRENT" and lists all six beds — including
Consequences: (a) the pasted R10 evidence is inaccurate/misleading about which binary was tested; (b) the mid-roster rebuild To pass, do one of:
Leaving the PR open; re-push a fix commit (do not close/recreate) and the status will reset for re-validation. Assisted-by: Claude (analysed on a live system) |
pr-validator — APPROVED ✅ (supersedes the prior 2026-07-11T07:01:33Z CHANGES-REQUESTED verdict)Change class: cross-repo producer (sdk Go library) — R10 = the consuming superproject's disposable roster (B6). The prior blocker (roster "split across two binaries", 0636 vs 0643, no RCA) is cleared, and I re-derived every gate independently from primary evidence (not the author's narrative): R10 evidence integrity — the prior blocker, resolved.
Concurrency (cross-cutting loader change → concurrent roster required): five beds started within an 11-second window (09:06:47–09:07:07 local) and ran fully in parallel; the heaviest bed (check-k8s-deploy, group→k3s-VM+k8s) ran staggered as the persistent session's long VM bed — in-spec by-owner fan-out. Disposable-only: all six beds are Deterministic gates re-run live: Checklist
Decision: APPROVED. The R10 roster is a coherent, concurrent, all- Assisted-by: Claude (analysed on a live system) |
…kit parse) pr-validator merge-time version stamp for #22; renames the placeholder CHANGELOG to the generated CalVer and matches its H1. Assisted-by: Claude (fully tested and validated) Claude-Session: https://claude.ai/code/session_01W8GPhuyWWs5XwJyJYtCaxE
Summary of changes
P6 (loader → plugin) — the sdk producer (parse half). The node-form config PARSE moves from charly
core into a new
sdk/loaderkitpackage, so the loader plugin candy and charly core parse a project withthe SAME code.
loaderkit.ParseDoc— decomposes one node-form document intospec.ParsedProject(ParsedNodes:name + kind discriminator + opaque JSON body + member children). Consults ONLY spec vocabulary + yaml +
the host-threaded
loaderkit.Threaded(registry-derived kind-recognition DATA — recognized kinds /deploy substrates / member-nesting structural kinds / each verb's scalar-sugar primary field), never a
provider registry — a kind-blind mechanism (boundary law clause D).
loaderkit.DocParser/DefaultParser— the swappable per-document parse seam an alternativeloader plugin replaces.
spec.ParsedProject/ParsedNode— CUE-sourced (schema/parsedproject.cue) wire type; regeneratedinto
spec/cue_types_gen.goviatask cue:gen(reproducibility gate green).schema/candy.cue—#PluginCapabilityadmits theloader:provider class.Change class
cross-repo producer (sdk Go library). This sdk PR lands + tags FIRST; the superproject consumer
(charly core dispatch + loader plugin + the typed-map fold) bumps the gitlink to the merged tag.
How R10-tested — exact gate, commands, and pasted output
The parse is a library — its R10 is the CONSUMING superproject's disposable roster (cross-repo B6): the
integrated tree (this sdk branch via
replace => ../sdk+ the superproject consumer) drove the fulldisposable pod/VM/group check roster, and every bed loaded config through
loaderkit.ParseDoc.Binary identity (single, coherent):
charly version=2026.191.2254(the HEAD-commit-datestamp), built ONCE —
/var/log/pacman.logshows exactly oneopencharly-gitinstall today (08:29:22),/usr/bin/charlymtime 08:29:11. The.check/<bed>/<calver>dir is a per-INVOCATION RUN timestamp, NOTthe binary version; all six beds below were launched in ONE concurrent batch and share run-calver
2026.192.0706— no rebuild between beds.Attribution tier
fully tested and validated— the parse ran live in every bed of the integrated disposable roster on afresh rebuild;
go test(loaderkit + spec, incl. the reproducibility gate) green.CLAUDE.md rule compliance
/charly-internals:go+/charly-internals:pluginloaded.ok: true; no flake framing. (The port earlier surfaced two realbugs —
authoredOpFieldSet=spec.AuthoringVerbs; theloader#PluginCapabilityregex — both RCA'dtyped uf.* map-kill) is the paired superproject PR of the SAME P6 cutover, landed immediately after.
loaderkit.Threaded), no shim.go test.2026.191.2254, single pacman install).disposable: truebeds only, fresh rebuild, zero warnings; the loaderkit tests FAILwithout the parse.
spec.ParsedProjectis a CUE def (schema/parsedproject.cue) generated bytask cue:gen; theBodyfield usesRawBody(no hand-written wire struct).yaml.Unmarshal, notLoadUnified); the recursiveParsedNode+ opaque body generate faithfully; the whole-suite round-tripproved the parse behaviour-neutral before core's parse was deleted.
is threaded DATA (clause D), never a compiled-in per-kind branch.
CHANGELOG/2026.192.0700.mdstaged (placeholder CalVer; the pr-validator finalizes thev0.<YYYYDDD>.<HHMM>tag).Assisted-by: Claude (fully tested and validated)