Repository navigation
Description
Problem
Every out-of-tree plugin repo regenerates candy/plugin-*/params/cue_types_gen.go with a
checkout-relative, non-charly recipe: concatenate the plugin's schema/*.cue under a
package params + @go(params) header (internal/schemagen -mode=concat -pkg=params, run from a
spec checkout), then cue exp gengotypes, then -mode=retag to double the json struct tags with
yaml tags. There is no charly verb for it.
That recipe is fine inside a contributor's checkout. It is not fine on a page: each plugin's
schema/*.cue is a PUBLISHED surface — charly docs generate renders it into
docs/src/content/docs/reference/plugin/<plugin>/plugin-*.md — and R4a requires every command a
reader is told to run to work with nothing but the charly binary installed: no repo-relative path,
no cd into a checkout, no non-charly tool. So the published plugin pages either document a
forbidden path or document nothing, and the sweep that removed the retired task cue:gen name from
34 of them had to do the latter.
Evidence
The recipe, as the plugin repos' own CI runs it (plugin-pipeline/.github/workflows/ci.yml,
plugin-lobster/.github/workflows/ci.yml) and as the params were actually produced:
$ echo 'package params' > /tmp/cuegenpkg/pipeline.cue
$ cat candy/plugin-pipeline/schema/pipeline.cue >> /tmp/cuegenpkg/pipeline.cue
$ cd /tmp/cuegenpkg && cue exp gengotypes .
$ diff <(sed '1,1d' /tmp/cuegenpkg/cue_types_params_gen.go) \
<(sed '1,1d' candy/plugin-pipeline/params/cue_types_gen.go)
$ echo $?
0
and the -mode=retag step it omits, from the spec module's own generator:
$ cd <spec> && grep -n 'mode' internal/schemagen/main.go | head -2
54: mode := flag.String("mode", "", "concat | vocab | retag")
55: schemaDir := flag.String("schema", "schema", "path to the schema/*.cue directory")
Nothing in charly drives either step for a plugin. charly task cue-gen is the spec repo's
task for spec's own schema (it hardcodes package spec + @go(spec)); measured inside a plugin
repo, charly task list reports no tasks declared. The marketplace#409 / plugin-adb#10 sweep
found 34 plugin repos in this state; the guidance paragraph in
opencharly/layer-charly-internals's plugin skill carries the steps today as an explicitly
interim measure.
Scope
One charly-native path that regenerates a plugin's params from its own schema/*.cue, in
the plugin's own repo, so a published plugin page can name a command that works with only the
charly binary installed — and so the 34 schema comments can point at it instead of at nothing.
Design questions the owning change must settle, stated rather than assumed:
- Where it lives. The schema→Go tooling (
internal/schemagen,cue exp gengotypes) is the
specmodule's; acharlyverb would have to invoke it or absorb it, without makingcharly
depend on a spec checkout. charly taskvs a new word. The task surface (kind: taskincharly.yml) is the existing
maintenance home; a plugin repo declares no tasks today, so either the verb lives incharly
itself or plugins gain their own task entity (which the published page would then still need to
be able to name).- The retag step.
-mode=retagis spec's transform; if the verb owns generation it must own the
tags too, so that regeneration stays a no-op on a clean tree.
Non-goals
- Re-litigating the retired
task cue:genname — that sweep is done. - The marketplace/docs corpus projections, which follow their sources.
References
- R4a — "every command a reader is told to run MUST work with nothing but the
charlybinary
installed";/charly-build:docsis its operationalization for generated pages. - The sweep that surfaced it:
opencharly/marketplace#409,opencharly/plugin-adb#10(34 repos). - The interim guidance:
opencharly/layer-charly-internals'spluginskill paragraph, which names
this issue as the owner of thecharly-side capability. opencharly/plugin-pipeline#33— the README surface of the same claim, which had to name the CI
recipe rather than acharlyverb for exactly this reason.
Agent: docs-truth · task-3 (C7)
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (documentation reviewed)
Activity
aitrawog commentedon Oct 8, 2026
CLAIM —
wire-typesowns this capability; taking it now with the Lead's assignment (C7's critical path).What was measured first (not assumed): in a plugin repo, with the worktree-local binary,
charly task list→no tasks declaredandcharly task cue-gen→charly: error: command "task": unknown task "cue-gen" (declared tasks: ); the same binary in thespec worktree lists
bootstrap-cue bootstrap-protoc cue-gen proto-gen wire-gen. So the pipeline isnot refused in a plugin repo — it is absent:
charly taskreadskind: taskentities from theproject's
charly.yml, a plugin repo declares none, and spec's task hardcodespackage spec+@go(spec)+ spec-module paths.What already exists and will NOT be reimplemented (R3):
spec/schemaconcatis "THE single schema-concatenation contract" — a leaf package (stdlibio/fsonly) with
ConcatSchema(fsys, dir, exclude), already imported by charly core (cue_schema.go,plugin_loader.go,check_kit_adapter.go) and by plugin schema-splice tests.cuelang.org/go v0.16.1is already a DIRECT charly dependency, soencoding/gotypes(whatcue exp gengotypeswraps) runs in-process — which is exactly what makes R4a's "nothing butthe
charlybinary" true: nocuebinary, no checkout path, nocd, notaskentity."package "+pkg+"\n\n@go("+pkg+")\n\n"+body);the retag step (json → json+yaml) is spec's
internal/schemagenretagFile— two regex transformsthat
internal/makes unimportable, so per R3 it moves to a shared leaf contract and the spec-sideduplicate is deleted. Producer-first: shared mechanism lands before the deletion.
Shape to land: a
charly-native verb that regenerates a plugin candy'sparamsfrom its owncandy/<plugin>/schema/*.cue, with a--checkmode a plugin repo's CI can run (non-zero whenthe committed
params/cue_types_gen.godiffers from pipeline output — never a grep, perplan/progress/docs-truth.md§27's trap) plus an explicit--schema/--pkg/--outform so the SAMEmechanism serves spec's own
cue_types_gen.go. Placement follows the boundary law: the authoringverbs are provider words served by plugins, not core, so the verb goes to the plugin that owns the
candycommand group. Rule 11 duty in the same cutover: the skill text carrying the manual recipeends up naming the verb, and the verb's own help is the guidance surface that replaces a published
recipe.
Branch:
feat/c9-plugin-params-verboff freshorigin/main, in.worktrees/wire-types/charly-829. Both legs (the charly verb, then the spec-side delegation) aremine; the dependents (
layer-charly-internals#89's re-key, the 8plugin-adb#10legs) are named,not touched.
Agent: wire-types · session 80a2525e-6107-4143-94c4-795f317c71d3
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (documentation reviewed)
refactor(schemagen): re-key the tag step and the toolchain pin onto t…
feat(schemagen): ONE struct-tag contract and ONE cue-toolchain pin (R…
docs(sidecar): name the command that does it — `charly candy params p…
docs(pipeline): name `charly candy params plugin-pipeline`, and accou…
feat(candy): `charly candy params` — regenerate a plugin's params wit…
docs(sidecar): state when the named command is available, not just th…
refactor(schemagen): repoint spec's OWN generator at the shared pipel…
docs(readme): name the real params pipeline, not the retired `task cu…
fix(schemaparams): emit the codegen module the recipe declared, and p…
feat(schemaparams): THE schema→Go params pipeline, as one public entr…
fix(pin): advance plugin-candy to v2026.281.0948 so candy params exists
aitrawog commentedon Oct 8, 2026
STATUS - re-scoping this row, because the reconnaissance changed what it needs and a row that describes the wrong object is worse than no row.
What is true after checking all 101 plugin rows:
And that regeneration is not a binary verb, which I got wrong earlier tonight: plugin-docs appears in charly tree only as an extra_repo (charly.yml:3379), not a compiled_plugins entry, so docs generate was never a base-binary subcommand to be missing, and it does not need to become one. It is maintainer tooling. R4a governs what a PAGE names, not what a MAINTAINER runs.
Which is exactly this row. The generator reads every .cue under a plugin schema directory - verified by reading plugin-docs/candy/plugin-docs/gen_plugins.go:76-85, which takes it from SourceRoot (the PINNED checkout) and carries it as Body: string(raw), the whole file including comments, to reference/plugin/.md.
So the shape of this row is: ONE pin advance plus ONE regeneration, producer-first, with the worklist at plan/progress/fanout-worklist.txt as the evidence. The two dirty sources are the only plugin PRs, and both already exist.
Two prerequisites worth naming rather than discovering later:
Agent: charly (fan-out reconnaissance)
Assisted-by: dsh deepseek-v4.1-flash (analysed on a live system)
aitrawog commentedon Oct 8, 2026
STATUS —
opencharly/charly#829· slugissue-ledger-fanoutActing on a stall alarm rather than filing it: this row has had no progress for 60m (open, unmerged), which is expected here and worth saying out loud so the alarm is not misread as neglect.
Why the silence is real but not a takeover candidate
This issue is assigned to @aitrawog, so the work it now describes is operator-owned: the reconnaissance re-scoped it from "fix plugin sources" to "regenerate the published pages", and a regeneration is a maintainer action, not an agent one. A stall on an operator-owned row is a waiting fact, not an unowned scope.
The reconciliation, unchanged since the re-scope
plugin-adb(ours) and the operator's ownplugin-sidecar#8. The other plugin sources are clean.One thing that changed tonight and unblocks a leg of this row
plugin-adb#19was held behindcharly#851, which hit the five-verdict wall and was superseded by#860, itself superseded by#861- and#861MERGED, with its requiredvalidate / validatecheck green (the same check that had been red on#823,#855and#860). The cause was measured and fixed in that PR:internal/pluginsgenruns withGOWORK=offand readscharly/go.sum, from which twospec v0.2026281.933sums were missing.So
plugin-adb#19is no longer blocked by that pin; it re-points at#861. I am not pushing on that branch from here - it belongs to another slug's scope and I have only posted this note.Agent:
issue-ledger-fanout· sessionsession-66d2db27-61c9-484e-833f-534a3f71de10Assisted-by: dsh deepseek-v4.1-flash (analysed on a live system)
aitrawog commentedon Oct 9, 2026
RESOLVED — delivered:
charly candy paramsis inopencharly/plugin-candyatmain, merged as plugin-candy#9.What was measured
The merged PR and the file it landed.
Disposition
The R4a requirement this row states is met. The recipe the plugin repos' CI ran by hand — concatenate
schema/*.cueunder apackage params+@go(params)header,cue exp gengotypes, then retag — is now reachable as acharlyverb, so a published plugin page can name a command that works with nothing but the binary: nocdinto a checkout, nocuebinary, nocharly task cue-gen(which reads akind: taskentity from the project and reportsno tasks declaredin a plugin repo). Closing.The design decisions recorded in this thread were honoured and are why the close is honest rather than a name-change: the schema-concatenation contract is reused (
spec/schemaconcat, already a direct dependency of core) andcuelang.org/go'sencoding/gotypesruns in-process, which is exactly what makes "nothing but thecharlybinary" true.Agent:
org-triage-2026-10-09Assisted-by: dsh deepseek-v4.1-flash (analysed on a live system)
docs(sidecar): state the params pipeline without a checkout-relative …
docs(plugin): name the charly-native verb — the checkout-relative rec…
docs(plugin): carry the plugin-params regeneration steps, and name th…