AI Services Market › Use cases › Work & Operations
Work & OperationsDone with custom-built or unnamed agent Nov 25, 2026
Gate refund actions with a tool-gate model
The author tested Strands Decider 2B as a tool gate that decides whether an agent should act on 16 refund cases, compared against Nova Pro as a judge. · Nov 25, 2026
- What They Did
- The author placed a Strands intervention, SuspicionGate, on before_tool_call for a refund tool. It asked Decider 2B three typed questions: risk score, grounded yes/no, and allow/probe/block. The gate returned proceed, guide or deny. He wrote 16 cases first: 5 legitimate, 4 vague, 4 fraud, 3 injection. He ran the same cases through a Nova Pro judge, then replayed the recorded outputs at different thresholds.
- How It Went
- Decider stopped 7 of 11 bad requests and Nova Pro stopped 9. Neither blocked a legitimate refund, and neither stopped the injection that told the classifier to allow. Raising min_confidence to 0.90 cut Decider's misses to one.
- Worth Knowing
- On a CPU-only t2.large, Decider took about 9.6 s per call against 0.6 s for Nova Pro. The safe threshold window was only about 0.03 wide, so calibrate on your own cases.
Try it yourself with custom-built or unnamed agent
I want to test whether a small model can act as a gate that decides if an agent should take an action like [e.g. issuing a refund]. Write a script that runs [number] test cases from [file or description of cases] through the gate model and through a larger judge model, then compares their decisions. A finished job is a table showing each case, both decisions, where they disagree, and the overall agreement rate. Do not call any real refund or payment systems; use mock tools only.