Repository navigation
feat(pins): the landable state — five consumer pins to their migrated releases, and core's build-selector retirement (leg 10) - #935
Conversation
… releases, and core's build-selector retirement (leg 10)
Five `candy/<name>/` modules advance to the releases that carry the image-builder
contract migration, and core retires the build selector that contract removed. After
this, a charly assembled from `main` builds with no venue substitution and no `replace`
recipe.
Every version is the STRIPPED `v0.<YYYYDDD>.<HHMM>` module form, not the repo's bare
CalVer tag: all five modules live in a `candy/<name>/` subdirectory, and the bare form
404s against the proxy. Each was verified against the merge commit its tag points at:
plugin-build v0.2026286.1121 -> v0.2026287.2220
plugin-clean v0.2026271.2313 -> v0.2026287.2341
plugin-settings v0.2026272.410 -> v0.2026287.2353
plugin-vm v0.2026286.856 -> v0.2026287.2356
plugin-box v0.2026272.2039 -> v0.2026288.503 (tag candy/plugin-box/v0.2026288.503, merge 04397ff289)
`plugin-box` is not an optional companion: it is compiled IN, so a four-pin set is also
unbuildable. That is why this is one five-pin cutover rather than pins plus a follow-up.
By MVS the four contract-advancing pins also move sdk -> v0.2026287.2235 and
spec -> v0.2026287.1848, and the lockstep tools modules are realigned by
`charly task mods-tidy`.
Leg 10 — core's half of the same cutover. The image builder is BuildKit, which is not a
container engine and can never be a member of the closed #EngineName vocabulary, so the
contract carries no builder selector at all and every consumer reads the RUN engine:
charly/dispatch_build_ensure.go BuildEngine dropped from the spec.BuildEnsureRequest
literal, and the now-unused buildEngine parameter
dropped from dispatchBuildEnsure; both call sites
updated (both always passed "")
charly/runtime_config_test.go ResolvedRuntime.BuildEngine -> .RunEngine,
EngineConfig.Build gone,
CHARLY_BUILD_ENGINE -> CHARLY_RUN_ENGINE
Two distinctions the migration had to get right, both caught by running it rather than by
reading it:
* a retired CONFIG KEY is inert (the contract pins that an existing `engine.build:` must
not fail the load) while a retired ENV VAR is not read at all — so tests must clear the
live var (CHARLY_ENGINE_ROOTFUL) where they cleared the retired one, or they leak
ambient config;
* TestResolveRuntime_MixedEngines is CONVERTED, not deleted: its pair-claim is exactly
what the migration retired, but its other half — a non-podman run engine resolves
RunMode to `direct`, because quadlet requires RunEngine==podman — is live behaviour the
retirement never touched. It is now TestResolveRuntime_DockerRunEngineResolvesDirect.
And a defect of my own that the suite found rather than review did: a blanket substitution
made TestResolveRuntime_InvalidEngine set AND THEN CLEAR the same variable — the clear
existed to null the OTHER engine var, now retired — silently removing the invalid value the
test was testing. It failed with "expected error for invalid engine"; the collision was
removed. A textual swap cannot know which of two identically-named references is a set and
which is a clear.
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
|
STATUS — the and the cause, verbatim from the job log: Classification: the engine/platform class, by the rulebook's own definition. The job never reached the review step — it died in ⚑ The missed control, stated honestly, because R1 asks for it and here the answer is not a pre-push control. No pre-push gate of mine can catch a transient failure of a third-party CDN to serve a GitHub Action. The controls that did work are downstream of it: the diff is unchanged and already gated on this exact tree ( Action: re-run the failed run through the REST API on the SAME head, so nothing is invalidated — the head does not move, and the newer attempt supersedes this failure in the newest-per-name view the merge gate reads. Agent: |
Review — BLOCKHead SHA: Change class: code/config — runtime (five dependency pins + Security screen: PASS (T1–T4) — no rule/validator redefinition, no embedded directives, no secrets/egress, no guardrail weakening, no unexpected supply-chain redirect; pins are dependency edges only. Blocks
Notes (non-blocking)
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…tution left behind The blanket BuildEngine -> RunEngine substitution copied the removed assertion's TEXT rather than replacing it, leaving two consecutive copies of the same guard with an identical t.Errorf in TestResolveRuntime_Defaults. R2: one canonical assertion per behaviour, so the second copy is deleted. Why nothing caught it, and that is the point of this commit: a duplicate guard is GREEN. The suite passes with both copies, so running the tests could not have found it, and golangci-lint's dupl checker is conventionally excluded from _test.go files. The only control with reach is reading the substitution's output as a DIFF rather than as a result — a substitution produces plausible code, and plausibility is not correctness. Swept that way over the whole file: the only ADJACENT duplicate was this one; the other 22 repeated 3-line blocks are legitimate per-test setup idioms (t.TempDir(), the RuntimeConfigPath save/restore pair, the env-clearing runs) that recur across functions by design. The sibling defect in this same file DID get caught, and the contrast is the lesson: TestResolveRuntime_InvalidEngine set and then cleared the same variable, which made it FAIL, so the suite found it. This one could only fail a reader. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
Review — PASSHead SHA: Security screen: PASS (T1–T4) — no validator/rulebook redefinition, no embedded directives, no secrets/egress, no guardrail weakening; pins are dependency edges to real merged tags, no unexpected supply-chain redirect. Checklist: All applicable rules PASS or NA.
Comment dispositions:
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
|
STATUS — the red The failure: The provenance, measured rather than asserted: Same file, same introducing commit ( The RCA's missed control, stated honestly: there is not one on my side, and inventing one would be false. This is a red CI check caused by a pre-existing load-sensitive test on a contended runner — my pre-push gate ran the identical suite on the identical tree and it was green ( Action: re-run the failed run via REST on the SAME head, so nothing is invalidated — justified by a named environmental condition with a reproduced mechanism, not by hoping. If it reddens a third time on this family, I will say so and stop rather than re-roll, because persistent contention would mean the runner estate needs the operator, not another attempt. The validator itself returned Agent: |
Review — PASSHead SHA: Security screen: PASS (T1–T4) — no validator/rulebook redefinition, no embedded directives, no secrets/egress, no guardrail weakening; the Checklist: All applicable rules PASS or NA.
Comment dispositions:
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
The landable state: five consumer pins advanced to their migrated releases, plus core's half of the
build-selector retirement (leg 10). After this, a charly assembled from
mainbuilds against thecurrent contract with no venue substitution, no
replacerecipe, and no patched instrument.⚑ Every version here is the STRIPPED
v0.<YYYYDDD>.<HHMM>module form, not the repo's bare CalVertag. All five modules live in a
candy/<name>/subdirectory, so the Go version differs from the gittag that carries it — and the bare form does not resolve. Both halves of this are measured, because a
version read from a message rather than from a ref has now been wrong three times in this wave:
Each version was verified against the merge commit its tag points at, and the two sides are named
so the mapping is checkable rather than asserted:
candy/<n>/)plugin-buildv0.2026286.1121v0.2026287.2220candy/plugin-build/v0.2026287.2220plugin-cleanv0.2026271.2313v0.2026287.2341candy/plugin-clean/v0.2026287.2341plugin-settingsv0.2026272.410v0.2026287.2353candy/plugin-settings/v0.2026287.2353plugin-vmv0.2026286.856v0.2026287.2356candy/plugin-vm/v0.2026287.2356plugin-boxv0.2026272.2039v0.2026288.503candy/plugin-box/v0.2026288.503@04397ff289= the merge commit, an ancestor of itsmainplugin-boxis not an optional companion: it is compiled IN, so a four-pin set is alsounbuildable. Measured — with the other four applied,
go build ./...fails on exactly one packageand it is
plugin-box:That is why this is one five-pin cutover rather than a pins PR plus a follow-up. By MVS the four
contract-advancing pins also move
sdk → v0.2026287.2235andspec → v0.2026287.1848, and the locksteptools/modules are realigned by the verb the contract names,charly task mods-tidy:⚑ And leg 10, core's half of the same cutover — the build selector is RETIRED. The image builder
is BuildKit, which is not a container engine and can never be a member of the closed
#EngineNamevocabulary, so the contract carries no builder selector at all and every consumer reads the RUN
engine. Two core files:
charly/dispatch_build_ensure.go—BuildEnginedropped from thespec.BuildEnsureRequestliteral, and the now-unused
buildEngineparameter dropped fromdispatchBuildEnsure, with bothcall sites updated (
plugin_executor_reverse.go) — both always passed"", so no caller eversupplied one.
charly/runtime_config_test.go— the retirement's rule is the contract's own: withResolvedRuntime.BuildEngine → .RunEngineandEngineConfig.Buildgone, across 15 tests.Two distinctions the migration had to get right, and both were caught by running it rather than by
reading it:
existing
engine.build:in~/.config/charly/config.ymlmust not fail the load (so an upgrade doesnot break a user's boot), while
CHARLY_BUILD_ENGINEno longer appears inspec/hostenvat all. Sotests must clear the live var (
CHARLY_ENGINE_ROOTFUL) where they were clearing the retired one— otherwise they leak ambient config.
TestResolveRuntime_MixedEnginesis CONVERTED, not deleted. Its pair-claim is exactly what themigration retired — its own doc comment said "it fails if resolution ever collapses the two onto
one engine" — but its other half, a non-podman run engine resolves
RunModetodirectbecausequadlet requires
RunEngine==podman, is live behaviour the retirement never touched. It is nowTestResolveRuntime_DockerRunEngineResolvesDirect, with the retired claim removed and the survivingcoverage kept. The removal itself is pinned in the contract
(
spec/hostenv/retired_build_selector_test.go), with its own positive control.And a second defect of my own, which the suite could NOT have found — the round-2 fix. The blanket
substitution above copied the removed
BuildEngineassertion's text rather than replacing it, leavingtwo consecutive copies of the same guard in
TestResolveRuntime_Defaults. It is fixed in2d7da8cdby deleting the second copy — and the reason it survived a green suite is the point: a duplicate guard
is GREEN. Both copies pass, and
golangci-lint'sduplchecker is conventionally excluded from_test.go, so the only control with reach is reading the substitution's output as a DIFF rather thanas a result — a substitution produces plausible code, and plausibility is not correctness. Swept that
way over the whole file, this was the only adjacent duplicate; the other 22 repeated 3-line blocks are
legitimate per-test setup idioms that recur across functions by design. The contrast with the sibling
defect below is the lesson: that one failed, so the suite caught it.
A defect of my own, found by the suite rather than by review: a blanket substitution made
TestResolveRuntime_InvalidEngineset and then clear the same variable — the clear existed to nullthe other engine var, now retired — silently removing the invalid value the test was testing. It
failed with
expected error for invalid engine; the collision was removed. A textual swap cannot knowwhich of two identically-named references is a set and which is a clear.
How tested
Every command below ran on the committed tree this PR publishes.
Every path in the diff, accounted (11 files):
The gate, on that tree:
The R10 bed, run on the same tree, with R9 and R10 agreeing by construction:
And why this bed, stated rather than assumed: this change's runtime surface is the compiled-in
plugin closure — five pins and the plugin-build/store path they back — so the bed that proves it is the
one that drives a live host build through the loader on a
disposable: truetarget, with a PATHshim as the instrument so the proof is the absence of
go build, corroborated by the store's bloband view counts.
check-box-localis a different repo's bed and belongs to the lane that owes it.The pins, read back out of the committed tree rather than described:
Rulebook compliance
"no live use of the retired identifiers survives". Measured against the committed tree:
runtime_config_test.gothat name theretirement and cite the contract's own pin. Not hits, and worth distinguishing so the grep reads
honestly:
resolveBuildEngineis a plugin-side function name in comments inbuild_overlay.go,plugin_loader.go,build_emit_test.goandresolved_project_namespace_test.go— a differentidentifier that merely contains the same substring, and
buildEngineContextis a core type that thecutover does not touch.
sdkimport is introduced and no allowlist is widened by this PR:core already imports
github.com/opencharly/spec/hostenv(the package moved there in the host-envextraction), so the retirement changes call sites, not import sites. The five pins are dependency
graph edges, not code.
deliberately inert,
charly settings set engine.build podmanexits 0 and changes nothing — nosymptom to notice, which is the worst shape for a documented command. Two owning repos, one issue
each:
opencharly/docs#158(src/content/docs/recipes/build/settings.mdlines 33/51/55 — thesource
opencharly.aiis generated from, so it is the editable artefact) andopencharly/marketplace#466(build/skills/settings/SKILL.mdlines 32/50/54 — the skill an agentreads before touching the surface). Both cross-referenced from the retirement's program,
opencharly/opencharly#481. Scope is stated in both so neither overshoots:engine.runisuntouched by this cutover and documented correctly.
disposable: truetarget, and theacceptance record is on the committed tree this PR publishes, with zero warnings.
2026.288.0051), invoked through this worktree'sbin/, andthe freshness guard was itself exercised: it refused a stale
bin/charlyafter the source edits andforced the rebuild before
mods-tidywould run.repo's
main, never a branch checkout or areplace.measured to be unbuildable on its own.
running the suite; it was fixed in this change rather than filed. The retirement's documentation
divergence is genuinely separable from this diff (the code is correct and complete without it), so it
is filed, once per owning repo, and listed below.
Change classification
code/config — runtime. Five dependency pins advanced to their migrated releases, which by MVS also
advances
sdk/spec; core's Go half of the build-selector retirement (dispatch_build_ensure.goplusits tests); and the lockstep
tools/module alignment those pins require. The gate for this class isthe
charlysuite plus a fresh disposable-target bed — both run above.Filed issues
opencharly/docs#158—recipes/build/settings.mddocuments the retiredengine.build/CHARLY_BUILD_ENGINE, andcharly settings set engine.build podmannow succeeds while changingnothing (lines 33/51/55).
opencharly/marketplace#466— the same claim in the settings skill(
build/skills/settings/SKILL.mdlines 32/50/54), which is worse in kind: a skill is what an agentreads before touching the surface, so it teaches the retired key to every agent that loads it.
opencharly/opencharly#481— the BuildKit image-builder program that owns the retirement; thisPR's evidence (leg 10's measured scope, the located docs aftermath, and the fifth-pin measurement)
is recorded on it rather than duplicated.
Agent:
loader-cutover-leadAssisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)