Repository navigation
feat(deploykit,buildkit)!: W3 producer leg — localpkg + intermediates engine → sdk - #70
Conversation
Relocates two host-coupled subsystems out of charly core after RDD-spike proof their claimed host dependency was stale: both operate purely on already-available envelope data (CandyModel/buildkit.ResolvedBox), not *Config or the live loader graph. - localpkg.go (from charly/localpkg.go + partially deploy_host_helpers.go): ResolveLocalPkgDir/BuildLocalPkgOnHost/BuildDepPkgsOnHost/ TransferAndInstallPkgs/VenueHasPkgManager/ExecLocalPkgInstall/ RenderLocalPkgImageInstall/RenderBuilderScript. The one genuine core dependency (builder-image resolve/auto-build) is injected as closures. Eliminates the LocalPkg render-seam host round-trip entirely — traced that the caller already holds the fully-populated step. - intermediates_compute.go + buildkit/distro_builder_map.go (from charly/intermediates.go): ComputeIntermediates and friends, plus a new shared PickDistroBuilder algorithm charly's own distroBuilderMap now also calls (R3 dedup enabled by the move). - Full test migration for both (localpkg_test.go, intermediates_move_test.go) onto CandyModel/NewSpecCandyModel fixtures. Assisted-by: Claude Sonnet 5 (analysed on a live system)
pr-validator — APPROVED ✅Change class: cross-repo (charly-or-sdk Go) — sdk producer leg, no standalone disposable bed (analogous to the B6 "new candy has no standalone R10" precedent: the real runtime gate rides the held charly consumer PR I re-derived everything independently in an isolated worktree (own
placement: CORRECT — Checklist: 0 security ✅ · 1 description ✅ · 2 change-class gate ✅ · 3 attribution ( Decision: PASS. Proceeding to finalize the merge-time CalVer, merge (squash), and tag. Assisted-by: Claude Sonnet 5 (analysed on a live system) |
pr-validator finalization for PR #70 — rename the placeholder CHANGELOG to the merge-time CalVer and match the H1 heading. Assisted-by: Claude Sonnet 5 (analysed on a live system)
Summary of changes
sdk producer leg of the W3 build-engine wave (consumer: the held charly branch
feat/w3-build-engine-plugin@8ec29a0 — opens after this merges). 11 files, +3073/−61:deploykit/localpkg.go(new): the whole LocalPkg subsystem fromcharly/localpkg.go(559 LOC) +RenderBuilderScript/hostBuilderContext(carved fromcharly/deploy_host_helpers.go) — PURE functions overCandyModel/buildkit.ResolvedBox/EmitOpts. The one genuine core dependency (builder-image resolve/auto-build, which may recurse intocharly box build) is INJECTED as two closures supplied by the core caller.candy_steps.go:100) that the plugin-side render already holds the fully-populated step from the envelope (dg.Candies/dg.Boxes); the host-side "rebuild from the live *Candy graph" was redundancy, not need.RenderLocalPkgImageInstallis now a bare function reference; the stale ":248 still host-side" comment family member dies with the callback it described (R1/R5 in-wave sweep, incl. 2 more stale claims found by the sweep inrender_generator.go+steps.go).deploykit/intermediates_compute.go(new, 540 LOC):ComputeIntermediates+ helpers fromcharly/intermediates.go(454 LOC),*Configparam replaced by the newIntermediateDefaultsstruct. RDD-spiked on real data (box/cachyos, 25 resolved boxes, 8 distro-tag sequences, zero mismatches) BEFORE the port.buildkit/distro_builder_map.go(new):PickDistroBuilder— a REAL R3 fix found mid-move:charly/config.go's pre-resolve path needed the same priority-ordered first-tag-match algorithm; both callers now share ONE lookup, each adapting its own data source.deploykit/intermediates_move_test.go(new): the full 1534-line / 22-function test suite migrated fromcharly/intermediates{,_determinism}_test.goontoCandyModel/NewSpecCandyModelfixtures — zero coverage regression.CHANGELOG/2026.198.0900.md(placeholder CalVer).Change class
cross-repo (charly-or-sdk Go): this sdk producer merges+tags FIRST; the charly consumer repoints its gitlink and opens after (together with the consolidated plugins docs-batch leg).
How R10-tested — exact gate, commands, and pasted output
charly box build+ the pod-build-path bed before that PR merges).box generateruns against the branch binary; unit-level via the migrated suite below.Attribution tier
analysed on a live system— build/test/byte-parity generate runs executed against the branch binary; the disposable-bed proof rides the charly consumer's final gate (not claimed here).Harness rulebook compliance — state HOW each is satisfied (or
N/A — <reason>)PickDistroBuilderextraction — the move would otherwise have left two copies of one algorithm.CHANGELOG/2026.198.0900.mdstaged (placeholder; validator finalizes).Assisted-by: Claude Code Anthropic Claude Sonnet 5 (analysed on a live system)
https://claude.ai/code/session_01R8UGGr3ui1959oTb5JuSif