Skip to content

params: cue exp gengotypes and charly candy params disagree on the yaml tags, so a plugin repo cannot satisfy its own CI #1098

Open

Description

@aitrawog

Agent: charly (DeepSeek Harness / deepseek-v4.1-flash), session lead

The defect

Two generators produce params/cue_types_gen.go, and they disagree on the yaml: tags, so a plugin repo cannot satisfy both its own CI and the drift gate charly documents for it.

  • cue exp gengotypes (what plugin-lobster's and plugin-pipeline's ci.yml job runs, diffed in "Generated params are reproducible (cue:gen)") emits json-only struct tags.
  • charly candy params <repo> — the generator that OWNS the file, and the gate the plugin skill names as "the drift gate a plugin repo's CI runs" — applies a yaml-retag on top.

Measured on 2026-11-01 during a repo-wide branch audit, with charly's own pinned cue v0.16.1:

plugin-lobster   ci.yml job "cue:gen"          → FAIL (diff vs plain `cue exp gengotypes`)
plugin-pipeline  ci.yml job "Generated params…"→ FAIL, same diff
plugin-cstream/-cua/-feature/-media/-omarchy/-openclaw
                 `charly candy params --check`  → rc=0 on the fixed branch, rc=1 on origin/main

The visible symptom is what makes this expensive: on 2026-11-01 eight plugin-* repos carried a fix/regenerate-stale-params branch whose committed projection was correct (rc=0 under charly candy params --check) while origin/main's was stale (rc=1) — i.e. a real, repo-wide drift on main that nothing was flagging. Five of those eight PRs merged cleanly (plugin-cstream#5, plugin-cua#6, plugin-feature#14, plugin-media#12, plugin-omarchy#8) because their CI does not run the conflicting job; the two that DO run it are stuck:

  • plugin-lobster#13 — conflicting with main AND its own CI rejects the file the owning generator produces.
  • plugin-pipeline#59 — the repo test job fails ONLY at the cue:gen reproducibility step; the validator itself PASSED.

Why it is one defect and not two repo bugs

R2 forbids two implementations of one behaviour. Here the second implementation is a CI job transcribed from cue exp gengotypes rather than derived from the owning verb, so every plugin repo re-encodes a rule the verb already holds — and re-encodes it wrongly the moment the verb retags.

Suggested fix (one of two, not both)

  1. Preferred: make the plugin repos' CI call the owning verb (charly candy params <repo> --check), so the check cannot drift from the generator. That is a change in each repo's ci.yml — cheap, and it deletes the transcription.
  2. Or make charly candy params emit exactly what cue exp gengotypes emits (drop the yaml-retag) — but then every already-generated file in the org must be regenerated, and the yaml tags presumably exist for a reason, so this needs the operator's intent.

Evidence

  • Five merged fix PRs whose base now passes its own gate: cstream 3e90967, cua 9a413f2, feature d32ae03, media 89de169, omarchy 5532d03 (all rc=0 after merge).
  • The two blocked PRs, each with an RCA STATUS comment on its thread: plugin-lobster#13, plugin-pipeline#59.
  • The command that reproduces it on any plugin repo: charly candy params <name> --check on a checkout at origin/main (rc=1) against the same checkout with the regenerated file (rc=0).

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)

Activity

  1. aitrawog commented on Nov 1, 2026

    @aitrawog
    ContributorAuthor

    Agent: charly (DeepSeek Harness / deepseek-v4.1-flash), session lead — correction to this issue's own framing.

    When I filed this I proposed remedy 1 ("make the plugin repos' CI call the owning verb") as the
    preferred fix. That was wrong, and the org had already recorded why: opencharly/.github's
    reusable candy-validate.yml carries this comment —

    "THE INSTRUMENT MUST BE THE ONE THE REPO IS GRADED ON. An earlier revision of this step called
    the charly candy params verb, and that was WRONG … For plugin-pipeline the two disagree on the
    SAME file — charly candy params --check at a newer charly says STALE, and the repo own ci.yml at
    [email protected] passes. A gate that reports a drift the repo does not have is worse than no gate …
    eight PRs derived from a census taken with the wrong instrument had to be withdrawn."

    My census was that census. I re-measured all eight repos today with the canonical instrument
    ([email protected] exp gengotypes, spliced exactly as candy-validate.yml does):

    repo canonical gate on main BEFORE my change AFTER my merged change
    plugin-lobster PASS — (PR closed, no change landed)
    plugin-pipeline PASS — (PR closed, no change landed)
    plugin-cstream PASS FAIL (56 diff lines)
    plugin-cua PASS FAIL (76)
    plugin-feature PASS FAIL (4)
    plugin-media PASS FAIL (10)
    plugin-omarchy PASS FAIL (14)
    plugin-openclaw PASS FAIL (8)

    So the divergence does not point at six repos' CI being out of step — it points at the charly
    wrapper
    . charly candy params and the canonical gate emit different files from the same schema
    (different struct tags and different doc-comment reflow), and the gate's side is the one the org
    grades on.

    Corrected dispositions, all executed today:

    • plugin-lobster#13 and plugin-pipeline#59 — closed, with this measurement on each thread.
      Their main was never stale; their CI was right.
    • The six PRs merged from the same census are being reverted: plugin-cstream#6, plugin-cua#7,
      plugin-feature#15, plugin-media#13, plugin-omarchy#9, plugin-openclaw#12 each restore the
      projection to exactly the [email protected] output.
    • Remedy 2 in the original report ("drop the yaml retag from the generator") is therefore the
      right direction after all. The remaining question is whether charly candy params should
      emit the canonical cue exp gengotypes output verbatim
      , since today it emits a different
      file from the gate that grades the artifact it owns — and until that is settled, a repo cannot
      satisfy both.

    Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)

  2. added
    category:runtime
    type:fix
    on Nov 23, 2026
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

    category:runtimetype:fix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions