Repository navigation
refactor(plugins): consolidate capability provider resolution - #130937
Merged
Merged
Conversation
steipete
marked this pull request as ready for review
August 27, 2026 13:31
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 28, 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.
What Problem This Solves
Capability-provider resolution maintained two parallel merge implementations: one merged registry entries and another repeated the same first-wins/unnamed-provider rules after projecting entries down to providers. The same module also mapped every registry key to an identical contract key and modeled a loaded-plus-cold registry combination that its own selection flow cannot produce.
Those duplicate representations made ordering and fallback behavior harder to verify without adding a distinct policy or capability.
Why This Change Was Made
This keeps capability providers as registry entries through the canonical merge, then projects the merged entries to providers once. Manifest lookup now uses the registry key directly, and registry selection chooses the already-loaded registry or the cold fallback before applying the existing allowlist filter.
Load order, configured-plugin policy, aliases, first-wins precedence, unnamed providers, requested-provider loading, bundled compatibility, and external fallback behavior remain unchanged.
User Impact
No user-visible behavior change is intended. Capability providers resolve in the same order with one canonical merge path and less private policy surface.
Evidence