feat(provider): add bounded capability cache#937
Closed
luoye520ww wants to merge 1 commit into
Closed
Conversation
Collaborator
Author
|
Closing this split PR to reduce review fragmentation. The branch and commits are preserved; this work will be reintroduced in a smaller consolidated PR after the current reliability baseline is merged. |
Collaborator
Author
|
Closed as part of PR consolidation; no branch data was deleted. |
Collaborator
Author
|
Reopened for targeted CI repair and verification; this PR remains in the active fix set. |
Collaborator
Author
|
Superseded by consolidated provider/network safeguards PR #948, which passed Typecheck, Linux, macOS, and Windows packaged checks. Closing this duplicate to keep the review surface focused. |
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.
Problem
Provider capability discovery needs a bounded, configuration-aware cache without persisting credentials or allowing stale results to grow without limit.
Scope
This PR adds the cache contract and implementation only. It does not wire a provider probe into the cache; that integration remains a separate reviewable change.
Changes
Safety
Validation
npm.cmd --prefix kun test -- src/services/provider-capability-cache.test.ts(7 passed)npm.cmd --prefix kun run typecheck(passed)npm.cmd run typecheck(passed)npm.cmd run lint(passed)npm.cmd run build(passed)git diff --check(passed)Review performed
Functional correctness, lifecycle/expiry, data isolation, security, compatibility, test quality, and PR scope were reviewed. No blocker or high-severity findings remain.
Follow-ups
Wire the cache into provider discovery/probe paths in a separate PR after this contract lands.