Skip to content

feat(buildkit): ResolvedBox keystone + BuilderMap/AggregatedCandyCaps (P3-unit-4) - #10

Merged
atrawog merged 2 commits into
mainfrom
feat/sdk-resolvedbox-move
Jul 8, 2026
Merged

atrawog merged 2 commits into
mainfrom
feat/sdk-resolvedbox-move

Conversation

@atrawog

@atrawog atrawog commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Third P3 sdk/buildkit unit. Moves the fully-resolved image config ResolvedBox (+ SupportsTag/SupportsBuild) verbatim out of charly into sdk/buildkit, with its embedded value types BuilderMap (+ BuilderFor/HasBuilder/AllBuilder) and the pure AggregatedCandyCaps result struct. Imports only sdk/spec. All field types are sdk-resolvable (DistroConfig/BuilderConfig in buildkit; MergeConfig/DistroDef/ResolvedInit spec aliases). The candy-model walks that POPULATE these (AggregateCandyCapabilities, init/caps resolution) stay charly-side; only the pure result types move. All methods exported → charly repoints via zero-churn aliases (paired superproject PR).

Prereq landed: P3-unit-3 (#27) decoupled the loader-coupled ResolvedBox.InitConfig field, leaving ResolvedBox's remaining field types all sdk-resolvable.

Change class

sdk Go — moved resolved-config library (no schema/authored surface → no schema-version bump).

How R10-tested

  • Verbatim move; charly's golden tests exercise it and pass (zero-churn aliases).
  • Beds (fresh 2026.189.1256 binary, source frozen): check-builder-local PASS 4/4 + check-local PASS 4/4, zero warnings.

Attribution tier

fully tested and validated

Compliance

  • R3: one importable resolved-config library. R5: charly deletes its copies (paired PR). Boundary: SDK-library types on spec E-envelopes, no charly import. Producer-first; P3 decomposed per-unit (unit-4). CHANGELOG present.

Assisted-by: Claude (fully tested and validated)

… (P3-unit-4)

Moves the fully-resolved image config ResolvedBox (+ SupportsTag/SupportsBuild) out
of charly into sdk/buildkit, with its embedded value types BuilderMap (+ BuilderFor/
HasBuilder/AllBuilder) and the pure AggregatedCandyCaps result struct. All field types
sdk-resolvable: DistroConfig/BuilderConfig (buildkit), MergeConfig/DistroDef/
ResolvedInit (spec aliases). The candy-model walks that populate these
(AggregateCandyCapabilities, init/caps resolution) stay charly-side; only the pure
result types move. All methods exported → zero-churn. Depends only on sdk/spec.

Assisted-by: Claude (fully tested and validated)
@atrawog

atrawog commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅

Change class: sdk Go (moved resolved-config library; no authored/wire surface → no schema-version bump)

Fresh, independent re-validation of PR #10 against R0–R10 + the loaded skills. I trusted none of the author's claims and re-ran every gate myself.

# Rule Verdict
0 Security & anti-tampering (T1–T4) PASS — diff is 2 additive files; buildkit/resolved_box.go is a pure type-definition file (imports only sdk/spec), no network/exec/secret/eval/obfuscation, no scope mismatch, no weakened guardrail, no supply-chain change, no directive aimed at the validator
1 Description complete (template + evidence) PASS — Summary accounts for every file; How-R10-tested names both beds + pasted PASS; tier justified; compliance section answers R3/R5/boundary/producer-first/CHANGELOG
2 Change-class gate matches evidence (R7/R10) PASS — I re-ran go build/vet/test/gofmt/golangci-lint in sdk AND the consumer, plus both composing beds fresh-rebuilt; no dry-run / rebuild-alone fraud
3 Attribution tier vs proof PASS — fully tested and validated: the moved ResolvedBox/BuilderMap executed LIVE via both beds' fresh charly update, zero warnings, outputs pasted
4 R0 skills honored PASS — /charly-internals:go (buildkit is a hand-written resolved-config library, not CUE-sourced; move is faithful), /charly-internals:git-workflow; contradicts no skill
5 R1 RCA / ZERO warnings / no flake framing PASS — zero warnings across all gates + both bed rosters
6 R2 no pre-existing/out-of-scope split PASS — the paired charly consumer edits are correct producer→consumer sequencing (B6), not a forbidden split; this sdk PR's own R10 passes against the assembled tree
7 R3 no duplication PASS — one importable resolved-config library; charly deletes its copies + repoints via zero-churn aliases (paired PR)
8 R4 no ad-hoc workaround PASS — pure verbatim move; no sleep/retry/magic; sortStrings→sort.Strings is the allowed stdlib substitution (buildkit has no local helper)
9 R5 hard cutover + grep self-test PASS — purely additive to sdk, no transitional/dual-mode/backcompat path in the final code
10 R6/R8/R9 artifact + binary integrity PASS — R9: binary rebuilt via task build:charly, charly version verified, freshness guard passes; R8/R6 N/A for a pure type move (no Containerfile-gen logic change, no destructive git action)
11 R10 disposable-only, fresh-rebuild, coverage PASS — both beds disposable: true, fresh charly update, zero warnings; golden config/generator tests + both beds exercise the moved type (a botched move breaks resolution → beds fail)
12 RDD / ADE / SDD PASS — SDD: no CUE touched (task cue:gen no-op); ADE N/A (Go library, not a candy); RDD composition proven on beds
13 Concurrency mandate + anti-cheat PASS — both beds ran CONCURRENTLY at max parallelism (transient_store on); no idle/serial-only pass, no flake dismissal
14 Hard cutover — one atomic commit PASS — ONE commit (d343d61); no Phase-2/TODO inside scope
15 Kernel/plugin boundary law PASS — moves resolved-config value types OUT of charly INTO the sdk buildkit library (imports only sdk/spec); no per-kind switch/map, no concrete-kind leak into a kernel
16 Disposable-only autonomy PASS — both destroy/rebuild targets disposable: true
17 Clean architecture + Go gates PASS — gofmt -l . empty, golangci-lint 0 issues, go vet clean, go test green in BOTH repos; lowercase-hyphenated names; no mode-purity issue
18 CHANGELOG present PASS — CHANGELOG/2026.189.1258.md placeholder present + accurate (I finalize the merge-time CalVer)

Verbatim-move faithfulness (byte-checked vs charly origin/main 862c9a1): ResolvedBox (~40 fields incl. json tags + comments), BuilderMap + BuilderFor/HasBuilder/AllBuilder, AggregatedCandyCaps (6 fields) — all byte-identical. Allowed deltas only: package main→buildkit; sortStrings→sort.Strings; the local MergeConfig=spec.MergeConfig, ResolvedInit=spec.ResolvedInit alias block; one clarifying doc-comment sentence on AggregatedCandyCaps (no field/logic change). The AggregateCandyCapabilities FUNCTION correctly stays charly-side. Type identity confirmed: .Merge→spec.MergeConfig, .DistroDef→spec.ResolvedDistro, .InitDef→spec.ResolvedInit, .DistroConfig/.BuilderConfig→buildkit format_config.go, .Builder/.CandyCaps→same-file types.

R10 evidence (both fresh-rebuilt, pasted from my own runs):

  • check-builder-local → PASS, exit 0, 4/4 steps (deploy-add, check-live, update, cleanup) ok=true, run 2026.189.1323, zero warnings; the fresh charly update re-exercised the builder DEPLOY leg reading ResolvedBox.Builder/BuilderMap (builder-artifact-present check exit=0).
  • check-local → PASS, exit 0, 4/4 steps ok=true, run 2026.189.1323, total 57s, zero warnings; fresh rebuild re-exercised kind:local resolution reading ResolvedBox.

Decision: APPROVED. The move is byte-faithful, imports only sdk/spec, all field types resolve, both repos pass every Go gate, and the two composing beds pass through a fresh rebuild at zero warnings. Finalizing the merge-time CalVer, merging --rebase, and tagging.

Assisted-by: Claude (fully tested and validated)

…it ResolvedBox move)

