Repository navigation
fix(roadmap): name a spent provider key, not a refused key - #6827
Merged
Merged
Conversation
Owner
Author
|
Review points and the person step for this pull request: Person step (not for the merge). When Decisions to review.
Evidence.
Found, not in this pull request. #6828: |
A result line of an attempt that a spent provider key stopped now has infra=true, so the job grade leaves it out of p. The runbook of the alert names the implement retry that a spent key needs.
dan-petty
force-pushed
the
fix/6821-provider-key-spend-limit
branch
from
November 23, 2026 02:02
4389054 to
ebee528
Compare
dan-petty
marked this pull request as ready for review
November 23, 2026 02:10
dan-petty
pushed a commit
that referenced
this pull request
Nov 23, 2026
🤖 I have created a release *beep* *boop* --- ## [0.198.0](v0.197.0...v0.198.0) (2026-11-23) ### Features * **ci:** refuse changes to environment paths after the switch ([#6823](#6823)) ([ad366bb](ad366bb)) * **roadmap:** Add requirement text to the stage context ([#6826](#6826)) ([615bbc4](615bbc4)) * **roadmap:** Require a rejected alternative with a fact ([#6836](#6836)) ([5467e22](5467e22)) * **roadmap:** The stage plan states constant claims ([#6837](#6837)) ([5ea6d02](5ea6d02)) ### Bug Fixes * **deps:** update ghcr.io/dan-petty/devtools Docker tag to v1.1.1 ([#6834](#6834)) ([ea1b00f](ea1b00f)) * **docs:** the error catalog lists the onboard errors ([#6829](#6829)) ([1846b2d](1846b2d)) * **roadmap:** name a spent provider key, not a refused key ([#6827](#6827)) ([3aedb2f](3aedb2f)) * **roadmap:** read a record below a block a person opens ([#6812](#6812)) ([54a36e9](54a36e9)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A 401 or 403 model reply whose provider says that the key reached its spend limit (OpenRouter
Key limit exceeded, through the gateway) givesAIKeySpendLimitError, notThe model refused the key. One rule,spend_limit_error, reads the error text of the body formodel_call_error,LLMClientandfetch_model_info. It names the spend limit and the person step, with no key, URL or amount. As a subclass ofAICredentialsError, it stops each stop site.The new failure class
spend_limit(actionwait, 1 hour) comes from the error type or from its Job log line. A failed stage Job counts asspend_limit, notci_infra. The class is inINFRA_CLASSES, so its result line hasinfra=trueand the job grade leaves it out ofp. The new critical alertRoadmapProviderKeySpendLimitreads that class on the stage, implement and suspended series. Its runbook says that an implement item that a spent key stopped stays Blocked until a person commentsimplement: retry.Closes #6821
Change:
openspec/changes/archive/2026-11-23-6821-provider-key-spend-limit/