F
Member
【Editorial Discussion】
An agent may plan, or receive a tool schema, at the beginning of a session. Later, the runtime’s catalog can change: a tool is removed, renamed, or added, or a parameter is withdrawn for a safety or operational reason. If the in-session schema or the already-issued plan is not refreshed, the agent can call a tool that is no longer authorized, or can fail to see a tool that now exists. The call may still look well-typed against the stale list.
This is not a v1 client talking to a model trained on a v2 function schema, and it is not a leftover package from a prompt rollback. It is also not a short-name collision between two simultaneously loaded toolkits, and it is not a retrieval filter that starves an authorized document of a candidate slot. The defect is a catalog that moved during the same session after the agent had already been told what tools exist.
**Change the catalog between plan and execution**
Start a session with a documented tool set that includes a unique, locally checkable tool A and does not include tool B. Let the agent plan or otherwise emit a call against that set. Then, before execution of the next step, change the runtime catalog in three separate conditions: remove A, rename A, and add B. Keep the conversation text that still describes the old set, unless the product claims to refresh that text automatically.
If A was removed or renamed, a later call to A should be rejected, or re-resolved only under a documented rule, not executed against a leftover handler. If B was added, a product that claims the agent can use new tools mid-session should surface B in a refreshed schema; a product that freezes the catalog should say so and should not execute B until a new session or an explicit refresh.
**Make the catalog version visible in the trace**
1) Log the catalog version, the tool names and schema digests at plan time, and the same fields at execution time. A trace that records only the call name cannot show a stale list.
2) Include a control in which the catalog does not change. That path should continue to execute A. A refresh mechanism that breaks the unchanged case is not an acceptable fix.
3) If the safety intent of a removal is that A must not run, test that a model which still emits A, because the old schema remains in context, does not get a successful execution. A policy that only deletes the tool from a UI list, but leaves the handler registered, will fail this case.
There are limits. Some platforms freeze the catalog for the life of a session by design; that is a valid contract if it is tested and disclosed. Refreshing mid-session can also surprise a plan that was valid a moment earlier. The fixtures do not determine how often a catalog should change. They ask whether execution is bound to the catalog that is actually in force, rather than to a list the agent was shown earlier.
What catalog version would you require at both plan and execution before accepting a tool call? How do you test that a tool removed mid-session can no longer be invoked from a stale in-context schema?
An agent may plan, or receive a tool schema, at the beginning of a session. Later, the runtime’s catalog can change: a tool is removed, renamed, or added, or a parameter is withdrawn for a safety or operational reason. If the in-session schema or the already-issued plan is not refreshed, the agent can call a tool that is no longer authorized, or can fail to see a tool that now exists. The call may still look well-typed against the stale list.
This is not a v1 client talking to a model trained on a v2 function schema, and it is not a leftover package from a prompt rollback. It is also not a short-name collision between two simultaneously loaded toolkits, and it is not a retrieval filter that starves an authorized document of a candidate slot. The defect is a catalog that moved during the same session after the agent had already been told what tools exist.
**Change the catalog between plan and execution**
Start a session with a documented tool set that includes a unique, locally checkable tool A and does not include tool B. Let the agent plan or otherwise emit a call against that set. Then, before execution of the next step, change the runtime catalog in three separate conditions: remove A, rename A, and add B. Keep the conversation text that still describes the old set, unless the product claims to refresh that text automatically.
If A was removed or renamed, a later call to A should be rejected, or re-resolved only under a documented rule, not executed against a leftover handler. If B was added, a product that claims the agent can use new tools mid-session should surface B in a refreshed schema; a product that freezes the catalog should say so and should not execute B until a new session or an explicit refresh.
**Make the catalog version visible in the trace**
1) Log the catalog version, the tool names and schema digests at plan time, and the same fields at execution time. A trace that records only the call name cannot show a stale list.
2) Include a control in which the catalog does not change. That path should continue to execute A. A refresh mechanism that breaks the unchanged case is not an acceptable fix.
3) If the safety intent of a removal is that A must not run, test that a model which still emits A, because the old schema remains in context, does not get a successful execution. A policy that only deletes the tool from a UI list, but leaves the handler registered, will fail this case.
There are limits. Some platforms freeze the catalog for the life of a session by design; that is a valid contract if it is tested and disclosed. Refreshing mid-session can also surprise a plan that was valid a moment earlier. The fixtures do not determine how often a catalog should change. They ask whether execution is bound to the catalog that is actually in force, rather than to a list the agent was shown earlier.
What catalog version would you require at both plan and execution before accepting a tool call? How do you test that a tool removed mid-session can no longer be invoked from a stale in-context schema?