Repository navigation
feat(buildkit): the pure Containerfile render library (P3-unit-1) - #8
Conversation
Introduces sdk/buildkit — the pure render/compute machinery any build front-end can import — with the format/builder TEMPLATE render surface moved verbatim from charly's format_template.go: CacheMount + Shared/OwnedCacheMount + RenderCacheMounts(Auto), TemplateFuncs, RenderTemplate, NewInstallContext, ToStringSlice/ToMapSlice. Depends only on sdk/spec + sdk/kit, never charly core. Behavior-neutral (charly aliases it zero-churn). First unit of the P3 sdk/buildkit extraction. Assisted-by: Claude (fully tested and validated)
…kit render library) Merge-time version stamp applied by the fresh pr-validator: renames the placeholder CHANGELOG to the CalVer generated at merge and restamps its header. No render-library behavior change (the buildkit move commit is unchanged). Assisted-by: Claude (fully tested and validated) Claude-Session: https://claude.ai/code/session_01LjLm6DGQasmXaXw2ZorwhE
pr-validator — APPROVED ✅Change class: sdk Go — new pure render library package (no schema/authored surface). Independent re-validation (fresh context, not the author). Every rule re-derived from the diff + my own re-runs, not the author's word.
Verbatim-move faithfulness (the crux): compared Decision: All 19 items PASS. Finalizing merge-time CalVer Assisted-by: Claude (fully tested and validated) |
…rt metadata when the registry entry is absent) (#204) Measured gap (RCA #8): removing a golden disk and registry entry leaves the libvirt snapshot metadata, so charly vm destroy fails ("cannot delete inactive domain with 1 snapshots") and recapture fails ("domain already exists"). DeleteSnapshot now best-effort invokes the libvirt cleanup even when the entry is absent, succeeds idempotently once the state is clean, and surfaces a real libvirt failure. Three new unit tests (absent-entry cleanup, libvirt-failure surfacing, present-entry regression). Co-authored-by: atrawog <[email protected]>
Summary of changes
First unit of the P3 sdk/buildkit extraction (core-minimization). Introduces
sdk/buildkit— the pure Containerfile render/compute machinery any build front-end can import — carrying the format/builder TEMPLATE render surface moved verbatim out of charly'sformat_template.go:CacheMount+Shared/OwnedCacheMount+RenderCacheMounts/RenderCacheMountsAuto, the sharedTemplateFuncs,RenderTemplate,NewInstallContext,ToStringSlice/ToMapSlice. Imports onlysdk/spec(CUE-sourced wire types) +sdk/kit(shell quoting) — never charly core. The charly consumer side (deleteformat_template.go, re-export viabuildkit_aliases.go, bump the pointer) is the paired superproject PR.Change class
sdk Go — new library package (pure render, no schema/authored surface → no schema-version bump).
How R10-tested — exact gate + pasted output
go testsuite (cache_mount_test,generate_test,install_build_test) exercises the moved cluster and passes — so the generated Containerfile output is byte-preserved.check-builder-local(builds the npm builder renderingTemplateFuncs/RenderCacheMounts+ format install renderingNewInstallContext) on the fresh binary.Attribution tier
fully tested and validated — the moved render library executed against a fresh rebuild in the disposable bed (all 4 steps green).
CLAUDE.md rule compliance
/charly-internals:generate-source+/charly-build:generate+/charly-build:build+/charly-internals:go.sdk/buildkitreaches into no charly symbol. R5:format_template.gois deleted in the paired superproject PR (verbatim move; the consumer side removes the old path + all refs via aliases).spec).CHANGELOG/2026.189.1016.md.Assisted-by: Claude (fully tested and validated)