Version Scoped Episodic Guards for Tool Using Language Agents

Version Scoped Episodic Guards for Tool Using Language Agents

Ghasem Azari Arani1 Hamid Mojarad2 Mahdi Esmaeili3

1) Department of Computer Engineering, Faculty of Electrical and Computer Engineering, Technical and Vocational University (TVU), Tehran, Iran. Email:
2) Department of Computer Science, kas.c, Islamic Azad University, Kashan, Iran. Email:
3) Department of Computer Science, kas.c, Islamic Azad University, Kashan, Iran. Email:

IOI Code : ACEF-ACAZHK
Publication : 6th. International Congress On Engineering, Technology and Applied Sciences(etas2027.com)
Abstract :
    A tool s execution requirements can change without any change to its argument schema. A condition recorded after an earlier failure may therefore prevent a valid action under a later contract. We examine this problem with version scoped episodic guards. The mechanism converts trusted, structured failure feedback into precondition checks and associates each check with a tenant, tool, schema fingerprint, and execution contract. Before a proposed call is released, the guard checks the applicable requirements against the available state. We implemented this mechanism and evaluated every combination in a synthetic domain comprising three tools, two contracts, sixteen Boolean states, and two argument conditions: 192 cases in total. Schema validation alone released 44 calls that violated operational requirements. With complete scoped memory, the guard blocked these calls and retained all 52 valid cases. Removing contract matching caused four valid calls to be blocked; accepting two untrusted records caused sixteen. Missing rules for the current contract allowed invalid calls through. The complete-memory result is a conformance check under known requirements, not evidence that the system discovers those requirements or improves a language model s decisions. The experiment shows why the origin, scope, and coverage of a stored requirement need to be checked separately when failure episodes are used to control tool invocation.

Keywords : episodic memory tool invocation runtime guards contract versioning