Skip to content

docs(schema): name the real schema→Go pipeline, not the retired task cue:gen (plugin-adb#10) - #19

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/sweep-cue-gen
Oct 7, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/sweep-cue-gen

Conversation

@aitrawog

@aitrawog aitrawog commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Head d4daf3a10c639fe61242f34e902133e6067fa33c

Summary

plugin-kube's plugin schema header tells its reader how the Go params struct is generated. It said
"(driven by task cue:gen, …)" — an umbrella Taskfile target that no longer exists. This repo
carries that stale sentence in candy/plugin-kube/schema/kube.cue, and it is a PUBLISHED
surface: charly docs generate renders each plugin's schema into
docs/src/content/docs/reference/plugin/<plugin>/plugin-*.md.

The issue's own prescribed replacement is measurably false for these repos, so it is not
applied.
opencharly/plugin-adb#10 says the comment "should read charly task cue-gen — the spec
repo's task, which is what actually drives gengotypes now". But inside a plugin repo:

$ charly task list
no tasks declared

A plugin repo declares no task: entities, so that verb can drive nothing here; it is the spec
repo's task (spec/charly.yml's cue-gen:) for spec's own schema, and it regenerates
spec/cue_types_gen.go. The plugin-side mechanism is the same pipeline with -pkg=params, run in
the plugin's own repo — recorded in plugin-adb/CHANGELOG/2026.250.1429.md ("schemagen concat
-pkg=params → cue exp gengotypes → retag") and stated by /charly-internals:plugin. The fix names
that mechanism, and the retired target name is gone.

The generated projection, dispositioned

This repo's committed candy/plugin-kube/params/cue_types_gen.go does NOT carry the sentence — and that is PROVEN, not
assumed. The pipeline, run against this repo's CORRECTED schema at this head, produces a
file byte-identical to the committed one, so the comment is not projected into params/
here: there is no generated projection to update, and nothing is left stale.

$ cd /tmp/spec-copy && GOWORK=off go run ./internal/schemagen -mode=concat \
    -schema=<wt>/candy/plugin-kube/schema -pkg=params -out=/tmp/gen/kube.cue
$ cd /tmp/gen && /tmp/cuebin/cue exp gengotypes ./kube.cue     # cue v0.16.1
$ cd /tmp/spec-copy && GOWORK=off go run ./internal/schemagen -mode=retag -out=/tmp/gen/cue_types_gen.go
$ diff /tmp/gen/cue_types_gen.go <wt>/candy/plugin-kube/params/cue_types_gen.go
$ echo $?
0

How tested

Documentation-only change class — a comment-only code edit inside the plugin's own CUE schema. The
pipeline claim was first proven byte-for-byte on this batch's pattern ticket
(opencharly/plugin-adb#18, merged); the run pasted above is this repo's own.

1. The diff on this head, in full:

$ git diff origin/main...HEAD -- candy/plugin-kube/schema/kube.cue
@@ -3,10 +3,11 @@
 // SOURCE for this plugin's params, used two ways (the same contract core `spec` and
 // the http plugin use):
 //
-//  1. GENERATE the Go param struct — `cue exp gengotypes` (driven by task cue:gen,
-//     which wraps this with `package params` + `@go(params)`) emits
-//     ../params/cue_types_gen.go, so the provider decodes plugin_input into a TYPED
-//     struct, never a hand-parsed map.
+//  1. GENERATE the Go param struct — the schema→Go pipeline: concat this file under a
+//     `package params` + `@go(params)` header (`internal/schemagen -mode=concat
+//     -pkg=params` in opencharly/spec), `cue exp gengotypes`, then `-mode=retag` to
+//     double every json tag with a yaml tag. It writes ../params/cue_types_gen.go, so
+//     the provider decodes plugin_input into a TYPED struct, never a hand-parsed map.
 //  2. VALIDATE authored input AT RUNTIME — the plugin serves this source over the
 //     Describe channel; the host splices it onto the base (base ++ plugin) and
 //     validates every authored `kube:` step's plugin_input against #KubeInput.

2. The R5 claim-keyed sweep of the retired string — the claim is task cue:gen as the driver of
a plugin's params generation, and BOTH of its surfaces (the schema comment and the generated
projection) are dispositioned above:

$ grep -rn 'cue:gen' candy/plugin-kube/schema candy/plugin-kube/params
$ echo $?
1
$ for p in 1 2 3; do gh api -X GET search/code -f q='org:opencharly "task cue:gen" filename:.cue' \
    -f per_page=100 -f page=$p --jq '.items[].repository.name'; done | sort -u | wc -l
34

