CBox sandbox bootstrap health parity for python and pre-commit
Problem
On fresh sandbox starts, the startup health checks for python and pre-commit report failures immediately after setup-worktree completes just install — even though the tools are actually installed and functional. The health probes look for executables in different paths than where the bootstrap actually places them (e.g., the probe checks system PATH while the tools are in .venv/bin/). This false-negative pattern causes healthy sandboxes to be marked as broken, triggering unnecessary recovery actions and eroding confidence in the health check system. The bootstrap setup and health probes need to agree on where to find interpreter and tool binaries.
Context
Possible Solutions
Plan
Implementation Progress
Implementation notes
libs/cbox/entrypoint.shnow performs a minimal recovery path when fulluv sync --extra devfails:- ensure
.venv/bin/pythonexists viauv venv ... - attempt
uv pip install ... pre-commit - This keeps bootstrap/runtime behavior aligned with startup health probes for
pythonandpre-commit. - Added deterministic tests in
libs/cbox/test_entrypoint_bootstrap.pyfor: - sync failure triggers minimal python/pre-commit bootstrap
- sync success skips minimal fallback path
Review Feedback
- [ ] Review cleared