# Tracker pagination proof

Real web client, fresh isolated server data, Chromium, 1440×1000, light theme. Real GitLab and Linear APIs; no fabricated issue or error replies.

The scenario harness normally pins Linear to a local fake API. Apply `real-linear-endpoint.patch` to the harness checkout so this proof reaches the real service.

Prerequisites: authenticated `glab`, a Linear API key restricted to the factory test team, and the team's key and ID in `LINEAR_API_KEY`, `LINEAR_TEST_TEAM_KEY`, and `LINEAR_TEST_TEAM_ID`.

1. Set `PROOF_SEED_DIR` to a new scratch directory and run `python3 linear-seed-public.py`. This creates 51 tagged issues and records their IDs there.
2. Place the scenario file under `scripts/scenarios/` in a current main checkout with dependencies installed.
3. Run:

```sh
T3CODE_DEV_SEED=0 T3_SCENARIO_INHERIT_ENV='LINEAR_*,T3CODE_DEV_SEED' vp run scenarios:prove scripts/scenarios/issues-pagination-failure-stays-with-tracker.e2e.ts --base 66cc44d75b95b76933443b6864054a5354d52c27 --head 024c4c8ff1bd97b87c8974c25ec83f853b658127 --upload-command 'ghdrop upload'
```

The scenario creates a project pointing to GitLab's public gitlab-org/cli repository and binds the Linear test team to it. It opens Issues with all trackers, waits for both Load more buttons, and clicks GitLab's. A client-side driver changes only that outbound continuation's limit to 201, producing the server's real schema validation failure. Every response is delivered by the real server and services. It captures GitLab, captures Linear, clicks Linear's current continuation button (Retry on base; Load more on head), waits for the newly loaded item 01, and captures GitLab again.

Expected: Linear remains Load more after GitLab fails, and GitLab remains Retry after Linear succeeds. Both expectations pass on head. Base shows Retry under Linear and subsequently clears GitLab's failure.

4. With the same `PROOF_SEED_DIR` and Linear credentials, run `CLEANUP=1 python3 linear-seed-public.py` to delete only the issues this script created.
