Let the MCP worker sandbox run Nix/Guix interpreters by mounting exactly
the interpreter's resolved runtime closure, read-only (#521).
- obliteratus/mcp_runtime_layout.py resolves the closure only when the
interpreter's loader isn't already mounted: the interpreter, its
loader, stdlib lib-dynload modules and every shared object listed in
installed distributions' RECORD files, following DT_NEEDED with
glibc's search order (DT_RPATH chain, LD_LIBRARY_PATH, DT_RUNPATH,
loader directory; $ORIGIN only).
- Each required /nix/store or /gnu/store path is mounted read-only at
its original location; other libraries are mounted as single files.
Never /, a store root, home, tmp, runtime dirs or the checkout;
store names are validated and every mount stays fd-pinned.
- The sandbox and the supervisor receive only the LD_LIBRARY_PATH
entries the closure actually used, never the ambient value; FHS hosts
get none and their mount set is unchanged.
- Bounded parsing and resolution with precise fail-closed refusals; the
#522 loader refusal still applies to anything unresolved.
- The bubblewrap boundary test now runs and passes under the Nix flake,
and the worker-boundary and crash-window tests pass there again.