# Terminal startup proof

All data is synthetic. Application source and bundles are unchanged by the drivers.

The web scenario uses `t3.project` and `t3.thread` with Replay (dev), then drives the real HTTP/WebSocket server and Chromium client. Run the scenario runner from current main, pointing `--base` at the merge base and `--head` at the fix. Pass `NODE_OPTIONS=--require=<faults.cjs>` through `T3_SCENARIO_INHERIT_ENV=NODE_OPTIONS,T3CODE_DEV_SEED`, with `T3CODE_DEV_SEED=0`.

The preload reads a control file beside the drivers. It delays a configured shell lookup for 800 ms for the disconnect case. For deadline cases it holds the relevant filesystem operation or real child probe pending. The head's own deadlines end those operations; no fixture changes a terminal status or supplies terminal output.

The helper case stages an inert helper at node-pty's ordinary helper search path with mode 0644. The first existence check finds it; the second check stalls. After the five-second deadline, a second terminal opening must retry the check and repair the mode. `stat` in the real shell prints `HELPER_MODE=755` on head. Linux does not execute this helper file; this exercises the check, timeout and permission-repair retry.

Desktop builds use each commit's server bundle, desktop bundle, and web assets staged in `apps/server/dist/client`, as the CLI packaging script does. Run the desktop driver through `headless-desktop`. Its loader loads the unchanged Electron entry and adds the same preload to the bundled server's arguments, because desktop environment preparation removes NODE_OPTIONS. It completes onboarding, opens the seeded thread with the keyboard, drops a page-created socket during delayed startup, reconnects the renderer, opens the drawer, and types the echo command.

The network case uses a separate paired Chromium browser and the desktop-hosted server's non-loopback address in network-accessible mode. Run `interruptTerminalStartup` in the paired thread page, reload that thread, open the drawer, click the terminal, type `echo REPRO_OK_$((40+2))`, and press Enter. The socket drops after 200 ms on both commits. This is a separate browser client on the same worker, not a second physical device or a relay/tunnel test.

Recordings contain the interactions. Network stills were selected from the final stable second of their recordings, with consecutive frames 500 ms apart verified identical. Other manual stills use the driver's two-screenshot stability check.
