Repository navigation
feat(spec)!: grow the resolved-project envelope for the S-CM keystone (Collection A sdk leg) - #40
Conversation
… (Collection A sdk leg) The spec half of the K3-D+ program, absorbed into Collection A. Grows #ResolvedProject so the check-config host seam can die and inspect/list can move to plugin-box, and lands the full-width spec.CandyModel build model the next unit (#60 validate/K3-D) consumes. - candymodel.cue (new): #PackageSection/#TagPkgConfig/#EnvConfig/#RouteConfig (CUE-sourced from their former deploykit/kit hand structs, SDD) + full-width #CandyModel. - resolvedproject.cue: #ResolvedProject += candy_models, build vocab (distro/init pin the existing ResolvedDistro/ResolvedInit hand wire structs via @go; #Builder clean), templates (#ProjectTemplates, OPAQUE map[string]RawBody — kernel stays kind-blind), agent_bodies, build_targets, box_plans; #ResolvedBoxView += box-aggregates (ports/volumes/aliases/engine); #CandyView += route/volumes/ aliases/has_init/port_relay. - deploykit/layer_model.go + kit/env.go: the 4 hand structs deleted -> type X = spec.X aliases (R3). - seam.cue: #CheckConfigReply/#CheckConfigRequest removed (the seam dies) + the dead readiness_json field; #PodDisposableRequest/Reply added. BREAKING: spec.CheckConfigReply/CheckConfigRequest removed (internal host-plugin seam). No authored wire-key change -> no schema version bump. task cue:gen reproducible (TestGenReproducible PASS). Assisted-by: Claude (fully tested and validated) Claude-Session: https://claude.ai/code/session_01WD8McDALhtfjau7kpJuRem
pr-validator — APPROVED ✅Change class: charly/sdk Go (sdk contract — CUE schema + generated wire types) Independently re-validated on a fresh worktree at head
Verified myself (fresh worktree /tmp/sdk-pr40 @ cb76bf9): R10 corroboration: the consumer worktree builds against this exact envelope ( Placement: the envelope grows in Decision: APPROVED. Producer-first landing (B2/B6) — the sdk contract merges first; the superproject consumer PR (leg 2) re-validates the assembled tree with its own full R10. Assisted-by: Claude (analysed on a live system) |
Merge-time version stamp applied by the fresh pr-validator (V-K5CHAIN): CHANGELOG placeholder 2026.194.2100 → 2026.194.2234 (file + H1). Assisted-by: Claude (fully tested and validated) Claude-Session: https://claude.ai/code/session_01QsyQki2W7wiSbyrPtF25h1
What & why
Collection A — sdk leg (the S-CM keystone). Grows the
#ResolvedProjectenvelope so the superproject can KILL thecheck-confighost seam and movecharly box inspect/listintocandy/plugin-box, and lands the full-widthspec.CandyModelbuild model the next unit (#60 / K3-D validate) consumes. This is the producer half of a two-repo cutover; the superproject consumer PR follows on merge (it bumps thesdkgitlink +charly/go.modrequire to this merged commit).Part of the K5 core→plugin migration wave (task #54).
Change class
Code / schema (sdk contract). Runtime tier — proven end-to-end by the superproject consumer's R10 roster (this envelope has no standalone runtime; its consumer exercises every field).
Added
schema/candymodel.cue— the serializable candy BUILD model. Four sub-defs CUE-sourced from their former hand homes (SDD — wire-types-are-CUE-sourced):#PackageSection/#TagPkgConfig(weredeploykit/layer_model.go),#EnvConfig(waskit/env.go),#RouteConfig— composed by#CandyModel(identity + plan + lowered ops + resolved package/env/route/shell sections + the validate read-surface).schema/resolvedproject.cuegrows#ResolvedProject:candy_models, the build vocabularydistro/builder/init(thedistro/initmaps PIN the existing hand wire structsResolvedDistro/ResolvedInitvia@go(type=map[string]*…)— the candy.cue env/apk pattern, no new hand types;#Builderis a clean ref),templates(#ProjectTemplates— OPAQUEmap[string]RawBodyper kind: the host stays kind-blind, the consuming plugin decodes),agent_bodies,build_targets,box_plans. Grows#ResolvedBoxViewwith box-AGGREGATES (ports/volumes/aliases/engine) and#CandyViewwith per-candyroute/volumes/aliases/has_init/port_relay.Changed
deploykit/layer_model.go+kit/env.go: the four hand structs DELETED →type X = spec.Xaliases (R3 — one CUE source; the projector fills without conversion). Every existing consumer compiles unchanged.Removed
schema/seam.cue:#CheckConfigReply/#CheckConfigRequest(the check-config seam — now dead; plugin-check computes the projection off#ResolvedProject) + the reply's deadreadiness_json. Added#PodDisposableRequest/#PodDisposableReply(the thin per-host-overlay pod-disposability seam).!BREAKING (surfaces in the consumer)charly box inspect <box>default JSON becomes snake_case (the wire-safespec.ResolvedBoxView, already the K5U0 wire type with existing consumers — retagging/duplicating it was rejected per R3). Per---formatoutputs unchanged. In-tree mixed-case consumers were swept; external-facing only. The break lands in the superproject consumer PR; noted here because the enabling View growth is in this leg.R10 evidence — 12/12 beds GREEN (corroborated on disk)
The superproject consumer tree (built against this envelope via
replace => ../sdk) passed the full acceptance roster:ok:truewith real durations 145–536s — no prereq-skip masking). The k3s pair was phased (check-k8s-deploy passed solo at 392s) to avoid the pre-existing 16443 collision (see finding feat(spec): RetentionReply DanglingIDs + StagingDirs reclaim fields #2).go build ./...OK ·go test ./...PASS ·golangci-lint0 issues ·gofmtsilent ·task cue:genreproducible no-op (TestGenReproduciblePASS) ·TestNoConcreteKindInKernelPASS (thetemplatesfield is opaqueRawBody, kind-blind).Box-arm resolution identity (proven statically)
The relocated include-splicer's box arm resolves via the host-flattened
BoxPlans(ScanAllCandy), proven byte-identical to the former coreScanCandy:fedora.jupyter→ 0 steps,composition-source→ 2 steps — matching pre-cutover.Diagnostic round (2 findings, both RCA'd)
PodTargetDisposable=false, then exec-125 on the absent container). NOT a regression. Ruled OUT of the gate (iterate-class bed). A remediation UX fold rides the consumer PR (early "provision check-sandbox" message instead of the bare exit-125).Per-surface enabler tiers (honest)
CandyModels.Plan+Templates+BoxPlans(check-config death); box-aggregates +CandyViewgrowth +BuildTargets(inspect/list).analysed on a live system— the K5U0 pure-enabler precedent): the build vocabulary maps (Distro/Builder/Init) + theCandyModelvalidate-widen fields. Their consumer is the very next unit (feat(kit): P12a follow-up — pure-helper extraction tier + reportSteps dedup #60 / K3-D validate); they build + round-trip clean here but their runtime consumer is feat(kit): P12a follow-up — pure-helper extraction tier + reportSteps dedup #60.Deferred (named-exit rows)
deploykit.CandyModelinterface a flat struct can't satisfy;*Config-onlyComputeIntermediates+ namespace resolver). feat(kit): P12a follow-up — pure-helper extraction tier + reportSteps dedup #60 owns the K3-D resolve half + the OpValidateProject seam (docs(changelog): fix CHANGELOG H1 date to match filename 2026.195.0544 (K3-D+ sdk leg) #46, folded).Checklist
task cue:genreproducible no-op; wire types CUE-sourcedfully tested and validatedAssisted-by: Claude (fully tested and validated)