Repository navigation
Description
Summary
The plugin build cache under ~/.cache/charly/plugin-build/views/ served a plugin-deploy-pod
binary whose behaviour did not match the source view it reported, and re-running against the SAME
source view after moving the artifact aside produced a DIFFERENT binary with the correct behaviour.
The cache is therefore not keyed on what the binary actually depends on (the resolved sdk/spec
modules), so a merged pin bump can keep serving pre-change behaviour invisibly.
How found
charly config named the exclusive volume for an image whose label declares sharing: shared:
$ charly config strata/one
plugin github.com/opencharly/plugin-deploy-pod/candy/plugin-deploy-pod: served from
/home/atrawog/.cache/charly/plugin-build/views/plugin-deploy-pod-cc132c6dd37132b3
(build sha256:5e2cb0dc21e62dde46f0e0139718ceef8777a6d273a57050201785b79d5f51b4)
$ grep Volume= ~/.config/containers/systemd/charly-strata-one.container
15:Volume=charly-strata-one-strata-data:/data # exclusive
$ podman image inspect ghcr.io/opencharly/strata:2026.334.1851 --format '{{index .Labels "ai.opencharly.volume"}}'
[{"name":"strata-data","path":"/data","sharing":"shared"}]
The binary reported sdk v0.2026334.825 / spec v0.2026334.1109 via go version -m, and that
sdk's deploykit.ResolveVolumeBacking DOES branch on EffectiveVolumeSharing — so the behaviour
does not follow from the reported dependency set.
Moving the served artifact aside and re-running the identical command:
$ mv ~/.cache/charly/plugin-build/views/plugin-deploy-pod-cc132c6dd37132b3 /tmp/pdp-view.bak
$ charly config strata/one
plugin github.com/opencharly/plugin-deploy-pod/candy/plugin-deploy-pod: served from
/home/atrawog/.cache/charly/plugin-build/views/plugin-deploy-pod-cc132c6dd37132b3
(build sha256:43ae6500821560f8c098b09fcf2b281326bc69f8348cab0860b559ac16a8cf8e) # NEW sha, same view
$ grep Volume= ~/.config/containers/systemd/charly-strata-one.container
15:Volume=charly-shared-strata-strata-data:/data # shared, correct
The same source view yielded two different build shas and two different behaviours; only the
rebuilt one matches the source's pinned modules. charly cache refresh did not rebuild it.
Blast radius
Every plugin whose dependency pins move (sdk/spec bumps such as plugin-deploy-pod#116 and #118)
can keep serving a binary built before the bump while the view's go.mod already names the new
modules — the exact silent-staleness class the R9 rule exists to catch, one layer below the charly
binary itself.
Root fix
Key the plugin build cache on the plugin source tree AND the resolved dependency graph (the modules
the build actually compiled), or invalidate the artifact when the view's go.sum/go.mod changes.
A build cache entry whose provenance is not reproducible is not a cache hit.
Agent: opencharly-77 · Claude Code session 12aa3769-08b4-47ce-81fd-bf539338caaf
Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
Activity