Repository navigation
refactor(core)!: #55 step 3-III — build-vocabulary value types off sdk/buildkit onto spec - #197
Conversation
…k/buildkit onto spec charly core + build plugins reference DistroConfig/BuilderConfig (+ BuilderMap, WrapDistroDef, DistroTagChain, DistroDef/FormatDef/BuilderDef aliases) from the CUE-sourced spec contract instead of importing sdk/buildkit. charly files importing sdk/buildkit: 51 → 42 (the rest keep it for build-engine behaviour / InitConfig → #65/#71). Consumes merged spec v0.2026210.2052 + sdk v0.2026210.2103. InitConfig stays in buildkit (composition policy → #65/#71). Gitlinks: spec→ec22fa8e, sdk→5f08d64b. Requires: charly spec→2052/sdk→2103, 85 candies spec→2052. Assisted-by: Claude Code Anthropic Claude Opus 4.8 (fully tested and validated)
pr-validator — APPROVED ✅Change class: charly Go type-repoint + candy repoints + go.mod require-bumps + submodule gitlink bumps (runtime). Independently re-derived from the PR at head Checklist (each independently verified)
Architecture gate — placement: CORRECT. The change advances core toward the spec+proto-only end-state: charly files importing R10 runtime-neutrality (independently established, not taken on the author's word): Producers verified merged: spec tag Comments considered: none (PR carried no comments). Decision: PASS. Every applicable R0–R10 rule + pillar verified from the diff and my own live re-run (build/test/vet/lint/box-validate/reproducibility) plus provable R10 runtime-neutrality via type-alias identity. Proceeding to finalize the merge-time CalVer, merge (squash), and tag. Assisted-by: Claude Code Anthropic Claude Opus 4.8 (analysed on a live system) |
Merge-time CalVer stamp applied by pr-validator. Assisted-by: Claude Code Anthropic Claude Opus 4.8 (fully tested and validated)
pr-validator — landed ✅
Assisted-by: Claude Code Anthropic Claude Opus 4.8 (analysed on a live system) |
…— round 2
A validator failed round 1 on the sharpest possible finding: this change's thesis
is that prose naming non-existent symbols is a defect, and its replacement prose
named non-existent symbols.
"tasks.go is a thin shim to deploykit.Generator.EmitTasks"
-> 64 lines, ONE function (invokeOpEmitFragmentOpt), and architecturally
impossible: P16 import purity forbids charly/ importing the sdk
emitPluginFragment -> zero declarations; real: invokeOpEmitFragmentOpt
case "command": emitCmd -> the retracted `bash -c` form, 45 lines above its
own retraction, in the file this change edits
emitDownload "curl | extractor"
-> no pipe; a content-addressed cache file
write row COPY --from= -> EmitWrite emits none (build-context path, not a
stage). EmitCopy does, correctly.
Root cause: the greps were pointed at the claims being RETRACTED and never at
those being ASSERTED. Every symbol the corrected prose names is now verified to
exist -- including method receivers, which `func <name>` misses and which briefly
made the real EmitTasks look absent.
Scope: 52 lowercase emitter names -> the exported forms in sdk/deploykit; one
stale test reference -> TestOpActsInBuildDeploy_PlacementAgnosticBuildEmit.
Two stale test refs (TestNsRepoIdentity,
TestImportNamespace_DivergentVersionMutualCycle) are pre-existing, a different
claim family, and routed rather than guessed -- guessing is what failed round 1.
box validate exit 0, zero warnings. Projections regenerated on current
origin/main (plugins caught up to #197 by merge, not rebase) and filtered.
Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
#55 step 3-III — superproject leg (import-purity, B2)
charly core + build plugins now reference the build value-type containers
DistroConfig/BuilderConfig(+BuilderMap,WrapDistroDef,DistroTagChain, and theDistroDef/FormatDef/BuilderDefpayload aliases) from the CUE-sourcedspeccontract instead of importingsdk/buildkit— the import-purity lever for the kernel M/B build files. Consumes merged spec v0.2026210.2052 + sdk v0.2026210.2103 (producer-first B2).What lands
buildkit.{DistroConfig,BuilderConfig,BuilderMap,WrapDistroDef,DistroTagChain}→spec.X+DistroDef→spec.ResolvedDistro/FormatDef→spec.Format/BuilderDef→spec.Builder; goimports drops the now-unusedsdk/buildkitimport where no behaviour symbol remains.sdk/buildkit51 → 42 (8 fully drop it: bundle_add_cmd, deploy_target_unified, layers, validate + 4 tests). The 42 remaining keep buildkit for build-engine BEHAVIOUR (ResolveBox/ResolvedBox/ResolveAllBox/ResolveStatus/phase-templates) orInitConfig→ feat(hooks): golangci-lint pre-commit criterion (cutover B) #65/feat(bundle)!: charly bundle CLI → compiled-in command:bundle plugin (P13) #71.Boundary law — InitConfig stays in buildkit
InitConfig's ResolveInitSystem/ActiveInit aggregate the whole candy set viaAggregateCandyCapabilities= init-composition POLICY, not a contract accessor → stays in sdk/buildkit, relocates with the build engine (#65/#71).DistroConfig/BuilderConfigmethods are intrinsic map lookups → contract accessors → spec (the producer legs).Verification (final assembled tree)
go build ./...0 ·go test ./charly/...ok (196s) · all 85 candies GOWORK=off vet 0 fails (out-of-process swept, refactor(core)!: charly + plugins consume opencharly/spec fabric slices, drop sdk kits (#55 step1) #194 lesson) ·charly box validate0 · gofmt clean · go.work canonical regen NO-OP · no go.sum/go.work.sum churn.buildkit.{value-type}refs in charly/candy; no stale "buildkit-specific / spec must never import" comments.dnf install/fedora → DistroConfig resolution correct through the spec types) + check-builder-vm 10/10 (358s). Delta since tested state = CHANGELOG/gitlink/require-bump only → runtime-neutral, no bed re-run owed.Non-blocking (NOT folded — route to a thematic batch)
deploy_from_box_test.go:41SA1012 (nil Context) — pre-existing on main, untouched file → existing candy lint batch (task fix(build): user-scope the image build lock on the full ref (cross-project race) #14).internal/wiregen/main.go:385,387errcheck — pre-existing on spec main from Phase A1 → spec-repo lint batch.Producer-first B2: spec (v0.2026210.2052) → sdk (v0.2026210.2103) → this superproject leg.
Assisted-by: Claude Code Anthropic Claude Opus 4.8 (fully tested and validated)