Full article
Map who can authorize spending
The following is our proposed test scenario, not a provider’s default configuration. Suppose a team lets an agent purchase compute. List the agent process, signing service, authorization credential and funding account separately, together with whoever controls each.
Stopping the process leaves the other three states unverified. A stopped task alone is insufficient evidence that payment authority has been revoked.
Read the permission’s actual scope
Alchemy distinguishes access to every function on a contract from selected functions on one contract. Its ERC-20 allowance cumulatively covers transfers and approvals, rather than each operation. These definitions belong to that documented interface.
A useful paired test allows a normal purchase but rejects an administrative action on the same contract. If both succeed, investigate whether authority exceeds the business requirement instead of merely rewriting the agent’s prompt.
Locate the enforcement point
Privy documents controls over recipients, contracts and calldata, distinguishing policy enforcement from separately performed simulation or compliance checks.
We recommend retaining the rejected request identifier and reason, then checking that no executable signature was produced. Interface warnings, simulation failures and signing refusals should be recorded as different outcomes.
Test concurrent requests against the total
In a hypothetical project with a 12 USDC cap, two agents simultaneously request 8 USDC each. If both read an unchanged allowance, both may independently qualify. These are illustrative numbers, not observed product behavior.
An acceptance criterion could allow only one request, requiring the other to recheck the remaining allowance or fail. Record separately paid fees separately, rather than checking only the service price.
Try the old credential after revocation
After an administrator performs the product’s revocation procedure, try the same request with the old credential. Use a valid authorization as a control so that an offline system does not produce a false pass.
Track new requests separately from previously submitted ones. Leave unresolved requests pending investigation; do not treat revocation as a refund of completed transactions.
Leave a reproducible handoff
Record authorization creation time, tested addresses and actions, allowed and rejected results, revocation time, and matching request or transaction identifiers. Do not store private keys or reusable secret credentials.
This evidence describes one configuration at a particular time. Revalidate after changing the wallet implementation, signing service or permission scope instead of inheriting the previous conclusion.
