GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — projector: listResource follows Link headers with no volume bound (#6622 Phase 4 gap) · Issue #9010 · developing-today/code

projector: listResource follows Link headers with no volume bound (#6622 Phase 4 gap) #9010

New issue
Copy link
New issue
Copy link
Closed
#10975
Closed
projector: listResource follows Link headers with no volume bound (#6622 Phase 4 gap)#9010
#10975
Copy link
Assignees
dezren39
Labels
effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)status:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

@dezren39
dezren39
opened on Nov 12, 2026
Issue body actions

Gap — found by the #6622 Phase 4 closing pagination inventory (#6623)

pm-stack/projector/src/github.ts:203 listResource follows GitHub Link: rel="next" headers in an unbounded while (path) loop, accumulating every page into one array. It is the single page-follower under every projector reconcile read (pm-stack/projector/src/reconcile.ts: pulls :59, issues/collections :78/:102, pulls :149, reviews :161 — all per_page=100).

Against the pagination contract (#6622: complete, bounded, or say so):

  • Rule 1 (cursor validated): the cursor is GitHub's own Link URL — followed as-is (that part is correct and load-bearing; see the in-code comment about absolute URLs).
  • Rule 2 (volume bounded): violated. No page-count or accumulated-result bound exists. A stream that keeps returning a next link (a fresh-token stream — a misbehaving proxy, a GitHub pagination defect, a redirect loop) never terminates and grows memory without limit. Every other page loop inventoried in Phase 4 carries a named bound (aggregator projects.ts 10-page cap with a named error; needs-drew MAX_PAGES; janitor/yard MAX_PR_PAGES fail-closed; drain_queue MAX_QUEUE_PAGES/EVENTS).
  • Rule 3 (truncation never silent): N/A until a bound exists — the bound's breach must be an error naming the listing, never a silent partial return.

Fix shape (per the contract; bound value is the fixer's, sized off the legitimate maximum)

Add a named page bound (and/or accumulated-row bound) to listResource, sized generously above the largest legitimate reconcile listing across the four repos, whose breach throws an error naming the resource path. Add the probe-matrix tests the contract carries: fresh-next-link stream past the bound errors; a legitimate multi-page read completes.

Filed by the Phase 4 inventory (task 14524, lane code-b). No fix is attempted inside the inventory, per #6623's acceptance.

Activity

  1. developing-today commented on Nov 12, 2026

    @developing-today
    developing-todayBot
    on Nov 12, 2026 – with developing.today
    Contributor
    More actions

    CODE-2753

  2. github-actions
    assigned
    dezren39
    on Nov 12, 2026
  3. developing-today
    added
    status:in-review
    on Nov 17, 2026
  4. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    🤖 Agent note · fix implemented — PR #10975 open; task parked on its merge (task 18805)

    • Agent: queue worker (repo-worker-code), lane any-c
    • Session / ID: task 18805
    • PR: fix(projector): bound listResource pagination (MAX_LIST_PAGES) — #9010 #10975 (queue/18805-9010-listresource-bound)

    Triage verdict: the gap is real and was still live on current main — listResource (pm-stack/projector/src/github.ts) followed Link: rel="next" in an unbounded while (path) loop; the only stop was the caller-driven #9850 early-stop, not a volume bound. Labels applied: task/small-fix, priority/normal, effort/s, kind/bug.

    Fix (PR #10975): named bound MAX_LIST_PAGES = 200 exported from github.ts (20,000 rows at per_page=100 — generously above the largest legitimate reconcile listing, matching the named-bound style of every sibling loop). When a further page exists past the bound, listResource throws github_api_pagination_bound: <initialPath> exceeded 200 pages — an error naming the listing, never a silent partial return (contract rule 3). A read of exactly the bound completes when its last page has no next link.

    Tests: probe matrix in test/github.test.ts — a fresh-next-link stream errors at exactly the bound with the naming error and exactly MAX_LIST_PAGES fetches; a legitimate read of exactly the bound completes. Full projector suite: 162 pass / 0 fail (160 baseline + 2 new). tsc --noEmit error count identical to main (10 pre-existing, none in the touched files).

    Resume condition: merge PR #10975 when its checks go green (fix any CI finding on the branch queue/18805-9010-listresource-bound in worktree ~/git/fleet/queue-18805-9010); the PR body carries Fixes #9010, so this issue closes on merge; then complete task 18805 as fixed_merged naming PR #10975.

  5. dezren39
    added
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    priority/normalOrdinary priority (the default)
    effort/sSmall: expected under 2 hours of work
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    on Nov 17, 2026
  6. dezren39
    added a commit that references this issue on Nov 17, 2026

    Merge pull request #10975 from developing-today/queue/18805-9010-list…

    4a5e671
  7. dezren39
    closed this as completedin #10975on Nov 17, 2026
  8. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 17, 2026
  9. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    🤖 Agent note · fixed + merged — PR #10975 landed (task 18805 follow-through, lane any-c)

    • Agent: queue worker (repo-worker-code), lane any-c
    • PR: fix(projector): bound listResource pagination (MAX_LIST_PAGES) — #9010 #10975 — MERGED 2026-11-17T04:52:53Z, merge commit 4a5e671b5c4fb033a0d33c497f2c82ca3eb4e81d; CodeRabbit check passed. This issue auto-closed via the PR's Fixes #9010.

    Queue bookkeeping: task 18805 is parked (it was parked on this merge by the same lane before claiming other work) and the broker will not complete a parked task without a claim — the lane that next claims task 18805 should complete it as already_done/fixed_merged naming PR #10975 and merge commit 4a5e671b; no work remains.

  10. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done — already fixed (task 20373, openchamber scheduled lane any-o)

    • Fresh check: issue projector: listResource follows Link headers with no volume bound (#6622 Phase 4 gap) #9010 is CLOSED; PR fix(projector): bound listResource pagination (MAX_LIST_PAGES) — #9010 #10975 is MERGED (merge commit 4a5e671b5c4fb033a0d33c497f2c82ca3eb4e81d), adding MAX_LIST_PAGES bound to listResource.
    • Verdict: already_done. No further work; completed the queue task with that evidence.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)status:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.