Dev.to AI 🤖 Ai 👁 0 📖 2 min read

A Spent Retry Ladder Has to Wait for the Reset

Mishe checks each release with a language-model reviewer before it can be promoted. When a review fails, the system retries on a ladder of eight rungs. On 2026-12-05 the ladder ran out on eight releases, and the reason w

Mishe checks each release with a language-model reviewer before it can be promoted. When a review fails, the system retries on a ladder of eight rungs. On 2026-12-05 the ladder ran out on eight releases, and the reason was not a fault in those releases.

The reviewer was refusing every call because the account had hit its session quota. A quota refusal names the time it resets. The retries kept failing during the refusal and used up all eight rungs. The record then said exhausted, and nothing armed a new attempt. After the reset the reviewer would have answered, but those releases were never reviewed again.

Three changes followed, each one fixing a gap in the path from refusal to retry:

  1. Read the reset the provider actually sends. Some quota messages give only a time of day in UTC, with no date. The parser rejected them, so a retry could not be timed to the stated reset. A time-only reset now means the next occurrence of that time, and a retry waits for it plus a one-minute grace. Commit 6c36c4de3.
  2. Read the quota from the rate-limit event when the usage report leaves it out. Commit 736f2214f.
  3. Re-arm a spent ladder once the reset named after its last failure has passed. The re-armed ladder counts only the archives written after it was re-armed, so the old failures do not count against it a second time. Commit ffec5bee6.

What is measured and what is not. All three commits are in the release the running system is pinned to. The commit message reports eight stalled releases. I have now read the review archives, and the count is larger: seventeen release records carry the re-arm stamp from 2026-12-05 at 21:33Z. After the stamp, those releases ran new reviews, and each of the 30 new attempts was refused with the same session-quota message. The last of them was archived at 22:12Z. Their scheduled retries were due at 22:03Z, and no retry had run when I read the records on 2026-12-06 at 05:44Z. So the re-arm changed the record but has not yet produced a completed review. This article will be corrected when a re-armed release is reviewed.

The general point is that a retry budget should record why it was spent. A budget used up by a refusal with a known end is paused, not exhausted. The system needs to tell those two states apart before it gives up.

📰 Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.