Repository navigation
fix(schema): give the provider declaration a plugin-scoped name instead of #SubstratePlugin - #54
Conversation
…ad of #SubstratePlugin The pod kind's plugin also declares #SubstratePlugin, and the host splice unifies same-name definitions across sources: the merged shape no longer matched either plugin's authored input, so 'charly deploy add' refused the whole deploy plugin set (#53). Renamed to #SubstrateProvider, which no host code keys on - the name is documentation on the served surface, not a splice contract. The serve test now also asserts the unscoped name is GONE, so the collision cannot silently return. *Agent: `jolly-comet-ses_de3fa473bffeFiBo62whHxDPE5` · OpenCode session `ses_de3fa473bffeFiBo62whHxDPE5`* *Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)*
Review — BLOCKHead SHA: Change class: code/config — a served-schema def rename ( Placement: Security screen: PASS — 3 files, all accounted for; no secrets, no guardrail weakening, no scope mismatch. Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…s it The rename fixed the collision but the reason lived only in the PR. The comment records the mechanism and the two referents (charly's kind_value_composed_test.go and the CHANGELOG), so a future author does not rename it back. *Agent: `jolly-comet-ses_de3fa473bffeFiBo62whHxDPE5` · OpenCode session `ses_de3fa473bffeFiBo62whHxDPE5`* *Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)*
Review — BLOCKHead SHA: Change class: code/config — served-schema def rename ( Placement: Security screen: PASS — 3 files, all accounted for; no secrets, no guardrail weakening, no scope mismatch. Blocks
Comment disposition
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
The explanatory comment contained the old literal, which the serve test asserts is GONE from the whole served schema (comments included) - the guard caught it. Reworded to describe the name without spelling it. *Agent: `jolly-comet-ses_de3fa473bffeFiBo62whHxDPE5` · OpenCode session `ses_de3fa473bffeFiBo62whHxDPE5`* *Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)*
|
HOLDING New head 1. CONC(d)/R5 — the sweep is pasted. Result: no production code keys on the name; sdk/spec never mention it; the hits are a CHANGELOG entry (immutable) and one charly test that resolves the def by name. That test must move with the consumer leg — the charly change that adopts this release switches it to 2. COORD — this is the blocking side. Also in this head: the schema comment now records WHY the def is scoped and who names it — and it deliberately avoids the old literal, because the serve test asserts that name is absent from the whole served text (my own guard caught the first version of the comment). Gate: Agent: |
Review — PASSHead SHA: Security screen: PASS — 3 files, all accounted for; rename + comment + test only; no secrets, no guardrail weakening, no scope mismatch, no injected directives. Comments considered:
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
The plugin's served schema declared
#SubstratePlugin, a name the pod kind's plugin also declares. The host splice unifies same-name definitions across sources, so the merged shape no longer matched either plugin's authored input and the loader refused the whole deploy plugin set:Fixed by giving the provider declaration a plugin-scoped name,
#SubstrateProvider.Why that name and not
#<Word>Input: the convention names a plugin's typed input def, and this plugin declares noplugin_input(its authored input is the pass-through CLI grammar — the file's own header says so). This def documents the provider's kind/command/verb words on the served surface.Consumer sweep, pasted (against
origin/main, not a sibling branch):So: no production code keys on it; sdk and spec do not mention it; two hits in charly are a historical CHANGELOG entry (immutable history, left alone) and one test (
kind_value_composed_test.go) that resolves the def by name. That test moves with the consumer wave — the charly leg that adopts this release updates it to#SubstrateProviderin the same change, because onmaintoday the old name is still what the plugin serves.Files:
schema/substrate.cue(the def),plugin.go(the doc comment that named it),schema_serve_test.go(the guard).How tested
The serve test now pins BOTH directions, so the collision cannot silently return:
Red arm: the negative assertion fails on the pre-rename schema (it contains
#SubstratePluginand not#SubstrateProvider), which is the state that produced the loader error.Spike
RCA claim: the defect is a definition-name collision on the served surface, not a schema-content error.
Candidates:
charly deploy addis the end-to-end proof (posted on the served schema re-declares #SubstratePlugin, which kind:pod already declares, so 'charly deploy add' fails #53 and chore(deps): adopt sdk v0.2026331.1440, spec v0.2026331.1553, plugin-build v0.2026331.1456 and plugin-substrate v0.2026331.1555 (the buildkit cache + ref wave) charly#1307 — the A/B there shows the pre-pin binary exit 0 and the wave's binary exit 1 with this exact error). Works.Winner: A. RCA verdict: confirmed — the name collision is the whole mechanism.
Rulebook compliance
plugin/design/strict-policy/git-workflowloaded before the work.Change classification
A served-schema rename:
#SubstratePlugin→#SubstrateProvider. Breaking change + rollback: none — no consumer keys on the name; a revert restores the collision.Filed issues
None: this PR fixes #53 (it closes on merge; the charly consumer leg is opencharly/charly#1307, which pins it).
Agent:
jolly-comet-ses_de3fa473bffeFiBo62whHxDPE5· OpenCode sessionses_de3fa473bffeFiBo62whHxDPE5Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)