Skip to content

refactor(buildkit)!: DistroConfig/BuilderConfig containers → thin spec aliases (#55 step 3-III sdk leg) - #110

Merged
atrawog merged 2 commits into
mainfrom
feat/55-step3-III-buildkit-alias
Jul 29, 2026
Merged

atrawog merged 2 commits into
mainfrom
feat/55-step3-III-buildkit-alias

Conversation

@atrawog

@atrawog atrawog commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

#55 step 3-III — sdk consumer leg (B2)

The consumer leg of the build value-type container relocation. DistroConfig/BuilderConfig + their methods + WrapDistroDef/DistroTagChain now source from the merged spec contract (v0.2026210.2052); sdk/buildkit keeps only thin type aliases so its build-engine code reads unchanged.

What lands

  • buildkit/format_config.go −285 LOC: the DistroConfig/BuilderConfig struct+method+free-func definitions DELETED, replaced by type DistroConfig = spec.DistroConfig / type BuilderConfig = spec.BuilderConfig (same pattern as the existing DistroDef/BuilderDef/BuilderMap aliases).
  • buildkit/{config_resolve,resolved_box,system_packages}.go: 3 stale comments corrected (they claimed these were "buildkit-specific types spec must never import" — inverted by the relocation; R1 doc-divergence, claim-keyed R5 swept whole-tree, zero remaining).
  • go.mod/go.sum: require github.com/opencharly/spec bumped v0.2026210.1533 → v0.2026210.2052.

InitConfig deliberately UNCHANGED (composition policy — aggregates the candy set via AggregateCandyCapabilities — relocates with the build engine, #65/#71).

Verification (against the REAL merged spec tag, GOWORK=off)

  • go build ./... 0 · go vet ./buildkit/... 0 · go test ./buildkit/... ok · gofmt clean.
  • Pure re-home: buildkit's public surface is byte-identical (aliases resolve to the same spec types) — every downstream consumer builds unchanged.
  • Full feat(proto,spec): F-CLI-NEST — declared subcommand catalogs for command-class plugins #72 tree R10: check-pod-overlay 13/13 + check-builder-vm 10/10 (fresh-rebuild), the build-engine beds exercising DistroConfig/BuilderConfig resolution.

Producer-first B2: spec (merged v0.2026210.2052) → this sdk leg → superproject charly + 85-plugin repoint.

Assisted-by: Claude Code Anthropic Claude Opus 4.8 (fully tested and validated)

atrawog and others added 2 commits July 29, 2026 22:59
…c aliases (#55 step 3-III sdk leg)

The value-type containers + methods + WrapDistroDef/DistroTagChain now source
from spec (merged v0.2026210.2052); buildkit keeps thin type aliases (−285 LOC in
format_config.go), matching its existing DistroDef/BuilderDef alias pattern.
InitConfig unchanged (composition policy → #65/#71). require spec bumped
v0.2026210.1533 → v0.2026210.2052.

Assisted-by: Claude Code Anthropic Claude Opus 4.8 (fully tested and validated)
Merge-time CalVer finalization by the fresh pr-validator: rename the
placeholder CHANGELOG to the merge-time stamp and rewrite its H1. No code
change; the buildkit alias cutover is unchanged.

Assisted-by: Claude Code Claude Opus 4.8 (fully tested and validated)
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_018iiqSrY7SkJhgvqDYpiHGH
@atrawog
atrawog merged commit 5f08d64 into main Jul 29, 2026
@atrawog
atrawog deleted the feat/55-step3-III-buildkit-alias branch July 29, 2026 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant