Skip to content

feat(sdk): P14a producer half — enginekit + status/oci CUE wire types + OpStatusCollect - #36

Merged
atrawog merged 2 commits into
mainfrom
feat/p14a-status-oci-2
Jul 13, 2026
Merged

atrawog merged 2 commits into
mainfrom
feat/p14a-status-oci-2

Conversation

@atrawog

@atrawog atrawog commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Summary

The sdk producer half of the superproject P14a cutover (status collectors → command:status; OCI engine → verb:oci). Lands FIRST (B2 order); the superproject PR bumps this sdk pointer + go.mod require.

  • sdk/enginekit (new): EngineClient — the host-side podman/docker container-state engine (snapshot + inspect) the status collectors consume; Ports → spec.PortMapping.
  • sdk/schema/status.cue + oci.cue (CUE-sourced — SDD, no hand-written wire structs): #PortMapping, #ToolStatus, #SubstrateKind (+ hand spec/status_types.go enum, @go(-)), #DeploymentStatus; the P14a additions #MergeRequest/#MergeReply/#ImageUserInput/#UserInfo (verb:oci merge + adopt-user wire) and #StatusSubstrateRequest/#StatusNestedNode/#StatusSubstrateReply (the HostBuild("status-substrate") seam envelope). All generated into spec/cue_types_gen.go by task cue:gen.
  • sdk/ops.go: OpStatusCollect — the command:status programmatic collection op, distinct from the lifecycle OpStatus.

Change class

Code (sdk contract module). Runtime tier.

R10 evidence

No standalone sdk bed (a producer); its gate is the consuming superproject's build + the P14a roster on the assembled tree (sdk 55e9c4d→amended, super 486f34b):

FINAL roster (frozen tree, per-tree binary v2026.194.1330):
check-commands-local  PASS  5 steps  116s  ok:true  calver 2026.194.1317
  plan checks 6/6 PASS incl. status-runs exit=0 (charly status + status --json → JSON array, through command:status + the status-substrate seam)
check-sidecar-pod     PASS  11 steps 239s  ok:true  calver 2026.194.1317
  incl. sidecar-pod-running: charly status --json exit=0 (externalized status against a LIVE deploy)

Gates: go build ./... 0 / go test ./... all-ok (incl TestGenReproducible) / golangci-lint run 0 / gofmt clean; task cue:gen reproducible (no-op).

Tier

fully tested and validated — all 10 standards + the fresh-rebuild P14a roster; the wire types + OpStatusCollect are exercised live through command:status / verb:oci.

https://claude.ai/code/session_01AAxEEG1p1C3Ks7h2NcPj18

Assisted-by: Claude (fully tested and validated)

… + OpStatusCollect

enginekit (EngineClient podman/docker snapshot+inspect); status.cue/oci.cue wire types (DeploymentStatus/PortMapping/ToolStatus/SubstrateKind + MergeRequest/MergeReply/ImageUserInput/UserInfo + StatusSubstrateRequest/StatusNestedNode/StatusSubstrateReply, CUE-sourced → cue_types_gen.go); OpStatusCollect. R10-proven via the P14a roster on the frozen tree (check-commands-local incl status-runs + check-sidecar-pod, both PASS).

Assisted-by: Claude (fully tested and validated)

Claude-Session: https://claude.ai/code/session_01AAxEEG1p1C3Ks7h2NcPj18
@atrawog

atrawog commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅

Change class: charly/sdk Go (sdk contract module — producer half of P14a)

Independently re-derived on the FINAL head 2853c10 (single commit on top of 2977d5c = current main; not behind). Trusted no author claim.

Gates I re-ran myself (all green):

  • go build ./... 0 · go vet ./... 0 · gofmt -l . clean · go test ./... all ok (incl. enginekit, spec/TestGenReproducible)
  • golangci-lint run ./... (v2.12.2) = 0 issues
  • task cue:gen → clean tree (no-op) — SDD reproducibility proven; the 3 new wire types (#StatusSubstrateRequest/#StatusNestedNode/#StatusSubstrateReply) are byte-identically regenerated from schema/status.cue into spec/cue_types_gen.go

Checklist: 0 security PASS · 1 description PASS(note) · 2 gate PASS · 3 tier PASS · 4 R0 PASS · 5 R1 PASS · 6 R2 PASS · 7 R3 PASS · 8 R4 PASS · 9 R5 PASS · 10 R6/8/9 N/A · 11 R10 PASS · 12 SDD@100% PASS · 13 concurrency N/A · 14 atomic PASS · 15 ARCHITECTURE PASS · 16 disposable N/A · 17 go-gates PASS · 18 CHANGELOG PASS

placement: CORRECT — enginekit is a kind-blind MECHANISM (parses podman/docker ps/inspect/exec output into host-internal ContainerSnapshot), consumed by ≥2 callers with sdk-only deps → an sdk-kit is the right layer (not core, not a single candy). exec.Command(podman/docker) is the legitimate charly-as-orchestrator case (R4-allowed). Wire types → spec (CUE-first); OpStatusCollect → ops.go. No charly/ files touched → no alias / kit-import concern.

SDD @100%: ContainerSnapshot/MountInfo are host-internal mechanism structs (correctly hand-written Go, not wire types); the boundary carriers (DeploymentStatus, StatusSubstrate*) are CUE-sourced. No hand-edited generated file (regeneration is a no-op); no new @go(-).

R10: bed evidence corroborated on disk — check-commands-local (5 steps, 116s, ok:true) + check-sidecar-pod (11 steps, 239s, ok:true), calver 2026.194.1317, status-runs step exit=0 (externalized charly status --json through command:status + the status-substrate seam — the producer path exercised live). enginekit ships real parse-coverage tests that fail without it.

Non-blocking note: the Summary and CHANGELOG recap the cumulative P14a producer wire-type surface (#PortMapping/#ToolStatus/#SubstrateKind/#DeploymentStatus + the oci.cue #MergeRequest/#MergeReply/#ImageUserInput/#UserInfo) as if this PR adds them — those landed earlier in #28 (ae98a93). Everything in this PR's actual diff (enginekit + the 3 status-substrate seam types + OpStatusCollect) is truthfully described and nothing is hidden. Recommend future CHANGELOGs state this release's delta distinctly. Not a correctness or safety issue → not blocking.

Decision: All hard gates pass on independent re-run; SDD reproducible; placement correct; security clean; producer path exercised live via the corroborated roster. Finalizing merge-time CalVer 2026.194.1333, merging --squash, tagging v0.2026194.1333.

Assisted-by: Claude (analysed on a live system)

Merge-time version stamp (validator): CHANGELOG placeholder → 2026.194.1333.md
+ H1 date prefix. Folded by the squash-merge.

Assisted-by: Claude (documentation reviewed)
@atrawog
atrawog merged commit c7a3175 into main Jul 13, 2026
@atrawog
atrawog deleted the feat/p14a-status-oci-2 branch July 13, 2026 13:38
github-actions Bot pushed a commit that referenced this pull request Nov 19, 2026
* docs(deploykit): D-CODE-4 sweep, the intermediates subsystem

DESIGN.md:2649 -- D-CODE-4, comments describe present code; history goes to CHANGELOG/.
Eleven history sites across intermediates.go, intermediates_compute.go and
intermediates_move_test.go, rewritten to present tense with every load-bearing reason kept.

The headers said "relocated from charly core (P8b)", "the formerly HOST-COUPLED half", "This half
used to read *Config and stayed in charly core for that reason alone", "the former charly-side
entry point lifted cfg.Defaults ... (removed in #55 Cluster-B)", "the former docstring already
gave". They now state where each half lives, why it is pure over IntermediateDefaults, and the
namespace-boundary rule -- the reasons, without the relocations.

One site is left alone deliberately: "Default UID -- used to decide whether an intermediate
needs a UID suffix" is present tense (is used to decide), not history, and the widened grep
cannot tell them apart.

Comment-only, proven by the canonical git diff filter. build, vet and gofmt clean;
go test ./deploykit/ ok.

This is deploykit second unit. 150 of the 171 widened-class sites remain, named by file and
count in opencharly/opencharly#1147.

Agent: lead
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed)

* docs(deploykit): finish the move-test block, whose tail still said before the move

The header was rewritten and the sentences flowing from it were not: instead of the

concrete charly *Candy struct the tests used before the move, verified against the

pre-move behaviour, None of the pre-move fixtures, mirrors the pre-move test file.

A comment block is one claim in several sentences, and this PR claimed only the

relocations are gone while four remained in the same block.

Agent: lead

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed)

* docs(deploykit): the IntermediateDefaults sentence, which the last fix left ungrammatical

It read exactly the fields a *Config read off cfg.Defaults.* -- past tense and broken. The

rewrite of the sentence above it introduced it, so the block asserted present code and then

narrated a read in the same clause. Now: the cfg.Defaults.* fields, and nothing else.

Agent: lead

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed)

* docs(deploykit): drop the phase tags, which name a past campaign, not the code

The body removed the relocations and left (P8b), (W3), (W3/K3) and (W3, task #36) standing

in the same headers. A phase or task id is history in the same sense: it names when the

code moved rather than what it does.

Agent: lead

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed)

---------

Co-authored-by: aitrawog <dsh-opencharly@local>
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