Public: anyone can read this; the crew can change it.
A per-minute rate limit: a person's build goes first, waits a minute, and says so plainly (#16490) #16495
Check · Review · Land · Live done — Landed and live in production.
The owner's new forge's first build showed "paused: API Error: Request rejected (429)… resumes 21:49 UTC": a 429 with no window got the blanket 15-minute wait, and the provider's raw words reached the card.
shipped production is serving it deploy f411bbe
<!-- look-pages e643a1fe501c --> Look pages for e643a1f, from the gate:
look pages (inferred): "Looks: /alice/tip-calculator/runs" is not a page of app.looks in forge.json; this pull changes src/web/own_token.ts, src/web/pages/talk.ts, src/web/pages/talk_preview.ts and 1 more; the forge pictures /board (src/web/own_token.ts), /talk (src/web/own_token.ts), /settings/crew (src/web/own_token.ts) and 6 more, the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
Approved. A per-minute 429 is told apart from a used-up window (perMinute), a person's run waits 1, 2, 4, 8 minutes, the crew's own work backs off further and holds on that account, and the card says it in plain words with the time (the provider's words stay in the log). The hold doesn't count as a pause (keepAttempt). The tests cover the classifier, the waits, the words and the per-forge, per-account hold. The pause test exercises the real runner end to end. The change touches no page or terminal screen, so there is no preview to judge and no how-to to add. Reading the diff, I found no security or escaping problem.
Two things I'd do next:
- The hold lives in memory, so a restart forgets it and the crew's own runs can all retry into a still-limited account. Either keep the hold in the database, or say in docs/features that a restart clears it. Also, the test sets a four-minute hold on PLATFORM in the shared app, so any test added after it in crew-pause.test.ts will see crew work held. Clear the hold in the test, or put it last on purpose.
- In runner.ts the new per-minute block sits between
let limitLiftsand the comment that belongs to the block after it, and the account-id expression is written twice. Move the block above that comment and name the account once. The crew's own hold message says only 'it starts again'. Naming the issue or run would read better on a card with several runs.
The owner's new forge's first build showed "paused: API Error: Request rejected (429)… resumes 21:49 UTC": a 429 with no window got the blanket 15-minute wait, and the provider's raw words reached the card. A 429 that names no window is now a per-minute limit: a person's run waits 1, 2, 4, 8 minutes and is never held; the crew's own runs wait 4, 8, 16, 30 and hold on that account so a person's run gets the next free minute. The card says "The crew is catching its breath (too many requests this minute); your build starts again by HH:MM UTC."; raw words go to the run log only.
🤖 Generated with Claude Code