Skip to content

feat(core): enforce managed integration and tool policies - #53775

Merged
adamdotdevin merged 4 commits into
v2from
integration-controls-v2
Oct 7, 2026
Merged

adamdotdevin merged 4 commits into
v2from
integration-controls-v2

Conversation

@adamdotdevin

@adamdotdevin adamdotdevin commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

Enforce Console integration.use policies for MCP servers and external plugins. The protected policy plugin filters the MCP catalog through ctx.mcp.transform; denied servers never connect, removed connections close and clear their tools/resources, and lifting a restriction restores them. External plugin checks run before package installation/import and unload denied plugins on updates. Policy and authentication plugins remain protected.

Switch tool policies exclusively to tool.use, with no permission alias, and regenerate the public client types. Managed-config parsing skips unsupported action statements and unknown fields while preserving supported statement order and organization precedence. Malformed supported statements still fail validation; a failed refresh retains the last valid configuration. Unknown actions are not enforced.

Companion to anomalyco/opencode-console#3237 and the merged Controls work in #3171. Targets v2; skill support is stacked in #53783. Installed clients need an upgrade to receive these parser and action changes.

Validation: 180 core tests across seven suites and eight schema tests passed on Bun 1.4.2, covering MCP/plugin enforcement, Console fetch/refresh behavior, future actions, malformed known statements, tool precedence and approvals. Full repository bun run check passed (36 tasks; existing lint warnings), client generation and formatting checks passed. Not released or deployed.

CI fixture fix: snapshot and tool-output tests configure the shared plugin config service directly. All 409 focused plugin/configuration tests and the full repository checks passed on Bun 1.4.2.

@adamdotdevin
adamdotdevin added this pull request to stack #53788 October 7, 2026 18:35
@adamdotdevin adamdotdevin changed the title feat(core): enforce integration policies feat(core): enforce managed integration and tool policies Oct 7, 2026
@adamdotdevin
adamdotdevin force-pushed the integration-controls-v2 branch from 3e697c4 to e95790e Compare October 7, 2026 19:57
@adamdotdevin
adamdotdevin merged commit 613ef8b into v2 Oct 7, 2026
11 checks passed
@adamdotdevin
adamdotdevin deleted the integration-controls-v2 branch October 7, 2026 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant