Repository navigation
feat(spec,kit,deploykit): K3 build-engine render-seam dissolution (5 seams peer-dispatch) - #65
Merged
Merged
Conversation
DoMode (+DoAct/DoAssert/DoInstruct) lived in kit/planrun.go; ExecContext (+CtxBuild/CtxDeploy/CtxRuntime) lived in deploykit/compiler_deps.go; StepDoMode (pure over spec.Step) lived in kit/planspec.go. All three are plain shared vocabulary types every consumer that classifies an Op/Step needs (the plan walk in sdk/kit, the deploy-plan compiler in sdk/deploykit, charly core's registry-coupled semantics, candy/plugin-box's independent validate-engine re-derivation) — moved to sdk/spec so none of them need a mechanism-kit import just for these types. kit and deploykit now reference spec.DoMode/spec.ExecContext directly; their own internal call sites (kit/runner.go, kit/planrun.go, deploykit/install_build.go) repointed. Assisted-by: Claude Sonnet 5 (analysed on a live system)
Promotes charly/labels.go's defaultInspectLabels (a pure podman/docker inspect + label-JSON parse, zero charly-core coupling) to sdk/kit as InspectImageLabels, alongside the already-kit-owned ResolveRuntime/ ResolveLocalImageRef/LocalImageExists/EngineBinary/ErrImageNotLocal. This lets candy/plugin-box's `labels` command call the whole local-image-label probe directly, eliminating the charly/box_labels_cmd.go `__box-labels` reentry (charly-side commit follows on the superproject branch). Assisted-by: Claude Code Claude Sonnet 5 (analysed on a live system) Claude-Session: https://claude.ai/code/session_01R8UGGr3ui1959oTb5JuSif
…patch
RenderService, the detection/external builder resolves, ValidateEgress, and
RewriteHeaderCopyForRemote were pure providerRegistry.resolve+Invoke dispatch
(or pure data + host-fs I/O over the CandyModel envelope) with zero live-loader
dependency — RDD-spiked live on the external-builder leg in a prior commit.
candy/plugin-build's render now calls them directly via
renderSeamCaller.invoke/resolveBuilderStage (InvokeProvider, no HostBuild
round-trip) instead of HostBuild("render-seam"). BuildServiceRenderContext is
promoted from charly/service_render.go so both the plugin's render and
charly's own (deploy-mode) RenderService share one source (R3).
rewriteHeaderCopyForRemote is promoted from charly/generate.go, operating on
the CandyModel interface (GetRemote/GetSourceDir/GetSubPathPrefix/GetName —
all already exposed) instead of the live *Candy map.
The 4 remaining seams (EmitPluginOp, localpkg, inline-builder,
ensure-builders) keep the HostBuild callback: EnsureBuilders/InlineBuilder
need the live loader's scan+connect machinery (rides K1); EmitPluginOp needs
a Go-level type-assertion (ProvisionActor/BuildEmitter) against a BUILTIN
provider's concrete type that only charly core holds (a builtin's generic
Invoke() is an intentional error-stub for the placement-invisible perf
invariant, so InvokeProvider can't substitute).
Assisted-by: Claude Code Claude Sonnet 5 (fully tested and validated)
Claude-Session: https://claude.ai/code/session_01R8UGGr3ui1959oTb5JuSif
…form (K3) Drops FeatureEntity's Summary/Steps(FeatureStep)/ValidationErrors — all computed HOST-side from data that is itself sdk-portable (kit.KeywordOf, kit.ValidatePlanSteps, deploykit.DescriptionInfo) — in favor of a raw Plan []Step field. candy/plugin-feature (which already owns the list/ pending/validate grammar) now runs the summarize/validate transform itself; charly/host_build_feature.go's enumerateFeatures needs no kit/deploykit import as a result (charly-side commit follows). Assisted-by: Claude Code Claude Sonnet 5 (fully tested and validated) Claude-Session: https://claude.ai/code/session_01R8UGGr3ui1959oTb5JuSif
6 tasks done
…m charly The charly-core wrappers these tests exercised (Generator.generateInitFragments, Generator.candyCopySource) were dead code (zero non-test callers) and are being deleted as part of the K3 build-engine core-minimization cutover. Neither GenerateInitFragments nor CandyCopySource had any test coverage of their own in this package — the wrapper tests were the only coverage that existed for this real production logic (fragment-assembly/port-relay naming, local-vs-remote copy-source resolution). Port them here verbatim, calling deploykit.Generator directly, so the coverage moves with the logic instead of being silently dropped. Assisted-by: Claude Sonnet 5 (analysed on a live system)
Contributor
Author
Independent PR validation — PASSFresh, independent re-derivation (fresh worktree, trusting no author/orchestrator claims):
Assembled build (charly super + this sdk branch) verified separately — see charly#139's validation. Merging. |
atrawog
added a commit
that referenced
this pull request
Jul 17, 2026
5 tasks done
atrawog
added a commit
that referenced
this pull request
Jul 29, 2026
…c aliases (#55 step 3-III sdk leg) (#110) * refactor(buildkit)!: DistroConfig/BuilderConfig containers → thin spec aliases (#55 step 3-III sdk leg) The value-type containers + methods + WrapDistroDef/DistroTagChain now source from spec (merged v0.2026210.2052); buildkit keeps thin type aliases (−285 LOC in format_config.go), matching its existing DistroDef/BuilderDef alias pattern. InitConfig unchanged (composition policy → #65/#71). require spec bumped v0.2026210.1533 → v0.2026210.2052. Assisted-by: Claude Code Anthropic Claude Opus 4.8 (fully tested and validated) * chore(changelog): finalize #55 step 3-III sdk-leg stamp → 2026.210.2103 Merge-time CalVer finalization by the fresh pr-validator: rename the placeholder CHANGELOG to the merge-time stamp and rewrite its H1. No code change; the buildkit alias cutover is unchanged. Assisted-by: Claude Code Claude Opus 4.8 (fully tested and validated) Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_018iiqSrY7SkJhgvqDYpiHGH --------- Co-authored-by: Claude Opus 4.8 <[email protected]>
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.
Summary
The sdk leg of the K3 "build-engine → plugin-build" cutover. Three independent pieces, all committed on this branch:
spec/verb_context.go(task feat(deploykit): relocate the build-time BUILDER render engine to sdk/deploykit (K3-A) #39):DoMode/ExecContext+StepDoModemoved fromsdk/kittosdk/spec— pure vocabulary enums with no mechanism dependency, so every consumer that only needs to classify an Op/Step no longer needs akit/deploykitimport.Render-seam production move (5 of 9 host-coupled render callbacks in the box-build render pipeline):
RenderService,ResolveDetectionBuilderStage,ResolveExternalBuilderStage,ValidateEgress/ValidateTextEgress, andRewriteHeaderCopyForRemoteall turned out to be pureproviderRegistry.resolve+Invokedispatch (or, for the header-copy rewrite, pure data + host-fs I/O over data theCandyModelenvelope already carries) — RDD-spiked live on the external-builder leg first, then implemented for real.candy/plugin-buildnow calls these directly viasdk.Executor.InvokeProviderinstead of aHostBuild("render-seam", ...)round-trip. New shared helpers:deploykit.BuildServiceRenderContext(promoted fromcharly/service_render.goso both the plugin's render and charly's own deploy-modeRenderServiceshare one source) anddeploykit.rewriteHeaderCopyForRemote(promoted fromcharly/generate.go, now operating on theCandyModelinterface instead of the live*Candymap). The remaining 4 seams (EmitPluginOp,local-pkg,inline-builder,ensure-builders) keep theHostBuildcallback — each has a genuine host-only dependency (documented inrender_seam.go's header comment): the loader's scan+connect machinery (rides K1), or a Go-level type-assertion against a BUILTIN provider's concrete type that only charly core holds.spec/feature_wire.go:FeatureEntitynow carries a rawPlan []Stepinstead of the host-precomputedSummary/Steps(FeatureStep)/ValidationErrors— the transform (kit.KeywordOf,kit.ValidatePlanSteps,deploykit.DescriptionInfo) was always sdk-portable, so it moves tocandy/plugin-feature(charly-side PR).Test plan
go build ./...cleango vet ./...cleango test ./...— all packages passgolangci-lint run ./...— 0 issuesbox/fedora'scheck-podbed (full R10: build → check-image → deploy-add → config → start → check-live → feature-run → fresh-rebuild → feature-run-rebuild → cleanup), twice, both PASS 12/12 — confirms the render-seam move end-to-end (external-builder splice, supervisord service render, remote header-copy materialization all correct in the generated Containerfile)charly feature list/pending/validateagainstbox/fedora(real project, 3 baked box entities) — correct output including a genuine pre-existing validation finding unrelated to this refactorDepends on nothing; the charly super PR depends on this merging first (B2).
Claude-Session: https://claude.ai/code/session_01R8UGGr3ui1959oTb5JuSif