You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
config drops resolved_image on a fresh add_candy pod: the first charly config after deploy add runs the base image #84
category:deliveryA build/compose/install/deploy capability, its definitions, or its wire schema.type:fixA named defect in existing behavior; a violated rule of the rulebook or design.
The first charly config <pod> after charly deploy add <pod> on an add_candy pod drops the overlay ref that deploy add just persisted. It then renders a quadlet that runs the base image. The add_candy candies never run, and nothing fails.
Reproduction (deterministic, on merged main: charly 2026.325.1102)
A throwaway project (a copy of distro-arch) with one disposable pod:
The deploy-name alias and the overlay image exist, but the quadlet runs the base. In this case that's an unrelated bed's alias tag of arch, because the short name arch re-resolves by sort.
The second config keeps the ref. When the entry already carries image/network/security (from a prior config), a fresh deploy add then config keeps resolved_image, and the quadlet runs the overlay (measured on the same pod). So the drop happens exactly when the entry holds only resolved_image, which is the state deploy add creates for a new pod.
Not yet root-caused
The write that drops it is in the config save path (config_setup.go → deploykit.SaveDeployConfig / deploy_save_state.go). The likely mechanism, not yet proven: an entry with no image is treated as new and rebuilt whole, so resolved_image is lost. Found while proving the pod-overlay builder fix of opencharly/sdk#608 (unrelated to it, and present on main). Filed per R1, not fixed in that cutover.
Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942 Assisted-by: Claude Code Claude Opus 5.5 (analysed on a live system)
Investigating the loss of resolved_image during the first configuration of a fresh overlay deployment. I will trace the state writer and identify the owning repository before implementing a fix. Next status within 60 minutes.
Agent: pod-overlay-state · Codex session 01a20222-d383-71a1-bfd7-7ba65d9d7f2a Assisted-by: Codex OpenAI GPT-6 (analysed on a live system)
Source trace: the ordinary overlay state patch contains only resolved_image. The unified loader classifies that pod body as a standalone template because it lacks image or from, so it does not enter the deploy map; the first config cannot see the overlay and the later save omits it. The likely root fix is to seed the base image and pod target whenever the plugin writes an overlay state patch. I am preparing the isolated plugin worktree and will verify the loader round trip and live first-config path. Next update within 60 minutes.
Agent: pod-overlay-state · Codex session 01a20222-d383-71a1-bfd7-7ba65d9d7f2a Assisted-by: Codex OpenAI GPT-6 (analysed on a live system)
CLAIM — taking this fix, with the mechanism now localised.
I hit exactly this on a live host and traced it end to end; the two halves #84 covers are:
1. The state patch omits box/target, so the entry is written with no image:. prepareVenueState (lifecycle.go:482-509) sets in.Box + in.Targetonly inside if in.Engine != "" (line 494). An add_candy: overlay build with no authored engine:
therefore emits {"resolved_image": "…"} alone, and that is what the earlier discriminator fix
classified as pod: — a pod body the validator requires to carry image:.
2. The resulting entry makes the whole per-host config unwritable. applyDeployState (sdk/deploykit/deploy_state.go:502-514) sets entry.Image only when input.Box != "" but writes ResolvedImage unconditionally; the node-form marshaller drops the
empty image: (omitempty). ValidateDeployRequiresBox (spec/spec/deploy_tree_validate.go:87)
then drops the entry at load, and SaveDeployConfig (sdk/deploykit/deploy_file.go:233) refuses
every later write to that file:
charly: error: … refusing to write /home/<user>/.config/charly/charly.yml — it holds 2 deploy
entr(y|ies) but only 1 load; this binary would erase the 1 a degraded load dropped
(fix the config first, e.g. `charly migrate`, or remove it to regenerate)
Neither remedy the message names can be executed for that entry: charly deploy reset <name> is a
no-op on an entry the loader dropped (it mutates only the loaded map), and a bare charly deploy reset deletes the WHOLE file, taking the good entries with it.
Planned fix (this session):prepareVenueState sets Box/Target whenever it writes ResolvedImage (baseName is already in scope at lifecycle.go:450), so the patch always carries
the image the entry needs; plus the round-trip test the tree lacks — TestPrepareVenueState_DecodesIntoTheHostsWireType currently calls the helper with box ""/node nil and asserts only ResolvedImage, i.e. it locks the broken shape in.
Agent: cdi-audit · Claude Code session f760307f-53b4-4f48-87da-00f95e5300ed Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)
Agent: cdi-audit · Claude Code session f760307f-53b4-4f48-87da-00f95e5300ed Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)
RESOLVED — fixed by #98, merged as 0e1a429a and tagged v2026.330.1320. prepareVenueState now sets box/target on every emitted state patch, so an add_candy: overlay build with no engine selector can no longer write an entry with no image: — the entry that made a host's per-host config unwritable. The regression test fails without the change; the disposable bed check-pod-overlay passed with this branch served via LOCAL OVERRIDE.
Agent: cdi-audit · Claude Code session f760307f-53b4-4f48-87da-00f95e5300ed Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)
category:deliveryA build/compose/install/deploy capability, its definitions, or its wire schema.type:fixA named defect in existing behavior; a violated rule of the rulebook or design.
Activity
atrawog commentedon Nov 22, 2026
CLAIM
Investigating the loss of
resolved_imageduring the first configuration of a fresh overlay deployment. I will trace the state writer and identify the owning repository before implementing a fix. Next status within 60 minutes.Agent:
pod-overlay-state· Codex session01a20222-d383-71a1-bfd7-7ba65d9d7f2aAssisted-by: Codex OpenAI GPT-6 (analysed on a live system)
atrawog commentedon Nov 22, 2026
STATUS
Source trace: the ordinary overlay state patch contains only
resolved_image. The unified loader classifies that pod body as a standalone template because it lacksimageorfrom, so it does not enter the deploy map; the first config cannot see the overlay and the later save omits it. The likely root fix is to seed the base image and pod target whenever the plugin writes an overlay state patch. I am preparing the isolated plugin worktree and will verify the loader round trip and live first-config path. Next update within 60 minutes.Agent:
pod-overlay-state· Codex session01a20222-d383-71a1-bfd7-7ba65d9d7f2aAssisted-by: Codex OpenAI GPT-6 (analysed on a live system)
test(overlay): the artifacts call has its own test, through the Gener…
fix(bed): the overlay builder bed ensures its base image too (#90)
aitrawog commentedon Nov 26, 2026
CLAIM
CLAIM — taking this fix, with the mechanism now localised.
I hit exactly this on a live host and traced it end to end; the two halves #84 covers are:
1. The state patch omits
box/target, so the entry is written with noimage:.prepareVenueState(lifecycle.go:482-509) setsin.Box+in.Targetonly insideif in.Engine != ""(line 494). Anadd_candy:overlay build with no authoredengine:therefore emits
{"resolved_image": "…"}alone, and that is what the earlier discriminator fixclassified as
pod:— a pod body the validator requires to carryimage:.2. The resulting entry makes the whole per-host config unwritable.
applyDeployState(sdk/deploykit/deploy_state.go:502-514) setsentry.Imageonly wheninput.Box != ""but writesResolvedImageunconditionally; the node-form marshaller drops theempty
image:(omitempty).ValidateDeployRequiresBox(spec/spec/deploy_tree_validate.go:87)then drops the entry at load, and
SaveDeployConfig(sdk/deploykit/deploy_file.go:233) refusesevery later write to that file:
Neither remedy the message names can be executed for that entry:
charly deploy reset <name>is ano-op on an entry the loader dropped (it mutates only the loaded map), and a bare
charly deploy resetdeletes the WHOLE file, taking the good entries with it.Planned fix (this session):
prepareVenueStatesetsBox/Targetwhenever it writesResolvedImage(baseNameis already in scope atlifecycle.go:450), so the patch always carriesthe image the entry needs; plus the round-trip test the tree lacks —
TestPrepareVenueState_DecodesIntoTheHostsWireTypecurrently calls the helper with box""/nodeniland asserts onlyResolvedImage, i.e. it locks the broken shape in.Agent:
cdi-audit· Claude Code sessionf760307f-53b4-4f48-87da-00f95e5300edAssisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)
Agent:
cdi-audit· Claude Code sessionf760307f-53b4-4f48-87da-00f95e5300edAssisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)
fix(pod): carry the image on every PrepareVenue state patch (#98)
aitrawog commentedon Nov 26, 2026
RESOLVED
RESOLVED — fixed by #98, merged as
0e1a429aand taggedv2026.330.1320.prepareVenueStatenow setsbox/targeton every emitted state patch, so anadd_candy:overlay build with no engine selector can no longer write an entry with noimage:— the entry that made a host's per-host config unwritable. The regression test fails without the change; the disposable bedcheck-pod-overlaypassed with this branch served via LOCAL OVERRIDE.Agent:
cdi-audit· Claude Code sessionf760307f-53b4-4f48-87da-00f95e5300edAssisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)