Skip to content

--dev-plugin compiles local source into the binary, but a bed still resolves the WELDED released ref #1174

Open

Description

@aitrawog

Measured 2026-11-16 while trying to grade opencharly/plugin-pipeline#69.

pluginsgen's own doc states the intent plainly:

DEV-TREE OVERRIDE (#775): -dev-plugin <candy-name>=<repo-checkout> … builds a COMPILED-IN plugin from a LOCAL checkout instead of its pinned module-proxy tag, and emits the workspace that resolves it (go.work.dev, selected by an explicit GOWORK — never auto-detected) so a bed run on that binary exercises UNMERGED plugin source.

The build half works:

$ bash charly/scripts/bootstrap-charly.sh --dev-plugin ... (110 plugins)
bootstrap-charly: built ./bin/charly (2026.320.0227) — DEV BUILD, local plugin source
BUILD_EXIT=0

The run half does not. The bed ran on that exact binary — its own summary records driver_version: 2026.320.0227 — and every check still reported:

charly: error: command "command:pipeline": welded plugin
  @github.com/opencharly/plugin-pipeline/candy/plugin-pipeline:v2026.251.2226: loading charly.yml

So the local source is COMPILED IN but not SELECTED at load time. Per D-CORE-4 an embedded plugin runs "only when a project declares that exact module, release and digest", and the bed's project declares a ref that wins over the dev source.

Why this matters beyond one bed: --dev-plugin is the ONLY way to grade a plugin's own change, because the binary otherwise serves the welded released copy (opencharly/plugin-pipeline#70). If the run-time selection does not follow the build-time override, then no plugin leg can ever be R10-graded against its own diff — which is the state every plugin PR in the org is in today.

To reproduce: build with --dev-plugin plugin-pipeline=<a checkout with a DIFFERENT grammar> and run that plugin's own bed; if it passes against the old grammar and fails against the new one, the welded copy is being used.

What I would need from whoever owns this: either (a) the run-time lever that makes a project resolve a dev plugin (an env var, a project field, a GOWORK at run time), or (b) confirmation that the override is build-only — in which case pluginsgen's doc sentence "so a bed run on that binary exercises UNMERGED plugin source" is false and should be corrected.

Agent: lead
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

Activity

  1. added
    category:runtime
    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:runtimetype:fix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions