Skip to content

feat(schema)!: the pod CLI's port pins become its --publish layer - #486

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/publish-cli-layer
Dec 2, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/publish-cli-layer

Conversation

@aitrawog

@aitrawog aitrawog commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Summary

This moves the pod-lifecycle CLI's port pins onto D-PUB's --publish layer (opencharly/opencharly#1390, the D-PUB wave).

PodStartOpts, PodStartPayload and PodConfigSetupRequest carried charly start / charly config's -p flag as host:container pin strings, the form #478 retired from documents. They now carry publish: the same named #Publication map a deployment authors. It is parsed from --publish <endpoint>=<port|auto>[@<address>] by the sdk's kit.ParsePublishFlags (opencharly/sdk#682), and it is the CLI layer of the D-DEF chain over the deployment's own publish:.

I found this while bumping the built-in plugins onto sdk v0.2026336.1502. plugin-pod forwards these requests to plugin-deploy-pod, and both move to publish in their own legs.

The engine's ports (the rendered -p mapping list an engine run receives) is emitter output and stays. The status #PortMapping is the status leg (D-PUB-4).

Files

File Status
schema/seam.cue M
spec/cue_types_gen.go M
spec/pod_cli_publish_test.go A

How tested

The change class is contract/schema (SDD), gated on head 485e841cbc65af1881e41db1462b591ea2b47b48:

# head 485e841cbc65af1881e41db1462b591ea2b47b48 (git rev-parse HEAD)
$ charly task cue-gen
  [pass] run — download and pin protoc + the two Go codegen plugins
  [pass] run — render the proto IDL from CUE and compile the Go stubs
  [pass] run — generate the Go params in-process + schemagen the vocab lists
  [pass] check — regen is reproducible — TestGenReproducible passes on the committed tree
$ gofmt -l .                                 (no output)
$ go vet ./...                               (no output)
$ go test ./...                              (35 packages ok)

Spike

RCA claim: the pod CLI's port override reaches the deploy plugin as host:container strings, a second spelling of a publication that names no endpoint. So it cannot be applied by the one publication resolver (D-PUB-1), which works by endpoint name.

Candidates spiked:

  • (a) keep the pin strings and translate them in the deploy plugin. Fails: a host:container pin names a guest port, not an endpoint. Two endpoints on one guest port (D-VAL-13) make the translation ambiguous, and the pin form survives as a second spelling.
  • (b) carry publish: {[string]: #Publication} on the three requests. Works: TestPodCLIRequestsCarryPublish decodes the pinned, auto and derived forms on all three shapes.

The new test fails on origin/main:

$ go test ./spec -run TestPodCLIRequestsCarryPublish   (origin/main + the new test)
spec/pod_cli_publish_test.go:33:29: a.Publish undefined (type PodStartPayload has no field or method Publish)
spec/pod_cli_publish_test.go:34:26: b.Publish undefined (type PodStartOpts has no field or method Publish)
spec/pod_cli_publish_test.go:35:35: c.Publish undefined (type PodConfigSetupRequest has no field or method Publish)
FAIL	github.com/opencharly/spec/spec [build failed]

Winner: (b).

RCA verdict: confirmed.

Rulebook compliance

Plan conformance

Winning candidate: (b), publish on the three CLI requests.

Planned change DESIGN requirement Disposition
publish of #Publication on the pod CLI requests D-PUB-1 conforms — "A publish entry names a provided endpoint and carries a #Publication: an optional port (a number or auto) and an address, 127.0.0.1 by default."
  • C0: I loaded the git-workflow, strict-policy, design and go skills and read spec's AGENTS.md.
  • C1: no warning. Found while bumping the built-in plugins; fixed here because it blocks the plugin-pod and plugin-deploy-pod legs.
  • C2: see the Spike block.
  • C3: see the map.
  • C4: one publication shape, reused.
  • C5: no workaround.
  • C6: the three port pin fields are deleted, not kept beside publish.
  • C7: no documented surface changes in this module.
  • C8: the new test fails on origin/main and passes here.
  • C9: N/A. There is no live-service boundary.
  • C10: N/A. A contract module.
  • C11: the module gate passes on the committed head.
  • C12: a session worktree off fresh origin/main, with no force-push and no hook bypass.

Change classification

  • Change class: contract/schema (spec).
  • Gate: charly task cue-gen + go test ./....
  • Tier: fully tested and validated.
  • Authoring runtime: Claude Code on model ID claude-opus-5-5 (Anthropic Claude Opus 5.5).
  • Breaking change + rollback: plugin-pod (which sends these requests) and plugin-deploy-pod and plugin-fleet (which read them) switch from port to publish on their next spec bump. plugin-pod's -p becomes --publish. Roll back by reverting this squash commit; no consumer has bumped yet.

Filed issues

None: no new finding.

https://claude.ai/code/session_01Tvdn3tjf8tKajCd43DwENP

Agent: claude-default-volume-design · Claude Code session session_01Tvdn3tjf8tKajCd43DwENP
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)

PodStartOpts, PodStartPayload and PodConfigSetupRequest carried the -p flag as host:container pin
strings. They now carry publish: the same named #Publication map a deployment authors (D-PUB-1),
parsed from --publish <endpoint>=<port|auto>[@<address>] by kit.ParsePublishFlags, as the CLI
layer of the D-DEF chain.

Claude-Session: https://claude.ai/code/session_01Tvdn3tjf8tKajCd43DwENP
Agent: claude-default-volume-design · Claude Code session session_01Tvdn3tjf8tKajCd43DwENP
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Review — PASS

Head SHA: 485e841cbc65af1881e41db1462b591ea2b47b48 (branch: feat/publish-cli-layer)

Security screen: PASS — no secrets, no weakened guardrails, no scope mismatch; diff matches the stated intent (three port pin fields → publish #Publication maps).
Checklist: All applicable rules PASS or NA. SDD source+generated change together; C6 hard cutover (fields deleted, not kept beside); C8/C11 new test with pasted failure on origin/main whose file:line:col (33:29, 34:26, 35:35) matches the added test exactly; C3 map row quotes D-PUB-1 and names winning candidate (b) matching the Spike winner; L1/L3 body complete with well-formed Agent:/Assisted-by: footers and tier fully tested and validated justified. Placement: CORRECT (wire shape in schema/, CUE-first; parsing lives in sdk kit.ParsePublishFlags, consumers in their own repos).
Comments: none (0-comment thread) — nothing to disposition.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) December 2, 2026 15:10
@github-actions
github-actions Bot merged commit 552b906 into main Dec 2, 2026
4 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Dec 2, 2026
aitrawog added a commit that referenced this pull request Dec 2, 2026
Catches the branch up with #486; `charly task cue-gen` after the merge is a no-op.

Agent: comfyui-0471 · Claude Code session 724dd7fe-cee8-48d9-9af4-7f630d2bc046
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)
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