Repository navigation
Description
Category
category:runtime
Type
type:fix
Remedy / files the remedy will touch
spec schema/deploy.cue (#Deploy.publication, SaveDeployStateInput.publication, LifecyclePrepareInput.publication) + sdk deploykit (HeldPublications, ResolveDeployPublications, applyDeployState) move the record to the host state store: put/get with a state key, under the deployment lock
Cited design decision or org-rulebook rule (or none)
D-DEP-5, D-DOC-4
Classification
Blocking — it blocks the filer's own progress, so the filer claims it at filing and fixes it.
Evidence (verified: commands with output, file:line, measurements)
$ git -C spec show origin/main:schema/deploy.cue | grep -n 'publication?: {\[string\]: #PublicationRecord}'
147: publication?: {[string]: #PublicationRecord} @go(Publication,type=map[string]PublicationRecord)
1013: publication?: {[string]: #PublicationRecord} @go(Publication,type=map[string]PublicationRecord)
$ git -C spec show origin/main:spec/deploy_config.go | grep -n 'per-machine deployment overrides'
18:// DeployConfig represents per-machine deployment overrides ($XDG_CONFIG_HOME/charly/charly.yml).
$ git show origin/main:DESIGN.md | grep -n '^| D-DEP-5'
1911:| D-DEP-5 | Realized state (resolved ports and images, bindings, leases, reverse records, the kind's own records) lives in the state root (§20), written through `put` with a `state` key. |
spec/schema/deploy.cue:147 puts the realized publication record on #Deploy. DeployConfig, the per-host $XDG_CONFIG_HOME/charly/charly.yml (spec/spec/deploy_config.go:15), persists it, which makes it a document under D-DOC-1. D-DEP-5 places resolved ports in the state root, written through put with a state key.
Mechanism
#478 added the realized publications as a charly-written field on the deploy node, beside resolved_image and vm_state. The per-host deploy file that persists those nodes is the local document (D-DOC-1), so realized ports land in a document.
Missed control
spec#478's plan-conformance map quoted D-DOC-4 ('live in state … never written into a document') but did not check WHERE state is persisted today. The pass mapped the field to the requirement's wording, not to the storage that requirement names (D-DEP-5: the state root via put). The validator accepted the same quote.
Blast radius
Every deployment's publications once the sdk leg ships: pods, vms and kubevirt. Pre-existing siblings with the same placement: resolved_image, vm_state, kubevirt_state and firecracker_state on the deploy node.
Root fix
Once the host state store exists (get/put/state_commit, DESIGN.cue:1420-1454, built by comfyui-0471's B1, #370), move publication onto it in this wave, read and written under the deployment lock. The pre-existing siblings move with D-DOC, so there is ONE state mechanism (C4/C6).
Spike (its result, or none with the reason)
none: the remedy depends on the host state store (B1), which does not exist yet; the spike runs once B1's put/get land
Agent: claude-default-volume-design · Claude Code session session_01Tvdn3tjf8tKajCd43DwENP
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (documentation reviewed)
Activity
aitrawog commentedon Dec 2, 2026
CLAIM
Filed as blocking: it blocks this session's own progress, so this session claims it at filing and fixes it.
Agent:
claude-default-volume-design· Claude Code sessionsession_01Tvdn3tjf8tKajCd43DwENPAssisted-by: Claude Code Anthropic Claude Opus 5.5 (documentation reviewed)
aitrawog commentedon Dec 2, 2026
STATUS
Unblocked. #483 (
comfyui-0471's B1: the host state store,get/put/state_commit) merged, which is what this issue waited on. It stays claimed by me.Sequencing: I first finish landing the D-PUB plugin legs that write
publication(seven built-in plugins plus deploy-pod and deploy-vm, all migrated locally). Then this issue moves the record from the per-host deploy node onto the store in one cutover (spec shape, sdkResolveDeployPublications/HeldPublicationsread and write, the plugins' writes), so every writer moves at once instead of twice. I'll STATUS here when it starts.Agent:
claude-default-volume-design· Claude Code sessionsession_01Tvdn3tjf8tKajCd43DwENPAssisted-by: Claude Code Anthropic Claude Opus 5.5 (documentation reviewed)