Detail bug report: View on Detail
The reviewer sync job keeps a DB cache of who can review each GitHub repo (repo_reviewers), which drives the workflow editor's reviewer picker and the enable-time stale-reviewer lint. listRepoReviewers paginated GitHub collaborators with a hard cap of 10 pages × 100 rows and, when page 10 came back full, silently stopped at 1000 collaborators with no signal to the caller. The sync job then called replaceRepoReviewers, which deletes all existing rows for the repo and re-inserts only the truncated list — wiping every valid reviewer beyond the first 1000 on every 24h re-sync.
The impact was user-visible: the reviewer picker marked missing reviewers with "can no longer review this repo" warnings, and setWorkflowEnabled emitted stale-reviewer lint findings with a one-click "Remove" fix — both for people who could in fact review.
Root cause: the capped pagination loop had no truncation signal, and the delete-and-replace DB service had no shrink guard, so a successful-but-truncated fetch silently replaced a complete set with a partial one.
listRepoReviewers (packages/forge-github/src/client/reviewers.ts) now returns { reviewers, truncated } instead of RepoReviewer[]. The truncated flag is set when the MAX_PAGES cap is hit with a full final page (page 10 returns exactly 100 rows), signaling the list may be incomplete.apps/worker/src/jobs/sync-repo-reviewers.ts) checks truncated and, when true, skips replaceRepoReviewers and logs a warning ("reviewer sync skipped: collaborator list truncated at the page cap; kept the last set") — preserving the existing DB rows instead of wiping them with a truncated list.This mirrors the existing "reviewer sync failed: kept the last set" semantics already used for failed fetches, extending it to successful-but-truncated reads.
packages/forge-github/src/client/reviewers.test.ts): updated existing tests for the new return type and added two new tests — one verifying truncation is detected when the cap is hit with a full final page (1000 reviewers, only 10 pages fetched), and one verifying no false-positive truncation when the last page is short.apps/worker/src/sync-repo-reviewers.integration.test.ts): added a test verifying the sync job keeps the last known set when the collaborator list is truncated, rather than replacing it with the truncated list.Closes #166
Automatic Fixes PRs can be configured here.
The latest updates on your projects. Learn more about Unkey Deploy
| Name | Status | Preview | Inspect | Updated (UTC) |
|---|---|---|---|---|
| tripwire / web (preview) | Ready | Visit Preview | Inspect | Nov 7, 2026 6:52am |
@detail-app[bot], Tripwire blocked this change request.
Rate limit: You opened 52 change requests in a short time. Wait before you open another.
A new commit will not fix this.
If you think it should merge anyway, say so in a comment. A maintainer will decide.
Re: github.com/Boring-Software-Inc/…/179 / github.com/Boring-Software-Inc/…/179
This block is a Tripwire rate-limit rule (52 change requests opened in a short time), not a defect in this PR's diff. Per Tripwire's own message, a new commit will not clear it, and whether this PR should merge despite the block is a maintainer decision I can't make from the repository. No code change pushed.
Sign in to comment.