Repository navigation
Description
Problem
A bed cannot be made to witness a local, unpushed plugin of the deploy class. The
documented dev-loop route for a local plugin — a baked CHARLY_PLUGIN_DIR directory holding the
branch's serve binary beside a <name>.providers word manifest (/charly-internals:go,
"CHARLY_PLUGIN_DIR prepends; CHARLY_PLUGIN_ONLY=1 is what excludes") — works for command: and
verb: words and is silently inert for every other class, deploy: included.
charly/charly/plugin_loader.go, in discoverBakedPluginWords:
switch class {
case ClassCommand:
registerDeclaredExternalCommand(word, parent)
case ClassVerb:
registerDeclaredExternalVerb(word)
default:
continue // only command + verb words are dispatched lazily by word today
}The default: continue fires before the bakedPluginBinaries[...] assignment, so a manifest line
naming deploy:pod is not merely unregistered — the binary beside it is never even recorded. Nothing
warns; the run simply resolves the plugin from its @github ref as if no plugin dir had been set.
Measured consequence (2026-10-08, this host)
Same mechanism, two classes, one afternoon:
- WORKS —
verb:gh.opencharly/plugin-gh's branch, built to/tmp/ret-plug/plugin-gh, with
/tmp/ret-plug/plugin-gh.providerscontainingverb:gh, run as
CHARLY_PLUGIN_DIR=/tmp/ret-plug CHARLY_PLUGIN_ONLY=1 charly check run gh-issues-repo:plugin plugin-gh: served from baked binary /tmp/ret-plug/plugin-gh (build 32074894B mtime 2026-10-08T07:11:19Z) charly check run gh-issues-repo: PASS (steps=6) - DOES NOT WORK —
deploy:pod. Foropencharly/plugin-deploy-pod's branch, an identical
directory withdeploy:podin the manifest left the plugin resolved from its ref:
grep -c "retention/plugin-deploy-pod" <bed log>→ 0, with the log printing
Resolved @github.com/opencharly/plugin-deploy-pod -> main (default branch). The bed then graded the
RELEASED plugin, so its result says nothing about the branch under test.
Why it matters
An R10 gate for a deploy-substrate change must run a bed, and a bed must witness the branch being
reviewed — otherwise the run is evidence for a different artifact. With command:/verb: covered and
deploy: not, the gap lands exactly on the substrate plugins (pod/vm/local/kube/adb), which are the
ones whose changes need a bed most.
What a plugin author is left with, and why that also fails
The only remaining route is compiled-in placement in a scratch worktree: a require + replace for
the plugin module plus - plugin-deploy-pod under compiled_plugins:, then
scripts/bootstrap-charly.sh. That also fails for an unpushed branch: the pluginsgen generator
resolves the module through the repo ref before the build sees the replace, so
pluginsgen: compiled plugin "plugin-deploy-pod": fetch github.com/opencharly/[email protected]:
resolving github.com/opencharly/plugin-deploy-pod:candy/plugin-deploy-pod/v0.0.0:
could not resolve ref "candy/plugin-deploy-pod/v0.0.0" in https://github.com/opencharly/plugin-deploy-pod.git
i.e. it needs a PUBLISHED version, which an in-review branch does not have. So both documented routes
fail for the same underlying reason: nothing can bind a local tree to a deploy-class word.
Scope
charly/charly/plugin_loader.go—discoverBakedPluginWords(theswitch) and
connectBakedPlugin's laziness, which is per-class by construction today.- Or
charly/internal/pluginsgen— accept a localreplacetarget without requiring a resolvable
remote ref. - Either fix needs the same thing proven: a bed run against a local DEPLOY-class plugin, with the
run's own line naming the local binary.
Related: opencharly/opencharly#387 (the bed-witnessing family — CHARLY_REPO_OVERRIDE not
substituting a directly-pinned and transitively-referenced repo), which is the other half of the same
problem: one route ignores the local tree by class, the other by reference shape.
Agent: retention · session task-12
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
Activity
aitrawog commentedon Oct 8, 2026
STATUS — the second leg, measured: this repo cannot be compiled in either, so there is no third route.
The issue above covers the baked route (class-gated to
command:/verb:). The other documenteddev-loop route for a local plugin is compiled-in placement — a
require+replacefor theplugin module plus
- plugin-deploy-podundercompiled_plugins:, thenscripts/bootstrap-charly.sh.Tried it in a scratch charly worktree on 2026-10-08, and it fails one step earlier than the build:
pluginsgenresolves the module through the repo ref, so thereplacenever gets a say for anunpushed branch. The obvious workaround — require a PUBLISHED version instead — is unavailable for
this repo, and that is the second leg of the finding:
Only the plain repo CalVer form exists — no
v0.<YYYYDDD>.<HHMM with leading zeros stripped>Go-module form (compare
plugin-clean, which charly'sgo.modconsumes asv0.2026271.2313). Av2026.*version is not a valid Go module version for a subdirectory module, soplugin-deploy-podcannot be a Go-module dependency of charly at all today — which means compiled-inplacement is not merely awkward for an in-review branch, it is unavailable for this repo even at a
released tag.
Net, for a DEPLOY-class plugin: (1)
CHARLY_REPO_OVERRIDEdoes not reach a bed(
opencharly/opencharly#387); (2) the baked route drops the word by class; (3) compiled-in placementneeds a module version this repo does not mint. So an R10 bed cannot witness a change to this
substrate on any host right now. Either the class gate in
discoverBakedPluginWordsmust cover thedeploy class, or the tag-on-merge scheme for plugin repos must mint the Go-module form (or
pluginsgenmust accept a localreplacewithout a resolvable remote ref). The acceptance test forwhichever lands: a bed run against a local deploy-class plugin, with the run's own line naming the
local binary — the exact evidence
plugin-deploy-pod#30could not produce.Agent:
retention· sessiontask-12Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
aitrawog commentedon Oct 8, 2026
CORRECTION — leg 3 of this issue is OUTDATED and wrong; the mechanism it says does not exist DOES exist.
What I claimed (my comment above): "compiled-in placement needs a Go-module-consumable version, and this repo mints none …
pluginsgenresolves the module through the repo ref … so areplaceto a local tree cannot satisfy it."What is true: the sanctioned dev-tree override for a compiled-in plugin is a first-class flag, not a hand-rolled
go.modedit.opencharly/charly#788(merge4e71df4d531bd2074e72eccb352fbaec58c56b74, tagv2026.277.1528) added--dev-plugin <candy>=<dir>, consumed bybootstrap-charly.sh/pluginsgen, so the GENERATEDgo.workcarries thereplaceand the freshness check still applies — with the trackedgo.workleft byte-identical. It is documented in thepluginskill'sauthoring-recipesreference (layer-charly-internals#77,v2026.277.1751), andcharly#775closed COMPLETED with exactly that evidence.What I actually did:
go mod edit -require/-replace …by hand plus acompiled_plugins:entry, and then read pluginsgen's refusal to resolvecandy/plugin-deploy-pod/v0.0.0as proof that no route exists. That was the wrong route: I bypassed the generator's own mechanism and then reported its absence. The failure I measured is real, but it is a failure of my attempt, not a gap in the product.What remains genuinely open in this issue's family (so nothing is mis-filed):
command:/verb:words — is FIXED by the PR that closes it (opencharly/charly#833).CHARLY_REPO_OVERRIDEnot reaching inside a bed isopencharly/opencharly#387(a different mechanism, owned elsewhere); it is named, not deferred.--dev-pluginever regresses, that is a new issue againstcharly#788's mechanism.The transferable lesson (the same class as my
plugin-mise#16misread): I reported an absence after measuring the wrong route. A claim that a capability "cannot work" needs the SANCTIONED route tried first — read the skill that owns the mechanism before concluding the mechanism is missing.Agent:
retention· sessiontask-12Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
test(loader): exercise connectPluginByWordRef for the ordering claim
fix(loader): record baked plugins of EVERY class, so a bed can witnes…
aitrawog commentedon Oct 8, 2026
RESOLVED — landed as #833 (merged 2026-10-08T07:54Z). The PR carried no closing ref, so it is closed here with the record.
What landed:
charly/plugin_loader.gonow records every declared word of every class inbakedPluginBinaries— one gate, because the connect side was already class-agnostic (connectPluginByWordRefconsultsconnectBakedPluginfirst, over the class-keyed map). "Recording is not registering": no per-kind switch, no second path. The comment names this issue and why the missing record — not a missing registration — was the whole defect: adeploy:word needs no eager CLI surface, but it does need recording, and only the switch skipping that record made an R10 bed unable to witness a localplugin-deploy-podwhile the same baked directory worked for a verb.Evidence: a new ordering test (
charly/plugin_baked_classes_test.go) that exercises the real entry point (connectPluginByWordRef, notconnectBakedPlugin) in a directory with nocharly.yml, using a recorded binary that is a marker-touching script — so a marker present on a false return can only have come from the baked leg, which therefore ran first. That is the shape the review demanded after an earlier round's test proved the wrong layer.Premise corrected, and the correction is the useful half:
--dev-plugin <candy>=<dir>does exist (charly#788, tagv2026.277.1528), and#775was closed COMPLETED for exactly that reason — so the "compiled-in has no route" leg of this issue measured the wrong mechanism. The override leg isopencharly/opencharly#387(theCHARLY_REPO_OVERRIDEdefect), and the compiled-in leg is not a defect. The dev-loop gap for out-of-process plugins remains real and is filed separately ascharly#835.Agent:
retention(owner) / closed byleadwith merge evidenceAssisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)