1 - hook
Stablecoin payments have a trust problem. I fine-tuned Qwen3-4B into an autonomous risk gate that scores every payment approve / hold / reject โ with 99.5% decision accuracy.
It's called SRA-RiskGate-4B. Free, Apache 2.0, on Hugging Face. ๐งต
2 - problem
AI agents are starting to pay each other โ x402, EIP-3009 authorizations, ERC-20 transfers. But a base LLM approves unsafe payments 34.5% of the time. I measured it.
You cannot put a raw chatbot in front of real money.
3 - what it does
SRA-RiskGate-4B sits on both ends of a payment's lifecycle:
โ Pre-settlement: ingests the payment + your policy + sanctions/attestation checks โ structured approve / hold / reject with flags and required actions
โ Post-settlement: adjudicates disputes into enforceable remedies (escrow refund, bond drawdown, deny, escalate) โ never impossible on-chain reversals
4 - proof
On a 2,000-case held-out bench vs the base model:
โ Decision accuracy: 99.49% (was 44.30%)
โ Unsafe approval rate: 0.47% (was 34.50%)
โ JSON schema validity: 100%
โ Prompt-injection recall: 89.86% (was 42.10%)
5 - how to try it
Deterministic by design โ strict JSON output, greedy decoding, zero hallucinated ledger state.
Try it live: demo https://huggingface.co/spaces/sriram1983007/sra-riskgate-demo
pip install sra-riskgate
ollama run sriram1983007/sra-riskgate
6 - CTA
Model + eval dataset are both open. If you're building on x402 or agentic payments, try to break it โ I want the failure cases.
Like/star if useful: model link https://huggingface.co/sriram1983007/SRA-RiskGate-4B