# Pull-request pagination proof

Requires an authenticated `glab` on gitlab.com and the repository's scenario runner.
The Python driver uses the real GitLab API, never a stub.

1. Set PROOF_SEED_FILE to an absolute seed.json path in a fresh scratch directory.
2. Run `python3 gitlab-seed.py seed`. This creates two private synthetic GitLab projects, one quiet MR and 101 busy MRs.
3. Put quiet-repository-pull-request-pagination.e2e.ts under scripts/scenarios in a current-main worktree with dependencies installed. Set PROOF_DRIVER to the absolute Python driver path.
4. Set the scratch scenario config timeout to 1,200,000 ms because the real GitLab writes are paced to avoid rate limiting.
5. Run T3CODE_DEV_SEED=0 T3_SCENARIO_INHERIT_ENV=T3CODE_DEV_SEED vp run scenarios:prove scripts/scenarios/quiet-repository-pull-request-pagination.e2e.ts --base 3d470695163bf8cdbb2539ea1eb22aae18debe31 --head bbcc53fdfa4b6c77eacf969da2ab14157cfdd7f5 --upload-command "ghdrop upload".
6. Delete only the two projects the seed created after collecting evidence.

On each side the scenario creates a fresh app database and registers a project containing both real GitLab remotes. It enables newpr, waits for its initial mark, disables workflows, opens X, updates 101 older MRs, opens Y, verifies X is beyond page 1 and Y is on page 1, then enables workflows. It waits for Y's creation time to become the saved mark and another 70 seconds before capturing All runs and checking that both X and Y started automatically.

Both app sides use the web scenario viewport 1280x800 and the runner's default theme. No agent inference is needed: each workflow body sets its title and subject and completes.
