# Deleted Forgejo fork proof

Environment: Forgejo 11 container; real T3 Code web app, Chromium, 1280×800, light theme; fresh scenario database on each commit. Replay (dev) is selected; no real model is called.

Start a disposable Forgejo 11 instance on localhost:13300 with INSTALL_LOCK=true, DB_TYPE=sqlite3, ROOT_URL=http://localhost:13300/, and DISABLE_REGISTRATION=true. Create users maria (admin) and reviewer with the disposable password Proof47947Password and must-change-password=false. Run seed-forgejo.py once on that fresh instance.

Install the real Forgejo CLI 0.7.0 and authenticate maria to http://localhost:13300 with an application token. Keep its keys.json in a separate XDG_DATA_HOME; never upload it.

Set PROOF_FJ_BINARY to the absolute path of that real fj binary. Set XDG_DATA_HOME to its isolated authentication data directory and T3_SCENARIO_INHERIT_ENV=XDG_DATA_HOME. From current main with dependencies installed:

```sh
vp run scenarios:prove scripts/scenarios/deleted-forgejo-fork.e2e.ts --base 18884987f5152de4adc7cff4b2273f77f781bd4b --head 8cc88aa58872ea45c918898aebc6e191fb000aff --upload-command "ghdrop upload"
```

The scenario creates a project through T3, fetches the real Forgejo base repository, opens a new draft, searches the branch picker for the real PR URL, selects Checkout pull request, then Worktree. Captures show the resolved synthetic head and the resulting branch. Its expectations inspect real Git refs after the UI operation and reject refs/heads/refs/pull/1/head while requiring refs/heads/t3code/pr-1/.
