Repository navigation
feat(schema)!: the pod CLI's port pins become its --publish layer - #486
Conversation
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)
Review — PASSHead SHA: Security screen: PASS — no secrets, no weakened guardrails, no scope mismatch; diff matches the stated intent (three Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
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)
Summary
This moves the pod-lifecycle CLI's port pins onto D-PUB's
--publishlayer (opencharly/opencharly#1390, the D-PUB wave).PodStartOpts,PodStartPayloadandPodConfigSetupRequestcarriedcharly start/charly config's-pflag ashost:containerpin strings, the form #478 retired from documents. They now carrypublish: the same named#Publicationmap a deployment authors. It is parsed from--publish <endpoint>=<port|auto>[@<address>]by the sdk'skit.ParsePublishFlags(opencharly/sdk#682), and it is the CLI layer of the D-DEF chain over the deployment's ownpublish:.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 topublishin their own legs.The engine's
ports(the rendered-pmapping list an engine run receives) is emitter output and stays. The status#PortMappingis the status leg (D-PUB-4).Files
schema/seam.cuespec/cue_types_gen.gospec/pod_cli_publish_test.goHow tested
The change class is contract/schema (SDD), gated on head
485e841cbc65af1881e41db1462b591ea2b47b48:Spike
RCA claim: the pod CLI's port override reaches the deploy plugin as
host:containerstrings, 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:
host:containerpin 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.publish: {[string]: #Publication}on the three requests. Works:TestPodCLIRequestsCarryPublishdecodes the pinned,autoand derived forms on all three shapes.The new test fails on
origin/main:Winner: (b).
RCA verdict: confirmed.
Rulebook compliance
Plan conformance
Winning candidate: (b),
publishon the three CLI requests.publishof#Publicationon the pod CLI requestspublishentry names a provided endpoint and carries a#Publication: an optionalport(a number orauto) and anaddress,127.0.0.1by default."AGENTS.md.portpin fields are deleted, not kept besidepublish.origin/mainand passes here.origin/main, with no force-push and no hook bypass.Change classification
charly task cue-gen+go test ./....fully tested and validated.claude-opus-5-5(Anthropic Claude Opus 5.5).porttopublishon their next spec bump. plugin-pod's-pbecomes--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 sessionsession_01Tvdn3tjf8tKajCd43DwENPAssisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)