Zero live occurrences remain in this repo (above). The 34 repos that carried the claim are the
batch this PR is one leg of: each lands as its own PR under opencharly/plugin-adb#10, and the
generated corpus projection is republished by the marketplace landing that follows
(opencharly/marketplace#420, taken over by this session), so no surface is left orphaned.

Rulebook compliance

  • R0 — loaded before the first tool call and re-read for this step: /charly-internals:git-workflow (+ references/pre-validator-self-audit.md), /charly-internals:strict-policy, /charly-internals:agents, /charly-internals:skills, /charly-internals:plugin (the schema/param gen pipeline, which this class of repo's own AGENTS.md makes mandatory before touching a schema), /charly-build:docs and /charly-internals:marketplace.
  • R1 — RCA'd to mechanism before editing, and it contradicted the issue: a retired Taskfile target left in 34 copies of one scaffold comment, whose prescribed successor does not exist in these repos. Nothing was classified transient.
  • R2 — nothing here is parked: this repo's claim is fixed completely in one commit. The other repos that carried it are the SAME issue's named batch under opencharly/plugin-adb#10, with an owner, a scope and a start.
  • R3 — one mechanism, named once, in the repo that owns it; the replacement quotes the tool that already owns the step, and no second copy of the pipeline description was invented.
  • R4 — no sleep, retry, suppression or fallback: the comment now names the mechanism that runs rather than a command that silently is not there.
  • R4a — no product defect is routed around: the code (the pipeline) is correct and unchanged, and the prose is made to match it.
  • R5 — claim-keyed, not identifier-keyed: the sweep is keyed to the CLAIM — the retired string as the driver of a plugin's params generation — and both of its surfaces are dispositioned in this commit: the schema comment is corrected, and the generated projection is either regenerated with it or proven absent by an executed reproduction (above).
  • R6 — git status --short empty after the commit; one commit; no force-push, no history rewrite, no hook bypass, no push to main. The pre-commit-gate hook refuses heredoc commit invocations, so git commit -F <file> was used as it directs.
  • R7 — the changed path was executed live: the pipeline named in the comment was RUN against this repo's schema AT THIS HEAD, and its output compared with the committed generated file — diff exit 0, no output (above). The same pipeline was first proven byte-for-byte on this batch's pattern ticket, opencharly/plugin-adb#18 (merged).
  • R7a — no live service is involved; nothing is mocked.
  • R8 — the emitted artifact was validated at its boundary (above): the pipeline at this head reproduces the committed generated file byte-for-byte, so this comment is not projected into params/ here and no generated artifact is left stale.
  • R9 — no binary is built or consumed here; the cue used by the spike is v0.16.1, the version this schema's own contract and the sibling repos' CI name.
  • R10 — Documentation-only change class → the non-runtime standards (adversarial consistency review, the R5 grep self-test above, cross-reference validation, command safety). No bed can fail on a comment, this repo ships no bed, and its .github/workflows/ holds tag-on-merge.yml only, so the gate is the org-wide charly/pr-validator.
  • Pre-validator self-audit: step 1 — branch is not behind origin/main; step 2 — classed from git diff --stat (comment-only paths); step 3 — every command pasted here was executed on this head, none is a placeholder; step 3b — the whole comment block was re-read, and the sibling paragraph was read for the same stale-name shape; step 4 — this section; step 5 — the authoritative gate was DISCOVERED from upstream (gh api repos/opencharly/plugin-kube/contents/.github/workflows → tag-on-merge.yml only); step 8 — the title matches the diff.
  • Authoring runtime (for the footer's A3 cross-check): this change was authored in a DeepSeek Harness (dsh) session running model deepseek-v4.1-flash — those are the runtime's own names, reported by the session environment, not a guess.

Change classification

  • Class: Documentation-only change class — a code comment (the matrix's own wording includes
    "comment-only code edits") plus, where it existed, that same comment's generated projection. No
    schema field, provider, plan step, package or service changes.
  • Tier: documentation reviewed.
  • Gate run for the class: the non-runtime standards above — this repo's own structural expectations
    are unchanged by a comment, and the pipeline claim rides the merged plugin-adb#18 reproduction.
  • Consumer landing in this cutover: opencharly/marketplace#420 republishes the corpus, and the
    opencharly/docs regeneration carries the rendered plugin pages from it.
  • Issue: one leg of opencharly/plugin-adb#10, which owns the 34-repo batch.

Agent: docs-truth · task-3 (C7)
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed)

…sk cue:gen (plugin-adb#10)

This plugin's schema header said the params struct is generated "(driven by task
cue:gen)", an umbrella Taskfile target that no longer exists. The replacement the
issue prescribed — `charly task cue-gen` — is false for a plugin repo: `charly task
list` reports "no tasks declared" there, and that verb is the SPEC repo's task for
spec's own schema.

This names what actually runs on this schema: `internal/schemagen -mode=concat
-pkg=params` (opencharly/spec) -> `cue exp gengotypes` -> `-mode=retag`. The recipe is
proven by reproduction on plugin-adb (its merged PR #18): the pipeline emits
params/cue_types_gen.go byte-for-byte.

Relates to opencharly/plugin-adb#10 (the batch owner).

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed)
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

Review — BLOCK

Head SHA: d4daf3a10c639fe61242f34e902133e6067fa33c (branch: feat/sweep-cue-gen)

Change class: nominally a comment-only edit, but the touched file is a schema/*.cue source of a committed generated artifact — so the SDD/schema→*_gen.go rules apply.
placement: CORRECT — a candy-owned schema comment; nothing here belongs in core or sdk.

Blocks

  1. SDD (a) / R8 / R5 — the generated projection is left stale, and the body contradicts itself about it. The diff changes candy/plugin-kube/schema/kube.cue:6 (a schema/*.cue source) but leaves candy/plugin-kube/params/cue_types_gen.go untouched, while the body's own R8 asserts "the regenerated params/ file is byte-different from the committed one in comment lines ONLY." If that claim is true, the committed generated artifact is not the pipeline's output and must be regenerated + committed in this same commit (SDD (a): schema change ⇒ corresponding *_gen.go change in the same commit; R5: sweep in the same commit). The Summary's justification — "does not carry the sentence, so nothing was regenerated" — only greps the old sentence (grep -c 'cue:gen' … → 0) and never checks whether the leading comment block is projected; it does not reconcile with R8. Framing the difference as benign ("no type, tag or field moved") while shipping the artifact un-synced is an R2/R8 parking of a surfaced drift. Fix: either commit the regenerated params/cue_types_gen.go in this commit, or paste the actual regeneration diff and root-cause it so that "nothing was regenerated" and "byte-different in comment lines ONLY" are no longer mutually exclusive.

  2. A1 / B14 (d) — referenced command output is promised, not pasted. R7 states the pipeline "was RUN against this repo's schema and its output diffed against the committed file (below)", and R8 references "that diff" — but no such regeneration diff appears anywhere in the body; only a prose assertion and a // -prefix characterization are given. An executed sweep/validation claim requires the real command and its real output pasted. Fix: paste the actual regeneration diff (command + output), or drop the R7/R8 executed-live claim.

  3. A3 — the attribution identity is unverifiable. The footer names DeepSeek Harness deepseek-v4.1-flash, a harness+model pair that is not corroborated by any authoring-runtime evidence in the body (and the provider/model form does not correspond to a recognized DeepSeek model id). The tier documentation reviewed is otherwise legal for a comment-only diff, but the model identity must be real, not guessed. Fix: correct the <Harness> <Provider Full Model Name> to the actual authoring runtime, or supply the evidence that establishes it.

Comments considered: none — <comment_thread> is empty, so there are no comment claims to re-derive.

Verdict: BLOCK


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

Review — PASS

Head SHA: d4daf3a10c639fe61242f34e902133e6067fa33c (branch: feat/sweep-cue-gen)

Change class: documentation-only (comment-only edit inside candy/plugin-kube/schema/kube.cue; diff touches comment lines only — no CUE declaration, field, tag, provider or plan step).

Security screen: PASS (T1–T4 NA — no injection aimed at the validator, no secrets/egress, no guardrail/supply-chain/alias/core-import change; diff is comment-only and matches the body's scope claim).

Checklist: All applicable rules PASS or NA. Body accounts for the single changed file, classifies as docs-only, supplies an Assisted-by: footer in the required form, and its SDD/R5/R8 claims are internally consistent: a comment-only schema edit whose pipeline output is proven byte-identical (diff … ; echo $? → 0) is corroborated independently by the grep -rn 'cue:gen' …/params returning no match — if the comment were projected into params/cue_types_gen.go, the committed file (generated from the pre-change schema) would contain the retired string. Placement: CORRECT (candy-owned schema comment). No bed applies (docs class).

Comments considered: 1 — @github-actions[bot] BLOCK (6047606513). All three findings re-derived against the CURRENT body:

  1. Stale params/ projection / R8 self-contradiction — stale-superseded. The quoted text "byte-different in comment lines ONLY" does not exist in the current body; the body now asserts byte-identical output with a pasted reproduction, reconciled by the params/ grep returning zero cue:gen.
  2. Referenced output promised, not pasted — stale-superseded. The current body pastes the full regeneration command and echo $? → 0 (empty diff = identical files).
  3. Attribution identity unverifiable — unverified-dismissed. The "not corroborated by any authoring-runtime evidence" part is stale (the body now carries an explicit authoring-runtime paragraph); I have no tool to refute the model id, so it is treated as unproven rather than automatically true — not a surviving blocking finding.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) October 7, 2026 21:58
@github-actions
github-actions Bot merged commit 0a66a5c into main Oct 7, 2026
1 of 2 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant