Approval belongs to an operation and its exact arguments. Reusing an approved tool name with a changed amount defeats the point of the review. Compare parsed objects so harmless JSON key order does not matter, while an actual payload change still requires a new decision.
Return allowed true only when case.proposed exactly matches case.approved in tool name and parsed argument object. Reordered JSON object keys are equivalent. A reused approval with changed arguments must fail.
The notebook executes your Python against an original local mock. Use the supplied case rather than copying visible values. The hidden checks change identities, revisions and boundary inputs; no provider endpoint or external tool is contacted.
An example implementation of the function contract.