Zero-Dependency Multi-Profile AI Browser Isolation in 1.18 MiB of Rust: Per-Context Proxy Guards, 42 MiB Moli Pools, and 2-Phase Human Handoff A developer released sessfork v0.4.1, a 1.18 MiB pure-std Rust binary with no new crates or Python runtime dependencies, adding named profile vaults with per-context proxy leak guards, a loopback process-isolated CDP orchestrator, and a two-phase non-blocking human takeover tool. The work was informed by paired positive/negative CDP probes against moli 1.1.29 and Chromium, which showed per-context proxy isolation works natively, dead proxies fail without silent direct fallback, and invalid proxy schemes only fail at navigation time, prompting upfront scheme validation. Single-state headless browser setups work fine until your agents need multiple isolated accounts, per-profile proxy routing, external Python/CLI CDP orchestration, or a clean escape hatch when headless runs hit interactive SSO / 2FA walls . Once you cross that line in production, four systems problems show up immediately: storageState file—or if an MCP tool accepts arbitrary proxyServer URLs straight from LLM parameters—a single prompt-injected webpage can trick an agent into routing authenticated requests through an attacker-controlled proxy. FD SETSIZE=1024 ceiling: moli process beyond BrowserContext s 1,024 1,063 observed via lsof , triggering net::ERR CONNECTION REFUSED on subsequent navigations. /json/list on a shared port lets external worker A inspect and attach to worker B's targets. In sessfork v0.4.1 https://github.com/wasabihu/sessfork/releases/tag/v0.4.1 , we solved all four inside our 1,233,344 -byte ~1.18 MiB pure- std Rust binary with zero new Rust crates and zero Python runtime dependencies : named Profile Vaults with per-context proxy leak guards P0-1 , a loopback process-isolated CDP orchestrator serve-api , P0-2 , and a 2-phase non-blocking human takeover tool browser handoff , P0-3 . moli 1.1.29 & Chromium Before writing isolation layers, we ran paired positive/negative CDP probes against moli 1.1.29 over anonymous pipe FDs 3/4 --remote-debugging-pipe and local Chromium --cdp-url : | CDP Probe | Observed Behavior moli 1.1.29 / Chromium | Design Takeaway | |---|---|---| | createBrowserContext proxyServer , bypass | Returns isolated browserContextId ; parallel contexts hit only their own proxy PROXY HIT | Per-context proxy isolation works natively inside one engine process | | Dead proxy http / socks5 closed port | Immediately fails with ERR CONNECTION REFUSED no silent direct fallback | Paired with preflight TCP checks, prevents accidental IP leakage | | Invalid scheme ftp://127.0.0.1:8080 | createBrowserContext succeeds; navigation later fails ERR FAILED | Rust must validate schemes upfront via ProxySpec before context spawn | | Emulation. Override TZ / Locale / UA / Geo | All return {} ; timeZone & navigator.language update to America/New York / en-US | Apply deterministic timezone/locale/geo overrides on every attached tab | Implemented across profile.rs https://github.com/wasabihu/sessfork/blob/main/rust/sessfork-mcp/src/profile.rs , proxy.rs https://github.com/wasabihu/sessfork/blob/main/rust/sessfork-mcp/src/proxy.rs , and profiles.py https://github.com/wasabihu/sessfork/blob/main/src/sessfork/profiles.py , named vaults preserve 100% compatibility with ~/.sessfork/state.json while adding strict boundaries: ~/.sessfork/profiles/