Repository navigation
fix(deps): weld plugin-migrate v0.2026294.1337 so charly migrate emits a loadable pipeline - #1020
Conversation
…s a loadable pipeline charly's module graph pinned github.com/opencharly/plugin-migrate/candy/plugin-migrate v0.2026280.2238 — two releases behind the reshape that makes `charly migrate`'s own output loadable (plugin-migrate#22 -> v2026.294.0359, #24 -> v2026.294.1337). The compiled-in `command:migrate` is a Go module pin, so no released charly could reach the fix: the shipped reshape emitted a lifted verb as bare step-level sugar, declared the pipeline arg with an invalid `type:`, left the retired per-lane `$pr` unbound, and flattened `concurrency: {lanes: N}` into an inert `config:` knob — so the file it wrote failed its own loader with `plan[0] has no intent keyword`. The pin moves to the released v0.2026294.1337 (fetched, re-resolved to e4980779, whose tree is the tree PR #24 passed on), and go.sum carries its two hashes. `go mod tidy` moves nothing else, `go.work` does not move (its `go` directive follows go.mod), and the tag requires sdk v0.2026270.1147 / spec v0.2026270.938 — older than this repo's pins, so no transitive raise and no toolchain directive move. One new R10 bed, check-migrate-local, witnesses the DELIVERY (no bed in this repo drove `charly migrate`): a committed fixture carries the retired `kind: pipeline` grammar (`stages:` + a lifted-verb `kind:` + a `$pr` reference + `concurrency: {lanes: N}`). Step 1 is the negative control (the retired spelling is refused, naming both retired keys); step 2 copies the fixture, migrates it, asserts every emitted-shape clause (intent label with the verb key as its sibling and no bare sugar, the pooled lane arm, the `prs:` collection arg with no invalid `type:`, and the `$pr` -> `$pr.stdout` rebinding) and then loads it with `box validate` rc=0. The same step text against the pre-bump binary fails at the intent-label assertion. Closes #1018 Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
Review — PASSWhat the PR doesA one-line module-pin bump ( Per-file verification
Body honesty / consistency
TestsThe added bed is the correct witness for a module pin whose only observable is the emitted document: it validates the artifact at its real boundary (re-read by the same binary's Security / scopeNo secrets, no injection surface, no privilege change. The fixture's single CommentsThe comment thread is empty — no maintainer/operator sign-off exists, and none is required since the change stands on its own pasted evidence. Minor, non-blocking observations
Neither affects correctness of the pin bump or the witness. Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Head
114b2a49fb9c6f3ec7debe61a2c67547970bb7e3(branchfeat/plugin-migrate-2026.294.1337).Summary
charly's Go module graph pinned theplugin-migratemodule atv0.2026280.2238— two releases behind the reshape that makescharly migrate's OWN output loadable (plugin-migrate#22→v2026.294.0359,#24→v2026.294.1337).charly migratedispatches itspipeline-lobster-syntaxop to that COMPILED-IN plugin, so no releasedcharlycould reach the fix: the file it wrote failed its own loader, and every consumer running the shipped command inherited the defect (opencharly/eval-omarchy#91carries the consumer side).plugin-migratemodule pinv0.2026280.2238v0.2026294.1337charly/go.sum/go.modhash is byte-identical to the old one, so the dependency SET did not changecheck-migrate-local+ its fixturecharly migrate, so the pin's only observable — the document it emits — had no witnessWhy
v0.2026294.1337and not a later tag. It IS the last Go tag on the repository: the only two2026.294Go tags are.359and.1337, and.1337is the tip.main(fd9ab28) is that tag plus exactly one CHANGELOG commit, somain's code and the release are the same code — and a pin must name a TAG, never a branch, so the release is the only correct value. The Go module tags live under the plugin'scandy/plugin-migrateprefix and are a different namespace from the repository's release tags (v2026.294.1337); therequireline names the module tag, which is whatgo.sumrecords. The tag's tree is identical to the tree the validator PASSed onplugin-migrate#24(8bebf7e), so what lands here is the reviewed code.What the bump does not drag in, measured rather than assumed. The tag requires
sdk v0.2026270.1147andspec v0.2026270.938— both OLDER than this repo'sv0.2026294.1520/v0.2026294.929— so MVS keeps charly's newer pins and raises nothing:go mod tidymoves exactly onego.modline and twogo.sumlines,go.workdoes not move (itsgodirective followsgo.mod, which is unchanged), and the reshape's non-stdlib imports aregopkg.in/yaml.v3alone. There is no companion transitive, toolchain, or second pin to carry — unlike#1017, whose sdk raise moved grpc and dragged a Go fix with it. This is a ONE-part cutover, and the pin is the whole of the module change.The emitted shape, named. The same fixture through the two binaries, every clause of the reshape's output (each count re-derived in How tested):
.2238).1337)plan:whose element is- agent:— bare step-level sugar, no intent- run: assesswithagent:as its SIBLINGargs: pr:carryingtype: string(not allowed by#TaskParamSpec)args: prs:carryingdescription:onlyconcurrency: {lanes: N}config: {lanes: 16}id: lane,lanes:,batch_size: 16,item_var: pr, nestedsteps:$pr$pr.stdoutbox validateon the emitted documentrc=1,plan[0] has no intent keyword (run/check/agent-run/agent-check/include)rc=0,box validate: OKWhat this does NOT unblock, and the order that does. On
eval-omarchy's tree the next named defect is that repo's OWN pin, not the reshape:pipeline: entity has no stages, raised byplugin-pipeline:v2026.272.0332— the retired executor, whoseOpValidatestill demandsstages:. Moving that pin is a second leg, in that repo, and is not folded in here. Moving it to the newest releasedplugin-pipeline(v2026.294.2124) clears exactly that error and exposes two more, both already tracked: the newestplugin-pipelinetag AND itsmainstill weldsdk v0.2026294.1003, which predates the${env.NAME}-in-a-when:fix (sdk v0.2026294.1431;opencharly/plugin-pipeline#55), and one$report.reference thatsdk#443REFUSED by design so the consumer must author the value at its leaf. Because of that,eval-omarchy's three skill bodies stay UNMOVED here: its manifest still does not load, and extracting bodies into a treebox validaterefuses is the dual state this migration programme exists to remove.opencharly/eval-omarchy#91gets a STATUS with these measurements before this push.How tested
Every gate below ran on the committed tree
114b2a49, driven by the worktree-local CalVer build./bin/charly— never a shared install.Provenance, the diff, and the binary's own dependency record.
2026.295.0704is HEAD's own CalVer:09:04:37+02:00is 07:04 UTC on day 295, and the stamp is derived from the commit, never from the wall clock.plugin-box v0.2026294.21beside it is the sighted validator the brief named — this build CAN see abox validatefailure, and it reports one below.git status --shortis empty AFTER the build, so the bootstrap's regeneration ofcharly/plugins_generated.goandgo.workis a byte-identical no-op.The pin, fetched and re-resolved before it was used. A prior leg in this programme twice reported a pin read from an un-fetched ref, so the tag is fetched and re-resolved here, and its tree is compared with the tree the validator PASSed on
plugin-migrate#24(8bebf7e). The tag name lives in a shell variable so the fences stay about the RESOLUTION:The tag is the TIP of its series — the reason it is not some later tag. Every
2026.294Go tag on the remote, with the ref path stripped, so the comparison is of tag NAMES and not of a filtered list:A
go buildresolves the tag through the MODULE PROXY, so the proxy's own provenance record is pasted too, not just git's. The first fetch's-xtrace recorded200 OKfor the.zipand for its sum.golang.org lookup; the cache it left behind is durable proof that the proxy resolved the pin to the fetched commit, and its hash IS thego.sumhash:The pin is the whole of the module change, and the tag's own requirements are why.
The Go gate on the final tree —
gofmt,go vet, the repo's owngolangci-lint v2.13.2, and the full suite.go vetalone sees neithererrorlintnorSA1019, so the lint step is in the gate by name:This repository's own manifest gate, on the committed tree.
49 deploysis48plus this PR's bed, so the new entity is loaded by the gate that reads the manifest.R10 — the change-class bed, on the committed tree. The change is a module pin whose only observable is the document
charly migratewrites, and no bed in this repo drove that command, so this PR adds its witness.check-migrate-localis a disposablekind: localdeploy onhost: localthat copies the committed fixture, migrates it, and loads the result:The two figures are two surfaces, not one:
steps=6is the run's PHASE count (deploy-add,bring-up-members,check-live,update,cleanup,cleanup-members), and2 steps: 2 passedis the PLAN steps executed insidecheck-live. Zero skipped, so nothing passed vacuously.R7 — the negative control, and the coverage fails without the change. The control is the BINARY: the bed's two step bodies are extracted byte-identically from the committed
charly.ymland run against the pre-bump build (2026.295.0418, plugin-migrate.2238) and the post-bump build (2026.295.0704,.1337). Only${CHARLY_BIN}differs:Step 1 is the negative control proper, and it passes on BOTH binaries: the committed fixture's retired spelling is refused, naming
stages: field not allowedANDconcurrency: field not allowed, so the fixture is genuinely pre-cutover and step 2's pass is not vacuous. Step 2 is the discriminator: the pre-bump build fails it, the post-bump build passes it.The emitted document at its real boundary, both binaries, the committed fixture. Each clause the bed asserts, counted on the two emissions (the migration output, BEFORE any load):
The proof that matters: OLD to NEW on
eval-omarchy's own tree. One clone ofopencharly/eval-omarchyat itsmain(4a2625fa, the commitopencharly/opencharlyrecords), copied twice — NOTHING edited in the submodule — and the two binaries driven throughmigratethenbox validate:So the reshape's defect inverts on the SAME tree: the shipped build emits 10 bare old
kind:verb keys with 0 intent-labelled plan steps and 2 invalidargs.type:lines, and validate answersplan[0] has no intent keyword; the new build emits 0 bare keys, 12 intent-labelled- run:steps and 0 invalidargs.type:, and validate moves to a DIFFERENT, narrower defect —pipeline: entity has no stages, which iseval-omarchy's OWNplugin-pipeline:v2026.272.0332pin (the retired executor), not the reshape. Both arms' pre-migrate state is identical, so neither started from a different document:Whether
eval-omarchy'splugin-pipelinepin must also move — measured, not inferred. On the SAME migrated tree, changing ONLY that one pin flips the defect from the retired executor's refusal to the two remaining load-time failures:So YES, that pin must move — the retired executor cannot load a
steps:entity at all — and it is a SECOND leg in that repo, not folded in here. That leg is itself blocked by a producer: the newestplugin-pipelinerelease still weldssdk v0.2026294.1003, while the${env.NAME}-in-a-when:fix issdk v0.2026294.1431(opencharly/plugin-pipeline#55), and one$report.site is refused by design (sdk#443) so the consumer must author that value at its leaf.Why the three skill bodies stay where they are — measured.
eval-omarchyhas no.agents/skills/tree and no per-candyskillsdirectory; its three skill entities still carry inlinecontent:in thecandy/eval-prmanifest, so they sit at NEITHER base the migration targets, and its manifest does not load:Umbrella consistency, as a separate repository's own gate.
charly task verifyinopencharly/opencharly— which this PR does not modify, and whosecharlygitlink still records the pre-#1017merge — reports 20 steps with one pre-existing red, the rulebook-vs-live-prompt drift ofopencharly/opencharly#446:Rulebook compliance
/charly-internals:git-workflow,/charly-internals:go,/charly-build:migrateand/charly-check:checkbefore the first tool action, plus this repo's ownAGENTS.mdandcharly/AGENTS.md(Part II refactor(charly): P1 lint/dead/dup rewrite + concurrency & correctness fixes #4), and readopencharly/eval-omarchy#91,opencharly/plugin-migrate#24,opencharly/charly#1015andopencharly/charly#1018in full before touching anything, as the brief required.-F, which is what the commit does. No tree defect; the guard is the control and it fired correctly. (ii) My first OLD-arm bed control was REFUSED by the freshness guard (stale binary detected), becausescripts/bootstrap-charly.shhad regeneratedcharly/plugins_generated.go— byte-identical, newer mtime — so a binary built atc837b661counts as older than a tree that already carries the new bed. That is the guard working as designed and I did NOT bypass it withCHARLY_SKIP_FRESHNESS_CHECK: the control became the byte-identical step text with only${CHARLY_BIN}mutated. Missed control: I had planned a control whose instrument the harness would reject, and only noticed at the refusal. (iii) The bed's first draft asserted thatargs.type:was absent on a fixture that never emitted anargs:block at all — a clause that could not fail. Root fix: the fixture now carries a per-lane$prreference, which is what makes the reshape declare the arg, so all five clauses discriminate (counted above). Findings that are separable are cited, never parked:opencharly/plugin-pipeline#55,opencharly/eval-omarchy#91,opencharly/plugin-pipeline#43,opencharly/plugin-pipeline#37,opencharly/sdk#443.charly migrate's delivery and it reuses the existing bed shape (check-loader-flat-import-local's candylesskind: localtemplate plus a committed fixture) rather than inventing a second harness; the fixture is DATA undercharly/testdata/, which the manifest walk skips, so it cannot shadow a real candy.CHARLY_SKIP_FRESHNESS_CHECK) was refused and the measurement was restructured instead. Every bed assertion captures a command's OWN exit status (rc=$?on an unpiped command), never a pipe's.charly migratenow emits a document its own loader accepts. The consumer's remaining failures are named by the product's own diagnostics and filed, not documented away.#22reshape, and the fixture proves the retired spelling is refused by the loader while the emitted spelling loads.git status --shortis empty on the committed tree (0, pasted); this is this session's own worktree, branched off freshorigin/main(c837b661); ONE commit, amended only BEFORE the first push, no force-push, no push tomain, no hook bypass; and no file outside the four in the numstat is touched.rc=1on the pre-bump binary (no intent label on the lifted verb stage) andrc=0on the post-bump one, on byte-identical step text; and the emitted artifact is validated at its ACTUAL boundary — the emitted document, re-read by the same binary'sbox validate— not by a regex alone. The pre-migrate state is proven identical on both arms of the consumer A/B.kind: localdeploy onhost: local; nothing is mocked and nothing crosses a credentialed service. The fixture's single@githubcandy ref is a pinned plugin fetch — the same mechanism every bed in this roster uses.scripts/bootstrap-charly.shto./bin/charly),charly versionis2026.295.0704= HEAD's CalVer, andgo version -mrecordsplugin-migrate v0.2026294.1337,plugin-box v0.2026294.21andsdk v0.2026294.1520— all pasted. No new runtime OS dependency, sopackaging/is untouched: this pin is a source-build dependency, not a shipped package dependency.rc=0,go vetempty,gofmt -lempty, the repo's owngolangci-lint v2.13.2at0 issues, the disposablecheck-migrate-localbed PASS (steps=6, itscheck-live2/2 with 0 skipped,errors: 0,warnings: 0,ok: true), this repo's ownbox validateatrc=0with zero warnings, and the OLD-to-NEW pair on the consumer tree. Zero warnings anywhere: the only warning string in any log is the allowlisted dev-worktree notice.Change classification
Config plus test data, four files, 171 insertions / 3 deletions.
charly/charly/go.modmoves one module pin;charly/go.sumcarries its two hashes;charly.ymladds one R10 bed (check-migrate-apptemplate pluscheck-migrate-local, 111 lines);charly/testdata/migrate-retired-pipeline/charly.ymlis the 57-line fixture. No Go source line changes, no schema, no skill body, no gitlink, no generated artifact.The behaviour that changes is host-side and single:
charly migrate'spipeline-lobster-syntaxoutput. It affects no image layer, no deploy path and no runtime dependency.Filed issues
No new issue is filed by this leg — the surface is already tracked, and every citation below is a real one:
charly migratestill emits the unloadable pipeline that plugin-migrate#20 was closed for #1018 — this PR closes it. Filed by an earlier leg with the same measurement and RCA; claimed (comment plus assign) before the branch work landed.${env.…}in awhen:is unparseable by the validator that judges pipelines plugin-pipeline#55 — the producer leg that must follow: its newest release ANDmainstill weldsdk v0.2026294.1003, and${env.NAME}in awhen:needssdk v0.2026294.1431. Measured here from the pinned tag's owngo.mod, and it is why the consumer's pin move cannot be completed today.eval-pr-plankeeps theconfig: {lanes: N}knob, and entity-level knobs stay inert until that front-end leg lands.$report.reference is refused BY DESIGN with the replacement named, so the consumer owes the value at its leaf.task verifystep that compares the committed rulebook to the liveAI_REVIEW_PROMPT, a different repository's pre-existing drift.Runtime identity
The attribution uses this runtime's own names, read from the session record rather than guessed.
opencharly/opencharly#538is the issue where the validator's model allowlist was shown to reject this runtime; the footer is unchanged and correct.The delivered system message for this session reads, verbatim: "You are a coding agent powered by the deepseek-v4.1-flash model." — and the runtime context block names the harness itself as
Current DeepSeek Harness implementation checkout: /home/atrawog/.local/share/mise/installs/node/26.11.1/lib/node_modules/@deepseek-ai/dsh/.DeepSeek Harnessis the harness,ollama-cloudthe provider,deepseek-v4.1-flashthe model id.Agent: charly
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)