Skip to content

env: on a kind: local deploy validates cleanly and has no effect #1221

Open

Description

@aitrawog

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 override

Why 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:

  1. Is a deploy's env: supposed to reach a check: 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.
  2. Why does the #814 machine-venue preamble not appear in a target: local check run's command path, when spec/exec/deploy_executor.go:143 (ShellExecutor.RunCapture) is documented to prefix it? Either the path is different or MachineVenue is 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

  1. aitrawog commented on Nov 20, 2026

    @aitrawog
    ContributorAuthor

    Opened from the diagnosis on opencharly/plugin-pipeline#70. The bed-variable-namespace half is that issue; this is the deploy-env: half.

  2. added
    category:delivery
    type:fix
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:deliverytype:fix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions