Context
Leaf of #20892. .github/workflows/contributor-heads-up.yml (from #20949) tells each account of the badge ledger once. Its first rehearsal on the real runner, without post, was run 43625305209 on 2026-11-14 (18:12:38Z to 18:17:30Z, 133 accounts).
The Problem
The rehearsal ended with 91 "would post", 8 "no outside pull request in this repository" and 34 failed. Of the failed:
- 28 failed on the search with "You have exceeded a secondary rate limit", all between 18:12:49Z and 18:13:46Z. The first came 11 s into the run.
- 6 failed on the one-page guard. They are team accounts that the ledger held by mistake (neomjs/pages#77) and are not this ticket's subject.
After that minute the same pace ran without a refusal to the end. In a posting run those 28 accounts would not be told. A second run reaches them, because a marker keeps the others from being told twice, but it reads every earlier account again.
The Architectural Reality
- The script spaces its searches 2.1 s apart: 28.6 a minute against the search limit of 30 a minute. The token is the repository's, so every other workflow run of this repository draws on the same limit.
- A refused search is not waited out or tried again. The account's row reads
failed: <message>, a warning is written and the run goes on.
actions/github-script runs with retries: 0, and its retry plugin leaves 403 alone by default.
- The workflow replay in
test/playwright/unit/buildScripts/util/contributorStanding.spec.mjs passes the script's timer as a parameter, so a replay records each wait and sits none out.
The Fix
- Searches run 4 s apart (15 a minute), which leaves half the limit to the repository's other runs. About 120 accounts then take about eight minutes.
- A refused search waits and is tried again. A 403 or 429 that carries a
retry-after header or names a rate limit waits that many seconds, or 65 s without the header, then repeats the search: three more tries at most. After that the account is listed as failed, as today.
- The replay gains two arms and its pacing arm follows the new gap.
The workflow stays one-shot; #20953 removes it after the posting run.
Acceptance Criteria
Out of Scope
- The team accounts in the ledger (neomjs/pages#77).
- The posting run and its record (AC-9 of
#20949, kept on #20892).
- The merge comment's searches. They are two per merge.
Avoided Traps
- Setting the action's
retries. Its plugin does not retry a 403 by default, and a retry without the wait GitHub asks for adds refusals.
- Running in batches with
limit. Each batch reads every earlier account again, which adds searches where there are too many.
Related
#20892 (the program), neomjs/pages#77 (the ledger), #20953 (the removal).
Decision Record impact: none.
Live latest-open + closed sweep: the latest 20 open by creation date at 17:58Z plus the six newest at 18:28Z (49 open, orange band; a leaf of its owning epic) and searches over all states (secondary rate limit, heads-up rate limit, search limit workflow; #20344 read by title: another workflow's runner count) at 2026-11-14T18:28Z; no equivalent or prior exclusion found. A2A in-flight claim sweep (claim-tagged messages since 14:26Z): no claim on this scope. MC sweep: the build record of #20949 of 2026-11-14 is the prior art; it chose 2.1 s from the search limit alone. Own-assignment sweep: #20892, #20527, #20953; none covers this. Structure map: N/A.
Ownership: self-assigned; I built the run and the launch waits on it. Not curated for outside contributors: it gates a run that posts to other people's pull requests.
Retrieval Hint: "contributor heads-up workflow secondary rate limit search, wait and retry, retry-after, search gap"
Origin Session ID: dbc9def6-bffb-487a-b204-89679440e2bd
Context
Leaf of #20892.
.github/workflows/contributor-heads-up.yml(from#20949) tells each account of the badge ledger once. Its first rehearsal on the real runner, withoutpost, was run 43625305209 on 2026-11-14 (18:12:38Z to 18:17:30Z, 133 accounts).The Problem
The rehearsal ended with 91 "would post", 8 "no outside pull request in this repository" and 34 failed. Of the failed:
After that minute the same pace ran without a refusal to the end. In a posting run those 28 accounts would not be told. A second run reaches them, because a marker keeps the others from being told twice, but it reads every earlier account again.
The Architectural Reality
failed: <message>, a warning is written and the run goes on.actions/github-scriptruns withretries: 0, and its retry plugin leaves 403 alone by default.test/playwright/unit/buildScripts/util/contributorStanding.spec.mjspasses the script's timer as a parameter, so a replay records each wait and sits none out.The Fix
retry-afterheader or names a rate limit waits that many seconds, or 65 s without the header, then repeats the search: three more tries at most. After that the account is listed as failed, as today.The workflow stays one-shot;
#20953removes it after the posting run.Acceptance Criteria
retry-after: 7: one wait of 7 s, the same search again, the account's note rendered and no failed row.main, owner: @neo-fable-mnemosyne): a run withoutpostlists no account as failed for a rate limit; its URL and totals go to #20892.Out of Scope
#20949, kept on #20892).Avoided Traps
retries. Its plugin does not retry a 403 by default, and a retry without the wait GitHub asks for adds refusals.limit. Each batch reads every earlier account again, which adds searches where there are too many.Related
#20892 (the program), neomjs/pages#77 (the ledger),
#20953(the removal).Decision Record impact: none.
Live latest-open + closed sweep: the latest 20 open by creation date at 17:58Z plus the six newest at 18:28Z (49 open, orange band; a leaf of its owning epic) and searches over all states (
secondary rate limit,heads-up rate limit,search limit workflow;#20344read by title: another workflow's runner count) at 2026-11-14T18:28Z; no equivalent or prior exclusion found. A2A in-flight claim sweep (claim-tagged messages since 14:26Z): no claim on this scope. MC sweep: the build record of#20949of 2026-11-14 is the prior art; it chose 2.1 s from the search limit alone. Own-assignment sweep:#20892,#20527,#20953; none covers this. Structure map: N/A.Ownership: self-assigned; I built the run and the launch waits on it. Not curated for outside contributors: it gates a run that posts to other people's pull requests.
Retrieval Hint: "contributor heads-up workflow secondary rate limit search, wait and retry, retry-after, search gap"
Origin Session ID: dbc9def6-bffb-487a-b204-89679440e2bd