Skip to content

feat(spec): deploy value-vocabulary (DeployKey helpers + OCIEmitStepParams/SaveDeployStateInput) → spec (#55 Cone V producer) - #8

Merged
atrawog merged 2 commits into
mainfrom
feat/55-coneV-deploy-values
Jul 30, 2026
Merged

atrawog merged 2 commits into
mainfrom
feat/55-coneV-deploy-values

Conversation

@atrawog

@atrawog atrawog commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

#55 Cone V — deploy value-vocabulary → spec (PRODUCER leg, B2)

Continues the deploykit relocation (after step-4's InstallStep IR): the deploy CONFIG/KEY value-vocabulary moves from sdk/deploykit → spec so charly + in-tree candies reference it from the contract instead of the deploykit alias.

What lands (4 files, +295)

  • spec/deploy_key.go (NEW, hand-written, stdlib-only): the pure deploy-key helpers DeployKey/ParseDeployKey/BundleDelArgv/DeriveDeploymentName (+lastIndexByteInRef).
  • schema/deploy.cue + cue_types_gen.go: the 2 wire structs OCIEmitStepParams + SaveDeployStateInput CUE-sourced (+2 defs → cue_types_gen.go +87). RDD spike PROVED cue exp gengotypes generates BOTH field-identical to the former hand structs — no @go(-). SaveDeployStateInput's map[string]json.RawMessage via the existing spec RawBody alias; pointer fields via optional=nillable / type=*T.

Boundary-law exclusions (RDD-verified, NOT Cone V)

  • BundleConfig: has 5 methods calling sdk/kit (ContainerNameInstance/IsAutoPort/ParseHostPort) — moving to spec would force spec→sdk/kit (mechanism→base inversion). Stays deploykit → K4.
  • HostContext: carries BuilderContext (in-proc build pre-pass, arg to BuildDeployPlan) — in-proc IR, stays deploykit (step-4 InstallStep precedent).

Verification

  • Additive — new files + 2 CUE defs; nothing renamed/removed. spec go build ./... + go test ./... green incl TestGenReproducible (cue:gen NO-OP); gofmt clean.
  • Downstream fix(exec): pass the container's OCI-spec user/HOME explicitly to podman/docker exec (#149) #55 Cone V tree (rides follow-on legs): charly off sdk/deploykit 38→33; 58 in-tree candy refs canonical-repointed → spec.X across 9 modules; all-85-candy GOWORK=off build 0; go test ./charly/... 257s ok; box validate 0; whole-tree R5=0. R10 beds check-pod 13/13 (249s — deploy config/state/overlay where these thread) + check-builder-vm 10/10 (381s), fresh-rebuild.

Producer-first B2: this spec leg (merge + Go-module tag) → sdk require-bump → superproject charly + candy repoint.

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

atrawog added 2 commits July 30, 2026 07:43
…EmitStepParams/SaveDeployStateInput) from sdk/deploykit → spec (#55 Cone V producer)

Pure deploy-key helpers (DeployKey/ParseDeployKey/BundleDelArgv/DeriveDeploymentName)
hand-written in spec/deploy_key.go (stdlib-only); the 2 wire structs
OCIEmitStepParams + SaveDeployStateInput CUE-sourced in schema/deploy.cue
(gengotypes-proven field-identical, SaveDeployStateInput's map[string]json.RawMessage
via the existing spec RawBody alias — no @go(-)). VolumeMount already spec-aliased.
deploykit keeps thin re-export aliases (follow-on leg). BundleConfig/HostContext
correctly EXCLUDED (kit-coupled / in-proc IR → K4).

Assisted-by: Claude Code Anthropic Claude Opus 4.8 (fully tested and validated)
Rename the placeholder CHANGELOG to the merge-time stamp (2026.211.0549)
and rewrite the H1; upgrade the attribution tier to fully-tested-and-validated
per the confirmed downstream assembled Cone V tree R10 (check-pod 13/13,
check-builder-vm 10/10, fresh-rebuild) — the direct step-4 (#7) precedent.

Assisted-by: Claude Code Anthropic Claude Opus 4.8 (fully tested and validated)
@atrawog
atrawog merged commit 436cdc0 into main Jul 30, 2026
@atrawog
atrawog deleted the feat/55-coneV-deploy-values branch July 30, 2026 05:55
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