Repository navigation
refactor(workflowkit)!: delete the pipeline-kind machinery plugin-pipeline now owns - #502
Conversation
…eline now owns Leg 3 of unit 1's five-leg decomposition (`TODO.md` 2.1, tracker `opencharly/spec#304` row 3). Leg 2 moved the `kind: pipeline` machinery into `plugin-pipeline`'s repo-local `workflowkit` package with a mechanical retype (`spec.Pipeline*` -> `params.Pipeline*`, the kind-blind helpers called as `sdkworkflowkit.*`); this deletes the source copies. Deleted: `workflowkit/validate.go`, `workflowkit/lower.go`, `workflowkit/graph.go`, their three test files, and the eight lowering goldens under `workflowkit/testdata/`. `workflowkit` now carries only the KIND-BLIND surface — `PlanRefs` / `RewritePlanRefs` / `RefIDs` / `RefNames` / `Validate` and the `refRe` grammar — so the package can no longer name a pipeline body type. Nothing consumed the deleted API: `plugin-pipeline` is the only module in the materialized tree that called `ValidatePipeline` / `Lower`, and it now calls its own package; `plugin-lobster` and `plugin-task` only use the kind-blind helpers. All three build and pass their suites against this tree (evidence in the PR). The graph renderers deleted here are the surface `sdk#500` tracks: they had no caller in the materialized tree before this change and none after it. `go mod tidy` drops the now-unused `github.com/emicklei/dot` require. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: code/config — library API deletion ( Comment thread: empty (0 comments) — no dispositions required. Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
STATUS — round 1's two blocks are fixed in the body; the head SHA is unchanged ( Agent: dsh-unit1-legs34 (DeepSeek Harness, ollama-cloud/deepseek-v4.1-flash) RCA — the missed controlsA1 (the A1/R5 (the un-dispositioned Both are body-only; no code, no head. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated) |
Review — PASSHead SHA: Security screen: PASS — pure library-API deletion + Checklist: All applicable rules PASS or NA (code/config library deletion; no schema/wire/candy/CLI surface). Placement: CORRECT — pipeline-kind capability moves OUT of Comment dispositions (re-derived against the CURRENT body + diff):
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
…oved body stays judged (#1126) * fix(plugin): resolve a kind's value def the way the gate does, so a moved body stays judged The consumer half of unit 1's leg 4 (tracker opencharly/spec#304). opencharly/spec#305 deleted the #Pipeline* body defs (they are plugin-pipeline's CUE since opencharly/plugin-pipeline#63) and opencharly/sdk#502 deleted the kind-aware workflowkit machinery; this PR pins both merges and teaches the corpus sweep's selection to resolve a kind's value def the way the production gate does. THE TRAP. charly/kind_value_corpus_sweep_test.go selected bodies with spec.KindValueDefs[pn.Disc]. With #PipelineValue gone from the base, that predicate judges ZERO pipeline bodies and still PASSES: on the fresh-origin/main corpus the witness drops 431 -> 418 with 13 pipeline bodies -> 0, and the full-corpus arm drops 2,004 -> 1,992. THE FIX. Selection now goes through kindValueDefPath(prov, disc) - the gate's own resolver: the provider's declared InputDef first, spec.KindValueDefs as the compatibility fallback - and the provider is resolved by gatedKindProvider, which asks the registry and, on a miss, the loader's on-demand connect (connectPluginByWord) for a kind whose body lives in a plugin. That is what makes plugin-pipeline's `InputDef: "#PipelineValue"` visible to the witness. The connect is bounded: cached per word, attempted once, and OFF for the default-suite corpus test (a plain `go test ./...` must never build a plugin or hit the network). The `base` arm stays the pre-change oracle and now skips, visibly and counted, a def the base no longer declares. MEASURED. 2,004 bodies / 12 pipeline bodies on the full-corpus arm and 431 / 13 on the fresh-origin/main arm, with the full arm's verdict list byte-identical to the pre-change run (sha256 c99e948b...). (The campaign's "2,004" and "13 pipeline bodies" come from two different corpus roots - the full checkout is one fixture behind origin/main - so both arms are reported rather than one fitted to the other.) PINS. sdk -> v0.2026316.1848, spec -> v0.2026316.1928, in charly/go.mod and every lockstep tools/* module (charly task mods-tidy); tools/gomod-canonical's TestContractPinsMatchShared is green. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated) * test(plugin): guard the sweep's LOOP, not only its resolver Round-1 review findings on #1126, all three fixed here. 1. `TestSweepLoopJudgesAPluginDeclaredGateDef` drives `runCorpusSweep` (the loop itself, now extracted from the test body) over a fixture corpus that authors one body of a kind whose `#<Kind>Value` def exists only in a served unit, and asserts the body is JUDGED. Reverting the loop's selection to `spec.KindValueDefs[pn.Disc]` is red on assertions; the previous witness exercised only the helper and passed with the loop reverted. 2. The `gatedKindProvider` doc comment named the wrong `connect=false` caller: it is the default-suite witness, not "the default-suite corpus test". Corrected. 3. The `base` arm's "skips visibly, counted" claim now has an executed run in the PR body: `gate=base: judged 1992 entity bodies (…, 12 bodies the base arm cannot judge)` on the full corpus. No production code changed: `charly/provider_kind_invoke.go` is untouched. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated) --------- Co-authored-by: aitrawog <[email protected]>
…me what actually exists (#37) Three stale claims in `.agents/skills/migrate/SKILL.md` and two in a test file, all measured against the tree: - the `current table` index listed 11 of the entries; it now lists all 17, generated from `migrations.cue` (the authoritative list) — including the five the issue named and `aur-not-a-build-format`, which the unified builder chain added. - the op vocabulary table documented four ops and omitted `remove_list_value`; it is listed now, and the prose that counted `four` reads `five`. - two comments in `reshape_pipeline_lobster_test.go` still named `sdk/workflowkit.ValidatePipeline`, a symbol the plugin-pipeline extraction deleted (opencharly/sdk#502); they now name `plugin-pipeline's workflowkit.ValidatePipeline`, which is the gate the assertions mirror. Closes #28 and #29. Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942 Assisted-by: Claude Code deepseek-v4.1-flash (fully tested and validated)
Summary
Leg 3 of unit 1's five-leg decomposition (
TODO.md2.1, trackeropencharly/spec#304row 3). Leg 2 moved thekind: pipelinemachinery intoplugin-pipeline's repo-localworkflowkitpackage with a mechanical retype (spec.Pipeline*→params.Pipeline*, the kind-blind helpers called assdkworkflowkit.*); this deletes the source copies so the machinery has ONE home.What is deleted
plugin-pipeline'sworkflowkit/validate.goValidatePipelinetakes*params.Pipelinethere; the only differences areparams.*for the body types andsdkworkflowkit.Validate/RefNames/RefIDs/PlanRefsfor the helpers that stay hereworkflowkit/lower.goLower(*params.Pipeline, …), calling the same kind-blind helpersworkflowkit/graph.go*params.Pipelineworkflowkit/{validate,lower,graph}_test.goworkflowkit/testdata/*.golden(8)go.modgo mod tidydropsgithub.com/emicklei/dot, which onlygraph.gousedgo.sumemicklei/dotlines (the dropped require) and twoopencharly/spec v0.2026313.453lines —tidypruning a STALE spec version; the effectivespecrequire is unchanged atv0.2026315.2118workflowkitnow carries only the KIND-BLIND surface:PlanRefs/RewritePlanRefs(the two plan-ref steps, exported in leg 1),RefIDs/RefNames/Validateand therefRegrammar (expr.go), plus the kind-blind helpers unit 2 will take (args.go,closure.go,cron.go,template.go). Nothing here can name a pipeline body type any more.Nothing consumed the deleted API — measured, not assumed
plugin-pipelineis the only module in the materialized tree that calledValidatePipeline/Lower, and it calls its own package since leg 2. The othersdk/workflowkitimporters use only the kind-blind helpers, and all three build and pass their suites against this tree (commands and output below). A repo-wide grep for the deleted symbols finds comments only:The three
plugin-pipelinehits are its ownworkflowkitpackage (same word, different module path), not this one. Theplugin-lobsterhit is stale prose in another repo'sAGENTS.md(filed asplugin-lobster#14), and theplugin-migratehit is the same shape inreshape_pipeline_lobster.go's comment (with two more in its test file) — this module imports no part ofsdk/workflowkit, it builds and passes its suite against this tree (matrix below), and the stale mention is filed asplugin-migrate#29rather than edited from here. Their un-prefixedworkflowkit.ValidatePipelinementions stay correct: they name the gate generically, and the gate isplugin-pipeline's package.sdk#500— the graph renderers close heresdk#500recorded thatRenderGraph/GraphMermaid/GraphDot/GraphASCII/GraphEdges/GraphNodeshad no caller in the materialized tree and that thecharly workflow graphcommand their doc comment advertises does not exist. Unit 1 took the issue's disposition (3) — move them with the lowering — and this PR deletes thesdkcopy, which is thesdk-side resolution the issue asked for. The relocated copy is still caller-less (nographsubcommand exists oncharly pipelineeither), so the question is carried forward, with evidence, asplugin-pipeline#65, andsdk#500is closed pointing at it.How tested
The gate that owns this change is this repo's own (
sdk/AGENTS.md: gofmt,go vet,golangci-lintv2.13.2,go test, and the cross-compile matrix), on the committed tree.The consumer matrix — every module that imports
sdk/workflowkit, against THIS treego mod edit -replacein a throwaway copy of each consumer, then its own suite:The matrix is keyed to
grep -rln 'opencharly/sdk/workflowkit' --include='*.go'over the materialized tree, which returns exactlyplugin-lobster,plugin-pipelineandplugin-task.plugin-migrateis built above as well because its comments NAME the gate (sdk/workflowkit.ValidatePipeline) even though it imports no part of the package — a comment-only caller still has to compile against the tree, and it does.charlyitself imports no part ofsdk/workflowkit(grep -rn 'sdk/workflowkit' charly/charly/*.go→ no hits), so its compile is unaffected; the R10 bed below still ran a driver built against this tree.The plants — red on ASSERTIONS, restored byte-identical
Plant 1 drops the dedupe in the surviving
PlanRefs:Plant 2 proves the DESTINATION's tests are live too — a mutation in
plugin-pipeline's relocatedvalidate.go(accepting two exec arms) is red there, on assertions:Restored, verified byte-identical:
The R10 bed — the assembled tree with THIS library in its driver
The bed that can contain this change is
check-loader-flat-import-local: its driver is built from a charly tree whosesdkrequire is replaced with this worktree, so the running binary links the post-leg-3 library. (A plaincharlytree pins the released sdk and could not contain the diff; a replace is the same recipe the out-of-process plugin beds use for an unreleased module.)go version -mcannot prove the binary's commit (-buildvcs=false); the honest identity ischarly versionagainstscripts/calver.shplus the bed'sdriver_version, pasted above.What the bed proves and what it cannot. It proves the assembled loader tree still deploys, loads a flat import with a plugin-provided kind, passes its live checks and rebuilds fresh with
charly updatewhen the sdk under test is linked in — i.e. no runtime path reached a deleted symbol. It does not execute the deleted code (a deletion has nothing to execute); the coverage for that code isplugin-pipeline's own suite, which is where it now lives, and the consumer matrix above is what proves nothing here still called it.Rulebook compliance
/charly-internals:go,/charly-internals:plugin,/charly-internals:cue,/charly-internals:cutover-policy,/charly-internals:strict-policyand/charly-internals:git-workflowbefore any repo action, plus this repo'sAGENTS.md.sdk#368is an OPEN fix toworkflowkit/lower.go, the file this PR deletes. Deleting first would have orphaned the fix and left the only live copy buggy, so its fix was carried intoplugin-pipelinefirst (plugin-pipeline#64, which closes fix(workflowkit): translate the authored vocabulary into the engine's at the lowering (on_error: fail silently meant continue) #368 as superseded) and this PR is opened only after that carrier merged. No gate above warns.plugin-pipeline; the ref grammar exists only inworkflowkit/expr.goand the plugin calls it.//nolint, or transitional path; the deletion is complete in one commit, andgo mod tidydrops the dependency the deletion orphaned.git statuswas empty in this worktree before the first edit; no unrelated work touched, no force-push, no bypass.charly version==scripts/calver.sh.check-loader-flat-import-localPASS on the driver linked against this tree (bed summary above), 0 errors / 0 warnings.Change classification
Change class: library API deletion (Go module
github.com/opencharly/sdk, taggedv0.<YYYYDDD>.<HHMM>), plus ago.modtidy. No schema, wire, provider or CLI surface.Breaking change + rollback: this removes the exported
ValidatePipeline,Lower,RenderGraph,GraphMermaid,GraphDot,GraphASCII,GraphEdges,GraphNodes,GraphEdgeandGraphFormatfromsdk/workflowkit. It breaks nothing in the org because the only caller moved to its own copy inplugin-pipeline(leg 2) and the three other importers use only the kind-blind helpers — measured above. Rollback is a revert of the squash commit, which restores the files and thedotrequire.Filed issues
plugin-pipeline#65— the relocated graph renderers have no caller and nocharly pipeline graph/charly workflow graphcommand exists; the questionsdk#500asked now lives there.plugin-lobster#14—AGENTS.md/README.md/plugin.go/charly.ymlstill namesdk/workflowkit.Loweras the lowering the front-end uses; that symbol no longer exists.plugin-migrate#29— two comments still namesdk/workflowkit.ValidatePipeline; the module imports no part of the package, so this is prose only.Closes
sdk#500(thesdk-side copy is deleted; the relocated question is carried byplugin-pipeline#65).Files
workflowkit/graph.goworkflowkit/graph_test.goworkflowkit/lower.goworkflowkit/lower_test.goworkflowkit/validate.goworkflowkit/validate_test.goworkflowkit/testdata/*.golden(8 files)go.modgithub.com/emicklei/dotdroppedgo.sumdotmodule's two sums, plus two sums of a stalespec v0.2026313.453the tidy pruned (thespecrequire is unchanged)Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)