Repository navigation
feat(schema): admit the pooled fan-out arm (lanes:) on #PipelineArms - #264
Merged
Merged
Conversation
`#PipelineArms` is CLOSED, so a `kind: pipeline` step could not carry the `lanes:` arm that opencharly/plugin-lobster#8 serves (a pooled fan-out over a runtime collection). The width was already authorable (`batch_size`), the arm key was not: `charly box validate` rejected it with `pipeline: steps.1.lanes: field not allowed`, which is the CUE gate, not the engine. `lanes?: string & !=""` now sits beside `for_each`, sharing the companions that already exist (`item_var`, `index_var`, `batch_size`, `steps`), and the companion group's comment names both arms. `#PipelineSubStep` deliberately does NOT gain it: a lane body is non-recursive by the same rule a `for_each` body is. `spec/cue_types_gen.go` is regenerated by `charly task cue-gen` (CUE first, the Go is generated, never hand-written); a second run is a no-op. The schema header now names `sdk/workflowkit.ValidatePipeline` as the home of the exec-arm XOR — `plugin-pipeline`'s `OpValidate` no longer holds that rule (it was stale prose, corrected while the list it describes was being changed). The closedness corpus gains the accept case for a `lanes:` step with its companions, plus two reject cases (a `lanes` inside a substep, an empty operand). The accept case fails on the base schema with the exact error above. Assisted-by: DeepSeek Harness ollama-cloud deepseek-v4.1-flash (fully tested and validated)
Review — PASSHead SHA: Security screen: PASS (schema/generated-Go/test-only diff; no secrets, no weakened guardrails, no supply-chain edits, no embedded directives). Checklist: All applicable rules PASS or NA.
No comment thread to disposition (0 comments). No stale prior claims to inherit. Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
#PipelineArmsis a CLOSED struct, so akind: pipelinestep could not carry thelanes:arm thatopencharly/plugin-lobster#8serves — a pooled fan-out over a runtime collection, withbatch_sizeasthe pool width. The width was already authorable; the arm key was not, and the refusal is the CUE gate,
before any engine is reached (
opencharly/spec#263). The twocue vetruns under How tested arethat exact refusal and its removal, on one fixture and one command.
What this change is:
schema/pipeline.cue—#PipelineArmsgainslanes?: string & !="" @go(Lanes)besidefor_each,sharing the companion defs that already exist (
item_var,index_var,batch_size,pause_ms,steps); the companion group's comment names both arms.#PipelineSubStepdeliberately does NOTgain it: a lane body is non-recursive by the same rule a
for_eachbody is, and a case below pinsthat.
spec/cue_types_gen.go— regenerated bycharly task cue-gen. The Go is generated from the CUE,never hand-written, and a second run on the committed tree changes nothing.
spec/pipeline_test.go— the closedness corpus gains the accept case (alanes:step with itscompanions), a reject case for
lanesinside a non-recursive substep, and a reject case for anempty operand. The accept case fails on the base schema with the exact error the field produced.
plugin-pipeline'sOpValidateas the home of the exec-arm XOR. That rulelives in
sdk/workflowkit.ValidatePipeline(plugin-pipelinecalls it before lowering); the headernow says so, corrected while the arm list it enumerates was being changed. No behaviour depends on
the sentence.
Diff: 3 files, 33 insertions, 7 deletions, one commit, head
78fc451.Scope: this admits the AUTHORED surface only.
sdk/workflowkit.ValidatePipelineis a SECOND gate overthe same words — its
execArmslist and its loop co-field rules knowfor_eachand notlanes, so alowered step is still refused there. That is a different module, measured under How tested and filed
as
opencharly/sdk#439; it is not in this diff.How tested
The change class's gate for this repo is build +
go test+gofmt -lempty +golangci-lintv2(spec carries no candy and no check bed). All four, on the committed tree:
The regeneration is a no-op.
charly task cue-genon the COMMITTED tree — it regeneratesspec/cue_types_gen.goandspec/vocab_gen.goand re-runs the repo's ownTestGenReproduciblestep.The last line is
git status --porcelain | wc -lafter the run:Zero changed paths after a full regeneration: the committed
spec/cue_types_gen.goIS what thegenerator produces from the committed
schema/pipeline.cue.Negative control — one fixture, base schema vs this branch. The fixture is one pipeline body whose
only fan-out key is
lanes:. Both schema files are compiled frompackage spec+ everyschema/*.cuewith the same concatenation
schemaconcatgives the runtime:/tmp/base-schema.cuefrom a detachedorigin/mainworktree,/tmp/lanes-schema.cuefrom this branch./tmp/fixture-spec.cueis identicalin both runs.
The repo's own host gate —
#PipelineValue, the def the loader closedness-gates an authoredkind: pipelinewith — gives the same verdict. The branch's test file, run against the base worktree:and the same three cases on this branch:
The second gate, measured and not fixed here. A throwaway module with
specreplaced by thisbranch and
sdk v0.2026294.615, decoding onelanes:step and running the validatorplugin-pipelinecalls before lowering:execArmsand the loop co-field rules live inopencharly/sdk(workflowkit/validate.go), filed asopencharly/sdk#439. Until that module carries the word, this branch makes the arm authorable andmakes the host's closedness gate accept it — which is what
spec#263asks for — and cannot by itselfmake a lowered lanes step run.
Diff.
Rulebook compliance
R0:
/charly-internals:go(SDD and the schema → generated-code pipeline) and/charly-internals:git-workflowwere loaded before the first tool action;spec/AGENTS.mdwas readfirst for the repo-specific rules (edit
schema/*.cue, regenerate, never hand-write the generated Go).R1: no anomaly was left unfixed. One finding surfaced — the second gate in
sdk/workflowkit— andit is non-blocking for THIS change (the change's claim, that the authored surface accepts the arm, is
proven above), genuinely separable (another module, another repo, its own tag line), and filed as
opencharly/sdk#439with the measurement. Every gate above has zero warnings.R2: one definition, one place. The arm is admitted in
#PipelineArmsonly; no per-plugin copy ofthe authored grammar, and
#PipelineSubStepkeeps its non-recursive subset rather than restating thefull arm list.
R3: no workaround. No shim, no alias, no fallback branch and no magic value: the key the engine's
arm already carries is declared once, and the closedness gate then accepts it.
R4: the product is fixed, not the prose. The one prose correction in the diff (the header naming
where the exec-arm XOR lives) describes code that lives in
sdk/workflowkit.ValidatePipeline, and thesentence was adjusted while the arm list it enumerates was being changed.
R5: nothing is renamed or retired here, so there is no legacy path to delete and no claim-keyed
grep to paste.
R6:
git statuswas checked before the worktree was created (both$ git status --shortpastes aboveare empty); the work landed in a throwaway worktree branched off fresh
origin/main, as ONE commit,with no force-push, no push to
main, no hook bypass, and no other session's worktree touched.R7: behaviour is proven, not compiled. The new accept case FAILS on the base schema with the exact
user-visible error and PASSES here (both pasted); the two reject cases pin the non-recursive and
non-empty rules; the emitted artifact (
spec/cue_types_gen.go) is validated at its real boundary —the repo's own regeneration, twice, the second time a no-op.
R8: no live service is involved in this change; nothing was mocked and nothing was skipped.
R9: this repo ships no binary and no
charlysource changed;charly task cue-genran the repo'spinned, checksum-verified toolchain (
bootstrap-cueprovisions./bin/cue) rather than a host install.R10: the change-class gate ran on the committed tree that will be pushed — build,
go test ./...,gofmt -lempty,golangci-lintv2.13.20 issues— with zero warnings. This repo has nocheck-*bed (no candy, no box, no substrate), so R10's assembled-bed leg has no target here; the changed path
itself (the CUE closedness gate over an authored
kind: pipeline) was executed live in both directions.Change classification
config — a CUE schema def (
schema/pipeline.cue), the Go generated from it(
spec/cue_types_gen.go), and the closedness corpus (spec/pipeline_test.go). No runtime Go, nobehavioural Go, no pin, no gitlink. Gate: build +
go test+gofmt -l+golangci-lintv2, plus theregeneration-reproducibility step this repo ships.
Tier: fully tested and validated — the change-class gate passed on the final tree, and the changed
path executed live in both directions (accept on this tree, reject on the base).
Filed issues
opencharly/sdk#439—workflowkit.ValidatePipelineknowsfor_eachbut notlanes, so a loweredpooled fan-out step is refused with
no execution armand a stray-companion error. Non-blocking forthis diff (separate module, separate gate); blocking for
opencharly/plugin-lobster#8.Closes
opencharly/spec#263.Agent: charly
Runtime identity (A3)
The tier above is the harness/model that produced this work, per
opencharly/opencharly#538, pastedfrom this session's own record rather than asserted:
Assisted-by: DeepSeek Harness ollama-cloud deepseek-v4.1-flash (fully tested and validated)