Repository navigation
feat(kit): add the mise detection-builder to BuilderResolve (distro-agnostic stage) - #198
Conversation
Review — BLOCKHead SHA: Change class: sdk kit (shared builder render) — new Security screen: PASS — no secrets, no exfiltration, no guardrail weakening, no scope mismatch beyond the finding below. Blocks
Verified non-blocking
Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
…es (mise.toml/.tool-versions)
Review — BLOCKHead SHA: Change class: sdk kit (shared builder render) + deploykit graph detection change. Security screen: PASS — no secrets, no exfiltration, no guardrail weakening, no scope mismatch beyond the findings below. Blocks
Comment intake
Verified non-blocking
Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
…the BoxNeedsBuilder mise trigger - kit/builder_resolve.go: the mise stage's release download probes for the musl loader (/lib/ld-musl-*.so.1) and appends the -musl suffix, so the glibc binary never lands on a musl base (Alpine) where it cannot exec (missing /lib64/ld-linux-* — the "mise: not found" bed failure). The pinned release is NAMED (miseVersion const) and rendered into the URL via a wrapper struct, not a magic literal in the template. - kit/builder_mise_test.go: assert the named version in the URL + the musl-loader probe. - deploykit/intermediates_move_test.go: TestImageNeedsBuilder_MiseDetection proves BoxNeedsBuilder recognizes mise.toml/.tool-versions (the build-graph ordering trigger).
Review — PASSHead SHA: Security screen: PASS — no secrets/exfiltration, no guardrail weakening, no scope mismatch; the only network call is the legitimate pinned mise release download. Checklist: All applicable rules PASS or NA. Both prior
Verified: Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — no secrets/exfiltration; the only network call is the legitimate pinned mise release download from Checklist: All applicable rules PASS or NA. Prior
Verified: Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Summary
Adds the mise detection-builder to the shared
sdk/kit.BuilderResolve(R3 — the ONE render the four detection-builders already use). The mise stage is distro-agnostic by construction:FROM {{.BuilderRef}}— the host-computed builder box (distro-appropriate, e.g. fedora-builder or cachyos-builder); the toolchain (curl+tar) comes from the builder image.{{.InstallCmd}}— the install command from the embeddedbuilder: mise:vocabulary'sinstall_command.{{.CopySrc}}/{{.Manifest}},{{.UID}}/{{.GID}}/{{.Home}},{{.CacheMountsOwned}}— all from the host'sBuilderResolveInput./usr/local/bin/mise(the release tarball's layout) and the Home-based data dir (the CopyArtifacts copy the stage's Home, exactly like the pixi builder's~/.pixi).No hard-coded distro names, package managers, or install paths — distro knowledge stays in the host's vocabulary (the boundary law: a builder template never names a distro).
Named version pin (R4): the pinned mise release is the named
miseVersionconst (v2026.8.14), rendered into the download URL via themiseStageDatawrapper — not a magic literal in the template. Bump deliberately (mise releases weekly); the tarball naming is Go-style arch (x64/arm64) with a-muslsuffix for musl libc bases.Musl-aware download (RCA of the alpine bed failure): mise publishes glibc builds (
mise-<ver>-linux-<arch>.tar.gz) AND musl builds (mise-<ver>-linux-<arch>-musl.tar.gz). The stage probes for the musl loader (/lib/ld-musl-*.so.1) and appends the-muslsuffix on musl bases — the glibc binary cannot exec on a musl image (missing/lib64/ld-linux-*), which the shell reports asmise: not found(the check-mise-alpine bed failure).Companion deploykit change:
BoxNeedsBuilderrecognizes the mise detection files (mise.toml/.tool-versions) so a candy shipping either makes the image need its builder box as a build dependency (the build-graph ordering fix).How tested
TestImageNeedsBuilder_MiseDetection(new) provesBoxNeedsBuilderreturns true for a candy shippingmise.tomlor.tool-versionsand false without — the test FAILS without the deploykit change (B12).Rulebook compliance
kit.BuilderResolve(the ONE render), not a hand-rolled stage renderer.miseVersion) and the musl probe is a runtime libc check, not distro knowledge.Change classification
Assisted-by: pi deepseek/deepseek-v4-flash-0731 (analysed on a live system)