Repository navigation
feat(spec): P14a status + OCI wire types (sdk producer half) - #28
Conversation
Adds CUE-sourced status wire types (#DeploymentStatus/#PortMapping/#ToolStatus + the hand-written SubstrateKind enum) for the command:status plugin's fleet fan-out + render, and OCI wire types (#MergeRequest/#MergeReply/#ImageUserInput/ #UserInfo) for the verb:oci merge engine + image-user probe (consumed by P8b's transitional HostBuild merge -> InvokeProvider verb:oci swap, R3 one shape). SDD spike: RECURSIVE #DeploymentStatus generates as []*DeploymentStatus (gengotypes breaks the self-cycle with a pointer; JSON byte-identical to a value slice); JSON-tag fidelity (required->no-omitempty, optional->omitempty) locked by spec/status_wire_test.go against the documented charly status --json golden. Producer half only. The BoxMetadata-hub read helpers (ExtractMetadata/ ResolveNewestLocalCalVer) defer to P2B-completion: the plan's P2(B) BoxMetadata-> spec never landed (R1 doc-divergence, recorded in the CHANGELOG), and the ~40-field hub references sub-types owned by in-flight P11/P14b (VolumeMount/LabelSecretEntry/ CollectedAlias) that must freeze first for R8 baked-label byte-parity. ParsePortMapping is already in sdk/kit. The consumer plugin candies + core rewiring are the P14a superproject half (merges after P11+P12, C7). Assisted-by: Claude (fully tested and validated) Claude-Session: https://claude.ai/code/session_01R8UGGr3ui1959oTb5JuSif
pr-validator — APPROVED ✅Change class: sdk contract additive-types (Go library + CUE schema) — NOT a runtime/bed class. The applicable R10 gate is Checklist verdict
Gate outputs (my independent re-run at
|
Merge-time CalVer stamp applied by the fresh pr-validator: rename the placeholder CHANGELOG to the merge-time CalVer and update its H1 heading. Assisted-by: Claude (documentation reviewed) Claude-Session: https://claude.ai/code/session_01SKKjKUrEmfv5BKAxhUc9kL
…rop transitional local copy sdk#28 (P14a's oci.cue MergeRequest/MergeReply) is merged into sdk main. Per the one-home dedupe ruling, delete the transitional #MergeRequest/#MergeReply from schema/buildresolve.cue (kept only for pre-#28 compilation) and regenerate — cue_types_gen.go now carries P14a's single MergeRequest (ImageRef/MaxMB/MaxTotalMB/Engine/DryRun) + MergeReply, which the HostBuild("merge") seam + the candy import. buildresolve.cue defines only the BuildResolve* family now. Assisted-by: Claude (fully tested and validated) Claude-Session: https://claude.ai/code/session_01R8UGGr3ui1959oTb5JuSif
Summary
The sdk producer half of P14a (status subsystem + OCI registry/merge → plugins). Adds the CUE-sourced host↔plugin / render wire types the
command:statusandverb:ociplugin candies exchange — a plugin imports only the sdk, so these types are the contract. Additive API only; consumer plugin candies + core rewiring are the P14a superproject half (merges after P11+P12, C7).What's in it
schema/status.cue→ spec:#DeploymentStatus(thecharly statustable +--jsonshape, RECURSIVEnested),#PortMapping,#ToolStatus;spec/status_types.gohand-writes theSubstrateKindenum + 5 consts (scalar-enum-with-consts,charly_names.goprecedent) with a#SubstrateKindCUE enum for wire-boundary validation.schema/oci.cue→ spec:#MergeRequest/#MergeReply(theverb:ocimerge envelope — consumed by P8b's transitionalHostBuild("merge")→InvokeProvider("verb","oci",OpMerge)swap, R3 one shape),#ImageUserInput/#UserInfo(base-image adopt-user probe).spec/status_wire_test.go: 3 parity tests.SDD spike findings (RDD schema spike)
#DeploymentStatus.nested: [...#DeploymentStatus]→Nested []*DeploymentStatus(gengotypes breaks the self-cycle with a pointer slice; JSON byte-identical to a value slice →status --jsonparity holds).json:"kind"(no omitempty), optional →,omitempty— byte-identical to the current hand-written core struct → the spaced"kind": "pod"form thecommandcheck probes assert on.Change class + R10 (sdk contract, additive API)
Per the sdk change class R10 =
go test+ reproduciblecue:gen:R1 documentation-divergence RCA (recorded in CHANGELOG)
The program plan asserts P2(B) moved
BoxMetadata+ sub-types + label consts +CapabilityLabelMaptosdk/spec. It never landed —type BoxMetadata structexists ONLY atcharly/labels.go:166.BoxMetadatais a ~40-field type-graph HUB whose sub-types (VolumeMount/LabelSecretEntry→ P11,CollectedAlias→ P14b) are owned by in-flight cutovers; CUE-sourcing it under the R8 baked-label byte-parity constraint requires those tags frozen first → deferred to task P2B-completion (post-P11+P14b).ParsePortMapping(the third named helper) is already insdk/kit.Attribution
Assisted-by: Claude (fully tested and validated)— sdk change class gate fully met (go test + reproducible cue:gen + wire round-trip parity tests + lint clean).R0–R10
Assisted-by: Claude (fully tested and validated)