--- id: RT-TOOL-10 family: RT-TOOL level: extended profiles: [runtime] posture: normative-target added: "1.0" changed: "1.0" source: https://flowdrop.io/spec/rules/rt-tool/rt-tool-10 specification: FlowDrop Workflow Specification 1.0 licence: CC BY 4.0 --- # RT-TOOL-10 — A tool-calling pass reports whether it did any work *RT-TOOL (Part II) · level: extended · profiles: runtime · added in 1.0* An all-repeat pass returns a full list of tool messages and a successful outcome while having invoked nothing, so an agent loop gated on "messages non-empty" re-enters forever. This is the port that answers the question directly. ## The rule > **Normative.** This is the rule. > > 1. A node that invokes tools MUST report `executed_any`, a boolean. > > 2. It MUST report `executed`, an array of the call identifiers behind it, the complement of the `skipped` array. > > 3. `executed_any` MUST be true when at least one call was handled for the first time in this run. > > 4. A call naming a tool that is not wired MUST count as handled for the first time: nothing was invoked, but the recoverable "not an available tool" result is new, and the model re-plans against it. > > 5. An empty batch MUST report false. > > 6. The two arrays partition only the calls that reach the guard. > > 7. A call with no identifier MUST appear in neither array and MUST set `executed_any`. > > 8. A malformed call (one that is not a map, or whose name is blank or not a scalar) MUST be dropped before the guard, appear in neither array, and leave `executed_any` false. > > 9. `executed_any` MUST be exposed by default. > > 10. `executed` MUST NOT be exposed by default. ## What it means A repeat batch can look, from every other port, exactly like work getting done: it still returns a full list of tool messages (each repeat re-emits its stored message) and a successful outcome, having invoked nothing new. `executed_any` is the one port that answers the question a loop actually needs answered — whether anything happened this pass — and it is the only one that says no. A name that is not wired to any tool still sets `executed_any`: nothing ran, but the recoverable failure the model gets back is a new result it has not seen, and that is enough for a loop to re-enter safely. A call with no identifier always runs and always sets `executed_any`, but is named in neither `executed` nor `skipped` — it cannot be recorded either way. Only a malformed call is excluded from all of it: dropped before anything is checked, present in neither list, and leaving `executed_any` false. ## Example A batch resending a call that already ran, with nothing new in it: ```json title="A batch of nothing but an already-executed call" verdict="resent" { "tool_calls": [{ "name": "do_thing", "args": [], "tool_call_id": "call_a" }] } ``` ```json title="The executed_any output of the repeat pass" verdict="idle" false ``` The same repeat alongside one genuinely new call: ```json title="The same repeat, plus one new call" verdict="sent" { "tool_calls": [ { "name": "do_thing", "args": [], "tool_call_id": "call_a" }, { "name": "other_thing", "args": [], "tool_call_id": "call_b" } ] } ``` ```json title="The executed output of the mixed pass" verdict="active" ["call_b"] ``` `skipped` is `["call_a"]` in both passes, `ok` is true in both and `tool_messages` is non-empty in both; only `executed_any` and `executed` tell them apart. ## Why Recorded under [OPEN-25](https://flowdrop.io/spec/rulings/open-25). ## Related rules - Names: RT-TOOL-9 - Referenced by: RT-TOOL-9 --- Rule identifiers are permanent and are never renumbered. This specification carries no implementation status: each implementation publishes its own standing against these rules. Licensed CC BY 4.0.