Skip to content

feat(task): replace the Taskfile with the charly task surface - #158

Merged
github-actions[bot] merged 2 commits into
mainfrom
feat/task-runner-spec-v2
Sep 25, 2026
Merged

github-actions[bot] merged 2 commits into
mainfrom
feat/task-runner-spec-v2

Conversation

@aitrawog

@aitrawog aitrawog commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Complete the generic charly task cutover in the spec contract module: replace
Taskfile.yml with a root charly.yml declaring the kind: task maintenance
surface served by candy/plugin-task, and sweep every in-tree reference to the
old Taskfile task names.

This PR supersedes the auto-closed #157 (5-BLOCK auto-close); it carries the
final content as ONE content commit.

This is plan DAG step 1/§4 of the org-wide Taskfile→charly task program. Tasks
declared: cue-gen, wire-gen, proto-gen, bootstrap-cue, bootstrap-protoc.

No #SchemaVersion bump: the change removes no authored wire surface and adds no
kind (the task kind already landed in #153). No migration entry.

Consumer-liveness check for the rename. The spec task names (cue:gen etc.)
had one cross-repo consumer: the superproject's taskfiles/Cue.yml wrapper that
chained spec/Taskfile.yml. That wrapper was removed by merged charly#452
(2026-08-29), and charly's origin/main has no taskfiles/Cue.yml:

$ git -C charly ls-tree -r origin/main --name-only | grep -c taskfiles/Cue.yml
0

So the rename breaks no live consumer; schema/README.md now cites that PR.

How tested

All commands run with the task binary built from the post-cutover pin
(charly/bin/charly, 2026.268.0651), which compiles candy/plugin-task in.

The spec manifest loads and its task surface resolves — this is the evidence
that the CHANGED charly.yml is valid and its tasks register (the spec repo
declares no boxes, so this is task list, not box validate):

$ charly task list
bootstrap-cue            Ensure ./bin/cue is the pinned cue CLI (checksum-verified download)
bootstrap-protoc         Ensure ./bin has the pinned protoc + protoc-gen-go + protoc-gen-go-grpc
cue-gen                  Regenerate all CUE-owned artifacts, including the protobuf wire contract
proto-gen                Alias for wire-gen
wire-gen                 Regenerate proto/plugin.proto and Go stubs from protocol/schema/*.cue

charly task cue-gen executes the full chain live (bootstrap → wire → gen →
reproducibility check), and the regeneration is drift-free:

$ charly task cue-gen
task bootstrap-cue: 1 step(s), 0 failed
  [pass] run — download and checksum-verify the pinned cue CLI
task bootstrap-protoc: 1 step(s), 0 failed
  [pass] run — download and pin protoc + the two Go codegen plugins
task wire-gen: 1 step(s), 0 failed
  [pass] run — render the proto IDL from CUE and compile the Go stubs
task cue-gen: 2 step(s), 0 failed
  [pass] run — gengotypes + schemagen the generated Go
  [pass] check — regen is reproducible — TestGenReproducible passes on the committed tree

Module suite + build + gofmt clean (GOWORK=off on the final tree):

$ GOWORK=off go test ./...        # all packages ok, exit 0
$ GOWORK=off go build ./...       # exit 0
$ gofmt -l .                       # (empty)

R5 sweep — tree-wide AND wrap-tolerant. The names can split across a wrapped
line, so a line-based grep is not enough; the pattern is anchored so the NEW
charly task <name> commands do not match. Scope: all tracked files excluding
CHANGELOG/ (history) and _gen.go (regenerated, comment-only renames):

$ python3 /tmp/spec-sweep.py
[]

The diff rewires: charly.yml (+ new), Taskfile.yml (deleted), README.md,
schema/README.md, schema/task.cue, the schema/*.cue prose,
hostenv/hostdistro.go, hostenv/distro_traits_test.go,
internal/schemagen/main.go, internal/wiregen/main_test.go, the spec/*.go
comments, and the regenerated spec/*_gen.go headers.

Rulebook compliance

  • R5 (delete legacy completely): Taskfile.yml deleted; every in-tree
    reference rewired in the same commit, and the generated files regenerated so
    their headers propagate.
  • Behaviour parity: the port restores the deleted Taskfile's
    protoc-gen-go-grpc --version == 1.3.0 assertion (required for the
    SupportPackageIsVersion7 API) that a first pass had reduced to an existence
    check.
  • R4a: the README documents the bare charly task … form; the charly.yml
    reproducibility comment now reads charly task proto-gen, not task proto-gen.
  • R3 (no duplication): the task surface reuses candy/plugin-task and
    kit.RunPlan; no second runner.
  • Live or skip: every step ran against the REAL cue/protoc downloads and the
    real module; the reproducibility check runs the real TestGenReproducible.

Change classification

  • Change class: config / maintenance-surface cutover (charly.yml added,
    Taskfile.yml removed, prose sweeps + regenerated generated-file comments).
    No authored wire surface removed, so no schema-version bump or migration entry.
  • Verification gate: charly task list + charly task cue-gen executed live
    end to end + go test ./... + go build ./... + gofmt -l on the final tree.
  • Attribution tier: fully tested and validated.

Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

spec gains a root charly.yml declaring the generic kind:task surface
(cue-gen, wire-gen, proto-gen, bootstrap-cue, bootstrap-protoc) served by
candy/plugin-task, and deletes Taskfile.yml. All in-tree references are
rewired to the new 'charly task <name>' verbs (wrap-tolerant sweep) and the
generated files regenerated with zero drift. The bootstrap-protoc task keeps
the deleted Taskfile's protoc-gen-go-grpc version assertion (v1.3.0, required
for the SupportPackageIsVersion7 API). Tasks set GOWORK=off (spec is a
standalone module) and use lowercase shell locals (uppercase ${NAME} is the
plan grammar's check-variable namespace, where an unresolved ref SKIPs).
@github-actions

Copy link
Copy Markdown

Review — BLOCK

Head SHA: 84086406d71cca1dc848209b57deed18c0697a16 (branch: feat/task-runner-spec-v2)

Change class: config / maintenance-surface cutover (new charly.yml, deleted Taskfile.yml, prose sweeps, regenerated *_gen.go comments) — docs + config, no runtime.

Blocks

  1. R5 / B10 — the consumer-facing task rename is unsubstantiated, and schema/README.md introduces a present-tense claim the body's own framing contradicts.

    The diff deletes Taskfile.yml and renames the repo's public task identifiers (cue:gen → cue-gen, wire:gen → wire-gen, proto:gen → proto-gen). The PR body itself establishes that these names have a cross-repo consumer: the old README.md (and the body's own summary) state the superproject's taskfiles/Cue.yml "runs THIS task first (base schema → spec)". That is a producer-repo identifier removal, so per R5/B10 the body must state that consumer liveness was checked against the consumer's origin/main (not a sibling branch). It does not.

    Instead, schema/README.md now asserts in the present tense:

    "…There is no superproject cue:gen wrapper any more — plugin param generation lives with the plugin."

    This is asserted with no evidence — no citation of the superproject's origin/main state and no named PR that removed the wrapper. It also conflicts with the body's own program framing ("plan DAG step 1/§4 of the org-wide Taskfile→charly task program"): if spec is migrated first, the superproject migration is a later step, so at merge time the wrapper still exists — which would make this README claim false (R1 documentation-vs-reality divergence) and leave the superproject's wrapper broken by this rename. The body and the README cannot both be correct as written.

    Fix: either (a) paste the consumer-liveness check against the superproject's origin/main — the removed wrapper / the merged PR that removed it — or (b) reword the schema/README.md sentence to the transitional truth and name the exact batch/step that removes the superproject wrapper.

    Tool-limited disposition: the superproject's state is not derivable from anything in this context, so the claim cannot be accepted on the author's word (rule 4) — it is unproven, and the burden is on the PR.

Verdict: BLOCK


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

View action run

schema/README.md's 'no superproject cue:gen wrapper' sentence now cites the merged
charly#452 that removed taskfiles/Cue.yml and records the consumer-liveness check
against charly's origin/main (0 matches).
@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: 0626038d7e6ba50f95f83b2cb509efd0cc440c4b (branch: feat/task-runner-spec-v2)

Security screen: PASS — no T1–T4 findings: no secrets/tokens, no new network egress (the cue/protoc URLs + SHA-256 pins are byte-identical to the deleted Taskfile.yml), no guardrail/rulebook/validator-spec weakening, and no PR-embedded directives aimed at the reviewer.

Checklist: All applicable rules PASS or NA. NA (one line each): ADE/RDD — no candy/box authored (spec declares none); SDD wire/CUE-source — schema/*.cue edits are comment-only and each regenerated *_gen.go change is backed by the matching internal/schemagen/main.go / .cue source edit (task cue:gen → charly task cue-gen), no naked generated-file hand-edit; R6/R8/R9/B17 — no destructive target action, no Containerfile/label emission, no charly-managed target.

Comment disposition: 5834964508 (github-actions[bot], head 84086406) — stale-superseded. Its sole R5/B10 finding was "the consumer-facing rename is unsubstantiated, and schema/README.md asserts the superproject-wrapper removal with no evidence." Against the CURRENT head, commit 0626038 supplies exactly the demanded fix: schema/README.md now names the merged removal (charly#452, 2026-08-29) and pastes the origin/main liveness check (git -C charly ls-tree -r origin/main --name-only | grep -c taskfiles/Cue.yml → 0). The body/README framing is now coherent (wrapper already gone ⇒ no cross-repo consumer), and the changed lines carry no surviving task <name>:gen reference — re-derived, not inherited.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) September 25, 2026 15:41
@github-actions
github-actions Bot merged commit 277cde8 into main Sep 25, 2026
2 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Sep 25, 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