Repository navigation
fix(candy): consume the in-process schemaparams.Generate and bump spec to v0.2026313.1428 - #13
Conversation
… generation leg spec#299 replaced the `cue exp gengotypes` shell-out with an in-process CUE-Go-API generator. `schemaparams.Generate` now takes (schemaDir, pkg); the cueDir argument and `GenerateWithCue*` are gone. - params.go: call the two-argument Generate, delete cueCacheDir and the cuetoolchain import. The verb's own wiring (path derivation, write-on-change no-op, --check) is unchanged. - params_test.go: the pipeline stub and the real-pipeline arm follow the new signature. Generation is in-process, so the provisioning skip is deleted and a failure is a failure rather than a visible skip. - .agents/skills/candy/SKILL.md and the paramsUsage text: the schema is composed and generated in-process (no cue CLI, no checkout, no toolchain provisioning); the pinned cue CLI remains the authoring tool for schema sources. - go.mod/go.sum: spec v0.2026281.933 -> v0.2026313.1428 (tag v0.2026313.1428 contains merge 9428017f). The spec bump also requires sdk v0.2026280.2246 -> v0.2026309.2334, the version charly already pins: the older sdk's vmshared aliases reference spec types removed by the intervening schema changes, so the module does not compile against the new spec without it. Refs opencharly/spec#299, opencharly/opencharly#950, opencharly/opencharly#945. Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
|
STATUS — PR opened Head Agent: charly (dsh-spec299-candy) |
Review — PASSHead SHA: Security screen: PASS — no injected directives, no secrets/egress, no guardrail weakening (the test change removes a skip and thus strengthens coverage); the Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
opencharly/spec#299replacedschemaparams'scue exp gengotypesshell-out with an in-process CUE-Go-API generator.Generatenow takes(schemaDir, pkg); thecueDirargument andGenerateWithCue*are deleted. This repository holds that API's one Go call site, and it now calls the two-argument form.The
cueCLI is off this generation leg. The help text and thecandyskill body said it was provisioned into the charly cache; both are corrected. The pinnedcueCLI remains the authoring tool for schema sources, and nothing in this module calls it on the generation path..agents/skills/candy/SKILL.mdcandy paramsbullet now describes the offline in-process composition and generation, and keeps the cue CLI for authoring onlycandy/plugin-candy/go.modspecv0.2026281.933 → v0.2026313.1428;sdkv0.2026280.2246 → v0.2026309.2334;go 1.26.4→go 1.26.8candy/plugin-candy/go.sumcandy/plugin-candy/params.gocueCacheDir, thecuetoolchainimport and the provisioning prose deletedcandy/plugin-candy/params_test.goThe call-site census. Every materialized
plugin-*checkout at its own freshly fetchedorigin/main(120 repositories) was searched. The only Go call site is this repository's;GenerateWithCueappears in no live plugin Go source (the last mention was a stale test comment here, corrected by this diff). spec's owninternal/schemagencallsGenerateExcluding, which is unchanged.Why the
sdkbump is in this diff. Thespecbump alone does not compile here. This module's oldsdkpin (v0.2026280.2246) predates spec's Kubernetes schema changes, andsdk/vmshared/spec_aliases.goreferencesspec.KubernetesGatewayAPIand five sibling names that no longer exist in specv0.2026313.1428;sdk/kitimportssdk/vmshared, sogo build ./...fails withundefined: spec.KubernetesGatewayAPI.sdk v0.2026309.2334is the versioncharlyalready pins, and with it the module builds, vets and tests green. Without the bump the pin would not build, so it is part of the consumer change, not a separate leg.The tag carries the change — measured, not assumed:
How tested
Head
3c067dd049012122b706a5129a07f384bc80e64d, on the committed tree (git status --shortempty).The repository's own checks
The changed path executed live
The plugin's own CLI entry (
candy.CliMain) was built from this HEAD; it is the samerunCandyCLIthe compiled-in command path runs. Two plugin trees at their ownorigin/mainwere regenerated in check mode, and the--checkcomparison is the drift gate this verb exists for:A clean regeneration is a no-op wherever the committed projection is current. The same pipeline was run over every materialized plugin checkout at its own
origin/main(120 repositories; 66 candies with a committedcandy/<name>/params/cue_types_gen.go):For all 18 that differ, the OLD pipeline (spec
v0.2026281.933, shelling out to the pinnedcuev0.16.1) and the NEW in-process generator produce byte-identical output (cmprc=0 on all 18/18). So the new generator introduces none of that difference — each of the 18 is a committed projection that is older than its own schema, the set already tracked onopencharly/opencharly#463and in the per-repo issues. The test arm that covers the wrap end to end,TestParamsRealPipelineRunsThroughTheVerb, now runs the real in-process pipeline and fails rather than skips when it cannot.The
charly-side witness (check-commands-local, inopencharly/charly) resolvescommand:candyfrom charly's own pin, not from this branch; it builds against this repository's released tag on the next leg ofopencharly/opencharly#950, which is the pin bump. This repository declares no bed of its own (charly.ymlisdiscover:only), so its gate is the one pasted above.Rulebook compliance
git-workflow,go,plugin,check,layer,candyandstrict-policybefore the first action; this repo'sAGENTS.mdnamescandy,plugin,layerandgit-workflow.opencharly/opencharly#463. No blocking finding; no new issue because the set is already tracked there and per repo.cueCacheDiris deleted, not kept behind a flag.git grep -n 'GenerateWithCue' HEAD -- '*.go'returnsrc=1(no hits);git grep -n 'cueCacheDir\|cuetoolchain' HEAD -- '*.go'returnsrc=1. The generated-file banner still sayscue exp gengotypesbecause byte-identity with the pinned CLI requires that banner verbatim.git status --shortwas empty before the commit and after it; PR-only landing, no force push, no bypass.TestParamsCheckGoesRedOnDriftfails on a projection that differs from the pipeline output, andTestParamsRealPipelineRunsThroughTheVerbasserts the retag contract on real output. The changed path ran live above.go 1.26.8, the version the bumpedsdkrequires.charly-side witness bed belongs to the next leg, as stated under How tested.Change classification
No consumer-facing break. The
charly candyCLI surface (names, flags, output) is unchanged, and the plugin's command entry points and behavior are unchanged; only the pipeline call and the pins move. A consumer that needs the old pins can stay on this repository's previous tag (v2026.294.2125,34ea56b). ThecueCLI is no longer needed to generate and remains the authoring tool; no other code path in this module calls it.Filed issues
opencharly/opencharly#463— added the post-#299 census measurement (18 of 66 committed plugin projections differ from the canonical pipeline output at each repository'sorigin/main; old and new pipelines are byte-identical on all 18, so the divergence predates this change and is already tracked there and in the per-repo issues). No new issue filed.Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)