Repository navigation
chore(pins)!: advance plugin-pipeline, sdk, spec and charly to the kind:pipeline relocation tips - #996
Conversation
…nd:pipeline relocation tips Four pins move, each verified as the tag-on-merge CHANGELOG tip (`pin^` == the tagged squash == `refs/heads/main`): plugin-pipeline 2f435c7f27 -> b32a25e8df (v2026.316.1819) sdk c68597bfe1 -> 4aabb8002b (v0.2026316.1848) spec 721eac74d1 -> 9301181694 (v0.2026316.1928) charly c3f4769462 -> 36c2dc4ac2 (v2026.316.2018) The move is opencharly/spec#304's unit 1: the `kind: pipeline` body left the contract module for the plugin that serves the kind. plugin-pipeline#63 declares `#Pipeline` and the eleven step/trigger/flow defs it is built from, and carries the lowering into plugin-pipeline's own workflowkit; spec#305 deletes the twins, so spec's `schema/pipeline.cue` goes 248 -> 47 lines and only `#PipelineClassRoutes` stays; sdk#502 deletes the pipeline-kind machinery from `sdk/workflowkit`; charly#1126 resolves a kind's value def the way the gate does, so a moved body stays judged. The D-PAT census re-emits with four rows RE-HOMED, not added: the four row-keys (`env?`, `charly?`, `approval?`, `entities?`) move from `spec/schema/pipeline.cue` to `plugin-pipeline/candy/plugin-pipeline/schema/pipeline.cue`. Both sides read 357 known violations with every per-rule count identical (close 54, absence 86, open 68, opaque 0, dup 7, union 142), because a definition MOVED and nothing new landed. Every prior emission in this repo's record read added=0; this is the first that did not, and the reason is the relocation, not a new violation. Seventeen citations that `bash scripts/design-cite.sh` caught are re-anchored: twelve `kind:pipeline` name citations to the plugin's twelve-definition set, three `plugin-pipeline/candy/plugin-pipeline/cli.go` line citations whose bytes drifted at b32a25e, and the two on the `pooled fan-out (lanes)` row (`sdk/workflowkit/graph_test.go` retired by sdk#502; `spec/schema/pipeline.cue:89-97` out of range in a 47-line file). `charly task pins --param MODE=currency` reads `0 of 409 pin(s) NOT current [409 cur]`. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated) Co-authored-by: aitrawog <[email protected]>
Review — PASSHead SHA: Security screen: PASS — no secrets/egress; no guardrail weakened (the move is outward, Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
…en (#997) TODO.md 2.1 asks for EACH kind body to move into its plugin's CUE module; the pipeline kind is one of eleven, and this row records it as unit 1 of 11 — DONE — while the item stays open for the other ten (opencharly/spec#304). What the row records, measured at the pins the umbrella pin wave #996 set: sdk#501 e91e784332ae4e33b375891deae6b2d5cc84e565 v0.2026316.1524 charly#1124 b8de0f93d5bbf607c9ad24698eaa3097b20170bd v2026.316.1711 plugin-pipeline#63 75e5fc903afdbe6a32f382ea9eac4db6122aa457 v2026.316.1740 plugin-pipeline#64 fc2cec31b813b2c5a5d079167c24e488ce5eba3a v2026.316.1819 sdk#502 ca36ca576b39a9ad9cff2767d010725948ba69bf v0.2026316.1848 spec#305 984ca6aa1b9aa03b7a10c3ee03035764744550a2 v0.2026316.1928 charly#1126 6ee41d87acdb6b65d98367567814a24c42f9737b v2026.316.2018 umbrella#996 14bee67 v2026.316.2127 Measured effects: KindValueDefs 11 -> 10, #<Word>Value defs 12 -> 11, spec keeps 13 kind bodies and one #Pipeline* def (#PipelineClassRoutes); plugin-pipeline's schema goes 7 -> 20 #Pipeline* defs; 8/8 lowering goldens byte-identical (equal blob ids); 34 cases (29 + 5) moved with the defs. The D-PAT census re-emits at 357 known violations with every per-rule count unchanged; its four changed rows are four RE-HOMED keys, and it is the first PIN-ADVANCE emission in the record to add rows (#959's census reconciliation added 3 dup rows earlier, so "first ever" would be false). 17 citations re-anchored: 12 + 3 + 2. The row carries the two traps the chain proved: the InputDef contract (plugin-task declares none, so unit 2 must add InputDef: "#TaskValue" in the same change) and the corpus-sweep trap (base arm 418 / 0 pipeline vs the composed arm 431 / 13 on ONE tree, both PASSING, guarded by TestSweepLoopJudgesAPluginDeclaredGateDef). It re-sums the Status table from its own rows (unchanged: items 107 done 10 open 82 moved 15) and names the remaining ten units in spec#304's order, with firecracker still needing a pin first. No code, pin, gitlink or design/*.tsv changes; TODO.md only. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (documentation reviewed) Co-authored-by: aitrawog <[email protected]>
Summary
Four pins move as one wave, because one schema definition moved between repositories and every
record keyed to its old home had to follow: the D-PAT census, the citation ledger, and the
citation baseline. Each new value is the
tag-on-mergeCHANGELOG commit one above its taggedsquash — the
changelog-tipform this repo's pins use — and each was read from the remote,never assumed:
Each tip is the tag's own squash, one CHANGELOG commit above the tag (two arguments to one
rev-parse, and the two lines are equal):The index records exactly those four values:
The diff is those four gitlinks plus the three design records they forced:
Every file the diff carries, and what it carries:
charlyc3f4769462→36c2dc4ac2— the pin the R9 rebuild and every gate above were run fromplugin-pipeline2f435c7f27→b32a25e8df— the plugin that now declares thekind: pipelinebodysdkc68597bfe1→4aabb8002b— the pin whoseworkflowkitretired the pipeline-kind machineryspec721eac74d1→9301181694— the pin that deleted the body defs it no longer ownsdesign/dpat-baseline.tsvdesign/cite-baseline.tsvdesign/dulling.tsvWhat moved — the
kind: pipelinebody left the contract moduleopencharly/spec#304is the measured chain that moves each kind body into the plugin thatserves it; this wave is its unit 1, and four producer changes carry it.
plugin-pipeline#63declares
#Pipelineand the eleven step/trigger/flow definitions it is built from, and movesthe lowering into that repo's own
workflowkit;plugin-pipeline#64takes the body's corpuswith it.
spec#305deletes the twins, leavingspec's file with one definition,#PipelineClassRoutes— the class→route table overspec's own#ProviderClassNames, whichno plugin can compute and which therefore stays.
sdk#502deletes the pipeline-kind machinery(
graph.go,lower.go,validate.goand their testdata) fromsdk/workflowkit, keeping onlythe kind-blind helpers.
charly#1126movescharly's own corpus sweep onto the resolverthe production gate already uses — the provider-declared
InputDef, else the base fallback —so a moved body stays in the witness instead of being silently dropped.
The line counts decide which side owns the constructs now:
and the four constructs the census counts moved with them — none of them in the plugin before
(0 occurrences in 175 lines), every one of them in
specbefore (6 occurrences in 248 lines),and the reverse after:
The census — four rows re-homed, and the first emission in this record that ADDS rows
The gate reads
357 known violationsbefore and after, with every per-rule count identical:Four rows left
spec/schema/pipeline.cueand four arrived inplugin-pipeline/candy/plugin-pipeline/schema/pipeline.cue— the same four row-KEYS(
env?,charly?,approval?,entities?), carrying their counts with them:This is the first emission in this repo's record to ADD rows, and the reason is the
relocation, not a new violation. A census row is keyed by
(file, rule, symbol), and itsacceptance rule is per file and one-sided: a construct occurring MORE often than its count is a
new violation, and one occurring LESS often overstates the debt. A definition that MOVES between
files therefore cannot be recorded in place — it is a removal in the old file and an addition in
the new one, by construction. Every earlier emission in this record read
added=0for one oftwo reasons: it lowered rows whose violations were fixed, or it blessed a construct that was
genuinely new (a real new row, whose rule count then ROSE). This wave is the first relocation,
so it is the first emission whose
addedcount is non-zero while every per-rule count and thetotal are unchanged. It is a new census category, and the next relocation — the remaining units
of
spec#304— will hit it.The check that matters is therefore NOT
added == 0. It is that no rule's count increased andthe total held; both do, and the census's own control says so on the committed tree:
The
dupcount is 7 before and after, so the move neither created nor retired a duplicate row:#950's half of D-PAT-2 — the one-home rule a text splice forces into a mirror — is untouchedby it.
The 17 citations the control caught, and where each was re-anchored
bash scripts/design-cite.shfailed with exactly 17 findings on the tree that carriedorigin/main's ledgers and this PR's four staged gitlinks:Twelve of them are the
kind:pipelinename citations, and they were re-anchored as the FULLtwelve-definition set — every definition
specused to declare and no longer does, named one byone at its new home:
#Pipeline,#PipelineApproval,#PipelineArms,#PipelineFlow,#PipelineInput,#PipelineParallel,#PipelineRetry,#PipelineSchedule,#PipelineStep,#PipelineStepBase,#PipelineSubStep,#PipelineTrigger. Each is nowplugin-pipeline/candy/plugin-pipeline/schema/pipeline.cue:#<Definition>, which is the form apin advance cannot falsify:
Three are line citations into
plugin-pipeline/candy/plugin-pipeline/cli.go, whose bytesdrifted at
b32a25e. Each was re-read at the pin and re-anchored to the construct it is about::24-31→:20-26(the command surface listing,pipeline run|resume|schedule|validate|agent| probe),:139-141→:140-143(theresumearm and its--token/--approve/--cancelusageline), and
:176-183→:177-186(theschedulearm and itsapply|list|remove|run-nowswitch):
Two are on the
pooled fan-out (lanes)row, and both point at machinery that changedrepos.
sdk/workflowkit/graph_test.gois not insdkat this pin —sdk#502deleted thatmachinery — so the row now cites the plugin that owns it,
plugin-pipeline/candy/plugin-pipeline/workflowkit/graph_test.go:63-78, whereTestGraphEdgesKnowLanesis the same test at the same offsets. Andspec/schema/pipeline.cue:89-97is a range out of a 47-line file, so it became the NAME form of the same construct,
plugin-pipeline/candy/plugin-pipeline/schema/pipeline.cue:#PipelineArms— the definition thatcarries
lanes?,item_var?,index_var?,batch_size?andpause_ms?:The baseline moved with the citations, and only with them — five rows lowered, four recorded
(net −1, because one of the two line citations became a name citation, which the baseline does
not carry):
and the control is green on the committed tree, with every remaining line citation still holding
the construct and the bytes it was affirmed against:
#Pipeline*no longer exists inspec— what a consumer breaks onThis is a breaking change for any consumer that pins these repositories independently, and the
answer is not "none".
spec's pipeline module now declares one definition, and none of thetwelve the body used:
The plugin's
kindcapability has declaredInputDef: "#PipelineValue"both before and afterthis wave — and at the OLD plugin pin that def was not in the plugin's module at all, it came
from
specinside the composed unit:So a consumer that composes an OLDER
plugin-pipelinewith THISspecgets a composed schemaunit in which the def the provider's own
kindcapability declares resolves nowhere: thekind: pipelinebody gate has no definition to judge with. Whether that surfaces as a loadrefusal or as a kind whose bodies go unjudged depends on the host, and either way it is a
validation hole —
charly#1126movescharly's corpus sweep onto the resolver the gatealready uses (
charly#1122, in the pin before this one), and that resolver reads theprovider's declared
InputDefout of the composed unit: it cannot resolve a def no modulein the unit holds. The
consumer fix is one line and is the same in both cases: pin
plugin-pipelineatb32a25eorlater (the tag
v2026.316.1819), or keepspecbelow93011816. The two move together.Go consumers break loudly rather than silently:
spec.Pipelineand its step/trigger/flow typesleft
spec's generated Go (they are the plugin's generatedparamsnow), andsdk/workflowkit's graph/lower/validate symbols are gone (sdk#502, listed above). Rollback:git revertthis one commit. The four producers are merged and tagged, so the revert moves fourpointers and three design records back together — no data, no migration, and no history is
rewritten.
Currency — three readings, and the final
0 of 409The wave's own verb measured this at every stage. Before it — on the base tree, where the four
pins had no checkout to judge ancestry with:
After materializing the four checkouts, the same four pins read
behind— the form a pin witha checkout reports — and the producer-first leg order is the whole chain:
After the advance — the final reading, and the one the gate reports on the committed tree:
How tested
The gate that owns this diff is the umbrella's own pin gate — a diff that touches gitlinks,
pins, and
design/*.tsvis judged by it (AGENTS.md"Commit, push, land") — plus the DESIGNcontrol set the records live under. Both ran on the committed tree
364759a7a841, and thechange class requires no
disposable: truebed: the diff is four gitlinks and three datarecords, carrying no Go, no CUE, no candy and no runtime path, so there is no bed to name.
bash scripts/design-check.sh— all seven controls:./charly/bin/charly task verify— the pin contract and the currency question. The onebounded line is the pin-contract message, which names all 393 unmaterialized pins on a
single line; the bound is in the COMMAND (
cut -c1-700), not applied to the paste:The binary is the worktree-local build from the
charlypin this PR moves to, not a sharedinstall, and it agrees with the source's own CalVer derivation:
The commit's own identity and the session's evidence:
The bootstrap's
check-generated-cleanprinted its documentedNOTICE — charly/plugins_refs_generated.go differs because it was indexed from a source this checkout does not pinand restored the tracked file;git -C charly status --shortis emptyafterwards. It is the same notice
charly/CHANGELOG/2026.315.2219.mdrecords for the releasebefore this pin, not a warning and not a finding — recorded so it is not mistaken for one.
Rulebook compliance
/charly-internals:git-workflowand/charly-internals:strict-policywere loaded before the first repository action, and theumbrella
AGENTS.md(Part I, Part II chore: harness parity with charly — rulebook, pi/claude/opencode/reasonix config, skills #1–fix: escape backticks in umbrella-gates.ts template literal #3, "Commit, push, land") was read. The four pinswere already staged by the wave this session inherited; no submodule checkout was edited, and
git -C charly status --shortis empty.RCA'd to a mechanism and fixed inside the change. (a)
design-citefailed with 17 findingsbecause a definition moved between files and the records were keyed to its old home — the fix
is the re-anchoring and the regenerated baseline, pasted above; the missed control was that no
earlier control asked whether a cited definition still lives in the module its citation names,
which is exactly what the twelve name citations now assert. (b)
design-dpatfailed with 10findings — 6 new violations at the plugin path and 4 overstated rows at the spec path — which
is one mechanism seen from both sides, and the fix is the re-emitted census. Zero warnings on
the final gates; nothing separable, so nothing filed (
## Filed issues).--emit-censusemission; the citation record is
design-cite.sh --emit-baseline's own output, not ahand-edit; the currency question is the pin verb's own
MODE=currency; the tag question isdesign-pintag. The twelve citations now point at ONE home per definition, which is the movespec#305made to satisfy this rule rather than a second copy surviving inspec.advanced by the repo's declared verb (
charly task sync) in the wave this session inherited,and the remedy for each red control is the remedy the control itself prints
(
--emit-baseline,--emit-census) — the same command that was red is green afterwards, andthe readings are pasted.
command is changed. Every command pasted above is
git,bash,awk,grepor thecharlybinary built from this tree's own pin.
#Pipeline*defs in
specand the twosdk/workflowkitpaths, and the sweep is a claim-keyed grep overthe ledgers with its KNOWN POSITIVE beside it (the same predicate on
HEAD^, where the rowsstill name the old home), so the absence is a measured one:
The only surviving hits are
CHANGELOG/history, which R5 permits.git status --shortwas run first (the treecarried exactly the four staged gitlinks), no destructive git action was used, nothing was
force-pushed, no hook was bypassed (
core.hooksPathis the repo's ownhooks/, and thepre-commit gate ran and passed), and no other session's work was touched —
git statusisempty after the commit and
git show --stat HEADlists exactly the seven files of the diff.validated at its own boundary rather than eyeballed — the census by
design-dpatagainst thetree it describes, the citations by
design-citeresolving each one AT THE PIN from themodule's own object store, and the pins by
design-pintag. Each control is the one that wouldfail without this change: the before/after pastes above are the two directions.
service boundary — it moves gitlinks and two generated records, and every external read it
performs is
git ls-remote/module-store I/O whose result is pasted, not a mocked service.charlycheckout at thisPR's new pin (
36c2dc4, tagv2026.316.2018) withbash scripts/bootstrap-charly.sh, andcharly versionequalscharly/scripts/calver.sh's derivation for that commit(
2026.316.2018, pasted above).go version -mis deliberately not used as the proof: everycharly build passes
-buildvcs=false, so the binary carries no VCS stamp to read. No newruntime OS dependency is introduced.
disposable: truetarget is touched or needed. Thechange class is a pin/ledger change, whose gate is the repo's own pin gate plus the DESIGN
control set — both run on the committed tree this PR pushes, pasted above with zero warnings.
The live run a runtime change would owe has no subject here: no image, candy, or service
definition changes.
them; the audit was read from the index (the
git ls-treepaste above), no submodule filewas edited, and currency — not merely consistency — was asked before and after, with the
0 of 409final reading pasted.Change classification
design/*.tsvthey force../charly/bin/charly task verify(the umbrella's own pin gate: the pin contract andthe currency question) and
bash scripts/design-check.sh(the seven DESIGN controls). Bothpass on the committed tree; no
disposable: truebed belongs to this class.fully tested and validated— the change-class gates passed on thefinal tree, and every command in this body was executed against it or against the pin it
names.
plugin-pipelinewith thisspec.spec'sschema/pipeline.cueno longer declares#Pipeline,#PipelineValue, or the eleven step/trigger/flow defs it was built from, and theplugin's
kindcapability declaresInputDef: "#PipelineValue"— a def that, at the oldplugin pin, came FROM
spec. Composed across the two sides of this wave the declared gate defresolves nowhere, so a
kind: pipelinebody loses its gate. Go consumers break loudly as well:spec.Pipelineandsdk/workflowkit's graph/lower/validate symbols are gone. Fix: moveplugin-pipelineandspectogether (plugin-pipeline≥b32a25e, tagv2026.316.1819,with
spec≥93011816). Rollback:git revertthis one commit — the four producers aremerged and tagged, so the revert moves four pointers and three records back together, with no
data or migration involved.
Filed issues
None filed, and none carried over. The two red controls this round met are the change's OWN
subject and were fixed in it (the re-anchored citations, the re-emitted census), so neither is a
separable finding. The two umbrella issues this scope is tracked under are referenced, not
filed:
#945is the D-PAT census the gate reports every run (unchanged total, four rowsre-homed), and
#950is the one-home half of D-PAT-2 that the move leaves untouched(
dup7 before and after). The producer chain is tracked at its owners —spec#304(the13-unit chain this is unit 1 of),
spec#305andplugin-pipeline#63/#64(the move and itscorpus),
sdk#502(the machinery deletion) andcharly#1126(the corpus sweep's resolver, so the moved body stays judged).Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)