Skip to content

RemoteToolHost::execute does not check the turn's scoped surface #4316

Closed

Description

@mstomar125

RemoteToolHost::execute checks the gate (eligible(): enabled, approval verifies, runner present, confirmer present when needed) but not the surface the turn actually offered the model. A model call to an approved remote tool that this turn's skill whitelist scoped out is still dispatched (after confirmation, for tools that need it). Built-in tools behave the same today.

Proposal: the turn passes its offered tool names to the executor (or the loop refuses a call whose name is not in the turn's offered list before dispatch), so a call to a tool that was not offered is refused as unknown. Found in the independent review of #4315; part of the #4291 remote-tool work.

Activity

  1. mstomar125 commented on Nov 20, 2026

    @mstomar125
    ContributorAuthor

    Merged (#4322): the agent loop now refuses a model call to any tool that was not in the turn's offered list, before it reaches the executor. The refusal is an ordinary error result that names the tool and carries none of its arguments, so the model can recover; it is bounded by the existing iteration cap. An approved remote tool that a skill's whitelist scoped out can no longer be called by name. The independent review traced that the offered list is computed once per turn and is exactly what the model was shown. A skill audit found one built-in skill (Organization) whose instructions call update_node and create_node that its whitelist omits; that fix is in progress, and a second, lower-priority one (Schema Creation, delete_node) is filed separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions