Repository navigation
refactor(build)!: the render engine moves to sdk/deploykit; charly keeps the host-side ENGINE (P8 consumer) - #62
Conversation
…eps the host-side ENGINE (P8 consumer)
The superproject half of P8 (plugin-build becomes the REAL engine). The build-mode
Containerfile RENDER MECHANISM relocates from charly/ into sdk/deploykit (see the
sdk half); charly's render methods become thin delegating shims over a cached
Generator.toDeploykit(), and the host-side build ENGINE stays core as the Mechanism
reached via HostBuild("image").
- generate.go/tasks.go/init_config.go: the reusable render primitives (writeCandySteps,
emitInitAssembly/emitInitFragmentStages/generateInitFragments, emitTasks, scratch/
extract stages, bootstrap, per-candy env/expose, traefik routes, effective-version/
graph/order) become one-line shims delegating to deploykit.Generator. toDeploykit()
wires the host-coupled seams (EmitPluginOp, CollectBoxPorts, ValidateEgress,
RenderService, RewriteHeaderCopyForRemote, RenderLocalPkgImageInstall,
ResolveInlineBuilder + ExternalizedBuilders). graph.go DELETED; graph_shim.go keeps
the CycleError alias + candyModelMap adapter + delegating wrappers.
- candy_model_render_accessors.go: the *Candy accessors satisfying the grown
deploykit.CandyModel render/init/writeCandySteps surface.
- STAYS CORE — the host-side build ENGINE (the Mechanism reached via HostBuild):
Generate/generateContainerfile/emitPreMainCandyStages/generateDataImageContainerfile
orchestration; the builder-emit registry cluster; writeLabels (kind-blind
Config-metadata); the host-fs/registry seams. The delegating shims are the PERMANENT
facade (core engine -> deploykit render library), not a transitional dual-mode path.
- generate_env_escape_test.go DELETED -> moved verbatim to sdk/deploykit/candy_env_test.go.
- sdk submodule pointer bumped to the merged P8 sdk commit; charly/go.mod sdk require
bumped to the merged sdk tag (in-tree resolution rides replace => ../sdk).
Behaviour-neutral: charly box generate is BYTE-IDENTICAL across every image (main +
box/fedora set, incl. builder/localpkg/supervisord paths); the check-sidecar-pod
disposable bed passes 11/11 steps through a fresh charly update rebuild.
Assisted-by: Claude (fully tested and validated)
pr-validator — CHANGES REQUESTED ❌Change class: charly/sdk Go (Containerfile generation) → runtime class I re-derived compliance independently against R0–R10 + skills (no author claim trusted). The engineering is almost entirely clean — the code move is coherent, byte-parity is credible, and every Go gate I re-ran live is green — but the hard-cutover comment sweep (R5) is incomplete: two references to identifiers this PR moved out of Blocking findings (R5 — hard cutover / grep self-test)
Both are trivial to fix; append a fix commit and push fast-forward (do not close/recreate the PR) — the status resets and I re-run. What I verified PASS (independent re-run)
Decision: FAIL — not merged. The change is behaviourally sound, but R5 requires the moved-identifier sweep to be complete in the same commit, and the tree fails the grep self-test at Assisted-by: Claude (analysed on a live system) |
…cstring + stale refs) Review-round fix for #62 (pr-validator R5/item-9 blocking finding). The P8 render-engine relocation left moved-identifier references in charly: - generate.go: the escapeContainerfileEnvValue docstring dangled with no declaration (the func moved to sdk/deploykit/candy_env.go) — removed. - checkspec_test.go / generate_cascade_test.go / layers.go (x2) / config.go: comments naming the moved taskVarRefPattern / resolveCascadePackages / compileShellSnippetSteps / writeBootstrap now name their deploykit. home. - init_config.go: the transitional "RelayContext + StageFragmentContext -> deploykit" note (naming the deleted structs) removed. The R5 grep self-test is now clean: no P8-deleted charly identifier survives outside CHANGELOG. Comment-only + dead-doc removal — no behavior change; byte-parity and the check-sidecar-pod bed evidence are unaffected. go build / vet / test / gofmt / golangci-lint run + fmt all clean. Assisted-by: Claude (fully tested and validated)
pr-validator — APPROVED ✅ (re-validation after the R5 comment-sweep fix)Change class: charly/sdk Go — Containerfile generation (runtime class) Independently re-derived from the diff, Prior blocker (R5) — RESOLVEDThe Checklist (every rule)
Independent re-runs (PR-head binary Decision: APPROVED. The relocation is behaviour-neutral (independently byte-verified across every render path), the prior R5 blocker is fully swept, and every Go quality gate passes with zero warnings. Finalizing the merge-time CalVer, squash-merging, and tagging. This supersedes the prior Assisted-by: Claude (analysed on a live system) |
Rename the P8 consumer CHANGELOG placeholder to the merge-time CalVer and rewrite its H1 to match. Version generated at merge by pr-validator. Assisted-by: Claude (fully tested and validated) Claude-Session: https://claude.ai/code/session_01W8GPhuyWWs5XwJyJYtCaxE
… pod plugin over F6 (+ #52) The K4 deploy-lifecycle DEEP-BODY move. `charly start` / `charly stop` / `charly service` no longer carry their pod-lifecycle BODIES in core — the host RESOLVES a plan and the `deploy:pod` plugin EXECUTES it over the F6 substrate-lifecycle channel. Core keeps only kind-blind dispatch (pod_lifecycle_{dispatch,resolve,verb}.go host-resolve `spec.PodLifecyclePlan`) + the host-process arbiter BRACKET (acquire before OpStart / release after OpStop / release on failure). Inline runDirect / runQuadlet / stopUnmountIfRequested bodies DELETED (R5 grep clean). Folds in the shared command-plugin `--help` fix (#52) at the sdk clidispatch root, wired across alias/box/bundle/check/migrate/status/vm; the parseLeaf (done,err) integration also extends the #52 discipline to `charly box inspect` (R2, an interaction with #102 already on main). shell / logs-follow / cmd stay M-core rows (F12/#62 — can't ride Invoke-and-reply); restart is thin-core (K5) — named exits, not incomplete seams. Depends on sdk v0.2026195.204 (opencharly/sdk#43, merged 529df36) — the clidispatch primitive + #PodLifecyclePlan/#PodExecReply carriers; the sdk gitlink + charly/go.mod require are finalized to that merged commit here (B2). go.sum completed for the kong v1.15.0 bump (validator fix round). Validated (fresh worktree, merged sdk gitlink): workspace go build/vet/test + golangci-lint 0 + gofmt clean; charly module GOWORK=off go mod verify = all modules verified; `charly box validate` clean; pluginsgen + cue:gen reproducible. Runtime: the concurrent 6-bed disposable roster all green through a fresh `charly update` (check-sidecar-pod ok:true with the new K4 check steps service-status-output-present + sidecar-pod-restarted PASS; check-commands-local; the VM lanes check-substrate/check-charly-vm/check-local-vm/check-k3s-vm all EXIT 0). Assisted-by: Claude (fully tested and validated)
… live-stdio reverse channel (#106) The superproject leg of the F12 interactive/streaming reverse-channel (#62) — pairs with the merged sdk PR #44 (executor legs + carrier). charly shell / charly cmd / charly logs --follow move off their inline syscall.Exec / os/exec bodies onto the F12 executor reverse channel: the host RESOLVES the venue command (the #59 resolution inventory stays core), the owning deploy plugin runs it over the served venue executor via RunInteractive/RunStream, and the operator's terminal (inherited host-side by the reverse-channel server) drives it — stdio never crosses the wire. - Dispatch: LifecycleTarget.Attach + substrateLifecycle.Attach + externalDeployTarget.Attach + grpcSubstrateLifecycle.Attach; the venue executor is resolved GENERICALLY via VenueExecutor (vm → guest SSHExecutor ssh -t, pod → nil → host ShellExecutor podman exec/run -it; NO arbiter bracket). grpcSubstrateLifecycle.Logs threads a resolved plan for a substrate with a logs resolver. - Resolvers (pod_lifecycle_resolve.go): resolvePodShellPlan/CmdPlan/LogsPlan RELOCATE shell.go/cmd.go/commands.go verbatim; R3 resolvePodRuntimeImage is the shared image-context head with resolvePodStartDirect. Plugin bodies: pod OpAttach→podAttach (RunInteractive), OpLogs→RunStream (the podCli("logs") reentry DELETED); vm OpAttach→vmAttach over the guest SSHExecutor. OpShell stays the #57 charly service capture leg. - Verb rewires: shell→lt.Attach(tty=true), cmd→lt.Attach(tty=false)+notify wrapper, logs→lt.Logs. R5: shell.go −264 (buildShellArgs/buildExecArgs/shellQuoteArgs relocated; execCommand/findExecutable deleted). Closes the #57 M-core register IOU rows for cmd/shell/logs-follow. - Deliberate rename (orchestrator-approved): substrateLifecycle.TeardownExecutor → VenueExecutor (two consumers now: bundle-del teardown + the F12 Attach leg); the wire Op sdk.OpTeardownExecutor keeps its name for wire stability. - R2 fix: dispatchLifecycleTarget connectPluginByWord(ClassDeployTarget, node.Target) so shell/cmd/logs work on an UNCONFIGURED image. - Bumps the sdk submodule to the merged e2cc807 (tag v0.2026195.501) + charly/go.mod require. Validated by a fresh pr-validator against sdk@e2cc807: coordinates verified exactly; workspace go build/test/vet clean, golangci-lint 0, gofmt clean, both touched candies standalone green, cue:gen + pluginsgen reproducible; R5 rename/deletion sweep clean; F12 consumers live-proven on the stamped binary 2026.195.0216 with both acceptance lanes green. Completes the #62 cutover. Assisted-by: Claude (fully tested and validated)
… consumer leg B2 consumer leg: the sdk producer PR (opencharly/sdk#105) merged to sdk main at a11380625e04dbb3fa0c0392987edc8006db7611 (tag v0.2026209.2002), code-identical to the R10-tested feat head (only the CHANGELOG restamp differs). Bumps the sdk gitlink + charly/go.mod require to the merged tag. Rebuild + go build/vet/test ./... green against merged sdk; the #118 kernel-manifest floor gate still PASSES. Also cites the airtight fresh check-jupyter-pod re-run (13/13, calver 2026.209.1959, against the final terminus binary) for the #62 proof. Assisted-by: Claude Code Anthropic Claude Opus 4.8 (fully tested and validated)
…hain's pins (#1230) * feat(plugins): publish the content kinds, and adopt the owned-skill chain's pins The host half of ops.OpContent (opencharly/sdk#598), and the five pins of the chain that installs a composed candy's owned skills. - buildCapMeta records ProvidedCapability.contents for a class:kind capability (capMeta.IsContentKind implements spec.ContentKindCarrier). The validate-word-sets leg publishes the declaring kind words, sorted, as content_kinds. They are read off each provider's own capability, never a per-kind branch. That set is what plugin-build's render-prep and plugin-box's validate ask. - The charly-skill-shelf's validate-satisfying no-op run: step is deleted: an owned skill node is install content now. - Pins, all merged and tagged: spec v0.2026325.913 (#415), sdk v0.2026325.921 (#607), plugin-box v0.2026325.928 (#92), plugin-build v0.2026325.959 (#62, #63), plugin-harness-kind v0.2026325.1012 (#13). They move together: the old plugin-box pin calls deploykit.CollectSkillBodies, which the new sdk deletes. Claude-Session: https://claude.ai/code/session_01Tvdn3vtn8FoWTMqGwqn4ZT Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942 Assisted-by: Claude Code Claude Opus 5.5 (analysed on a live system) * fix(deps): adopt the shared sdk/spec pins in the tools modules The required go check failed TestContractPinsMatchShared: the tools/generate-packages, tools/golden-cloudinit and tools/golden-compile modules still required sdk v0.2026324.1928 / spec v0.2026324.1914 while charly/go.mod moved to sdk v0.2026325.921 / spec v0.2026325.913. The previous commit moved the pins with go get inside charly/ only. charly task mods-tidy adopts the shared pins in every lockstep module and tidies them. The whole ci.yml go job passes locally: go test ./charly/..., every tools/* module (GOWORK=off -count=1), gofmt over charly and tools, and golangci-lint over both. Claude-Session: https://claude.ai/code/session_01Tvdn3vtn8FoWTMqGwqn4ZT Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942 Assisted-by: Claude Code Claude Opus 5.5 (analysed on a live system)
Summary
The superproject (consumer) half of P8 (plugin-build becomes the REAL engine). The build-mode Containerfile RENDER MECHANISM relocates from
charly/intosdk/deploykit(producer PR: opencharly/sdk#24, merged + taggedv0.2026192.1709); charly's render methods become thin delegating shims over a cachedGenerator.toDeploykit(), and the host-side build ENGINE stays core as the Mechanism reached viaHostBuild("image").What moved (charly → deploykit shims)
writeCandySteps,emitInitAssembly/emitInitFragmentStages/generateInitFragments,emitTasks, the scratch/extract stages, base bootstrap, per-candy env/expose, traefik routes, effective-version/graph/order/candy-collect — all now one-line shims.toDeploykit()constructs the renderGeneratorand wires the host-coupled seams from core mechanisms:EmitPluginOp(Provider registry),CollectBoxPorts/ValidateEgress,RenderService(candy/plugin-init),RewriteHeaderCopyForRemote+RenderLocalPkgImageInstall(host-fs),ResolveInlineBuilder+ExternalizedBuilders(builder-emit registry).charly/graph.goDELETED;graph_shim.gokeeps the aliases + delegating wrappers.candy_model_render_accessors.go(new) satisfies the grownCandyModel.What STAYS CORE — the host-side build ENGINE (Mechanism reached via HostBuild)
Generate+generateContainerfile+emitPreMainCandyStages+generateDataImageContainerfile(orchestration); the builder-emit registry cluster;writeLabels(kind-BLIND Config-metadata — no per-kind switch, so not an incomplete seam); the host-fs/registry seams. The delegating shims are the PERMANENT facade (core engine → deploykit render library), NOT a transitional dual-mode path — the current tree IS the final code, so R10 ran against it directly.Change class
charly Go code touching Containerfile generation → runtime class. Gate:
go test ./...+task build:charly+ a disposable check bed exercising the build path. Behaviour-neutral by construction (byte-parity asserted).R10 evidence
charly(task build:charly), rancharly box generate --tag 2026.192.1314in main +box/fedora— byte-identical Containerfiles across all 9 tested images vs the pre-P8 baseline (main/check-k8s-deploy-app+ 8 fedora images covering builder/localpkg/supervisord-assembly render paths).check-sidecar-pod— PASS (11/11 steps, exit 0, 203s):check-k8s-deploy-app(--dev-local-pkg, the in-development toolchain) through the relocated render engine, deploys it live as a disposable pod with themypausesidecar member, passes its check plan on first deploy AND after a freshcharly update, tears down cleanly. No scope-shrinking flags.go test ./...green (charly);golangci-lint run ./...0 issues (the orphaned aliases/shims the move produced were deleted);go vetclean.CLAUDE.md rule compliance
unusedfindings (aliases/shims orphaned by the move) were root-caused to the cutover and DELETED, re-lint 0 issues; the fedora-coder generate abort is an environmental plugin-cache issue (present in the baseline capture too), excluded from the byte-parity set exactly as the baseline did.git grepon moved identifiers returns their new deploykit home (+ the thin charly shims); the moved test (generate_env_escape_test.go→sdk/deploykit/candy_env_test.go) swept.charly updaterebuild; the deployed binary matches source (task build:charly+ version check); the emitted Containerfile is byte-identical (R8).Assisted-by: Claude (fully tested and validated)