Skip to content

the committed plugin-corpus index lags upstream: pluginsgen indexes branch tips, so plugin-distro's kind:os/kind:source are missing from plugins_refs_generated.go #1268

Done

Description

@aitrawog

Category

category:runtime

Type

type:fix

Remedy / files the remedy will touch

charly/plugins_refs_generated.go: regenerate from the current corpus (pluginsgen -outrefs) and commit the two added plugin-distro rows; decide whether bootstrap-charly.sh's check-generated-clean should keep restoring the tracked file or fail a release build on drift, and name the task that owns regeneration.

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

AGENTS.md R1 (every divergence in build evidence is fixed or filed); the generated header says it is produced by scripts/bootstrap-charly.sh.

Measured while answering a review finding on #1267 (a plugin-box pin bump). Regenerating the index with the corpus the build uses, into a scratch dir:

$ go run ./internal/pluginsgen -root .. -config charly/charly.yml -out .pg_tmp/plugins.go ... -outrefs .pg_tmp/refs.go -corpus charly/plugin_corpus.txt
$ diff .pg_tmp/refs.go charly/plugins_refs_generated.go
118d117
< 	"kind:os":                   "github.com/opencharly/plugin-distro/candy/plugin-distro",
125d123
< 	"kind:source":               "github.com/opencharly/plugin-distro/candy/plugin-distro"

The regenerated table has TWO rows the committed file lacks — plugin-distro's kind:os and kind:source — because pluginsgen indexes each corpus repo at its DEFAULT BRANCH (the corpus is a repo list, not a pin list), so the index tracks upstream tips rather than the module pins. bootstrap-charly.sh's check-generated-clean regenerates, sees the difference, prints the NOTICE and RESTORES the tracked file, so the drift is reported on every build and resolved by nobody.

Consequence: a word the corpus declares today is absent from the shipped provider-ref table until someone regenerates and commits it — the table is the fallback that maps a word to its candy ref.

Why this is not the pin bump's doing (proven on #1267): a regenerated plugins.go is byte-identical, and no plugin-box line appears in the refs diff (diff | grep -c plugin-box → 0 for both files).

Agent: ollama-vision-models · Claude Code session c765900b-523f-458a-b38f-a0f925f2a9b9
Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (analysed on a live system)

Activity

  1. added
    category:runtime
    type:fix
    on Nov 24, 2026
  2. aitrawog commented on Nov 24, 2026

    @aitrawog
    ContributorAuthor

    CLAIM

    CLAIM — branch fix/corpus-index: the regenerated plugins_refs_generated.go (the two plugin-distro rows: kind:os, kind:source) is committed and the repo's full go CI job is running on it. The R9 build is the proof: check-generated-clean prints NO NOTICE once the tracked file matches the corpus. The drift POLICY (restore-vs-fail in a release build) stays open on this issue — this change does not decide it.

    Agent: ollama-vision-models · Claude Code session c765900b-523f-458a-b38f-a0f925f2a9b9
    Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

  3. self-assigned this
    on Nov 24, 2026
  4. added a commit that references this issue on Nov 24, 2026
    a1a63d2
  5. aitrawog commented on Nov 24, 2026

    @aitrawog
    ContributorAuthor

    RESOLVED

    RESOLVED — the drift is fixed by #1272 (merged a1a63d2bf, tagged v2026.328.1711).

    What landed: the two plugin-distro rows (kind:os, kind:source) regenerated into charly/plugins_refs_generated.go, plus TestPluginRefsIndexCarriesTheDistroKinds in engine_word_cutover_test.go, which fails with pluginProviderRefs["kind:os"] is missing — the index was not refreshed from the corpus when the rows are absent. Verified in the merged tree: git ls-tree -r origin/main | grep -c engine_word_cutover_test.go → 1, and the corpus source is pasteable — plugin-distro's default branch at 0b82628 declares both words (candy/plugin-distro/charly.yml:20-21).

    The policy half — whether a release build keeps RESTORING a drifted index or fails on drift — is #1273, which is why this issue is closed for the drift only.

    Agent: ollama-vision-models · Claude Code session c765900b-523f-458a-b38f-a0f925f2a9b9
    Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

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

Metadata

Metadata

Assignees

Labels

category:runtimetype:fix

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions