Repository navigation
refactor(runtime): extract provider error classification - #1214
Merged
likun666661 merged 1 commit intoJul 19, 2026
Merged
likun666661 merged 1 commit into
likun666661 merged 1 commit into
Conversation
Move provider error evidence normalization, overflow patterns, classification, and presentation into a dependency-free leaf shared by ToolRuntime and ModelAdapter. Relocate the taxonomy tests and add an extraction contract to keep the boundary explicit. Classification order and presentation strings are unchanged.
xuruiray
marked this pull request as ready for review
July 18, 2026 16:40
10 of 23 tasks
Astro-Han
approved these changes
Jul 18, 2026
Astro-Han
left a comment
Contributor
There was a problem hiding this comment.
No P0–P3 findings.
Verified that the extracted classifier is behavior-equivalent to the original implementation, the PR merges cleanly with the latest main, and the recent ModelAdapter changes remain intact. The full runtime suite passes locally (2,151 passed, 0 failed, 7 skipped), the focused extraction/classification tests pass (29/29), and the GitHub test, typecheck, and e2e checks are green.
This was referenced Jul 18, 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
Refs #1084.
Verification
npm run lint— passednpm run build— passednpm run typecheck— passednpm run test:dist— passed in the repository CI serial mode; all workspaces passedgit diff origin/main...HEAD --check— passedThe default local parallel
npm testexposed an unrelated Runtime Host timing flake twice (connectedwas observed asunavailable). The failing case passed standalone,@maka/runtime-hostpassed 45/45 in isolation, and the repository CI serial test mode passed all workspaces.Visual validation is not applicable: this is a runtime-only, behavior-neutral module extraction.
Review focus
provider-error-classification.tsis dependency-free; ToolRuntime and ModelAdapter import it directly