Repository navigation
fix(workflowkit): own the pipeline body corpus, and carry sdk#368's vocabulary fix in - #64
Conversation
… vocabulary fix in Two follow-throughs of unit 1's relocation (tracker `opencharly/spec#304`), both of them things the move left behind in the module that no longer declares the code. 1. `sdk#368` fixed a real lowering defect: the authored `on_error: fail` reached an engine whose enum only knows `stop`, and an unauthored `wait:` arrived empty against an engine enum with no default. Its diff targets `sdk/workflowkit/lower.go`, which unit 1 moved here in leg 2, so the fix is carried into this repo's `workflowkit/lower.go` with its test (`workflowkit/vocab_boundary_test.go`), retyped to `params.*`. Landing the sdk-side fix into a file that is about to be deleted would have lost it. 2. The closedness corpus for the `kind: pipeline` authored body lived in `spec`'s `pipeline_test.go` / `workflow_envelope_test.go` because the defs did. They are this repo's defs now (leg 2), and unit 1's last leg deletes them from `spec`, so the corpus moves with them: `pipeline_schema_corpus_test.go` judges the composed served schema (`schemacompose.ServedSchema`, the same call `schema_test.go` makes) and keeps every accept/reject case, including the two Go-rule exemptions (the exec-arm XOR) and the IR-only bound on `#PipelineApproval`. Deleting the corpus instead would have been a silent coverage loss. No schema, params or provider surface changes: `schema/pipeline.cue` is untouched and the generated params reproduce. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: plugin-library — two new test files (a relocated closedness corpus, a carried vocabulary-boundary test) plus a lowering fix in Security screen: PASS — the diff matches the body's stated scope (3 files, no hidden behavior, no secrets/egress, no guardrail weakening; Blocks
Notes (non-blocking): the 29 + 5 case counts, the two Go-rule exemptions, and the 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 controlMechanism. I wrote the R10 section from the conclusion "no bed can contain this diff" without first reading Blast radius. This PR's body only. No code, no head, no other surface. Root fix (in this round's body, not a promise). The bed ran the documented way and PASSED with this branch's plugin as the baked artifact under test — Second control added. The body's file table is now keyed to Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated) |
Review — PASSHead SHA: Security screen: PASS — diff matches the stated scope (3 files: two test files + a lowering fix); no secrets/egress, no guardrail weakening, Comments considered:
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
The plugin-side follow-through of unit 1 (
TODO.md2.1, trackeropencharly/spec#304). Leg 2 moved thekind: pipelinebody and its machinery into this repo; two things were left behind in the module that no longer declares them, and this PR picks both up so unit 1's last legs can delete the originals without losing anything.1.
sdk#368's lowering fix is carried heresdk#368(open since 2026-11-03) fixes a real defect at the authored→engine vocabulary boundary: the authoredon_error: failreached an engine whose enum only knowsstop(sofailsilently behaved ascontinue), and an unauthoredwait:arrived empty against an engine enum that declares no default. Its diff targetssdk/workflowkit/lower.go— the file unit 1 moved here in leg 2 — so landing it there would fix a file that is about to be deleted, and deleting that file first would orphan the fix. It is carried into this repo'sworkflowkit/lower.go(the helper calls are already package-local here), with its test asworkflowkit/vocab_boundary_test.goretyped toparams.*.sdk#368is closed as superseded by this PR, its branch left unmerged, so the fix has exactly one home.2. The body's closedness corpus moves with the defs
The
kind: pipelinebody defs are this repo's CUE since leg 2, but their corpus lived inspec(spec/pipeline_test.go'sTestPipelineValueClosednessand the authored-def cases ofspec/workflow_envelope_test.go) because the defs did. Unit 1's last leg deletes the defs fromspec, so the corpus moves first:pipeline_schema_corpus_test.gojudges the composed served schema throughschemacompose.ServedSchema— the same callschema_test.gomakes, i.e. the value this plugin actually serves — and keeps every case, including the two deliberate Go-rule exemptions (the exec-arm XOR) and the IR-only bound on#PipelineApproval.29 closedness cases + 5 authored-surface cases, and the compile-time assertion that the authored schedule's
Argsfield ismap[string]any(moved fromspec/workflow_arg_list_wire_test.go).No schema, params or provider surface changes.
schema/pipeline.cueis untouched; the generated params reproduce.How tested
Every number is from the committed tree (
git rev-parse HEAD= the head this PR publishes).The moved corpus is not vacuous — it runs:
The plants — red on ASSERTIONS, then restored byte-identical
Plant A reverts the carried fix (the lowering stops translating the vocabulary):
Plant B opens the closed body:
Restored, verified byte-identical against the hashes taken before the plants:
The R10 bed —
check-pipeline-local, PASS with the tree under test bakedThe bed that owns this surface is
check-pipeline-local. Its 15 checks gradecharly pipeline validate|run|resume|apply|list|remove, so the changed lowering executes live in it. The bed cannot run on a bare source-built driver —plugin-pipeline#62records why (the weldedcommand:pipelineleaves the temp projects without the kind word) — and that issue also records the realization: bake the artifact under test the way a native package install does, and point the driver at it withCHARLY_PLUGIN_DIR. That is what was run here, so the bed grades THIS branch's plugin, not a released one:Read from
.check/check-pipeline-local/2026.316.1811/summary.yml:The driver's identity is
charly versionagainstscripts/calver.sh, notgo version -m(the binary is built-buildvcs=false, so its build info carries no commit):What the bed proves and what it cannot. It proves the changed lowering runs live (all 15 checks, including the lowering pair, the verb-sugar task, the dispatch flags and a full engine run) against a freshly realised disposable deploy and a fresh
charly updaterebuild. It does not prove the bed runs unaided on a source-built driver — that isplugin-pipeline#62, a pre-existing condition this PR neither introduces nor changes.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.wait's missing default) was found by sweeping every closed enum on both sides; (b) the corpus was about to be deleted with its defs — deleting it would have been a silent coverage loss, so it is moved. No gate above warns.sdk/workflowkit, never forked.sdk/workflowkit.ValidatePipelineare regenerated from this repo's own skill entity (which already saysworkflowkit.ValidatePipeline) by their own refresh; they are not authored here, and no pin is touched by this PR.git statuswas empty in this worktree before the first edit; no unrelated work touched, no force-push, no bypass.check-pipeline-local, ran PASS (6/6 steps, 15/15 checks, 0 errors / 0 warnings / 0 skipped) with this branch's plugin baked as the artifact under test, so the changed lowering executed live; the repo's own gate (gofmt,go vet,go test,charly box validate) passed on the same tree.Change classification
Change class: plugin-library — test coverage relocation plus a carried lowering fix. No schema, params, provider or wire surface changes; no
schema/*.cuefile is in the diff, so the served schema is byte-identical.Breaking change + rollback: none — this diff adds two test files and a fix to a code path whose only observable is the lowered YAML; no consumer-visible surface moves. Rollback is a revert of the squash commit.
Filed issues
Closes (as superseded)
opencharly/sdk#368— its fix lands here; see the RESOLVED comment there.Advances
opencharly/plugin-pipeline#38(the enum-divergence half —on_error: failand the unauthoredwait:); the issue's other half, "the lowered file is never schema-validated", is untouched.opencharly/plugin-pipeline#62(the bed cannot run on a bare source-built driver) is the pre-existing condition the bed's realization above works around; this PR neither introduces nor changes it.Files
candy/plugin-pipeline/workflowkit/lower.gosdk#368's vocabulary translation (mapLobsterVocabulary,renameStepScalar,defaultStepScalar) and corrects the false commentcandy/plugin-pipeline/workflowkit/vocab_boundary_test.gosdk#368's two tests, retyped toparams.*candy/plugin-pipeline/pipeline_schema_corpus_test.goArgscompile assertionAssisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)