feat(extensions): add host-owned external integration policy - #1630
Merged
limityan merged 1 commit intoJul 19, 2026
Conversation
limityan
force-pushed
the
yanzhn/external-integration-policy
branch
3 times, most recently
from
July 19, 2026 15:20
0f17da7 to
29265fd
Compare
limityan
marked this pull request as ready for review
July 19, 2026 15:28
limityan
force-pushed
the
yanzhn/external-integration-policy
branch
from
July 19, 2026 18:04
29265fd to
d2a50ca
Compare
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
This PR establishes a Host-owned external-integration control plane, with OpenCode as the first registered ecosystem while keeping the policy and adapter boundary ecosystem-neutral. Users can keep the recommended low-friction policy, choose discovery-only or disabled behavior, and override individual capabilities at global or project scope.
The same versioned policy, typed error contract, and public read model serve Desktop, CLI/TUI, Server Web, and Peer Host paths. Remote operations are evaluated by the workspace-owning Host; unavailable, untrusted, or read-only paths fail closed without falling back to another device's local files.
Product experience
Architecture and safety
Scope
This PR completes the OpenCode-first compatibility control plane and its cross-surface user experience. It does not add a first-party plugin marketplace, extension bundle format, automatic third-party package execution, or public developer SDK. The internal versioned adapter boundary and ecosystem registry preserve those future options without coupling the current product to them.
Validation
cargo check --workspace: passedcargo test -p bitfun-core -p bitfun-desktop: passed; core reported 1,245 passed and 1 ignored, with desktop and related integration targets passingcargo test -p bitfun-server: 11 passedgit diff --check: passed