GeezerVison is showing github.com — fleet-paperwork: installations() fetches only page 1 of /app/installations — with 103 installations the developing-today org is page 2, so every App-route write fails 'no installation found' · Issue #7930 · developing-today/code
fleet-paperwork: installations() fetches only page 1 of /app/installations — with 103 installations the developing-today org is page 2, so every App-route write fails 'no installation found' #7930Descriptionfleet-paperwork: installations() fetches only page 1 of /app/installations — with 103 installations the developing-today org is page 2, so every App-route write fails 'no installation found'
Summary
infra/fleet-paperwork/fleet_paperwork.py is the fleet's rate-limit fallback
for GitHub writes: when the user token hits GitHub's secondary rate limit,
issue/comment/PR writes are retried as the developing.today GitHub App
(App ID 5454422). That route is currently down for the developing-today
org: AppClient.installations() fetches exactly one page of
/app/installations (per_page=100, no page parameter, no pagination
loop), and the app now has 103 installations, so the first page (100,
newest first) no longer contains the developing-today org installation.
Every App command for developing-today/* dies with
no installation of the app found for owner 'developing-today' before it
can mint a token.
Evidence (verified live 2026-11-09, code @ origin/main 13eb408)
infra/fleet-paperwork/fleet_paperwork.py:
installations() (lines 251–263): a single
GET /app/installations?per_page=100 — no page loop, and the result is
cached as if complete. installation_for() (lines 265–272) then searches
only that truncated list.
- The same file paginates correctly in two sibling places:
assert_repo_in_scope() loops /installation/repositories?per_page=100&page=N
(line ~296), and find_by_exact_title() pages the Search API
(line ~385, "the scan pages through the matches … so an exact-title issue
past the first page is still found"). installations() is the one list
fetch that does not page.
Live reproduction (laptop, 2026-11-09T02:47–02:52Z):
fleet_paperwork.py check lists exactly 100 installations; the
developing-today org is not among them (only developing-today-vendor,
developing-today-fork, developing-today-vendored are).
fleet_paperwork.py create --repo developing-today/code … fails:
no installation of the app found for owner 'developing-today'.
- Fetching the same endpoint with
page=2 returns the remaining
installations — 103 across 2 pages — including the org installation.
With the paginated list, the identical create and comment calls
succeeded and verified by readback (issue id(world): parse_wants accepts a non-object args — a scalar/array args collapses to no arguments, silently widening records.read to every record #7929 and its agent note,
comment 6731084039, were filed through this route during the run that
found this).
- Independent corroboration the same hour: another fleet lane recorded
"app route down" in its run bookkeeping (sweep.log, 2026-11-09T02:53:00Z)
and parked its GitHub writes in the action outbox instead.
Context: the user token was under a secondary rate limit at the time
(gh api create → HTTP 403 "You have exceeded a secondary rate limit",
request ID 302F:25BDF8:44D395:E39792:6AF134FA, 2026-11-09 02:50:35 UTC) —
exactly the situation this tool exists for — so both write paths were
unavailable at once and only the paginated workaround restored the App
route.
Why it matters
The App route is the documented fallback (Drew, 2026-11-03) that keeps
fleet GitHub writes flowing when the user token is rate-limited. With it
silently capped at page 1, any owner whose installation falls off the
first page — today the org that owns three of the four fleet repos — loses
the fallback entirely, and every affected write degrades to the action
outbox or is lost to a silent no-op on the limited token. The failure
mode is also deceptive: "no installation found" reads as the app is not
installed on the org, which sends diagnosis toward re-installation
instead of a one-line pagination gap. The installation count only grows,
so more owners will fall off page 1 over time.
Related: #6623 (repo-wide pagination inventory — this is a live instance
of that contract failing, in the fleet's own fallback tool); #6864
(closed; response-shape validation in the same file — different defect);
#7903 (comment subcommand 422 — different defect).
Acceptance criteria
-
installations() pages /app/installations until a short page (or the reported total) is reached, so the returned list is complete regardless of installation count.
-
fleet_paperwork.py check reports all 103+ installations, including developing-today, and create/comment/token/api for developing-today/code succeed end-to-end (verified by the tool's own readback) without any workaround.
- A regression test covers the multi-page case (e.g. a stubbed two-page installations response where the target owner is only on page 2), following the file's existing test patterns if any, or a new one alongside the tool.
- Pacing/caching behavior is preserved: the paginated fetch still happens once per client (the
_installations cache), and no other command's behavior changes.
Activityadded kind/bugSomething isn't working (prefixed form of the classic bug label) task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests effort/sSmall: expected under 2 hours of work on Nov 9, 2026developing-today commented on Nov 9, 2026 ContributorAuthor More actions developing-today commented on Nov 9, 2026 ContributorAuthor More actions Fresh confirmation from lane openchamber-b shift, 2026-11-08 evening (2026-11-09T02:45-03:00Z):
- fleet queue fallback verbs for developing-today-forks/openchamber worked with an app token minted at shift start, then token mint began failing 5/5 with: no installation of the app found for owner developing-today-forks.
- Paginated read of GET /app/installations (per_page=100, pages 1-2) returns 103 installations; developing-today-forks and developing-today are both on page 2. A local monkey-patch of AppClient.installations to walk pages minted a working token immediately (token length 383, heartbeat/PR/merge/release all succeeded with it).
- Impact this shift: user token was simultaneously secondary-rate-limited for content creation, so the App route was the only write path; without the workaround, two merged fixes (openchamber PR id: investigate: hosted data option — per-user stores, Google SSO, static/local-storage variants, container-spend limits #2045 for ci(cf-container-hello): run the #955 hardening suite in a workflow (#1439) #1627, PR id: design: ID serverless edition v1 (Cloudflare Workers) #2046 for id: design: abuse-control primitives v1 for ID comms #2033) could not have posted heartbeats, PRs, or releases.
agent-note:v1 - Agent: repo-queue-worker-shift-openchamber-b - state: confirmed - issue: code#7930 dezren39 commented on Nov 9, 2026 Fixed and merged.
PR: #8065 — fix(fleet-paperwork): page through all /app/installations (#7930)
Merge commit: 338a6e125af537d3c99086bb47007621c500bbb0 (merge commit, verified on origin/main)
Change: AppClient.installations() in infra/fleet-paperwork/fleet_paperwork.py now pages through all of /app/installations (per_page=100&page=N), stopping at a short or empty page — mirroring the existing pagination loop in assert_repo_in_scope. The endpoint returns a top-level array with no total_count, so page length is the stop signal. Per-entry shape validation is unchanged and now applies to every page; results are still cached on the client. Nothing else changed.
Tests: 3 new cases in infra/fleet-paperwork/tests/test_fleet_paperwork.py (multi-page collection + page-2 owner resolution for developing-today / developing-today-forks; short first page = exactly one call; exact multiple of 100 = one trailing empty page). Full file: python3 -m unittest tests.test_fleet_paperwork — 35 tests, OK.
Live verification (laptop, fleet_paperwork.py check, read-only resolution + installation-token mint via the scope check; no App-route writes needed):
- Before (unpatched): 100 installations, exit 1 —
no installation of the app found for owner 'developing-today'
- After: 103 installations across 2 pages;
developing-today resolves to installation 174792676, developing-today-forks to 178565858; developing-today/code and developing-today-forks/opencode both verified in installation scope.
The App rate-limit fallback route for developing-today/* is live again. Queue task 14295 is assigned to the direct lane (not this fix's claim) and is left for that lane to complete against this PR. developing-today commented on Nov 9, 2026 ContributorAuthor More actions Live proof from the merged fix (PR #8065, merge commit 338a6e1): this comment is posted through the fleet-paperwork App route itself.
Independent re-verification on the laptop just now:
- check --repo developing-today/code: exit 0, 103 installations listed, developing-today (installation 174792676) resolves, repo in installation scope.
- check --repo developing-today-forks/opencode: exit 0, 103 installations listed, developing-today-forks (installation 178565858) resolves, repo in installation scope.
- Module tests: 35/35 OK (including the 3 new multi-page cases).
The page-2 owners resolve again — the App fallback route is restored.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|