Repository navigation
Description
A dev/worktree charly build cannot serve the out-of-process plugin-deploy-pod provider, so any pod bed is unrunnable from a worktree build
Discovered 2026-10-14 while trying to run the disposable pod bed openclaw.check-openclaw-pod as the R10 witness for a plugin-check change.
$ /tmp/charly-707 -C <umbrella> check run openclaw.check-openclaw-pod
[image-build] PASS after 6m8.667s
[check-image] PASS after 1m9.821s
[deploy-add] FAIL after 4m23.342s: exit 1
charly: error: command "deploy": resolve target: deployment "openclaw/check-openclaw-pod":
target "pod" is a known substrate but its deploy provider is not connected (the
@github.com/opencharly/plugin-deploy-pod/candy/plugin-deploy-pod plugin candy is not compiled-in
or failed to load)
What is established
plugin-deploy-podis not arequireincharly/go.mod(grep plugin-deploy-pod charly/go.mod→ nothing), so it is not a compiled-in plugin.- Plugins otherwise arrive out-of-process, and the same run's log shows that working for others:
plugin github.com/opencharly/plugin-openclaw/candy/plugin-openclaw: served from /home/atrawog/.cache/charly/plugins/github.com_opencharly_plugin-openclaw_candy_plugi…. - There is no installed charly in this environment (
/usr/lib/charly/pluginsdoes not exist), and every charly run prints: "charly is a dev/worktree build (not installed at /usr/bin or /usr/local/bin); NOT loading the installed package's plugins from /usr/lib/charly/plugins (they may …)". - So a dev/worktree build cannot load the pod substrate provider, and the bed fails at
[deploy-add]before any test step runs.
Why this matters beyond one bed
A bed that needs an out-of-process substrate provider cannot be used as an R10 witness from a worktree build. For a contributor working in the umbrella — which is how this org's rulebook says every session works — that makes a whole class of beds unrunnable, and an R10 requirement that names such a bed unsatisfiable. Two PRs on plugin-check spent several rounds on exactly this: the change's gate named a pod bed, and no witness binary available in this checkout could run it.
It also interacts with the R9 rule (use the worktree-local, CalVer-stamped build, never a shared install): the rulebook asks for a worktree build, and a worktree build is precisely the thing that cannot serve these providers here.
What is NOT claimed
- Not claimed that the pods/plugins are broken in general — an installed charly may serve them; this environment has none to test against.
- Not claimed as a defect in
plugin-deploy-pod— it is never reached. - Not claimed that the provider must be compiled in — compiling everything in is one answer; making a worktree build able to serve the provider it needs is another.
The question to answer first
How is a plugin that is neither compiled-in nor present as an installed package supposed to be served? The cache path (~/.cache/charly/plugins/…) evidently works for several plugins in the same run, so the mechanism exists — the open question is why plugin-deploy-pod is absent from it (never built into that cache? built for a different version? only loaded by an installed charly?). That is one reading of plugin.go/the loader plus one ls ~/.cache/charly/plugins | grep deploy-pod, neither of which was done here, so neither is asserted.
Agent: dsh-opencharly
Assisted-by: dsh deepseek-v4.1-flash (analysed on a live system)
Activity
## Summary
aitrawog commentedon Oct 14, 2026
STATUS — correcting my own last paragraph: the plugin is NOT absent from the cache, and the question is the KEY.
I wrote that the open question was "why plugin-deploy-pod is absent from it". The check I ran in the same command refutes that:
Those 132 entries are many BUILDS of exactly this plugin, keyed by build stamps (
04b1c97122babd60,0d61d714c9a06f83, ...), three files per build (dir, lock, stamp). So the plugin is present, repeatedly, and the failure is a KEY MATCH: the loader asked for a key that is not among them.That sharpens the question and moves it one file closer. The next reads are: (a) the cache key derivation in the plugin loader (what does it hash -- the plugin commit? the sdk version? the charly version?), and (b) whether my witness build's three local
replacelines (plugin-check, plugin-build at 282) changed the expected key while the cached builds carry the keys of the released versions. If (b) is the cause, the finding is narrower than filed: a witness build with local replaces can fail to match any cached plugin build, which is a fact about how the replaces interact with the cache rather than about dev builds in general.What does NOT change: the bed still cannot run here, the R10 requirement still cannot be satisfied from this checkout, and the interaction with R9 (which requires a worktree-local build) stands.
Agent: dsh-opencharly
Assisted-by: dsh deepseek-v4.1-flash (analysed on a live system)
aitrawog commentedon Oct 14, 2026
STATUS — CORRECTION to this issue: a dev/worktree charly CAN serve this provider. The measured mechanism:
CHARLY_PLUGIN_DIR— the loader consults it BEFORE the dev/worktree FHS drop (charly/charly/plugin_loader.go:484; the drop is at :490). Point it at a directory containing the provider binary;bakedPluginFileName/safePluginBinName(:175,:407) keep[a-zA-Z0-9.-], so the filename for this plugin is simplyplugin-deploy-pod. The binary is then reported asserved from baked binary …. So the title of this issue — "cannot serve the out-of-process plugin-deploy-pod provider" — is FALSE.The build target is not the candy root.
go buildincandy/plugin-deploy-podcompiles the LIBRARY package (package deploypod) and produces a Go archive (!<arch>); the plugin main package iscandy/plugin-deploy-pod/cmd/serve. That is the residual, real content of this issue: the correct target is not discoverable from the candy without readingcmd/serve.The install location must be executable. A copy under
/tmpfailed withfork/exec …: permission denied(no execute bit, and/tmpmay benoexec); under$HOMEwith mode 755 it loads.Result, with those three in place:
Evidence:
.dsh/ledger/evidence/bed-green-102/(the run log, the deploy-add log, the per-step summary) andopencharly/plugin-check#108, whose## How testedpastes it.Agent: dsh-opencharly
Assisted-by: dsh deepseek-v4.1-flash (fully tested and validated)
## Summary
## Summary
fix(check): one bed-ref conversion for every container lookup and for…
[-]A dev/worktree charly build cannot serve the out-of-process plugin-deploy-pod provider, so any pod bed is unrunnable from a worktree build[/-][+]An out-of-tree provider's build target is not discoverable from the candy: `go build` in the candy root yields a Go archive, not a binary[/+]aitrawog commentedon Oct 14, 2026
STATUS — this issue is RETITLED and its premise retracted. A dev/worktree charly can serve an out-of-tree provider; the original title said it could not, and that was wrong.
What is true, measured tonight on
opencharly/plugin-check#109:CHARLY_PLUGIN_DIRis read atcharly/charly/plugin_loader.go:484, before the dev-build FHS drop at:490;bakedPluginFileName/safePluginBinName(:407,:175) keep[a-zA-Z0-9.-], so the expected filename is simplyplugin-deploy-pod.The residual defect this issue now tracks, which is real and cost me two runs:
go buildincandy/<plugin>compiles the LIBRARY package (package deploypod) and emits a Go archive beginning!<arch>— the failure appears only when the loader tries to exec it. The plugin main package lives incandy/<plugin>/cmd/serve, and nothing in the candy says so; the candy's owncharly.ymlonly mentions that "charly's loader host-builds" it./tmpfailed withfork/exec …: permission denied— no execute bit, and/tmpmay benoexec.Not claimed any more: that a dev/worktree build "cannot serve" the provider, or that
#328's FHS-drop behaviour is at fault — the FHS drop is deliberate andCHARLY_PLUGIN_DIRis the documented path around it. The narrower ask: make the provider's build target discoverable (acharly boxverb, or the candy naming itscmd/serveincharly.yml), and let a non-executable provider binary fail with a message that names the missing execute bit rather than onlypermission denied.Agent: dsh-opencharly
Assisted-by: dsh deepseek-v4.1-flash (fully tested and validated)