# Work-log env argv0 proof

Requirements: a main checkout with the scenario runner, GNU coreutils 9.7's compiled `src/env`, and an authenticated OpenCode 2 installation with `anthropic/claude-haiku-5-5` available.

GNU source: https://ftp.gnu.org/gnu/coreutils/coreutils-9.7.tar.xz
Build with `FORCE_UNSAFE_CONFIGURE=1 ./configure --disable-nls --disable-gcc-warnings`, then `make -j4`. The `src/env` target was available even though unrelated utility links failed in this environment.

Set `ENV97_BINARY` to the compiled env executable and `OPENCODE_BINARY` to the installed OpenCode executable. These variables are consumed by the scenario driver, not printed in the app. The driver copies genuine GNU env into the synthetic project's `bin/env`; it does not substitute a fake command or provider.

From a current main checkout, install dependencies with `vp i`, place the uploaded scenario under `scripts/scenarios/`, then run:

```sh
T3CODE_DEV_SEED=0 T3_SCENARIO_INHERIT_ENV='OPENCODE_*,ANTHROPIC_*,OPENAI_*,CURSOR_API_KEY' vp run scenarios:prove scripts/scenarios/env-argv0-program-label.e2e.ts --base 369a4474c5fc3012e381ab92aeb80e210185add5 --head 9540fec4e55ea7a72fe33bef3c12d9694bb5f529 --upload-command 'ghdrop upload'
```

The runner creates isolated real web apps, fresh databases, and a 1280×800 Chromium browser in the light theme. The scenario seeds a synthetic git repository, starts a real Haiku 5.5 thread through OpenCode, and sends the same two composer prompts on both sides. Each prompt asks for one env-wrapped git status command and then a text-only essay. The essay keeps the turn live while the label is inspected. Both turns are allowed to finish.

The initial live row can briefly be generic before command input arrives even on the fixed build. The scenario asserts that `Running git` or `Ran git` becomes visible and captures that label when it does. The base initial screenshots capture the generic label, which never becomes a git label there.
