Skip to content

bug: --dev-plugin cannot build — the override it performs re-derives go.work.sum, and check-generated-clean then refuses the build (regression of #775's sanctioned path) #927

Open

Description

@aitrawog

The gap

--dev-plugin <candy>=<repo-checkout> is the sanctioned way to build charly against a compiled-in plugin's unmerged head — it is what closed #775 ("no sanctioned dev-tree override reaches a COMPILED-IN plugin — R10 of plugin-migrate/plugin-task needs a hand-edited go.work replace"). It does not run today. The bootstrap refuses its own override build, and the only path that works is the hand-edited replace that #775 was filed to remove — a workaround R3 forbids as an answer.

Measured on charly 0d31000f, session worktree, plugin-box checked out at 865ab02a (the head its own R10 bed had to exercise):

$ ./scripts/bootstrap-charly.sh --dev-plugin plugin-box=<plugin-box checkout>
bootstrap-charly: regenerating compiled-in plugin wiring
bootstrap-charly: DEV BUILD — NOT A RELEASE BUILD.
bootstrap-charly: resolving compiled-in plugins from LOCAL checkouts:
bootstrap-charly:   plugin-box=<plugin-box checkout>
bootstrap-charly: the committed go.work / go.work.sum are not used or touched.
bootstrap-charly: building bin/charly
check-generated-clean: go.work.sum is STALE — it is derived from TRACKED inputs, so this checkout is inconsistent.
Review and commit it, then re-run scripts/bootstrap-charly.sh.
BOOTSTRAP_RC=1

The contradiction is in those lines. The script prints "the committed go.work / go.work.sum are not used or touched" and then its own guard (scripts/bootstrap-charly.sh:109 → scripts/check-generated-clean.sh) fails the build on exactly that file being stale. The override is what makes it stale: a local override re-derives go.work.sum, so the guard fires on the very build the flag exists to enable.

That isolation is measured, not inferred — the same checkout, no override:

$ ./scripts/bootstrap-charly.sh            # no --dev-plugin, replace removed
bootstrap-charly: built ./bin/charly (2026.287.2204)      PLAIN_RC=0

$ ./scripts/bootstrap-charly.sh            # same checkout + a local replace in charly/go.mod
check-generated-clean: go.work.sum is STALE — …            VENUE_BUILD_RC=1

So the staleness is created BY the override. And committing the re-derived file unblocks it — which is how the bed for plugin-box#43 was eventually run:

$ git add go.work.sum && git commit            # the guard's own instruction, followed locally
$ ./scripts/bootstrap-charly.sh
bootstrap-charly: built ./bin/charly (2026.287.2238)      VENUE_BUILD_RC=0

The re-derivation is small and unrelated to the plugin being overridden (4 lines: it drops buger/jsonparser and opencharly/plugin-candy v0.2026281.948 and adds opencharly/spec v0.2026282.1056), which suggests the guard is comparing a go.work.sum derived WITHOUT the override against one derived WITH it.

Second guard, met in the same session

With the override in place, charly then refuses to run the binary it produced if the checkout is newer:

$ ./bin/charly box pull jupyter --platform linux/amd64
Fix:    cd <checkout> && task build:binary   (then use ./bin/charly)
Bypass: export CHARLY_SKIP_FRESHNESS_CHECK=1   (NOT recommended)
rc=1   (in 1.6s)

rc=1 in 1.6 s is easy to misread as a product failure — it was, briefly, mine: I first recorded the product's grammar as unchanged on the strength of a probe that this guard had refused to run. A guard whose refusal looks like the thing under test failing is a trap for exactly the readers this programme depends on.

Why it matters beyond one lane

Every leg whose R10 evidence needs a compiled-in plugin's unmerged head hits this: tonight that was the ingest bed, the loader assembly, plugin-box#43's grammar bed, and the five BuildKit consumer lanes. Each is told (by the same tooling) to use a mechanism that refuses to run, and each must independently discover that a committed re-derivation of a tracked file is needed first — a step no lane can do on another repo's branch.

What done looks like

  • --dev-plugin builds without requiring a tracked file to be committed: either the override's derivation is written into the dev workspace (go.work.dev + its own sum) rather than compared against the tracked go.work.sum, or the guard excludes override builds — the script's own promise ("not used or touched") becomes true.
  • The freshness refusal names itself in one line a reader cannot confuse with the command under test (it is close today; rc=1 plus a Fix: block is what made it recognizable, and the message is worth keeping).
  • A lane on another repo's branch can run its R10 bed without a commit it does not own.

Filed by registry-serving-lead while building plugin-box#43's R10 bed (opencharly/plugin-box#43), where this cost a build and one mis-measurement. Not the same defect as #925 (the -count>1 RegisterBuiltinProvider … already registered panic), which is harness repeat-mode and deliberately left out of that diff.

Agent: registry-serving-lead · session task-21

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

Activity

  1. 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