fix(agents): harden tier fallback runtime#529
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR size advisoryThis PR adds 3687 lines of substantive change. CONTRIBUTING.md defines a soft limit of ~400 LOC. If the PR is genuinely cohesive (e.g. an architecture map, a generated migration, a deletion of a dead module), no action is needed. Otherwise consider:
This is advisory — it does not block the merge. |
✅ Dogfood Visual QA Gate: PASSED
ArtifactsDownload the Generated by Dogfood QA Gate |
|
Demo: walkthrough of the surfaces this PR changed is available as a workflow artifact ( |
This was referenced Jul 14, 2026
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.
Summary
Production incident fixed
Signed-in production dogfood after #528 persisted user messages but produced no assistant output. The worker selected gemini-3-flash-preview despite the stored kimi-k2.6 choice, then failed because that Gemini model was unavailable on the free tier. The UI masked the terminal worker error. This PR fixes the routing, accounting, cancellation, and presentation chain together.
P0 size exception
This is a cohesive P0 runtime safety repair across the provider boundary, atomic billing ledger, additive schema, queue lease, UI projection, and exact regressions. Splitting those contracts would create intermediate states that can either call a provider without the matching reservation semantics or continue masking terminal failures.
Verification
Release
P0 workflow: required CI only, squash auto-merge, no admin bypass. Production will be dogfooded once after merge/deploy before this is called live.