Repository navigation
feat(buildkit): ResolvedBox keystone + BuilderMap/AggregatedCandyCaps (P3-unit-4) - #10
Conversation
… (P3-unit-4) Moves the fully-resolved image config ResolvedBox (+ SupportsTag/SupportsBuild) out of charly into sdk/buildkit, with its embedded value types BuilderMap (+ BuilderFor/ HasBuilder/AllBuilder) and the pure AggregatedCandyCaps result struct. All field types sdk-resolvable: DistroConfig/BuilderConfig (buildkit), MergeConfig/DistroDef/ ResolvedInit (spec aliases). The candy-model walks that populate these (AggregateCandyCapabilities, init/caps resolution) stay charly-side; only the pure result types move. All methods exported → zero-churn. Depends only on sdk/spec. Assisted-by: Claude (fully tested and validated)
pr-validator — APPROVED ✅Change class: sdk Go (moved resolved-config library; no authored/wire surface → no schema-version bump) Fresh, independent re-validation of PR #10 against R0–R10 + the loaded skills. I trusted none of the author's claims and re-ran every gate myself.
Verbatim-move faithfulness (byte-checked vs charly origin/main R10 evidence (both fresh-rebuilt, pasted from my own runs):
Decision: APPROVED. The move is byte-faithful, imports only Assisted-by: Claude (fully tested and validated) |
…it ResolvedBox move) Assisted-by: Claude (fully tested and validated)
…ag v0.2026213.1726 + SDD sweep + zero-warnings gate Leg 2 of the 4-leg B2 chain (spec → sdk → plugins → super). The spec leg (#10, merged v0.2026213.1726) relocated the contract + fabric-primitive surface out of the sdk mechanism kits into the opencharly/spec contract module. This leg re-points sdk/go.mod at that merged tag, re-exports every relocated symbol from its kit so every candy call site compiles UNCHANGED, sweeps the sibling sdk/kit comments of the spec leg's SDD fix, and lands the zero-warnings gate the sdk PR's own R10 requires. What: - go.mod re-point: require github.com/opencharly/spec bumped v0.2026211.754 → v0.2026213.1726 (the spec leg's merged tag), + go mod tidy. - SDD comment sweep (sibling to spec leg): the spec leg CUE-sourced StepResult/CheckRunReply/StepPass (DELETING spec/spec/checkresult_wire.go) and narrowed the P12 gengotypes exception to EXACTLY kit.CheckResult's engine-internal DeadlineExceeded bool json:"-". This leg sweeps the sibling sdk/kit comments (checkrun_seam.go + checkresult.go) that still claimed the reply types were the "hand-written wire-mandate exception" — now accurate: both request AND reply are CUE-sourced in spec/schema/checkresult.cue, generated into spec/spec/cue_types_gen.go. Aliases intact (kit.CheckRunReply = spec.CheckRunReply, kit.StepPass = spec.StepPass, kit.StepResult = spec.StepResult). - Zero-warnings gate: the sdk PR gates the full sdk module, so the #55-introduced lint/gofmt drift that was batched when the per-cone bank gate was ./charly/-scoped now BLOCKS this leg's own R10 and is fixed here (overruling the prior per-cone deferral): gofmt fixes on 9 #55-drifted files; prealloc fix in deploykit/candy_for_plans_test.go; dupl dedup in deploykit/intermediates_move_test.go (shared boxFixt helper, R3). - CHANGELOG consolidation: the two per-cone CHANGELOG files consolidated into ONE comprehensive narrative mirroring spec PR #10 (one release = one CalVer = one CHANGELOG); the K5 per-cone file folded in and deleted. - K5 regression fix: loaderkit.LoadBundleConfigViaExecutor returned (nil,nil) for an absent/empty per-host overlay; its drop-in predecessor deploykit.LoadBundleConfig returned a NON-NIL &BundleConfig{}. The check-commands-local reap-orphans-runs step regressed. Restored to &deploykit.BundleConfig{} (non-nil) on absent/empty, matching the pre-K5 contract; false (nil,nil)-on-absent comments corrected (R1 claim-keyed). Why: charly/ keeps ONLY the E/M/B/D plugin-host fabric; every capability is a plugin candy. The mechanism kits are shared CAPABILITY libraries consumed by PLUGINS, never charly core. This leg re-points sdk at the spec leg's relocated contract + fabric slices, so the downstream super leg can re-point charly/ and the candies off the kits onto the spec slices — the end state git grep 'github.com/opencharly/sdk/(kit|deploykit|buildkit|loaderkit|vmshared)' charly/ is EMPTY. R10 proof: the sdk leg is a Go contract/library module; its own gate (GOWORK=off) is GREEN — go build ./... ok; go test ./... ok (all packages); golangci-lint run ./... 0 issues; gofmt -l . empty. The runtime R10 roster (disposable check beds that build against the ASSEMBLED step1-fabric tree) runs at the SUPER leg of this B2 chain (the super leg re-points the sdk gitlink to this leg's merged commit and re-runs the fresh-rebuild roster). The full #55 accumulation R10 roster was GREEN driven from the assembled tree: check-pod, check-sidecar-pod, check-substrate, check-exampledeploy, check-commands-local (K5 fix re-verified — reap-orphans-runs PASS), check-charly-vm, check-builder-vm, check-structkind, check-group, check-local, check-doctor-local, check-feature-local, check-udev-local, check-gpu-local, check-preempt-local, check-migrate-local all PASS. B2 dependency: leg 2 of 4 (spec → sdk → plugins → super). Spec leg (#10, merged v0.2026213.1726) produced the relocated contract + fabric slices; super leg re-points the sdk gitlink + re-runs the fresh-rebuild roster. Plugins leg (#116, docs-only) already merged. Assisted-by: Claude Code glm-5.2:cloud (fully tested and validated)
Summary
Third P3 sdk/buildkit unit. Moves the fully-resolved image config
ResolvedBox(+SupportsTag/SupportsBuild) verbatim out of charly intosdk/buildkit, with its embedded value typesBuilderMap(+BuilderFor/HasBuilder/AllBuilder) and the pureAggregatedCandyCapsresult struct. Imports onlysdk/spec. All field types are sdk-resolvable (DistroConfig/BuilderConfigin buildkit;MergeConfig/DistroDef/ResolvedInitspec aliases). The candy-model walks that POPULATE these (AggregateCandyCapabilities, init/caps resolution) stay charly-side; only the pure result types move. All methods exported → charly repoints via zero-churn aliases (paired superproject PR).Prereq landed: P3-unit-3 (#27) decoupled the loader-coupled
ResolvedBox.InitConfigfield, leavingResolvedBox's remaining field types all sdk-resolvable.Change class
sdk Go — moved resolved-config library (no schema/authored surface → no schema-version bump).
How R10-tested
check-builder-localPASS 4/4 +check-localPASS 4/4, zero warnings.Attribution tier
fully tested and validated
Compliance
Assisted-by: Claude (fully tested and validated)