You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gap — found by the #6622 Phase 4 closing pagination inventory (#6623)
scripts/program_tending.py makes single-page per_page=100 GitHub reads whose results are presented as complete sets/counts, with no pagination, no bound, and no truncation marker:
:285section_epics: GET /repos/{repo}/issues?state=open&labels=epic&per_page=100 — the returned page is iterated as the repo's epic set. A repo with more than 100 open epics would silently lose the overflow from the tending report.
Against the pagination contract (#6622: complete, bounded, or say so), both violate rule 3 (truncation never silent) and rule 2 (no bound). Contrast inside the same file: the roadmap state read at :431 degrades honestly — refs past the first page are simply absent from the state map and are reported "unverified", never as a wrong state — and sibling scripts (scripts/fleet/queue-reconcile/check_coverage.py, scripts/fleet/repo-universe/) read completely via gh api --paginate.
Fix shape
For each site, either paginate to completion (the --paginate pattern already used by sibling scripts, or page until a short page with a named page bound), or use the search/list total_count for the count site, or mark the truncation explicitly in the section output. Bound values are the fixer's, per the contract. Tests: a stubbed two-page response is read completely (or the truncation is visibly marked).
Filed by the Phase 4 inventory (task 14524, lane code-b). No fix is attempted inside the inventory, per #6623's acceptance.
🤖 Agent note · triaged — not reproducible (the filed defect does not exist) — task 18806 (lane code-a)
Fresh verification (2026-11-17), origin/main 0c25dba: both sites named in this issue call the shared helper _gh_api (scripts/program_tending.py:134), whose docstring and implementation follow pagination: it loops while url: over the response Link header's rel="next" (lines 144–160) and accumulates every page before returning. So:
section_epics (:285) iterates the complete epic set, not a first page.
stub_stalled_prs (:670) computes open_prs = len(prs) over the fully paginated list — the count is exact, not a page count.
Every other read in the file (203, 338, 431) also goes through _gh_api; the only other urlopen is the _gh_write POST. There is no single-page read path in the file.
Since when: the pagination loop has been in _gh_api since the slice-1 scaffold, commit 471f7dc (2026-11-03) — nine days before this gap was filed (2026-11-12). The Phase 4 inventory appears to have pattern-matched the per_page=100 call sites without reading the helper they call. per_page=100 here is just the page size of a complete paginated read — the first fix shape this issue itself offers ("paginate to completion") is what the code already does.
Disposition: closing as not reproducible / no defect. If a future inventory finds a read that bypasses _gh_api, that is a new, concrete site to file. Task 18806 completes as no_longer_reproducible; no follow-on routed.
🤖 Agent note · no_longer_reproducible (re-verified, task 20265, lane code-h)
Issue program_tending: single-page per_page=100 reads present page as complete set/count (#6622 Phase 4 gap) #9011 is CLOSED. On origin/main, every per_page=100 read in scripts/program_tending.py goes through _gh_api (line 165), which loops on the rel="next" Link header (line 186) and returns the complete set. No single-page read path exists, so there is no truncated count. Agrees with the not-reproducible verdict from task 18806.
Activity
developing-today commentedon Nov 12, 2026
CODE-2754
dezren39 commentedon Nov 17, 2026
🤖 Agent note · triaged — not reproducible (the filed defect does not exist) — task 18806 (lane code-a)
_gh_api(scripts/program_tending.py:134), whose docstring and implementation follow pagination: it loopswhile url:over the responseLinkheader'srel="next"(lines 144–160) and accumulates every page before returning. So:section_epics(:285) iterates the complete epic set, not a first page.stub_stalled_prs(:670) computesopen_prs = len(prs)over the fully paginated list — the count is exact, not a page count._gh_api; the only otherurlopenis the_gh_writePOST. There is no single-page read path in the file._gh_apisince the slice-1 scaffold, commit 471f7dc (2026-11-03) — nine days before this gap was filed (2026-11-12). The Phase 4 inventory appears to have pattern-matched theper_page=100call sites without reading the helper they call.per_page=100here is just the page size of a complete paginated read — the first fix shape this issue itself offers ("paginate to completion") is what the code already does._gh_api, that is a new, concrete site to file. Task 18806 completes asno_longer_reproducible; no follow-on routed.dezren39 commentedon Nov 17, 2026
🤖 Agent note · no_longer_reproducible (re-verified, task 20265, lane code-h)
per_page=100read inscripts/program_tending.pygoes through_gh_api(line 165), which loops on therel="next"Link header (line 186) and returns the complete set. No single-page read path exists, so there is no truncated count. Agrees with the not-reproducible verdict from task 18806.