Repository navigation
feat(builders)!: adopt the unified builder chain's tags - #1231
Conversation
…-section trigger charly's half of the unified builder mechanism (opencharly/sdk#608): Embedded vocabulary (charly/charly.yml): - The arch distro's `format.aur` is deleted. aur is a builder, never a distro format, so there is no second install road (`pacman -U` from a format template) and no `secondary` format. - `builder.aur` drops `detect_config`. A candy declares its aur packages under a distro tag; the image honours them when its tag chain selects the tag. The authored builder nodes gain nothing. What a builder installs (its payload, aur's per-candy pac packages) is the builder plugin's own declaration, never authored here (DESIGN.cue #BuilderAlt, D-IR-7). - The aur host template stages into the candy's own package directory (the plugin-declared `{{.PkgDir}}`) and fails when yay built nothing, in place of a `|| true` search across three caches. The host walk stamps `LoadedProject.EmbeddedDefaultsDigest` (the SHA-256 of the embedded charly.yml), so the materialized-tree cache re-keys when this binary's vocabulary changes. Before, this very cutover's vocabulary edit was served from a stale cache entry: TestDeployCompileParity failed on a warm cache and passed against an empty CHARLY_CACHE_DIR. Pinned by TestHostWalkStampsTheEmbeddedDefaultsDigest, which fails with the stamp removed. golden-compile computes the builder collect input through sdk's one constructor (deploykit.BuilderCollectInputFor) and carries the plugin-declared package output, exactly as the deploy pre-pass does. Against origin/main the regenerated golden differs only by the teardown fix: pre-commit's npm step records `npm-uninstall-g markdownlint-cli` (it was empty before). The fixture tags move with it, as the tool records them. Tests follow the data: - no aur format (arch formats, AllFormatNames, ValidFormat, PrimaryFormat); - aur declarations on the arch tag section's managers; - builder scope read from the step's plugin-declared package; - an arch box needs an aur route with no `build:` opt-in; - the embedded builder nodes author no install behaviour (TestEmbeddedBuildersAuthorNoInstallBehaviour). It caught stale copy_artifact and copy_binary entries in testdata/build.yml, now removed. TestOCITargetEmitBuilderMultiStageViaPlugin asserted the defect it now guards against: it required a multi-stage builder step to emit `FROM <builder> AS <stage>` into the step stream, which put that stage mid-overlay. It now asserts the step renders no stage; the image hoists it. The test that pinned the old silent skip (an arch box without `aur` in `build:` ignoring an aur declaration) is deleted: that is the defect this cutover removes. 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)
charly's leg of the unified builder mechanism (opencharly/sdk#608). Every producer tag this leg needs is merged, so the pins move: - sdk v0.2026326.825 (sdk#614), spec v0.2026326.408 (spec#421); - plugin-fleet and plugin-loader v0.2026326.842, plugin-installstep v0.2026326.802, plugin-builder-aur and plugin-builder-cargo v0.2026326.746, plugin-builder-npm v0.2026326.744, plugin-builder-pixi v0.2026326.834, plugin-mise v0.2026326.858, plugin-box v0.2026326.938, plugin-builder v0.2026326.951, plugin-deploy-pod v0.2026326.1256. plugin-migrate stays at its current pin: nothing in it uses a removed API, and its own leg (plugin-migrate#36) is an independent change. `TestEmbeddedBuildersAuthorNoInstallBehaviour` no longer asserts that the embedded builder nodes author no `copy_artifact`/`copy_binary`: spec#421 removed those fields from `#Builder`, so the absence is a property of the schema now, and an assertion on a field that cannot exist would not compile. What the test still proves is the aur host template's own output guard. *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: product code (charly core) + embedded-defaults config + dependency-pin bump — not docs-only, so a fresh-rebuild runtime gate is required. Security screen: PASS — no secrets/egress/guardrail-weakening; the Blocks
Comment intake: 0 comments — nothing to disposition. Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: product code (charly core) + embedded-defaults config + dependency-pin bump — not docs-only, so a fresh-rebuild runtime gate is required. Security screen: T3 scope-mismatch — the body's pin table claims Blocks
Comment intake: the prior bot comment (by @github-actions[bot]) — finding #1 (body describes a smaller PR) is stale-superseded: the current body accounts for the first commit, all nine test files, the digest mechanism, golden-compile, and the parity goldens. Findings #2 (pin table), #3 (R11 digest), and #4 (live proof/tier) are verified-blocking and reproduced above. Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: product code (charly core) + embedded-defaults config + dependency-pin bump — not docs-only, so a fresh-rebuild runtime gate is required. Blocks
Comment intake
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — PASSHead SHA: Security screen: PASS — no secrets/egress/guardrail-weakening; the Comment intake:
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
`box/arch` is a corpus the charly test suite validates against this tree's own schema (`TestCueBox_Corpus`, and the `pin-currency` job). At `v2026.325.1112` its `arch-test` box carries `build: [pac, aur]`, which the pinned spec no longer accepts now that `aur` is a builder (opencharly/sdk#608), so the corpus reads as ten errors in an empty disjunction. The submodule moves to `v2026.326.1455` (distro-arch#77), the release whose `arch-test` carries `build: [pac]` and keeps its `builder: aur: arch-builder` route. The gitlink is updated in the index without materializing the submodule (the directory is not checked out in this worktree). `box/cachyos` moves in the same cutover once opencharly/distro-cachyos serves the release carrying its own `build:` correction; it is the other half of the same corpus, and the two must land together for the corpus check to be green. Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942 Assisted-by: Claude Code deepseek-v4.1-flash (analysed on a live system)
…anism
Found by measurement, not review: a probe box on the cachyos base declared one AUR
package, the build went green, and the package was not in the image. The generated
Containerfile copied the payload and installed nothing, because the build served
`plugin-builder-aur:v2026.271.2317` — a release older than the unified contract, whose
OpResolve reply carries a payload but no `BuilderPackageOutput`. That is opencharly/
sdk#615 exactly, and it is what this commit removes.
- The four detection builders and mise move to their UNIFIED releases
(plugin-builder-{pixi,npm,cargo,aur}, plugin-mise). The `charly-dev` candy is the
connect path's pass-1 source for them, so these pins are what the binary serves a
project that does not declare them itself — which is every project.
- The `arch:` import moves v2026.324.0908 -> v2026.326.1455, the distro-arch release
whose `arch-test` carries `build: [pac]`. At the old pin the whole tree is refused at
load time (`#CandyValue.base: field not allowed` is the cascade of the `build:`
disjunction), so this is a floor.
`box/arch` moved in the previous commit; `box/cachyos` still waits on the distro-cachyos
release that carries the same `build:` correction (opencharly/distro-cachyos#232), and
until it moves the corpus check reports that submodule's boxes and nothing else.
Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942
Assisted-by: Claude Code deepseek-v4.1-flash (analysed on a live system)
…tover opencharly/distro-cachyos#232 merged and tagged `v2026.326.1804`: `aur` is out of its boxes' `build:` lists, its CDI base declares the `aur` route, and it imports the same distro-arch generation this tree pins. - `box/cachyos` gitlink moves to that release, the second half of the corpus pair with `box/arch` (moved in `5ec71195`). The gitlink is updated in the index; the submodule is not materialized in this worktree. - the `cachyos:` import moves `v2026.324.1709` -> `v2026.326.1804`. This is the pin the loader actually reads for the imported namespace — with only the gitlink moved, the old tag's `charly-selftest` was still refused (`build: [pac, aur]`). `charly box validate`: OK — 469 candies, 122 boxes, 52 deploys, 6 distros, 7 builders; 0 warnings, 0 errors. Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942 Assisted-by: Claude Code deepseek-v4.1-flash (analysed on a live system)
# Conflicts: # charly.yml
Review — PASSHead SHA: Security screen: PASS — no secrets/egress/guardrail weakening; the Comment intake (all re-derived against current body + diff):
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
CI's "Test tools modules" caught what the module gate I ran locally did not: the five `tools/` modules carry their OWN `github.com/opencharly/sdk` / `github.com/opencharly/spec` requirements, and they were still on the pre-cutover releases. `tools/golden-compile` then failed to build — `deploykit.BuilderCollectInputFor` and `kit.BuilderPackageOutput` do not exist in the old sdk — and `tools/gomod-canonical`'s `TestContractPinsMatchShared` failed with exactly that diagnosis, naming the remedy. Ran `charly task mods-tidy` (the repo's own one implementation for this) on this head: it adopts the shared pins in every lockstep module and tidies, so go.mod AND go.sum stay in step. Three modules changed (`generate-packages`, `golden-cloudinit`, `golden-compile`); `gomod-canonical` and `ledger-validate` already matched. Verified locally the way CI runs it — `go build ./...` and `go test ./...` in EVERY `tools/*` module, not only the core one: ``` tools/generate-packages/ -> no test files tools/golden-cloudinit/ -> no test files tools/golden-compile/ -> no test files (builds: the undefined identifiers are gone) tools/gomod-canonical/ -> ok TestContractPinsMatchShared tools/ledger-validate/ -> ok ``` 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: product code (charly core vocabulary + digest + tests) + dependency-pin bump + tools-module pin bump/refactor — not docs-only, so a fresh-rebuild gate is required. Security screen: PASS — no secrets/egress, no guardrail weakening. The Blocks
Non-blocking note
Comment intake
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: product code (charly core vocabulary + digest + tests) + dependency-pin bump + tools-module pin bump/refactor — not docs-only, so a fresh-rebuild runtime gate is required. Security screen: PASS — no secrets/egress, no guardrail weakening. The Blocks
Comment intake (re-derived against the current body + diff)
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — PASSHead SHA: Security screen: PASS — no secrets/egress; the Comment intake (all re-derived against current body + diff):
Non-blocking note (verified): the AUR probe block pastes Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
charly's leg of the unified builder mechanism (opencharly/sdk#608). Five commits plus one merge of
origin/main(charly#1236 advanced the same CachyOS import line; the resolution keeps this branch's newerv2026.326.1804, which contains that release), all accounted for here — the vocabulary, the module pins, and three pin commits that make the corpus and the out-of-process builder plugins agree with it.Commit 1 (
93d1e4b): aur is a builder like npm. The embedded vocabulary (charly/charly.yml,charly/testdata/build.yml):format.auris deleted, so there is no second install road (pacman -Ufrom a format template) and nosecondaryformat or its cache mount;builder.aurdropsdetect_config, because a candy declares its aur packages under a distro tag and the image honours them when its tag chain selects the tag — the authored builder node gains nothing;{{.PkgDir}}) and fails whenyaybuilt nothing, in place of the|| truesearch across three caches.Its supporting changes:
charly/embed_defaults.gogainsembeddedDefaultsDigest(),charly/loader_threaded.gostampslp.EmbeddedDefaultsDigest, andcharly/embed_defaults_digest_test.gopins it — the materialized-tree cache key must change when the embedded vocabulary does;tools/golden-compile/main.gofollows the new builder input, andcharly/testdata/deploy_compile_parity_golden.json(newreverse_ops/packages) plusdeploy_compile_parity_tags.jsonrecord it;apk_host_install_cell_test.go,build_target_oci_test.go,candy_test_helpers_test.go,distro_cascade_test.go,embed_defaults_test.go,format_config_test.go,install_plan_test.go,layers_test.go,validate_fixture_test.go.Commit 2 (
6f0f1b8): the pins move to the merged, tagged producers.Pins.
go.modmoves exactly seven requirements, and the diff is the list (nothing else in it is a dependency change):The builder-word plugins (aur, cargo, npm, pixi, mise) and plugin-deploy-pod are not required by this module, so their tags do not appear here; they serve out of process.
plugin-migrate stays at its current pin, deliberately. Its module uses no removed API, which the build below proves; its own leg (plugin-migrate#36) adds a migrate step and is independent of this pin.
format_config_test.gochanges in four places, all the same move. The arch distro no longer carries anaurformat (archResolved.Format["aur"] != nilis now the ERROR case), the format list dropsaur(apk, deb, pac, rpm),dc.ValidFormat("aur")is asserted FALSE, andTestAurBuilderDetectConfigis deleted with thedetect_configfield it tested. All four follow from commit 1's vocabulary change; none is a loosened assertion.Commit 6: every in-repo module adopts the shared pins. (
tools/golden-compile/main.goitself changed in commit 1 — it follows the new builder input — so its behaviour is proven by a run on this head, not by the pin bump.) The fivetools/modules carry their OWNsdk/specrequirements. CI's "Test tools modules" job caught them still on the pre-cutover releases:tools/golden-compilefailed to BUILD (deploykit.BuilderCollectInputForandkit.BuilderPackageOutputdo not exist in the old sdk) andtools/gomod-canonical'sTestContractPinsMatchSharedfailed naming the remedy.charly task mods-tidywas run on this head — the repo's own one implementation — so go.mod and go.sum moved together in three modules (generate-packages,golden-cloudinit,golden-compile), and all five build and test clean locally (gomod-canonicalandledger-validatepass, the other three have no test files;golden-compilebuilds).On that same head, the way the CI job runs it — every
tools/*module, plus the tool that regenerates the parity goldens:Commits 3-5: the pins that make the corpus and the plugins agree.
5ec71195—box/arch→v2026.326.1455. The corpus test and thepin-currencyjob validate that submodule against this tree's own schema; at the old pin itsarch-testcarriesbuild: [pac, aur], which the new spec refuses.bc3d052f— the out-of-process builder plugins and thearch:import.plugin-builder-{pixi,npm,cargo,aur}andplugin-misewere pinned at releases older than the unified contract; a project that does not name them itself gets them from the connect path's pass-1, which reads exactly this pin list. Measured, not inferred: a probe box declaring one AUR package built green and shipped an image without the package, becauseplugin-builder-aur:v2026.271.2317returns a payload and noBuilderPackageOutput(a builder plugin older than the unified contract makes a package vanish silently: payload copied, never installed sdk#615). Thearch:import moves tov2026.326.1455for the reason above.0e067062—box/cachyosand thecachyos:import →v2026.326.1804, the distro-cachyos release carrying its own half of this cutover (feat(boxes)!: aur is a routed builder in this repo's boxes, and the imports move to the releases that agree distro-cachyos#232, merged). The gitlinks move in the index; the submodules are not materialized in this worktree. The import is the pin the loader actually reads — with only the gitlink moved, the old tag'scharly-selftestwas still refused.charly box validateon this head, warm and with an emptyXDG_CACHE_HOME(identical both times): OK — 463 candies, 115 boxes, 52 deploys, 6 distros, 7 builders; 0 warnings, 0 errors.TestCueBox_Corpuspasses locally on the same head (it runs insidego test ./...above).How tested
The full gate, on the pushed head
8fdcb218168a42b64feed65bf85dbf6f244a9aa7(GOWORK=off,GOTOOLCHAIN=go1.26.8):The binary under test is the source under test (R9):
scripts/bootstrap-charly.shrebuilt it from this commit, andcharly versionreports2026.326.1821.The overlay builder path, live, on this same binary. The bed in opencharly/plugin-deploy-pod (
check-overlay-builder, a disposable pod) drivescharly deploy addon a pod whoseadd_candyneeds the npm builder, then asserts that the rendered overlay Containerfile carries the builder stage before its mainFROMand the payloadCOPYafter it, and that the overlay image builds:That bed's fixture was incomplete when this leg first re-ran it on the new binary: it ensured its BUILDER image but not its
overlay-baseimage, so a host without that base stopped atimage not found in local storage: overlay-base. Fixed in opencharly/plugin-deploy-pod#90 — the ensure step now builds and asserts both — and the run pasted above is on the fixed bed.The AUR path, end to end, driven by this binary. The probe bed in opencharly/distro-cachyos —
check-aur-probe-pod, adisposable: truepod — builds a box on the cachyos base that composes ONE candy declaring a single AUR package. The box has noaurin itsbuild:list and nobuilder:map of its own, so the only way it can go green is the mechanism this PR ships: the base routesaur, the builder stage runs, and the builder's reply carries the package into the image. Driven here by the binary rebuilt from the head below:That run is what found opencharly/sdk#615 in the first place: without the plugin pins in
bc3d052fthe same bed built a green image with noyayin it.Rulebook compliance
/charly-internals:git-workflow,/charly-internals:go,/charly-internals:plugin,/charly-internals:install-plan.tools/modules still on the old contract pins (CI caught it after I had run only the core module's gate — the missed control was not reproducing every required CI job locally; fixed in8fdcb218by the repo's owncharly task mods-tidy, and everytools/*module is now built and tested locally the way CI does it); the test that could not compile (spec#421 removed the fields it asserted on) is fixed here; the builder plugins being served below the unified contract is reproduced, fixed at the pin, and recorded on a builder plugin older than the unified contract makes a package vanish silently: payload copied, never installed sdk#615; and thelayer-charlybuild break that cost this PR its selftest bed is filed as layer-charly's pinned charly package conflicts with charly-minimal on the next layer's pacman -Syu layer-charly#23 with its verbatim log.git statusclean;feat/branch offorigin/main; no force-push.2026.326.1821), and the live bed below is driven by it.8fdcb218168a42b64feed65bf85dbf6f244a9aa7, and the livecheck-aur-probe-podrun on the same source through the binary built from it (charly version=2026.326.1821). The probe bed'sskipped_checks=8is one thing counted eight times, not eight gaps: the only two skipped checks areaur-builder-module-presentandcachyos-os-skills-no-install-content, both declaredcontext: [build], and they are evaluated in each of the four runtime steps (check-live,feature-run,check-live-rebuild,feature-run-rebuild), reporting[build] -> not active in live modeevery time. Every runtime check that could run did run and passed.buildernode, the payload is the plugin's), D-PLUG-2 /#BuilderAlt, and D-STORE-3 (the materialized-tree cache is content-addressed, so the embedded vocabularies are part of its key —embeddedDefaultsDigestis what makes that true). Nothing moves further from DESIGN.Change classification
fully tested and validated— the module gate (gofmt/build/vet/tests/lint) and the corpus validate pass on this head with zero warnings, and the aur path the vocabulary changes is exercised live bycheck-aur-probe-pod, driven by the binary built from this head: the builder stage runs, its payload reaches the image, and the package runs inside the deployed pod. The cache re-key is covered byembed_defaults_digest_test.go.Filed issues
check-aur-probe-pod(opencharly/distro-cachyos), driven by the binary from this head, builds a box composing an AUR-declaring candy through the builder stage and asserts the package in the image and in the deployed pod.BuilderPackageOutput; the render copies the payload and installs nothing. Reproduced through that probe bed on the released pins, under fully isolated XDG dirs. This PR's plugin pins are the project-side fix; the default resolution still needs one.layer-charly's pinnedcharlypackage conflicts withcharly-minimalon the next layer's blanketpacman -Syu, so every image composing it fails to build — which is why this PR's live proof is the AUR probe rather thancheck-charly-selftest-pod.Agent:
kde-cstream· Claude Code session25c0bf9d-28ad-4716-bc1b-5ca2118cc942Assisted-by: Claude Code deepseek-v4.1-flash (fully tested and validated)