Assisted-by: Claude (fully tested and validated)
@atrawog
atrawog merged commit f772022 into main Jul 8, 2026
@atrawog
atrawog deleted the feat/sdk-resolvedbox-move branch July 8, 2026 13:29
atrawog added a commit that referenced this pull request Aug 1, 2026
…ag v0.2026213.1726 + SDD sweep + zero-warnings gate

Leg 2 of the 4-leg B2 chain (spec → sdk → plugins → super). The spec leg (#10, merged v0.2026213.1726) relocated the contract + fabric-primitive surface out of the sdk mechanism kits into the opencharly/spec contract module. This leg re-points sdk/go.mod at that merged tag, re-exports every relocated symbol from its kit so every candy call site compiles UNCHANGED, sweeps the sibling sdk/kit comments of the spec leg's SDD fix, and lands the zero-warnings gate the sdk PR's own R10 requires.

What:
- go.mod re-point: require github.com/opencharly/spec bumped v0.2026211.754 → v0.2026213.1726 (the spec leg's merged tag), + go mod tidy.
- SDD comment sweep (sibling to spec leg): the spec leg CUE-sourced StepResult/CheckRunReply/StepPass (DELETING spec/spec/checkresult_wire.go) and narrowed the P12 gengotypes exception to EXACTLY kit.CheckResult's engine-internal DeadlineExceeded bool json:"-". This leg sweeps the sibling sdk/kit comments (checkrun_seam.go + checkresult.go) that still claimed the reply types were the "hand-written wire-mandate exception" — now accurate: both request AND reply are CUE-sourced in spec/schema/checkresult.cue, generated into spec/spec/cue_types_gen.go. Aliases intact (kit.CheckRunReply = spec.CheckRunReply, kit.StepPass = spec.StepPass, kit.StepResult = spec.StepResult).
- Zero-warnings gate: the sdk PR gates the full sdk module, so the #55-introduced lint/gofmt drift that was batched when the per-cone bank gate was ./charly/-scoped now BLOCKS this leg's own R10 and is fixed here (overruling the prior per-cone deferral): gofmt fixes on 9 #55-drifted files; prealloc fix in deploykit/candy_for_plans_test.go; dupl dedup in deploykit/intermediates_move_test.go (shared boxFixt helper, R3).
- CHANGELOG consolidation: the two per-cone CHANGELOG files consolidated into ONE comprehensive narrative mirroring spec PR #10 (one release = one CalVer = one CHANGELOG); the K5 per-cone file folded in and deleted.
- K5 regression fix: loaderkit.LoadBundleConfigViaExecutor returned (nil,nil) for an absent/empty per-host overlay; its drop-in predecessor deploykit.LoadBundleConfig returned a NON-NIL &BundleConfig{}. The check-commands-local reap-orphans-runs step regressed. Restored to &deploykit.BundleConfig{} (non-nil) on absent/empty, matching the pre-K5 contract; false (nil,nil)-on-absent comments corrected (R1 claim-keyed).

Why: charly/ keeps ONLY the E/M/B/D plugin-host fabric; every capability is a plugin candy. The mechanism kits are shared CAPABILITY libraries consumed by PLUGINS, never charly core. This leg re-points sdk at the spec leg's relocated contract + fabric slices, so the downstream super leg can re-point charly/ and the candies off the kits onto the spec slices — the end state git grep 'github.com/opencharly/sdk/(kit|deploykit|buildkit|loaderkit|vmshared)' charly/ is EMPTY.

R10 proof: the sdk leg is a Go contract/library module; its own gate (GOWORK=off) is GREEN — go build ./... ok; go test ./... ok (all packages); golangci-lint run ./... 0 issues; gofmt -l . empty. The runtime R10 roster (disposable check beds that build against the ASSEMBLED step1-fabric tree) runs at the SUPER leg of this B2 chain (the super leg re-points the sdk gitlink to this leg's merged commit and re-runs the fresh-rebuild roster). The full #55 accumulation R10 roster was GREEN driven from the assembled tree: check-pod, check-sidecar-pod, check-substrate, check-exampledeploy, check-commands-local (K5 fix re-verified — reap-orphans-runs PASS), check-charly-vm, check-builder-vm, check-structkind, check-group, check-local, check-doctor-local, check-feature-local, check-udev-local, check-gpu-local, check-preempt-local, check-migrate-local all PASS.

B2 dependency: leg 2 of 4 (spec → sdk → plugins → super). Spec leg (#10, merged v0.2026213.1726) produced the relocated contract + fabric slices; super leg re-points the sdk gitlink + re-runs the fresh-rebuild roster. Plugins leg (#116, docs-only) already merged.

Assisted-by: Claude Code glm-5.2:cloud (fully tested and validated)
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