fix(jail-bootstrap): pin pkgs to host versions + validate inputs #97

Merged
clawdie merged 1 commit from fix/agent-jail-bootstrap-harden into main 2026-06-20 08:08:17 +02:00

1 commit

Author SHA1 Message Date
9aaa1c4705 fix(jail-bootstrap): pin pkgs to host versions + validate inputs
Some checks failed
CI / rust (pull_request) Has been cancelled
CI / markdown (pull_request) Has been cancelled
Tighten agent-jail-bootstrap.sh per review of #96:
- pin each package to the host's EXACT installed version (pkg query '%v' ->
  install name-version from the host's mounted cache); fail loudly if the host
  lacks it, instead of pulling a different version into the jail
- set -eu; validate jail name ([A-Za-z0-9_-], non-empty) so it can't escape the
  bastille jails root; assert the jail root exists before touching it
- guard every host source (binaries, npm modules) so a missing source fails
  clearly rather than producing a half-bootstrapped jail

Relies on the existing host pkg-cache reachability from the jail (offline install).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-20 08:04:04 +02:00