Skip to content

feat(orchestration): control Paseo tools by provider - #2776

Open
mcowger wants to merge 3 commits into
getpaseo:mainfrom
mcowger:feat-per-provider-tool-control
Open

feat(orchestration): control Paseo tools by provider#2776
mcowger wants to merge 3 commits into
getpaseo:mainfrom
mcowger:feat-per-provider-tool-control

Conversation

@mcowger

@mcowger mcowger commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Summary

Add per-provider controls for the Paseo tools exposed to coding agents, while preserving the existing host-level kill switch.

Changes

  • Protocol/config: persist provider-specific Paseo-tool policies and a shared core/browser tool manifest with backward-compatible defaults.
  • Server: enforce provider master switches and individual disabled-tool lists for native and MCP catalogs, including session snapshots and custom providers.
  • App: add a grouped, searchable provider policy sheet with immediate saving, bulk controls, browser gating, and older-daemon capability handling.
  • Docs/tests: document policy semantics and add focused protocol, server, app, and provider-settings E2E coverage.

Testing

  • npm run build:client
  • npm run typecheck
  • npm run lint
  • npm run format:check
  • Focused feature tests: 17 passed

CI note

  • The initial post-rebase CI run (30814069282) had Playwright shard 4/4 fail while installing Chromium: Playwright's CDN returned HTTP 403 (service not available in your location). The shard failed before tests ran; this was an environment/download failure, not a product test failure.
 Screenshot 2026-08-01 at 6 28 43 PM

@greptile-apps

greptile-apps Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR adds provider-specific controls over the Paseo tools exposed to coding agents.

  • Adds protocol schemas, defaults, and a shared core/browser tool manifest.
  • Applies provider policy when constructing native and MCP tool catalogs and snapshots the resolved policy for sessions.
  • Adds a searchable provider-policy settings sheet with bulk controls, browser gating, compatibility handling, and translations.
  • Documents policy semantics and adds protocol, server, application, and E2E coverage.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
packages/protocol/src/provider-config.ts Adds the persisted provider-level Paseo tool policy with backward-compatible optional defaults.
packages/protocol/src/paseo-tool-manifest.ts Defines the shared manifest used to identify and group core and browser tools.
packages/server/src/server/agent/paseo-tool-policy.ts Centralizes provider-policy resolution and individual tool enablement checks.
packages/server/src/server/agent/agent-manager.ts Resolves and snapshots the selected provider's policy when creating or restoring sessions.
packages/server/src/server/agent/tools/paseo-tools.ts Filters native Paseo tool registration according to the resolved session policy.
packages/app/src/screens/settings/paseo-tools-policy-sheet.tsx Adds the searchable policy editor, master and bulk controls, browser gating, and immediate persistence.
packages/app/src/screens/settings/providers-section.tsx Integrates provider tool configuration into the provider actions menu with daemon capability handling.
docs/data-model.md Documents provider policy persistence, defaults, global override behavior, and session snapshot semantics.
docs/providers.md Documents policy-filtered native and MCP catalog integration for provider implementations.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  Config[Provider tool policy] --> Resolve[Resolve provider and global policy]
  Global[Host-level injection switch] --> Resolve
  Resolve --> Session[Snapshot policy for session]
  Session --> Native[Native Paseo catalog]
  Session --> MCP[MCP Paseo catalog]
  Browser[Browser tools availability] --> Native
  Browser --> MCP
Loading

Reviews (9): Last reviewed commit: "fix(orchestration): avoid policy PR conf..." | Re-trigger Greptile

Comment thread packages/app/src/components/provider-diagnostic-sheet.tsx Outdated
Comment thread packages/app/src/components/provider-diagnostic-sheet.tsx Outdated
@mcowger
mcowger force-pushed the feat-per-provider-tool-control branch 3 times, most recently from 04b534c to 54b2e49 Compare August 3, 2026 12:33
webplode pushed a commit to webplode/paseo-doctrine-downstream that referenced this pull request Aug 4, 2026
Port getpaseo/paseo#2776 onto current main and add a mutually exclusive, fail-closed allowedTools policy for role-scoped catalogs.
@mcowger
mcowger force-pushed the feat-per-provider-tool-control branch from 54b2e49 to 4a36b01 Compare August 6, 2026 23:22
Comment thread packages/app/src/screens/settings/paseo-tools-policy-sheet.tsx
@mcowger
mcowger force-pushed the feat-per-provider-tool-control branch from 3f3a5dd to fbb7a99 Compare August 14, 2026 16:09
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