# Forgejo organization-label proof

Environment: real Forgejo 11 in Docker, HTTP port 3917; official fj 0.7.0; T3 Code web scenario runner, Chromium 1280x800, light theme, fresh T3 database per side, Replay (dev).

Create a disposable Forgejo instance and an administrator named `evidence`, then generate an application token with all scopes. Supply it as `FORGEJO_TEST_TOKEN` to `seed.py`. Authenticate official `fj` with that token on `http://localhost:3917`, with an isolated `XDG_DATA_HOME`. Set `FORGEJO_CLI_PATH` to the downloaded official fj executable.

Run the uploaded scenario from a current-main checkout with dependencies installed:

```sh
T3CODE_DEV_SEED=0 T3_SCENARIO_INHERIT_ENV='XDG_DATA_HOME,T3CODE_DEV_SEED' vp run scenarios:prove scripts/scenarios/forgejo-organization-labels.e2e.ts --base a6dc0b7e53eaa2b9cc1710b23034d1611ed762ff --head c25eb25b9f7b2216f74035defc4ab3c48a0d1795 --upload-command 'ghdrop upload'
```

The scenario resets issue labels before each side. It creates a local project through T3's API, gives its git repository the real Forgejo repository's remote, seeds a Replay thread, and opens Issues. On issue #2 (already carrying the organization label), it adds the repository label `bug` and records the outcome. On issue #1 it searches the label picker for `priority`. Base must fail because `priority/high` is absent. Head must offer it, save it, retain it after refresh, and leave issue #2 carrying both labels; the final checks read the real Forgejo API.

The UI has no issue-creation action in this version, so this scenario does not exercise T3's issue-create service. It does not cover same-name collisions, personal repositories, restricted organization access, or pagination.
