# Termux-like launcher proof environment

The scenario ran on Linux x86_64 in Chromium, at 1280×800 with the default light theme. Each commit used a fresh isolated app database; no live user state was copied.

A private mount namespace was created with `sudo unshare -m`; mount propagation was made private. Within that namespace only:

1. Bind-mount the original `/usr/bin` at a temporary directory named `realbin`.
2. Create a directory containing symlinks to every original binary except `sh`, with each symlink pointing into `realbin`.
3. Bind-mount that directory over `/usr/bin`. On this merged-/usr Linux system, `/bin` points to `/usr/bin`, so `/bin/sh` is now absent.
4. Append `realbin` to PATH, preserving access to `sh` by name. Set `npm_config_script_shell` to `realbin/sh` so dependency installation remains possible. Rewrite generated dependency `.bin` wrappers' `#!/bin/sh` shebangs to this alternate shell path, after each installation. No application source or agent launcher was changed.
5. Unset `XDG_RUNTIME_DIR` to exercise the report's non-systemd branch. Drop back to the ordinary user with `setpriv`; preserve that user's HOME and tool PATH. Run with `T3CODE_DEV_SEED=0`.
6. From current main, run `vp run scenarios:prove scripts/scenarios/termux-agent-launch.e2e.ts --base 4f5d613a3db64df4ceadac918e0fa57d7c3e8811 --head 72090c7d4381631577816ea89f458c02a116f9bf --upload-command "ghdrop upload"`.

The scenario uses Replay (dev), whose ACP process uses the same agent scope launcher changed by this fix. It sends the reporter's prompt through the real web composer. The base capture shows a provider session failure; the base server log records `Error: spawn /bin/sh ENOENT`. The head launches the agent and renders its recorded reply. This proves the shared launcher path, not live Codex protocol behavior or native Android execution.
