#37
Isolation harness: two-agent leak suite, noisy-neighbor test, T4 probe fixes
Adds the harness behind the Nov 28 isolation study on v0.2.2, and fixes two T4 probes that could never fail.
What's in it
isolation/two_agent_probes.py,isolation/run_two_agent.py: 23 judged probes for two envs of one tenant: files, POSIX/SysV shm, unix sockets, loopback TCP/UDP, /proc environ, signals, mount/cgroup views, inotify, fanotify, keyrings, X11 windows and clipboard, fork state. Every probe that can have a positive control has one.isolation/noisy_neighbor.py: a measured env (steps, resets, forks) next to a hostile env running fork bomb, thread flood, memory hog, disk fill, inode flood and CPU hog, in a pair arm and a dense arm (+30 busy envs). It records step/reset/fork latency and the hostile env's cgroup counters.isolation/README.md: how to run both.
Study result on v0.2.2 (default install, c7i.metal-24xl): two-agent suite 23 PASS / 0 FAIL; noisy neighbor contained in 12/12 windows, with worst step p99 0.650 s against a 0.908 s band. The results were measured at 5ded98f, the frozen harness commit.
T4 suite fixes (tenantvm/suite/probes.py)
- net.peer: read the peer IP from B's handle, which is always None, so vm mode never actually probed the other tenant. It now reads it from A's handle and tries tcp 22, 7070 and icmp. A separate guest-root check during the study confirmed tenant A cannot reach B, so the T4 conclusion holds, but its raw data didn't back it.
- proc.table:
exec -adoes not change comm, sopgrep -xcould never match and the probe always passed. It now runs a copy ofsleepunder the marker name, requires B to see its own process (ERROR otherwise), and cleans up.
Checked in a Linux container: proc.table gives FAIL when both handles share a pid namespace and PASS when A is in its own; net.peer gives PASS against an unroutable address.
Not in this PR
- The OOM validity-gate anomaly the study found (no_oom_kill read valid after OOM kills). Separate fix.
- The install.sh binutils pin. Separate fix.
- A rerun of T4 row 1 with the fixed probes.