Enforce exec director tool allowlists through tool_search and promote - #1010
Merged
TheGreatAxios merged 3 commits intoSep 14, 2026
Merged
Conversation
Collaborator
Author
Critic · ApproveClosed exec directors (explorer, critic) can no longer search up or promote tools outside their package allow; skywalker keeps the product default. Findings (all verified, none blocking)
Should-fix (merge order, not this diff)
File-for-later
Verification (independent, worktree cl-6822-exec-director-tool-allowlist-is-advisory-tool_search-re @ 3d5b31d, after bun install)
|
Collaborator
Author
|
Critic nits addressed in 627c527 (not merging):
Kept: index filter, unmount posture, promoter gate, deny handling, skywalker/fleet unaffected, no #996 pending-wait changes. Verification: |
TheGreatAxios
force-pushed
the
cl-6822-exec-director-tool-allowlist-is-advisory-tool_search-re
branch
from
September 14, 2026 00:49
627c527 to
9467d27
Compare
TheGreatAxios
changed the base branch from
main
to
cl-7865-tool_search-answers-no-tools-matched-while-mcp-servers-are
September 14, 2026 00:50
TheGreatAxios
added this pull request to stack #1018
September 14, 2026 00:50
Collaborator
Author
|
Stack-merge re-critique (d351214 + 9467d27): combined import, gated tool_search mount with awaitPendingConnections, index allow-filter, promoter isAllowed gate, and deny/empty-allow handling all intact. bun test src/agent/tool-search.test.ts + src/exec/runner.test.ts: 49 pass, 0 fail. Green — no new defects. |
Base automatically changed from
cl-7865-tool_search-answers-no-tools-matched-while-mcp-servers-are
to
main
September 14, 2026 03:41
The promoter filtered outside-allow names only because its one call site pre-filtered in the activate closure; a second caller wiring activate raw would get no gate. The promoter now takes isAllowed and filters itself, with the exec call site passing the overlay check and the product-default test path passing allow-all. An allow list that deny empties now throws at overlay resolution, matching the deny-without-allow behavior, instead of locking the director out silently.
TheGreatAxios
force-pushed
the
cl-6822-exec-director-tool-allowlist-is-advisory-tool_search-re
branch
from
September 14, 2026 04:01
9467d27 to
3af2578
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
Closed exec directors (explorer, critic) advertise only their package allow list, but tool_search stayed mounted and indexed the full live registry, and the promoter activated anything it returned — so a model could search up and call MCP, plugin, or proxy tools outside its allow list. This change filters the tool_search index by the overlay allow, unmounts tool_search when the overlay excludes it, and gates promoter activation through the same allow. Package deny entries are subtracted from the allow; a deny-only package is rejected loudly. Skywalker keeps the product default.
Verification
Fixes CL-6822