Skip to content

a dev checkout cannot reach charly candy params or charly docs generate: the dev build loads no plugins and the installed binary predates the verb #850

Closed

Description

@aitrawog

Problem

Two charly verbs that the C7/C9 fan-out (opencharly/charly#829) depends on cannot be reached from a dev checkout or from the installed binary in this environment, so the reference-page regeneration step cannot run at all — a sanctioned path that cannot run, the same class as opencharly/charly#847 (the umbrella-worktree loader cycle).

Both verbs are served by plugins (plugin-candy for candy params, plugin-docs for docs generate), and neither is reachable:

$ ./charly/bin/charly candy params plugin-adb
WARNING: charly is a dev/worktree build … NOT loading the installed package's plugins …
         Set CHARLY_PLUGIN_DIR to load plugins from a custom location.
charly: error: command "candy": unknown candy subcommand "params"

$ ./charly/bin/charly docs --help
(prints the GENERAL usage — no `docs` subcommand)

$ /usr/bin/charly version            -> 2026.268.1917
$ /usr/bin/charly candy params       -> charly: error: command "candy": unknown candy subcommand "params"
$ /usr/bin/charly docs generate --help -> (general usage; no such subcommand)

Why the versions explain it exactly

  • The dev build in the umbrella contains the plugin's code in-tree but loads no plugins at all unless CHARLY_PLUGIN_DIR is set.
  • The installed binary is 2026.268.1917, while the wrap that added candy params merged as plugin-candy#10 at 2026.281.0948 — the installed release predates the verb by roughly seventeen CalVer releases.

The plugin artifacts are installed, so this is not a missing install:

$ ls /usr/lib/charly/plugins
charly-lib  plugin-candy  plugin-candy.providers  plugin-clean …

Discriminating probe

Install or build a charly at or after 2026.281.0948 (or point CHARLY_PLUGIN_DIR at a build matching the binary), then re-run both:

charly candy params <candy-dir-name>     # expect usage, not "unknown candy subcommand"
charly docs generate --help              # expect a real subcommand, not the general usage

If a loadable generator exists, the fan-out's regeneration is runnable and #829 can be finished; if it does not, then no agent session can regenerate the reference pages from a worktree, and the pinned-generator recipe the docs repo needs does not exist yet.

Consequence

The fan-out's source-side work is complete (plugin-adb#19, plugin-sidecar#8), so this is the only thing standing between the campaign and regenerating 65 stale reference pages.

Agent: charly (fan-out reconnaissance)
Assisted-by: dsh deepseek-v4.1-flash (analysed on a live system)

Activity

  1. aitrawog commented on Oct 8, 2026

    @aitrawog
    ContributorAuthor

    STATUS — refining this issue rather than leaving it broader than the facts: one half is a real defect with a fix in flight, the other half was a wrong expectation of mine.

    Half 1 — charly candy params — real, root-caused, and being fixed. charly compiles command:candy in from a pin, and the pin was plugin-candy v2026.271.2318, roughly ten CalVer releases older than the merge that added params (plugin-candy#10, tag v2026.281.0948, verified by direct ref lookup at d63b68c7e3ef). The verb exists in the producer's repo and the consumer pin never advanced. opencharly/charly#851 advances it, and after that merges plus a rebuild, charly candy params <candy-dir> should print usage instead of unknown candy subcommand — that is the probe that closes this half.

    Half 2 — charly docs generate — NOT a defect, and I withdraw it as one. plugin-docs appears in charly's tree only as an extra_repo (charly/charly.yml:3379 extra_repos: [plugin-gh, plugin-docs]), not as a compiled_plugins: entry — so docs generate was never a base-binary subcommand to be missing, and it does not need to become one. Regenerating the reference pages is maintainer tooling (the plugin-docs generator plus the docs repo), not something a published page tells a reader to run. R4a governs what a page names, not what a maintainer runs.

    That separation matters for the fan-out's shape: the leg needs (a) #851 so the command a page names actually runs, and (b) the maintainer pipeline to regenerate the 63 already-clean plugins' pages against current pins. Verified on the renderer itself, so it is read rather than assumed: plugin-docs/candy/plugin-docs/gen_plugins.go:76-85 reads every .cue under a plugin's schema/ — from SourceRoot, i.e. the pinned checkout — and carries it as Body: string(raw), the whole file including comments, to reference/plugin/<slug>.md.

    Suggest re-scoping this issue to half 1, with #851 as its fix and the rebuild-probe above as its closure; half 2 belongs to whoever maintains the docs regeneration, and needs no row.

    Agent: charly (fan-out reconnaissance)
    Assisted-by: dsh deepseek-v4.1-flash (analysed on a live system)

  2. aitrawog commented on Oct 8, 2026

    @aitrawog
    ContributorAuthor

    STATUS - root cause found and fixed in #851; this row can close when that merges, not before.

    The defect was never in the environment, and never in charly.yml. Two declarations of the same producer exist in this tree, in two different tag spellings, and the compiled binary is built from the one I had not read:

    charly/go.mod:20   github.com/opencharly/plugin-candy/candy/plugin-candy v0.2026271.2318
                                                                            -> v0.2026281.948
    

    v0.2026271.2318 is the module spelling of the git tag v2026.271.2318 - it is not a git tag at all, which is why git ls-remote --tags and git show on that string both came back empty and why the investigation circled for a while. The @github ref in charly.yml feeds the resolver and the docs corpus; the go.mod requirement feeds the compiler.

    Elimination, each step one command, in the order it happened:

    • repo cache - five v2026.281 entries present, so not stale
    • plugin build cache - no plugin-candy under ~/.cache/charly/plugins, so not that
    • generated wiring - plugins_generated.go registers command:candy to the plugin-candy import path, correct
    • the tag tree - git show v2026.281.0948:candy/plugin-candy/command.go contains the params case, so the producer is right
    • the @github ref - advancing it alone changed nothing (the negative result that found this)
    • go.mod - advancing it produced, after a rebuild: BUILD rc=0, version 2026.281.1209, and charly candy params RUNS

    So the fix is #851, which now carries both declarations plus the go.sum and go.work.sum entries, and the live pre-merge output is pasted there.

    The earlier half of this issue that I withdrew stays withdrawn: docs generate was never a base-binary verb to be missing - plugin-docs is an extra_repo, maintainer tooling, and R4a governs what a page names, not what a maintainer runs.

    Agent: charly (fan-out prerequisite)
    Assisted-by: dsh deepseek-v4.1-flash (analysed on a live system)

  3. aitrawog commented on Oct 8, 2026

    @aitrawog
    ContributorAuthor

    RESOLVED - landed with #861 (merged), and the required check PASSED on it.

    #850 asked for the compiled plugin-candy pin to be advanced so charly candy params reaches the binary. It is now in main via #861, whose validate / validate check went green - the same check that had been red on #823, #855 and #860.

    What the four threads settled, in one place:

    • the governing declaration is the module requirement in charly/go.mod, not the @github ref in charly.yml;
    • the pin own effect is params membership: case "params" is present once in v2026.281.0948 and zero times in v2026.6271.2318's tree - the verb this issue asked for did not exist in the pin being replaced;
    • internal/pluginsgen runs with GOWORK=off, so the sums belong in charly/go.sum, and the two spec v0.2026281.933 lines were the missing piece behind the missing go.sum entry failures (tracked and closed as The required validate check fails on golangci-lint for unrelated PRs, blocking every PR in the repo #857);
    • the lockstep tools/* modules track the shared sdk/spec pins, and TestContractPinsMatchShared - which named its own remedy - passes;
    • check-charly-vm now carries candy-params-registered, a probe that fails on the old pin and passes on this one, so the change ships coverage that can fail because of it.

    Agent: charly (fan-out prerequisite)
    Assisted-by: dsh deepseek-v4.1-flash (analysed on a live system)

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions