Repository navigation
test(bed): pin the pipeline fixture to a release the current spec can load - #36
Conversation
plugin-migrate's half of the unified builder mechanism (opencharly/sdk#608): spec dropped `aur` from _buildFormat, because aur is a builder, never a box build format. A box's `build: [pac, aur]` is now refused by the schema, so `charly migrate` removes it. - `remove_list_value {key, value, under_kind?}` is a new declarative op (#RemoveListValue in schema/migration.cue, removeListValueDirectChild in engine.go, the one implementation of the arm). It removes every scalar `value` from a direct child key's list. A list the removal empties, or a key whose scalar is exactly `value`, loses the key (its head comment carried over, like delete_key), so the field falls back to its default. It is idempotent. - The `aur-not-a-build-format` step uses it with `{key: build, value: aur}`. It's scoped by value, so a run step's `build: all` verb and a candy's `distro.<tag>.aur:` declaration are never touched. It is a pure PROJECT step: not touches_host, no hook. Tests: reshape_aur_build_format_test.go covers a block list, a flow list, an emptied list, a bare scalar and the defaults list, each idempotent, plus the untouched `build: all` verb and aur declaration. It fails when an emptied list keeps an empty key, and when the op removes nothing. Claude-Session: https://claude.ai/code/session_01Tvdn3vtn8FoWTMqGwqn4ZT Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942 Assisted-by: Claude Code Claude Opus 5.5 (analysed on a live system)
… load `check-migrate-local`'s negative control was red on this host and on `main`. The cause is the fixture's own pin: `plugin-pipeline:v2026.294.1135` no longer loads under the current spec — "provides kind:pipeline but its schema defines no #PipelineValue" — so the pipeline candy is skipped with a warning, `box validate` exits 0, and the control correctly reports that its gate "measures nothing". Pinned to `v2026.324.0037`, the control does what it was written to do: validate exits 1 with `#PipelineValue.concurrency: field not allowed`. The bed is 11 of 11 steps PASS, so #33 is fixed by this pin. *Agent: `kde-cstream` · Claude Code session `25c0bf9d-28ad-4716-bc1b-5ca2118cc942`* *Assisted-by: Claude Code deepseek-v4.1-flash (fully tested and validated)*
Review — BLOCKHead SHA: Change class: Go plugin module (candy) with one disposable bed ( Blocks
(No security finding: no secrets, no scope mismatch — the diff matches the stated change; the go.mod/go.sum additions are transitive pins of the named sdk/spec bump.) Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: Go plugin module (candy) — new Security screen: PASS — no secrets/exfiltration, no guardrail weakening (the Comment dispositions
Blocks
(Non-blocking note — rulebook gap, not a block: the added Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: Go plugin module (candy) — new declarative op Security screen: PASS — no secrets/exfiltration; the Comment dispositions
Blocks
(Non-blocking: the body pastes the bed run and the throwaway-project run twice each — harmless redundancy, worth trimming.) Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: Go plugin module (candy) — new declarative op Security screen: PASS — no secrets/exfiltration; the Comment dispositions
Blocks
(Non-blocking, rulebook gap: the added Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review block on #36: the declared bed never created a `build: [pac, aur]` list, so the `remove_list_value` arm could not fire and the green bed proved nothing about the new step. The only live proof was a throwaway-project run with no fixture in the gate. - `migrate-aur-build-list` now builds the config the schema refuses — a box with `build: [pac, aur]` — alongside a run step's `build: all` verb and a candy's `distro.arch.aur` declaration, runs `charly migrate`, and requires the step to have fired, the list to become `[pac]`, and both other shapes to be untouched (the op is scoped by VALUE). - `migrate-aur-build-list-idempotent` proves a second run is a no-op. Measured both ways on this tree: with the driver built from this branch (`scripts/bootstrap-charly.sh --dev-plugin plugin-migrate=…`, a DEV BUILD resolving the compiled-in plugin from this checkout) the check PASSES and the bed is 13/13; with a plain driver (charly's pinned plugin-migrate) the same check FAILS, so the arm cannot pass vacuously. Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942 Assisted-by: Claude Code deepseek-v4.1-flash (fully tested and validated)
Review — PASSHead SHA: Security screen: PASS Comment dispositions (re-derived against the current body/diff):
Non-blocking notes (cosmetic, do not affect the verdict):
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
charly migrateremovesaurfrom every boxbuild:list (opencharly/sdk#608). spec#420 madeaura manager declaration, never an OS package format, so a box carryingbuild: [pac, aur]is refused by the schema; this step repairs it.remove_list_value {key, value, under_kind?}: it removes every scalarvaluefrom a direct child key's list. A list the removal empties — or a key whose scalar is exactlyvalue— loses the key, with its head comment carried over, so the field falls back to its default. It is idempotent, and it never touches abuild: allrun verb or a candy'sdistro.<tag>.aurdeclaration, because it matches the VALUE and only at a direct child key.aur-not-a-build-formatstep uses it with{key: build, value: aur}. It is a pure PROJECT step: no host touch, no hook.The bed is green on this head and now exercises this step.
check-migrate-localgained two arms —migrate-aur-build-list(the refusedbuild: [pac, aur]config, alongside abuild: allrun verb and adistro.arch.aurdeclaration that must survive, plus the[pac]result) andmigrate-aur-build-list-idempotent— so the bed fails without the step instead of asserting the engine's coverage in prose. The negative control it previously failed is still what makes it meaningful: the fixture pinsplugin-pipeline:v2026.324.0037, the release the current spec can load, sobox validaterejects the retiredconcurrency:grammar again (#PipelineValue.concurrency: field not allowed) instead of skipping the pipeline candy and passing. #33 is fixed by that pin.Also in this change.
schema/migration.cuegains#RemoveListValueandmigrations.cuethe step, so the op is data in the same table every other migration uses.#CandyValue.builddisjunction for one more format:With the control box removed from that same copy, the same command reports:
So the refusal is the
build:list and nothing else about the fixture.Dependencies.
go.modmoves thegithub.com/opencharly/sdkandgithub.com/opencharly/specpins to the merged, tagged versions named in the diff below, and nothing else of substance;go.sumrecords exactly those modules. The rest of its diff, andgo.sum, follow from those pins. The real diff:Class and gate. This repo declares one disposable bed,
check-migrate-local— a disposablelocal:deploy whosecheck:steps runcharly migratehost-side against scratch projects. One of those projects is now thebuild: [pac, aur]config this step exists to repair, so the bed fails when the step is absent. Its driver is rebuilt for the run (the recipe is in "How tested"), and both the red and the green run are pasted below.How tested
Every gate command, on the pushed head
386aab68f8002ecc077a5cbb9fe31685065169e4,GOWORK=off:Each new rule's test fails with the rule reverted. Applied on
386aab68f8002ecc077a5cbb9fe31685065169e4, each file restored afterwards. Verbatim:Disposable targets and check nodes in this repo, measured on this head:
The bed, measured both ways on this head. The driver is rebuilt each time from this tree's charly: the RED arm with a plain build (charly's pinned
plugin-migrate), the GREEN arm with./scripts/bootstrap-charly.sh --dev-plugin plugin-migrate=<this checkout>, which is aDEV BUILD — NOT A RELEASE BUILDresolving the compiled-in word from this source.CHARLY_PLUGIN_DIRcannot do this: acompiled_plugins:word never reaches an out-of-process provider binary (measured — a marker script behind that manifest was never invoked). Verbatim, red first:Rulebook compliance
/charly-internals:git-workflow,/charly-internals:plugin,/charly-internals:go,/charly-internals:strict-policy.sdk) instead of restated here.git statuswas clean before the push;feat/branch off freshorigin/main; no force-push.goruns against the tree.plugin-migrateis this checkout (--dev-plugin), and 12 PASS / 1 FAIL —migrate-aur-build-list— with a plain driver, so the new arm is proven able to fail. The previously-red negative control stays green (its fixture pinsplugin-pipeline:v2026.324.0037, the release the current spec can load). The class gate is green.Change classification
check-migrate-local).analysed on a live system— the changed path ran through the module suite with its output retained; the bed run below covers the engine live.!marks the pin jump, not a wire change; the plugin's served ops and their meanings are unchanged. Rollback: revert this squash commit and re-tag.Filed issues
None new. #33 is FIXED by this PR, not carried: its negative control pinned
plugin-pipeline:v2026.294.1135, a release the current spec can no longer load, so the control measured nothing; the pin tov2026.324.0037restores it. The only pre-existing item left is #31 (unrelated reformatting incharly migrate's output), which this change neither causes nor widens.Agent:
kde-cstream· Claude Code session25c0bf9d-28ad-4716-bc1b-5ca2118cc942Assisted-by: Claude Code deepseek-v4.1-flash (analysed on a live system)