Repository navigation
feat(spec): CUE-source ResolvedBox/BuilderMap/AggregatedCandyCaps (#55 step3 unit 3a) - #4
Merged
Merged
Conversation
…step3 unit 3a) Adds #ResolvedBox/#BuilderMap/#AggregatedCandyCaps as CUE defs (schema/resolvedbox.cue), generating the wire-clean render-context data-carriers sdk/buildkit's ResolvedBox embeds. Excludes the buildkit-owned vocabulary pointers (DistroConfig/DistroDef/BuilderConfig) and the four json:"-" render-cache fields (CandyCaps/BakedMetadata/RenderCandyOrder/ActiveInits) per the gengotypes CANNOT-table exception (no construct for a marshal-suppressed field) — both classes stay hand-kept on the sdk/buildkit embedding wrapper. Methods (SupportsTag/SupportsBuild/BuilderFor/HasBuilder/AllBuilder) are hand-written alongside the generated types (gengotypes has no construct for behavior). Assisted-by: Claude Code Claude Opus 4.5 (analysed on a live system)
…tion) Merge-time CHANGELOG entry finalized by the fresh pr-validator for the merge-time CalVer v0.2026210.1533 (spec Go-module tag scheme). The producer-leg cutover itself (schema/resolvedbox.cue + generated Go + methods) is bb6cba0. Assisted-by: Claude Code Anthropic Claude Opus 4.8 (analysed on a live system)
This was referenced Oct 15, 2026
This was referenced Oct 23, 2026
This was referenced Nov 15, 2026
This was referenced Nov 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#55 step-3 unit 3a — the producer leg: ResolvedBox becomes a CUE-sourced spec contract
The build↔deploy
ResolvedBox(the plan's #1 entanglement) becomes a sharedopencharly/spectype so core + buildkit + plugins share ONE contract. This is the producer leg; sdk (embedding wrapper) and superproject (consume) legs follow in the B2 chain.What lands
schema/resolvedbox.cue— CUE defs#ResolvedBox(30 wire-clean fields),#BuilderMap({[string]: string}),#AggregatedCandyCaps(plain struct). SDD single-source.spec/cue_types_gen.go— generated bytask cue:gen(DO-NOT-EDIT banner); thespec.ResolvedBox/BuilderMap/AggregatedCandyCapstypes.spec/resolved_box.go— hand file, methods only (SupportsTag/SupportsBuild/BuilderFor/HasBuilder/AllBuilder — methods aren't generated).SDD discipline (gengotypes spike-forced)
A
cue exp gengotypesspike (v0.16.1) confirmed all 30 wire-clean fields generate faithfully (required!→no-omitempty, optional?→omitempty). The spike forced a real correction: 4 fields carryingjson:"-"(CandyCaps/BakedMetadata/RenderCandyOrder/ActiveInits — the documented json:"-" CANNOT-table entry) genuinely can't be CUE-emitted, so they moved onto the sdk embedding wrapper (buildkit.ResolvedBox), not this def.Wire-key note (verified safe)
CUE emits snake_case keys vs the former bare Go-name keys; verified no user-facing break —
charly box inspectalready marshals via the separate snake_caseResolvedBoxView(prior S-K5 ruling), and the one direct-marshal test folds case viacanonKey.Verification
go build/vet/test ./...green;TestGenReproduciblePASSES (regen is a no-op — independently re-run). No consumer in this module (spec is leaf).Producer-first B2: this spec PR → sdk consumer PR → superproject leg (which also carries #55 step-3 units 3b/3c).
Assisted-by: Claude Code Anthropic Claude Opus 4.8 (analysed on a live system)