Repository navigation
feat: Home-based mise shims + install_command vocabulary; mirror loop-protection - #490
Conversation
…-protection - charly/charly.yml: the embedded builder: mise: vocabulary moves to the Home-based data dir (~/.local/share/mise), adds install_command (mise.toml/.tool-versions -> mise install), and drops the cache_mount (the data dir cannot be a BuildKit cache mount — the artifacts must land in the image, not an ephemeral cache). - charly/embed_defaults_test.go: assert the Home-based shims path + install_command mapping. - charly/go.mod/go.sum: sdk -> f476722d (BoxNeedsBuilder recognizes the mise detection files — the build-graph ordering fix), spec -> 90c1b7c7 (mise added to the #BuildType enum). plugin-vm 1323 -> 812: plugin-vm 1323 requires sdk 1217, which lacks the mise detection fix; the iso-VM pin is restored when the sdk release line includes the mise work. - .pi/settings.json + .pi/extensions/loop-protection.ts: mirror the loop-protection extension (the umbrella slimmed it out in PR #61).
Review — BLOCKHead SHA: Change class: feature (embedded mise-builder vocabulary + sdk/spec/plugin-vm dependency pins + pi harness extension mirror) Security screen: PASS — no T1–T4 findings. The loop-protection extension is a local safety net (no network/egress, no secrets), the dependency pins are explained (plugin-vm downgrade is an MVS resolution, not a security weakening), and the body accounts for all 6 changed files. Blocks
Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
…ed evidence + WARNING RCA)
Review — PASSHead SHA: Security screen: PASS — no T1–T4 findings. The loop-protection extension is a local safety net (no network/egress/secrets); the dependency pins (plugin-vm 1323→812, sdk/spec pseudo-versions) are supply-chain changes honestly explained as an MVS resolution, not a guardrail weakening; all 6 changed files are accounted for in the body. Checklist: All applicable rules PASS or NA. The prior
Placement: CORRECT (embedded builder vocabulary in Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — no T1–T4 findings. The loop-protection extension is a local safety net (no network/egress/secrets); the dependency pins (plugin-vm 1323→812, sdk/spec pseudo-versions) are supply-chain changes honestly explained as an MVS resolution, not a guardrail weakening; all 6 changed files are accounted for in the body. Checklist: All applicable rules PASS or NA. The prior
The second Placement: CORRECT (embedded builder vocabulary in Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Summary
The mise builder vocabulary moves to Home-based paths and gains an explicit install command, and the charly repo mirrors the loop-protection pi extension.
charly/charly.yml— embeddedbuilder: mise:vocabulary:path_contribution→~/.local/share/mise/shims,runtime_env MISE_DATA_DIR→~/.local/share/mise, addsinstall_command(mise.toml/.tool-versions→mise install), dropscache_mount(the data dir cannot be a BuildKit cache mount — the artifacts must land in the image).charly/embed_defaults_test.go— asserts the Home-based shims path + theinstall_commandmapping.charly/go.mod/go.sum— sdk →ed7397e(BoxNeedsBuilderrecognizes the mise detection files — THE build-graph ordering fix: a candy shippingmise.toml/.tool-versionsmakes its builder box a build dependency, so it enters the build order BEFORE the consuming stage; plus the musl-aware mise release probe and the namedmiseVersionpin), spec →90c1b7c7(mise in the#BuildTypeenum). plugin-vm 1323 → 812: plugin-vm 1323 requires sdk 1217, which lacks the mise detection fix; the iso-VM pin (PR fix(deps): pin the plugin-vm that can actually build an iso VM #489) is restored when the sdk release line includes the mise work..pi/settings.json+.pi/extensions/loop-protection.ts— mirror the loop-protection extension (the umbrella slimmed it out in chore(pi): slim project config to bare system prompt + plugins opencharly#61).How tested
(no validation errors; exit 0)
R10 — disposable fresh-rebuild bed proof, on the changed runtime path. The verification target is the
check-mise-<distro>-podbed set in opencharly/plugin-mise (disposable: truepods), run with THIS tree's charly binary (./bin/charly— the Home-based vocabulary +install_command+ sdk build-graph fix all execute live in these builds):Each bed's image-build log (
.check/check-mise-<distro>-pod/2026.242.18*/image-build.log) shows the changed vocabulary executing live: the builder stage rendersRUN mise install && mise reshim(the vocabulary'sinstall_command) and the main image carriesENV MISE_DATA_DIR=/home/user/.local/share/mise(Home-based path_contribution) +ENV PATH=...**/home/user/.local/share/mise/shims:${PATH}``` — and the sdkBoxNeedsBuilderchange is proven by the builder boxes entering the build order BEFORE the consuming stage (fresh-rebuild store; cold-store runs failed exactly that way before the sdk fix).RCA — the dev/worktree WARNING in validate output (B5/R1)
WARNING: charly is a dev/worktree build (not installed ...)is emitted by design for every worktree-built binary (taskfiles/Build.yml, the#55per-worktree-binary invariant: "Development ALWAYS uses THIS worktree's own ./bin/charly") and only declares the binary does not load the system-installed plugin set. It is not a validation finding —box validateitself produced ZERO warnings and exit 0. No remediation applies short of installing charly system-wide, which the repo's own build doctrine explicitly forbids as a side effect.Rulebook compliance
/usr/local/share/misepath +cache_mountremoved in the same commit.go test+box validateoutput.Change classification
go test ./...+charly box validate+ disposable fresh-rebuild bed run (pasted, live on the changed path)Assisted-by: pi deepseek/deepseek-v4-flash-0731 (fully tested and validated)