Agent spend caps
The chain holds the limit, not the agent.
An owner sets a per-call cap, a 24 h cap, an expiry and a seller list for an agent, in a Solidity contract on QoreChain. Only an owner whose ML-DSA-87 key is registered on chain can set it. The facilitator asks the contract before it settles any payment.
Policy held by the chain
reading the contract…
agent 4c69e3831a169fbd81fa4b86834dd5e014c646026beb8c3adb9c21cd9bd3df80
contract 0x16c2cb5600d37195C88fde5327771652b1d02dFd
Would this payment pass?
Proof it bites
- AgentSpendCap deployed 0x0781630b7d0a…
- Policy set for the demo agent (0.15 QOR per call, 5 QOR per day, 3 sellers) 0x0b22a751036d…
- Policy revoked: the next payment was refused with cap_revoked 0x117faba51b82…
- Policy set again: payments pass 0xaec28a9a7aae…
Exact payments are checked against the payer account that signed them. For sessions the check uses the payer account the buyer declares when it opens the session, and the credit is capped at 0.2 QOR, so a session can overspend a policy by at most that. Contract: 0x16c2cb5600d37195C88fde5327771652b1d02dFd.