Repository navigation
refactor: shared sdk/kit.BuilderResolve render + per-distro check beds - #2
Conversation
- mise_builder.go: drop the hard-coded distro maps (distroBases, distroPkgInstall); dispatch to the shared sdk/kit.BuilderResolve (R3 — the ONE render the detection builders use). The stage is distro-agnostic: FROM the image's builder box, install from the embedded builder: mise: vocabulary's install_command, artifacts copy the Home. - root charly.yml: per-distro builder boxes (alpine/arch/cachyos/omarchy/ debian/fedora/ubuntu) + check-mise-* beds + disposable pods. The shared mise-consumer ships a mise.toml so the embedded builder: mise: detect_file auto-triggers the DETECTION path (stage installs python, the verb installs node). - candy/curl-tar: the curl+tar+gzip toolchain the builder stage needs. - candy/mise-consumer: bake_plugin pin to the merged plugin-mise tag v2026.242.1251; checks prove stage install (python), verb install (node), mise on PATH, and the OpExecute leg (mise ls). - go.mod/go.sum: sdk (BuilderResolve) + spec bumps.
The shared consumer fixture installs zig (stage) + go (verb) via mise — both ship official prebuilds needing no bash — so the bash addition that the musl python-compile debugging trail added back to curl-tar is dead weight: the per-distro builder boxes compose exactly what the stage consumes.
Review — BLOCKHead SHA: Change class: code/config refactor + feature (shared Security screen: PASS — no secrets, no exfiltration, no weakened guardrails, no scope mismatch; the refactor moves the render OUTWARD to the shared sdk kit (placement: CORRECT). Blocks
Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
Review — BLOCKHead SHA: Change class: code/config refactor + feature (shared Security screen: PASS — no secrets, no exfiltration, no weakened security gates, no scope mismatch; the render moves OUTWARD to the shared sdk kit (placement: CORRECT). Blocks
Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
… schema/mise.cue)
Review — BLOCKHead SHA: Change class: code/config refactor + feature (shared Security screen: PASS — no secrets, no exfiltration, no weakened guardrails (the Blocks
Comment intake
Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
check box re-runs baked candy build-context plan checks at runtime, where only /usr/lib/charly/plugins/<plugin> (+ .providers manifest) exists — the former test -f schema/mise.cue failed there and the module check was a placeholder no-op. Both checks now assert the real build-context artifact OR the real baked runtime artifact, no fake passes.
Review — BLOCKHead SHA: Change class: code/config refactor + feature (shared Security screen: PASS — no secrets, no exfiltration, no weakened guardrails (the plugin-mise plan checks are strengthened to dual-context, not loosened), no scope mismatch; the render moves OUTWARD to the shared sdk kit (placement: CORRECT). Blocks
Comment intake
Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
The manifest now carries produce: [mise] (spec #BuildType mise, landed via charly#490 with spec 90c1b7c7). The previous CI pin (v2026.242.1139) predates the mise #BuildType and rejects the manifest; the pin advances to the release that carries the mise-capable spec.
Review — BLOCKHead SHA: Change class: code/config refactor + feature (shared Security screen: PASS — no secrets, no exfiltration, no weakened guardrails (the plugin plan checks are strengthened to dual-context, not loosened; the deploy.yml change is a charly version pin bump, not a weakening), no scope mismatch; the render moves OUTWARD to the shared sdk kit (placement: CORRECT). Blocks
Comment intake
Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — no secrets, no exfiltration, no weakened guardrails (the plugin plan checks are strengthened to dual-context, not loosened; the deploy.yml change is a legitimate charly version pin advance Checklist: All applicable rules PASS or NA.
Comment intake:
Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — no secrets, no exfiltration, no weakened guardrails (plugin plan checks strengthened to dual-context; deploy.yml is a legitimate charly pin advance Checklist: All applicable rules PASS or NA.
Comment intake:
Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — no secrets, no exfiltration, no weakened guardrails (plugin plan checks strengthened to dual-context; deploy.yml is a legitimate charly pin advance Checklist: All applicable rules PASS or NA.
Comment intake:
Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — no secrets, no exfiltration, no weakened guardrails (plugin plan checks strengthened to dual-context; deploy.yml is a legitimate charly pin advance Checklist: All applicable rules PASS or NA.
Comment intake:
Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — no secrets, no exfiltration, no weakened guardrails (plugin plan checks strengthened to dual-context; deploy.yml is a legitimate charly pin advance Checklist: All applicable rules PASS or NA.
Comment intake:
Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — no secrets, no exfiltration, no weakened guardrails (plugin plan checks strengthened to dual-context; deploy.yml is a legitimate charly pin advance Checklist: All applicable rules PASS or NA.
Comment intake:
Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — no secrets, no exfiltration, no weakened guardrails (plugin plan checks strengthened to dual-context; deploy.yml is a legitimate charly pin advance Checklist: All applicable rules PASS or NA.
Comment intake:
Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Summary
The mise builder refactor: the builder's stage render moves to the SHARED
sdk/kit.BuilderResolve(R3 — the ONE render the four detection builders already use), and the plugin gains per-distro R10 check beds proving the DETECTION path on every distro charly supports.candy/plugin-mise/mise_builder.go— drops the hard-coded distro maps (distroBases/distroPkgInstall);invokeResolvedispatches tokit.BuilderResolve("mise", in). The stage is distro-agnostic: FROM the image's builder box, install from the embeddedbuilder: mise:vocabulary'sinstall_command, artifacts copy the Home.candy/plugin-mise/mise_builder_test.go— test rewrite for the shared render: the formerrenderMiseStagetests come out with the deleted function;TestInvokeResolve_ReplyShapeproves the wire-reply shape the host splices (the shared render's stage-level tests live insdk/kit).candy/plugin-mise/charly.yml— dual-context plugin plan checks: check box re-runs baked candy build-context plan checks at runtime where only/usr/lib/charly/plugins/plugin-mise(+.providersmanifest) exists, so both checks assert the real build-context artifact OR the real baked runtime artifact (no placeholder no-ops, no fake passes).candy/plugin-mise/go.mod/go.sum— sdk →ed7397e(BuilderResolve, the musl-aware mise release probe + namedmiseVersionpin, theBoxNeedsBuildermise detection — all landed via feat(kit): add the mise detection-builder to BuilderResolve (distro-agnostic stage) sdk#198, MERGED).charly.yml(root) — per-distro builder boxes +check-mise-*bed images + disposable pods for every distro charly supports; the debian/ubuntu beds carrydistro:declarations (mirror of charly's own boxes — without them the bootstrap skips the curl/wget install and the go-task download fails, RCA below).candy/curl-tar(new) — the curl+tar+gzip toolchain composed into the per-distro builder boxes.candy/mise-consumer— ships the detection fixturemise.toml(zig = "0.14", fully-static official prebuild) and themise:verb installs[email protected](pure-static Go distribution);bake_pluginpins the merged plugin-mise tagv2026.242.1251. The fixture is deliberately libc-agnostic: mise's python/node backends compile from source on musl (no C toolchain there).README.md— the R10-bed section rewritten for the per-distro bed set..github/workflows/deploy.yml— the candy-gate charly pin advancesv2026.242.1139→v2026.242.1928(the release carrying the#BuildType: misespec, minted by charly#490's merge; the old pin predates it and rejectsproduce: [mise]).How tested
R10 — every bed below is a
disposable: truefresh rebuild of the FINAL committed treed3dc943, run with the charly binary from the now-merged charly#490 tree (the Home-based vocabulary +install_command+ sdk build-graph fix execute live in these builds):Each run's live evidence lives in
.check/check-mise-<distro>-pod/2026.242.19*/image-build.log(builder stage rendersFROM <distro>-builder→ download →COPY mise.toml→RUN mise install && mise reshim— the detection path executing live — and the Home-basedMISE_DATA_DIR=/home/user/.local/share/miselands in the main image, proving the merged charly vocabulary end to end).RCA — live failures surfaced and fixed by the fresh bed rebuilds (R1)
mise: not foundat the stage install — NOT a cache issue (reproduced with--no-cache): the pinned mise release is a glibc build; Alpine is musl, the binary's/lib64/ld-linux-*interpreter is absent, exec fails ENOENT → "not found". Fixed upstream in feat(kit): add the mise detection-builder to BuilderResolve (distro-agnostic stage) sdk#198 (the stage probes/lib/ld-musl-*.so.1and appends-muslto the release asset; the version pin is named,miseVersion).curl: not found) — the beds lackeddistro:declarations, so the bootstrap emitted no apt install of curl; fixed with the distro declarations mirroring charly's own boxes.[email protected]compiles from source on musl (no C compiler) — fixed by the libc-agnostic fixture (zig + go), not by compiler chains in the images.mise-schema-presentruntime failure — check box re-runs baked candy build-context plan checks at runtime, where only the compiled plugin (+.providersmanifest) is baked; the checks now verify the real artifact in each context (above).Rulebook compliance
--no-cachereproduction before the real cause was found.sdk/kit.BuilderResolve; ONE consumer candy shares the detection fixture across all distro beds."true"checks, no fake passes; musl handling is a runtime libc probe, not distro names in templates.go test+box validate+ 7/7 bed output.d3dc943).Change classification
go test ./...+box validate+ 7/7 disposable fresh-rebuild beds on the final tree (pasted)Assisted-by: pi deepseek/deepseek-v4-flash-0731 (fully tested and validated)