Repository navigation
feat(build): relocate pure-compute build helpers from charly core into sdk (P8b-followup) - #32
Conversation
…o sdk (P8b-followup) The sdk half of #24. Pure-compute (zero host-coupling) build helpers move from charly core into the sdk libraries now that the box-build DRIVE is in candy/plugin-build (P8b): - kit.InstallDirAtomic (pure renameat2 RENAME_EXCHANGE atomic dir-swap) - buildkit.FormatPhaseTemplate/BuilderPhaseTemplate (pure phase-venue template resolvers) - buildkit.RenderSystemPackagesFragment (pure system-packages install-fragment render; takes decoded scalars so buildkit need not import deploykit — no cycle) - deploykit/intermediates.go: the intermediate-image DAG pure funcs re-typed over the CandyModel interface + buildkit.ResolvedBox (graph_shim pattern); +HasInstallFiles() on the CandyModel interface (charly *Candy already implements it; plain method, no wire type) The *Config-reading orchestration (ComputeIntermediates family = the RESOLVE half) STAYS in charly. Behaviour-neutral: charly box generate is BYTE-IDENTICAL (pinned --tag, box/fedora 46 Containerfiles incl. every auto-intermediate; the DAG is unchanged) — independently confirmed. Assisted-by: Claude (fully tested and validated) Claude-Session: https://claude.ai/code/session_01R8UGGr3ui1959oTb5JuSif
pr-validator — APPROVED ✅(Fresh independent evaluation (I am not the author T-P8b), superproject-rooted, sdk driven via Change class: sdk Go library — pure-compute relocation of build helpers from charly core into the sdk libraries ( The load-bearing adversarial checks (all PASS on my re-run)
Gates I re-ran (verbatim)( Decision: APPROVED. The relocation is genuinely pure-compute — Config-free, cycle-free, SDD-clean, and behavior-preserving (byte-identical generate, independently reproduced). The Assisted-by: Claude (analysed on a live system) |
Evaluator version stamp for PR #32 — pure-compute build-helper relocation from charly core into the sdk libraries (P8b-followup). Renames the placeholder CHANGELOG to the merge-time CalVer and aligns its H1. No behavior change. Assisted-by: Claude (fully tested and validated) Claude-Session: https://claude.ai/code/session_014ykuqUwq8WCYeBmmzm5VDk
…ies (P8b-followup) (#80) The #24 superproject half (consumes opencharly/sdk#32, tag v0.2026193.1801). The pure-compute build helpers relocated into the sdk libraries; charly core repoints to aliases/shims and DELETES the core copies (R5). Producer-first: the sdk half landed + tagged before this. - `installDirAtomic` → `var = kit.InstallDirAtomic` - `formatPhaseTemplate`/`builderPhaseTemplate` → `var = buildkit.*` - the intermediates DAG pure funcs → `sdk/deploykit` via the `candyModelMap` adapter (new `intermediates_shim.go`); no-caller funcs (graphReaches/topoSortByPopularity/ sortByPopularity/addTransitiveDeps) fully DELETED; the *Config-reading RESOLVE orchestration (ComputeIntermediates family) STAYS core - `stepEmitSystemPackages` render → `buildkit.RenderSystemPackagesFragment` (delegates) - sdk gitlink → f0f37fab; `charly/go.mod` require → v0.2026193.1801 R10 (re-run independently by the pr-validator, method-independent byte-parity): built BOTH the pre-move baseline (main, core copies + old sdk) and this branch (shims + released sdk f0f37fab) from source and generated box/fedora at the pinned `--tag 2026.001.0000` — all 46 Containerfiles BYTE-IDENTICAL (diff -q: 0 of 46 differ). R5 grep self-test clean (no stale core def survives). `go test ./charly/...` green; golangci-lint 0 issues; gofmt clean; go vet clean. Re-verified after `gh pr update-branch` onto main (#79) — byte-parity holds. Assisted-by: Claude (fully tested and validated)
P8b-followup (sdk half) — pure-compute relocations
With the box-build DRIVE now in candy/plugin-build (P8b) and RESOLVE/RENDER host-side, the remaining PURE-COMPUTE build helpers (zero host-coupling — no loader, no
*Config, no podman, no provider registry) relocate from charly core into the sdk libraries. Consumer: opencharly/charly (the superproject half repoints to aliases/shims + deletes the core copies, R5).kit/install_dir.go→kit.InstallDirAtomic(purerenameat2(RENAME_EXCHANGE)); kit now importsgolang.org/x/sys/unixdirectly.buildkit/phase_template.go→buildkit.FormatPhaseTemplate/BuilderPhaseTemplate(pure(phase,venue)→templateresolvers over spec types).buildkit/system_packages.go→buildkit.RenderSystemPackagesFragment(pure system-packages fragment render; takes decoded scalars so buildkit need not import deploykit — no cycle).deploykit/intermediates.go→ the intermediate-image DAG pure funcs (GlobalCandyOrder + trie/graph helpers), re-typed over theCandyModelinterface +buildkit.ResolvedBox(the graph_shim pattern). +HasInstallFiles()on theCandyModelinterface (charly*Candyalready implements it — plain method, no wire type, SDD-clean).The
*Config-reading orchestration (ComputeIntermediates family = the RESOLVE half) STAYS in charly.Gate — byte-parity is load-bearing (the DAG must be unchanged)
charly box generate -C box/fedora --tag 2026.001.0000(46 Containerfiles incl. every auto-intermediate): BYTE-IDENTICAL pre-move (funcs in charly core) vs post-move (funcs in sdk) — hash25852f20…both legs. Independently reproduced by team-lead (fresh sub-agent, clean 933730e PRE checkout).go build ./...+go test ./kit/... ./buildkit/... ./deploykit/...→ ok; golangci-lint 0 issues; gofmt clean. sdk main at ccd68e0 → conflict-free.Assisted-by: Claude (fully tested and validated)
https://claude.ai/code/session_01R8UGGr3ui1959oTb5JuSif