Bound refund demo
Use this to verify ToolPause binds approval to the exact tool call — not a freeform chat reply.
What you prove
| Claim | Evidence |
|---|---|
| Gate is on the tool call | Agent hits /v1/evaluate → Inbox |
| Decision is bound to exact args | Tampered amount fails /complete |
| Fail-closed | Deny / timeout → no execute |
| Audit trail | Activity tab or /v1/audit |
Run locally
# terminal 1
toolpause-server
# terminal 2 — Approve in http://127.0.0.1:8000/
python examples/bakeoff_refund.py
# or non-interactive smoke
python examples/bakeoff_refund.py --auto-approve
With auth on:
python examples/bakeoff_refund.py --api-key "$ACTIONGATE_API_KEY"
Walkthrough
- Agent proposes a
$189refund for orderNW-8812. - The call pauses; Inbox shows the bound args.
- Edit to
$89and Approve → fingerprint updates; the agent must complete with$89. - Completing with the old
$189fails — that is the product.
See also: quickstart · security