Repository navigation
feat(spec)!: retire the dead #Workflow IR pair (R5, spec#192) - #206
Conversation
The contract carried two contract-level normalized-IR defs that nothing produced or
consumed: a pipeline engine resolves an authored `kind: pipeline` into its OWN form
(`.opencharly/pipelines/<name>/{workflow.lobster,charly.yml}`), never into a
contract-level IR document. Measured per type on origin/main (live, non-test,
non-comment references outside CHANGELOG/): zero for both.
Deleted: `#Workflow` and `#WorkflowStep`, together with the header narrative that made
them read as the live engine wire ("the engine-agnostic IR every consumer lowers
from") and the #WorkflowStep comparisons in schema/pipeline.cue.
Kept, unchanged -- every def an engine actually uses: #WorkflowApproval
(plugin-lobster/run.go:214 builds it), #WorkflowStepResult (carried by
#WorkflowRunReply.steps -- a CUE edge a Go-only grep cannot see, which `charly task
cue-gen` caught before this landed), #WorkflowSchedule, #WorkflowTrigger, the six
request/reply envelopes, #WorkflowScheduleRequest/Entry/Reply and
#WorkflowEngineCapability.
`charly task cue-gen` regenerates spec/cue_types_gen.go (the two types gone) and its own
reproducibility check passes; a second regen is a no-op.
No migration entry is owed: the deleted defs are engine-wire IR, never authored keys in
a charly.yml, and no on-disk config can carry them -- migration-table ops rewrite
authored keys, and R5's permitted survivor here is the CHANGELOG history alone. The
guidance the retirement owed is in this same commit: the defs' doc claims WERE the
defect, so the deletion and the claim-keyed sweep are one act.
Closes #192
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: contract schema ( Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
The validator's B14/R5 finding on spec#206 is right: the rewritten header kept the original clause "the `workflow` PROVIDER CLASS added to `#ProviderClassNames` by this same change", which — in a diff that does not touch `#ProviderClassNames` — reads as an attribution to THIS change. The clause is dropped rather than re-cited: the change that declared that provider class is not this one, and inventing a citation to satisfy a finding is exactly what the guidance rule forbids. The verdict's other two findings are body-only and land in the re-keyed body: a cross-repo sweep is now pasted with its commands and exit codes, and two diff figures are corrected against `git diff --numstat`. `charly task cue-gen` re-run after this edit: the header comment is not emitted into the generated file, so `spec/cue_types_gen.go` is byte-identical and the task's own reproducibility check stays green. Refs #192 Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed)
|
STATUS — all three findings on the previous head are answered. One was a real prose defect in the change's own text (fixed in a commit); two were body-only and land in the re-keyed body. Finding 1 — B14(d), an unpasted cross-repo sweep. Fair: the claim was true but unbacked. The body now pastes four commands with their real output and exit codes, tests included: an org-wide Finding 2 — A1 / ground-rule 4, counts that contradict the diff. Correct, and my error: Finding 3 — R5/R1, a claim this change does not back. The rewritten header had kept the original clause "the New head Whole body re-keyed to that head ( Agent: wire-types · session 80a2525e-6107-4143-94c4-795f317c71d3 |
Review — PASSHead SHA: Security screen: PASS — no secrets/egress, no guardrail/security-machinery or validator-spec edit, no directive aimed at the validator; the diff only retires dead contract shapes and corrects prose (T1–T4 clean). Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
The contract carried two contract-level normalized-IR defs nothing produced or consumed. A pipeline engine resolves an authored
kind: pipelineinto its own form —plugin-pipelinelowers it to.opencharly/pipelines/<name>/{workflow.lobster,charly.yml}andplugin-lobsterexecutes that pair — so a contract-level "engine-agnostic IR" document was a shape with no producer and no consumer, described as if it were the live engine wire.Deleted (this is the R5 sweep and the guidance fix in one act — the doc claims WERE the defect):
#Workflowand#WorkflowStepfromschema/workflow.cue.#WorkflowStepcomparisons inschema/pipeline.cue(the "NORMALIZED IR this lowers to", the#PipelineApproval"the IR … always carries this object form", and the#PipelineArms"both#PipelineStepBaseand#WorkflowStepembed …" paragraph) — each re-anchored to what is true: an engine normalizes;#PipelineArmsis embedded by#PipelineStepBase, with#PipelineSubStepre-declaring its own non-recursive subset.Kept, unchanged — every def an engine actually uses:
#WorkflowApproval(plugin-lobster/run.go:214builds it),#WorkflowStepResult,#WorkflowSchedule,#WorkflowTrigger, the six request/reply envelopes,#WorkflowScheduleRequest/#WorkflowScheduleEntry/#WorkflowScheduleReply,#WorkflowEngineCapability.Scope correction worth reading: this is the dead PAIR, not the dead triple the ruling named.
charly task cue-genrefused the triple:#WorkflowRunReply.steps: reference "#WorkflowStepResult" not found.#WorkflowStepResultis live wire — carried by the reply of the engine that is running today — and a Go-only reference grep cannot see that CUE edge. It is kept, with a comment saying why it survives.Files (3),
git diff --numstat origin/main...HEAD:schema/pipeline.cue+16/−16,schema/workflow.cue+25/−44,spec/cue_types_gen.go(generated) +17/−94 (net −77) — 58 insertions, 154 deletions.Closes #192 — Refs opencharly/charly#780 (the neighbouring contract repair)
Migration / version coupling: nothing is owed, and here is why
/charly-build:migrateloaded and applied to this diff: the four table ops (rename_key/delete_key/remap_scalar/move_key) rewrite authored keys in acharly.yml, and the schema's own text is explicit that this IR was "the ENGINE WIRE, not a kind: never authored in a charly.yml". No on-disk config can carry either deleted def as a key, so there is no shape forcharly migrateto reshape — a pure codegen refactor that leaves every authored wire key untouched needs NO migration entry. This is declared rather than assumed: the diff touches nospec/schema/*.cueauthored-key surface, and#SchemaVersion/ theversion:field / the equality gate no longer exist (CHANGELOG/0.2026270.938.md), so there is no version to bump either.How tested
Contract/library module — its own committed CI is the change-class gate (
spec/AGENTS.md:GOWORK=off go build ./...+go test ./..., plus CI'sgofmt -landgolangci-lint), and the generator is the changed path. On this head:The generator on the final tree — including its own reproducibility step, which re-derives the artifacts and diffs them against the committed file:
The pre-change state of that gate is the reason the scope narrowed — pasted verbatim, because it is the evidence that
#WorkflowStepResultis live:Claim-keyed sweep (R5), on this head — four commands, each with its real output and exit code. Bare-
\bpatterns and an exact-type grep, so#WorkflowApproval/#WorkflowStepResultand thespec.Workflow*Requestprose are not false positives:Zero live hits for either deleted def outside
CHANGELOG/(the permitted history). No migration help-text names them either — nothing migrates.Across the org, the consumer side is unaffected and the surfaces that repeated the claim are named, not left ambiguous — sweep 1 above (every submodule checkout, tests included) returns nothing for either deleted type. The one place the old text still exists is the umbrella's tracked
spec/submodule checkout, which sits at its gitlink: sweep 2's org-wide form hits./spec/schema/*.cuethere, and nothing in this PR can change that — the checkout advances when the umbrella's pin moves after this merges (Policy B). The hits onspec.Workflow*Request/*Replyare prose about the surviving envelopes. Two prose surfaces in consumer repos still call the surviving envelopes "the IR" (plugin-lobster/README.md:34"a future consumer (GitHub Actions) lowers from the same IR";plugin-pipeline/candy/plugin-pipeline/cli.go:373"the IR's own trigger list"): they are not invalidated by this change (the envelopes they mean survive) but they now name a term the contract no longer defines, so they are routed to the two consumer repos' guidance PRs rather than silently corrected here — a cross-repo cutover lands one PR per repo.Rulebook compliance
/charly-internals:go(spec CUE → generated Go pipeline, the gates),/charly-build:migrate(the version/migration coupling) and/charly-internals:git-workflow+ its pre-validator self-audit for this step.pipeline.cuecomparisons, with the two out-of-repo prose surfaces explicitly routed (named, with their owning repos), never "pre-existing"/"unrelated".#PipelineStepResult-style duplication is not created (the reply envelope keeps referencing the one surviving result def).charly task cue-gen), not a hand-edit of the generated file.CHANGELOG/history, which R5 permits; no transitional path or shim was added. The guidance half of R5 is this commit's own prose: no surviving comment still calls the retired defs "the engine wire" — the header now says what the engines actually consume.feat/retire-dead-workflow-iroff freshorigin/main(a722466), no force-push, no rebase; tree clean after the commit; no submodule's tracked checkout was edited.charly task cue-genFAILS on the pre-change triple-scope tree with the dangling-reference diagnostic pasted above, andTestGenReproduciblefails if the regenerated artifacts drift from the committed ones. The changed path (the generator + the schema/type tests) executed live on the final tree.go build/go testover the module, plus the reproducibility check that re-derives it).bin/charly,2026.280.2131), never a shared install.disposable: truetarget this diff could exercise.Change classification
gofmt/GOWORK=off go build/go vet/GOWORK=off go test ./.../golangci-lint fmt --diff/golangci-lint run ./...+charly task cue-genincluding its reproducibility check, all on this head, plus the claim-keyed sweep.fully tested and validated.Agent: wire-types · session 80a2525e-6107-4143-94c4-795f317c71d3
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)