Skip to content

Commit 138920e

Browse files
senamakelmedullabot
andcommitted
fix(rules): evaluate an indirect target against its own arguments
indirect_target now returns an IndirectCall carrying the target's own arguments, so a dispatcher envelope cannot hide them from argument-scoped rules. Co-authored-by: Medulla <medulla@tinyhumans.ai>
1 parent 5abb92f commit 138920e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎docs/specs/tool-rules.md‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ search, and a wildcard worked in one list but not the next.
5858
- `ToolRuleSet::evaluate_call(tool, ctx, args)` evaluates the tool with its
5959
argument-aware permission and, when `Tool::indirect_target` returns an
6060
`IndirectCall { target, arguments }`, evaluates the target against its own
61-
arguments (falling back to the dispatcher's) —
62-
the target too.
61+
arguments (falling back to the dispatcher's).
6362
- `Tool` gains two defaulted, descriptive methods: `tags()` and
6463
`indirect_target(args)`.
6564

0 commit comments

Comments
 (0)