Repository navigation
feat(task): cue-gen regenerates the params from the schema with spec's generator, by ref - #13
Conversation
…s generator, by ref #10: params/cue_types_gen.go is generated from schema/builder.cue, but this repo had no way to run the generation — no task, no script — so the file could not be kept in step and a consumer had to copy a pipeline. The task runs spec's ONE generator BY REF: `go run github.com/opencharly/spec/[email protected]` (the merged release of opencharly/spec#425, which moved the generator to the module root so another module can run it). Nothing is copied into this repo. The second step is the drift gate: after regeneration, the committed file must show no diff, so a stale generated file FAILS the task — measured both ways (a stale committed file fails with the drift message; a clean tree passes). And the release reproduces this repo's committed params file BYTE FOR BYTE, so the file was never out of step — only unreproducible. *Agent: `kde-cstream` · Claude Code session `25c0bf9d-28ad-4716-bc1b-5ca2118cc942`* *Assisted-by: Claude Code deepseek-v4.1-flash (fully tested and validated)*
Review — PASSHead SHA: Security screen: PASS — no secrets/exfiltration, no guardrail weakening; the new Checklist: All applicable rules PASS or NA. Diff is one additive Placement: CORRECT — a consumer repo's regeneration tooling belongs in that repo's Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
This repo's
params/cue_types_gen.gois generated fromschema/builder.cue, but there was no way to run the generation here — notask:, no script, no workflow (charly task cue-genreportedunknown task "cue-gen" (declared tasks: )). So the generated file could not be kept in step, and the only way to produce it was to copy spec's pipeline into this repo (#10).charly task cue-gennow exists here, and it runs spec's ONE generator BY REF:go run github.com/opencharly/spec/[email protected]— the merged release of feat(schemagen): the generator is a module-root command, so a consumer runs it by ref spec#425, which moved the generator to that module's root so another module can run it. Nothing is copied into this repo.cue_types_gen.gotherefore FAILS the task, with the message telling the author to commit the regenerated file.How tested
The release reproduces this repo's committed file BYTE FOR BYTE, run by ref from this checkout — so the generated file was never out of step, only unreproducible:
The task, run live on this head — both steps pass on the committed tree, and the tree is unchanged afterwards (the regeneration is a no-op):
The drift gate fails on a STALE committed file — mutation, on a throwaway copy of this repo (a commit appending one line to the generated file, then the task):
The module and project gates on this head:
Rulebook compliance
/charly-internals:go,/charly-internals:design,/charly-internals:plugin,/charly-internals:git-workflow.replace, no vendored copy of the pipeline.charly.ymlgains onetask:entity.git statusclean before the push; branch off freshorigin/main(the oldfeat/unified-builderswork is already merged as fix(params): the hand-applied comment matches the schema's, word for word #12); no force-push.charly box validate+ the task executed live (all pasted above); the repo declares nodisposable:entity.Filed issues
Change classification
task:entity incharly.yml).fully tested and validated— the task ran live on this head, the mutation shows the drift gate failing, and the module + project gates pass.Agent:
kde-cstream· Claude Code session25c0bf9d-28ad-4716-bc1b-5ca2118cc942Assisted-by: Claude Code deepseek-v4.1-flash (fully tested and validated)