Skip to content

the served schema re-declares #SubstratePlugin, which kind:pod already declares, so 'charly deploy add' fails #53

Done

Description

@aitrawog

Category

category:delivery

Type

type:fix

Remedy / files the remedy will touch

the plugin's served CUE schema (the definition now named #SubstratePlugin): rename it to the per-plugin convention #Input, or delete it if it duplicates the pod kind's declaration

Cited design decision or org-rulebook rule (or none)

none

Classification

Blocking — it blocks the filer's own progress, so the filer claims it at filing and fixes it.

Evidence (verified: commands with output, file:line, measurements)

$ charly check run check-pod-overlay          # [deploy-add] step
charly: error: command "deploy": load deploy plugins: plugin "plugin-substrate": its served schema
  re-declares #SubstratePlugin, already declared by plugin "kind:pod" — CUE UNIFIES same-name
  definitions across sources, so the splice silently merges the two shapes into one and EVERY
  plugin sharing #SubstratePlugin then rejects its own authored input (a def-name collision is
  never resolvable by unification). Give the def a plugin-scoped name (the documented per-plugin
  convention is `#<Word>Input`) or delete the duplicate declaration
charly subcommand exited 1

Guard site: charly/charly/plugin_loader.go:165 (pre-existing, not touched by the pin bump).
Plugins in the failing splice (from the same run's log):

plugin plugin-substrate: served from .../[email protected]
kind:pod: compiled into the charly binary

The same bed's [deploy-add] step passed earlier in the day on the same project
(.check/check-pod-overlay/2026.331.1238, step PASS 119 s) with a different plugin VIEW
(view.4bc60a6febb22289), so the collision is exposed by the re-resolved plugin set rather than
by the charly source (the guard is identical).

Impact: with this plugin set, charly deploy add fails outright, so every pod bed is blocked —
including the R10 bed for opencharly/charly#1307 (the buildkit pin wave), whose image-build and
check-image phases DO pass.

Mechanism

the plugin's served schema declares a definition name that the compiled-in kind:pod plugin already declares; the host splice unifies same-name definitions across sources, so the merged shape no longer matches either plugin's authored input and the loader refuses the deploy plugin set

Missed control

no test asserts a plugin's served schema uses PLUGIN-SCOPED definition names, so a duplicate declaration survives the plugin's own gate and only fails when a consumer splices it beside the pod kind

Blast radius

every 'charly deploy add' with this plugin set fails (measured: the check-pod-overlay bed's deploy-add step), blocking all pod beds including the R10 bed for opencharly/charly#1307, whose build phases pass

Root fix

rename the served def to #Input (or delete the duplicate) and add a plugin-schema gate that refuses a non-scoped definition name

Spike (its result, or none with the reason)

none: the observation is the instrument (the failed deploy-add with the loader's own message naming both plugins); the remedy is a definition rename

Agent: jolly-comet-ses_de3fa473bffeFiBo62whHxDPE5 · OpenCode session ses_de3fa473bffeFiBo62whHxDPE5
Assisted-by: OpenCode DeepSeek V4.1 Flash (analysed on a live system)

Activity

  1. aitrawog commented on Nov 27, 2026

    @aitrawog
    ContributorAuthor

    CLAIM

    Filed as blocking: it blocks this session's own progress, so this session claims it at filing and fixes it.

    Agent: jolly-comet-ses_de3fa473bffeFiBo62whHxDPE5 · OpenCode session ses_de3fa473bffeFiBo62whHxDPE5
    Assisted-by: OpenCode DeepSeek V4.1 Flash (analysed on a live system)

  2. added
    category:delivery
    type:fix
    on Nov 27, 2026
  3. self-assigned this
    on Nov 27, 2026
  4. aitrawog commented on Nov 27, 2026

    @aitrawog
    ContributorAuthor

    WAITING

    WAITING: opencharly/charly#1307 (the buildkit pin wave) needs this fixed before its R10 bed can reach a verdict. The bed's [image-build] and [check-image] phases pass on the final pins; its [deploy-add] step fails with this collision, which blocks every pod bed.

    The other side is posted as HOLDING on opencharly/charly#1307. Evidence (the loader's own message and the passing earlier run with a different plugin view) is in the issue body.

    Agent: jolly-comet-ses_de3fa473bffeFiBo62whHxDPE5 · OpenCode session ses_de3fa473bffeFiBo62whHxDPE5
    Assisted-by: OpenCode DeepSeek V4.1 Flash (analysed on a live system)

  5. aitrawog commented on Nov 27, 2026

    @aitrawog
    ContributorAuthor

    STATUS

    A/B proof that this is a real break in the current wave, not a pre-existing red bed:

    $ charly-stamped deploy add check-pod-overlay     # pre-pin baseline
    exit=0
    $ charly-final   deploy add check-pod-overlay     # spec v0.2026331.1221 + sdk v0.2026331.1440 + plugin-build v0.2026331.1456
    exit=1   -> the #SubstratePlugin re-declaration error
    

    Same project, same plugin versions; only the resolved VIEW differs. So adopting the wave's pins breaks charly deploy add outright until the served def is plugin-scoped (#<Word>Input) — this is the blocking side for opencharly/charly#1307, whose build phases pass.

    Agent: jolly-comet-ses_de3fa473bffeFiBo62whHxDPE5 · OpenCode session ses_de3fa473bffeFiBo62whHxDPE5
    Assisted-by: OpenCode DeepSeek V4.1 Flash (analysed on a live system)

  6. aitrawog commented on Nov 27, 2026

    @aitrawog
    ContributorAuthor

    RESOLVED — fixed by #54 (merged). The served schema now declares the plugin-scoped #SubstrateProvider, and the consumers moved in the same wave: charly pins the release as both the go.mod module (v0.2026331.1555) and the charly.yml ref (v2026.331.1555), with charly/kind_value_composed_test.go renamed. The consumer proof is in opencharly/charly#1307: [deploy-add] PASS on the final pins, where the same step previously failed with this collision.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

category:deliverytype:fix

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions