From 0b0e8b104c422ea9d088bb07eac8d22392c6031c Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 16 Nov 2026 18:21:33 +0000 Subject: [PATCH] fix(k9): check for just only when a path that calls it is enabled check-prerequisites required `just` unconditionally. With use_guix = true, use_sealed_containers = false and run_doctor = false, install-all runs only `guix package -m manifests/live-provers.scm`, yet a Guix host without `just` failed before provisioning. The `just` check now runs only when the container build or the doctor is enabled, as the guix and podman checks already do. The canonical validator passes: 10 files, 0 failing, layer L1. Nickel is not available locally, so the L2 evaluation is left to CI. Reported by review on #464 after merge. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_019a95kk88TZ1iegsBK3kox3 --- .machine_readable/setup-prover-env.k9.ncl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.machine_readable/setup-prover-env.k9.ncl b/.machine_readable/setup-prover-env.k9.ncl index 74877f4d..c84ee3f6 100644 --- a/.machine_readable/setup-prover-env.k9.ncl +++ b/.machine_readable/setup-prover-env.k9.ncl @@ -92,8 +92,10 @@ K9! description = "Confirm the tools the sanctioned paths need are present", # An enabled path whose tool is missing fails here, loudly; a disabled # path is not checked. Nothing is skipped silently. + # `just` is checked only when a path that calls it is enabled: the + # container build and the doctor. A Guix-only install runs `guix` alone. commands = - ["command -v just >/dev/null 2>&1 || { echo 'just not found'; exit 1; }"] + (if config.use_sealed_containers || config.run_doctor then ["command -v just >/dev/null 2>&1 || { echo 'just not found but config.use_sealed_containers or config.run_doctor is true'; exit 1; }"] else []) @ (if config.use_guix then ["command -v guix >/dev/null 2>&1 || { echo 'guix not found but config.use_guix is true'; exit 1; }"] else []) @ (if config.use_sealed_containers then ["command -v podman >/dev/null 2>&1 || { echo 'podman not found but config.use_sealed_containers is true'; exit 1; }"] else []), },