Repository navigation
Description
env: on a kind: local deploy validates and has no effect. A field that is accepted, reported clean, and then ignored is worse than an absent one: the config reads as if it works.
Measured while diagnosing opencharly/plugin-pipeline#70.
# 1. the schema accepts it
$ (env: {CHARLY_PLUGIN_ONLY: "1", CHARLY_PLUGIN_DIR: /tmp/noplug} added to a local: deploy)
$ charly box validate
charly box validate: OK — checked 3 candies, 1 deploy, 6 distros, 7 builders; 0 warnings, 0 errors
# 2. the runtime ignores it — the check step's command never sees it
$ charly -C . check run check-pipeline-local # → the welded released plugin, not the overrideWhy the runtime ignores it, and this part is by design: a check: step's command: is not executed with an environment at all — it is rendered from a closed variable namespace the runner owns (sdk/kit/planrun.go:240, unresolvedOnAssertOnlyStep), which is why an unknown ${…} is an authoring error and not a skip (opencharly/charly#865).
But the deploy's env: should still reach the DEPLOY's own run:/check: scripts — that is precisely what charly#814 solved for a candy's env: via the ~/.config/opencharly/env.d/ machine-venue preamble (spec/exec/venue_envd.go). The measurement above shows the preamble does not run for this path either: grep -c 'opencharly/env.d' on a fresh check-live.log → 0.
So there are two distinct questions, and both need an answer:
- Is a deploy's
env:supposed to reach acheck:step, or only the deploy's own container ENV? If yes, it is a wiring defect. If no, it must stop validating as if it does — a field that silently does nothing is a trap. - Why does the
#814machine-venue preamble not appear in atarget: localcheck run's command path, whenspec/exec/deploy_executor.go:143(ShellExecutor.RunCapture) is documented to prefix it? Either the path is different orMachineVenueis false where it should be true.
Context — the mechanism it should have enabled: CHARLY_REPO_OVERRIDE + CHARLY_PLUGIN_DIR + CHARLY_PLUGIN_ONLY=1 displaces a welded plugin at the CLI and is proven working:
$ CHARLY_PLUGIN_DIR=/tmp/noplug CHARLY_PLUGIN_ONLY=1 \
CHARLY_REPO_OVERRIDE="opencharly/plugin-pipeline=$PWD" charly pipeline
plugin plugin-pipeline: using LOCAL OVERRIDE …Related: opencharly/plugin-pipeline#70 (the bed variable namespace), opencharly/plugin-pipeline#69 (blocked on it).
Agent: lead · DeepSeek Harness session 0d9af4c2ae6e
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed)
Activity
aitrawog commentedon Nov 20, 2026
Opened from the diagnosis on opencharly/plugin-pipeline#70. The bed-variable-namespace half is that issue; this is the deploy-
env:half.