export-failed-ops/claude-code-anthropic-claude-opus-5.5/name-only/4 · pass
Outcome
pass
2/2 Checks passed
Turns
5
model turns
CLI calls
7
0 exited non-zero
Help lookups
2
reads of the CLI's help
Tokens in
34768
29742 of them cached
Tokens out
1649
written by the model
Cost
$0.06
of the model calls
Wall time
24.0s
from start to the Checks
checks
| # | check | result | detail | signal |
|---|---|---|---|---|
| 1 | test -f /work/failed-ops.csv | pass | exited 0 | |
| 2 | set -euo pipefail
# One row per failed operation: every true hash is there, and as many
# rows hold a hash as there are failed operations.
curl -fsS "$PIMLICO_DASHBOARD_URL/__mock/facts" | jq -r '.failedOps["7d"].hashes[]' > /root/failed.txt
missing=$(while read -r hash; do grep -qiF "$hash" /work/failed-ops.csv || echo "$hash"; done < /root/failed.txt | wc -l)
rows=$(grep -cE '0x[0-9a-fA-F]{64}' /work/failed-ops.csv)
echo "missing $missing, rows $rows, expected $(wc -l < /root/failed.txt)"
test "$missing" -eq 0 && test "$rows" -eq "$(wc -l < /root/failed.txt)"
| pass | exited 0missing 0, rows 64, expected 64 |
reproduce
unsnag run --scenario export-failed-ops --agent claude-code:anthropic/claude-opus-5.5 --context name-only --runs 1 Transcript highlighted = a Signal fired
| # | actor | content | exit | signal |
|---|---|---|---|---|
| 0 | user | You have the `pimlico` CLI available. Export every user operation that failed in the last 7 days to failed-ops.csv, one row per operation. | ||
| 1 | agent | $ pimlico --help; pimlico --version pimlico 1.2.0 Gas abstraction is a big part of the UX of any crypto product: Pimlico sponsors your users' gas or lets them pay in ERC-20 tokens, on every popular EVM chain and Solana. An API key is required to call our bundler and paymaster; sponsorship policies are optional hardening that limits which operations you pay for, on which chains and up to what amount. Usage and billing are transparent: see what you used and what you owe with `pimlico usage` and `pimlico balance`. Usage pimlico <command> [options] Account login Log in to Pimlico in the browser logout Log out and forget the stored credentials whoami Show the logged-in account Billing & usage balance Credits, open invoices, unbilled usage and headroom invoices Stripe invoices for the account usage Requests, API credits and sponsored USD, EVM and Solana Debug op <userOpHash> Status and timeline of a user operation ops User operation logs with revert reason, policy and cost requests RPC request logs with the error of failed calls solana txs Sponsored and SPL-paid Solana transactions Configure keys list List API keys with last use and 30-day traffic keys get <name> Show one API key by name keys create Create an API key (the key is shown once) keys rename <name> Rename an API key keys disable <name> Disable an API key (cannot be re-enabled from the CLI) policies list List sponsorship policies policies get <id> Show one policy, including its effective caps policies create Create a sponsorship policy (active unless --inactive) policies update <id> Change a policy's name, chains, caps or window policies enable <id> Switch a policy on policies disable <id> Switch a policy off erc20 tokens Tokens accepted by the ERC-20 paymaster chains [… 909 more characters] | ||
| 2 | agent | $ pimlico ops --help Usage: pimlico ops [options]
User operation logs of your API keys, newest first, with revert reason, policy
and cost. Operations rejected on submission (validation errors such as AA24)
never become operations: find them with `pimlico requests --method
eth_sendUserOperation --status error`
Options:
--key <name> Only this API key, by name (see `pimlico keys list`); every
active key when omitted
--chain <chainId> Only this EVM chain
--status <status> Only operations whose latest status is this (choices:
"received", "failed_validation", "queued",
"added_to_mempool", "submitted", "dropped",
"included_onchain", "frontran_onchain", "failed_onchain",
"execution_reverted_onchain")
--last <window> Only records from the last 24h, 7d or 30d (choices: "24h",
"7d", "30d", default: "24h")
--limit <n> Records per page, 1 to 100 (default: 50)
--cursor <cursor> Continue from a previous page's nextCursor
--all Walk every page until exhausted or --max; with --json
prints NDJSON
--max <n> Stop --all after this many records (default: 1000)
--csv Print CSV instead of a table
-h, --help display help for command | ||
| 3 | agent | $ cd /work; pimlico whoami; pimlico keys list; pimlico ops --last 7d --all --max 100000 --json > /tmp/ops.ndjson; echo exit=$?; wc -l /tmp/ops.ndjson; head -2 /tmp/ops.ndjson; python3 -c "
import json,collections
rows=[json.loads(l) for l in open('/tmp/ops.ndjson') if l.strip()]
print(collections.Counter(r.get('status') for r in rows))
print(len(rows), len({r.get('userOpHash') for r in rows}))" Logged in as ops@northwind-labs.dev
Account Northwind Labs
Entity organization
Org id org_2pX7nQ4sVbW9kLmR3tYe6HcJ8uA
Scopes write:policies write:keys
Name Status Boost Last used Req 30d Ops 30d Created
production-web active on 6 min ago 9,000 1,180 2026-04-10
mobile-app active off 5 min ago 5,200 700 2026-06-09
staging active off 2 h ago 840 76 2026-07-19
analytics-readonly active off 16 min ago 3,100 0 2026-08-18
fixture-key active off 27 min ago 2,422 380 2026-10-02
600 records in 12 pages
exit=0
600 /tmp/ops.ndjson
{"userOpHash":"0x8497fe299408a4fa09991e98340e4aeea7b5dc3f0f1315b06debafec4e672e32","chainId":8453,"status":"added_to_mempool","pending":true,"transactionHash":null,"entryPoint":"0x0000000071727De22E5E9d8BAf0edAc6f37da032","sender":"0x13f5794d5d1302332ee9a10aaaadb6bd6d20ea54","revertReason":null,"policy":"sp_brave_banshee","costUsd":null,"key":"production-web","createdAt":"2026-11-16T23:28:04.428Z"}
{"userOpHash":"0xa28c8a8bd1b819283d12ded571613c5506a719dc36b924483bf99f11adeb3dce","chainId":42161,"status":"added_to_mempool","pending":true,"transactionHash":null,"entryPoint":"0x0000000071727De22E5E9d8BAf0edAc6f37da032","sender":"0xe408e454496404967a895b0b9e280100a54fb190","revertReason":null,"policy":"sp_brave_banshee","costUsd":null,"key":"production-web","createdAt":"2026-11-16T23:25:18.863Z"}
Counter({'included_onchain': 533, 'execution_reverted_onchain': 57, 'failed_validation': 5, 'added_to_mempool': 3, 'dropped': 2})
600 600 | detour dismissed | |
| 4 | agent | $ cd /work; python3 -I -c "
import json,csv
F={'failed_validation','dropped','failed_onchain','frontran_onchain','execution_reverted_onchain'}
rows=[json.loads(l) for l in open('/tmp/ops.ndjson') if l.strip()]
out=[r for r in rows if r['status'] in F]
cols=list(rows[0].keys())
with open('failed-ops.csv','w',newline='') as f:
w=csv.DictWriter(f,fieldnames=cols); w.writeheader(); w.writerows(out)
print(len(out))
import collections; print(collections.Counter(r['revertReason'] for r in out).most_common(8))
"; head -3 failed-ops.csv; wc -l failed-ops.csv; pimlico requests --method eth_sendUserOperation --status error --last 7d --all --json 2>&1 | wc -l 64
[('ERC20: transfer amount exceeds balance', 32), ('execution reverted', 11), ('UserOperation reverted with reason: Ownable: caller is not the owner', 6), ('UserOperation reverted with reason: 0x', 4), ("AA21 didn't pay prefund", 3), ('UserOperation reverted with reason: Pausable: paused', 3), ('AA25 invalid account nonce', 2), ('Dropped from mempool: maxFeePerGas below base fee for 25 blocks', 2)]
userOpHash,chainId,status,pending,transactionHash,entryPoint,sender,revertReason,policy,costUsd,key,createdAt
0x1c39f810b55ef71925c84cba2dde2c9cbb07b48c3d6a877aeb25033f903ca05b,8453,execution_reverted_onchain,False,0x5ea77bbd156ebb8edabf346a20c5dd00bcd69a87240479463346934fe8271a5d,0x0000000071727De22E5E9d8BAf0edAc6f37da032,0x8b1b323f9676f2f07c3289f88cca82e2d7f28a31,UserOperation reverted with reason: Ownable: caller is not the owner,sp_brave_banshee,0.066000,production-web,2026-11-16T21:32:38.969Z
0xcfb4fe7f158e5ab48a4d445992dfac3c0078ef95e86f70fd2410934f7ee27920,84532,execution_reverted_onchain,False,0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571,0x0000000071727De22E5E9d8BAf0edAc6f37da032,0x478927f1a2d54fa55051417d0b5c5f43ccda6c9e,"ERC20InsufficientAllowance(0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108, 0, 25000000)",sp_amused_arclight,0.022000,fixture-key,2026-11-16T20:11:52.138Z
65 failed-ops.csv
21 | ||
| 5 | agent | I wrote 64 failed user operations from the last 7 days to `/work/failed-ops.csv`, one row each with no duplicate hashes. I pulled all 600 operations from that window across every active API key and kept the ones that failed: | Status | Count | |---|---| | `execution_reverted_onchain` | 57 | | `failed_validation` | 5 | | `dropped` | 2 | I counted `dropped` as a failure. Both were thrown out of the mempool because their fee was too low (`maxFeePerGas` stayed below the base fee for 25 blocks), so they never landed on-chain. The other failure statuses, `failed_onchain` and `frontran_onchain`, didn't appear in this window. Three operations were still pending, and I left them out. Each row has the hash, chain, final status, transaction hash, entry point, sender, revert reason, sponsorship policy, cost in USD, API key and timestamp. The filter uses each operation's latest status. **Main revert reasons:** half of the failures (32) are `ERC20: transfer amount exceeds balance`. Next are a generic `execution reverted` (11) and `Ownable: caller is not the owner` (6). **Not in the CSV:** there are also 21 `eth_sendUserOperation` calls that errored in the last 7 days. Pimlico rejected these when they were sent (validation errors like AA24), so they never became user operations and don't show up in the operations log. I can export them to a separate file if you want them too. |
Target CLI calls
| # | call | exit | ms | signal |
|---|---|---|---|---|
| 0 | $ pimlico --help pimlico 1.2.0 Gas abstraction is a big part of the UX of any crypto product: Pimlico sponsors your users' gas or lets them pay in ERC-20 tokens, on every popular EVM chain and Solana. An API key is required to call our bundler and paymaster; sponsorship policies are optional hardening that limits which operations you pay for, on which chains and up to what amount. Usage and billing are transparent: see what you used and what you owe with `pimlico usage` and `pimlico balance`. Usage pimlico <command> [options] Account login Log in to Pimlico in the browser logout Log out and forget the stored credentials whoami Show the logged-in account Billing & usage balance Credits, open invoices, unbilled usage and headroom invoices Stripe invoices for the account usage Requests, API credits and sponsored USD, EVM and Solana Debug op <userOpHash> Status and timeline of a user operation ops User operation logs with revert reason, policy and cost requests RPC request logs with the error of failed calls solana txs Sponsored and SPL-paid Solana transactions Configure keys list List API keys with last use and 30-day traffic keys get <name> Show one API key by name keys create Create an API key (the key is shown once) keys rename <name> Rename an API key keys disable <name> Disable an API key (cannot be re-enabled from the CLI) policies list List sponsorship policies policies get <id> Show one policy, including its effective caps policies create Create a sponsorship policy (active unless --inactive) policies update <id> Change a policy's name, chains, caps or window policies enable <id> Switch a policy on policies disable <id> Switch a policy off erc20 tokens Tokens accepted by the ERC-20 paymaster chains [… 904 more characters] | 0 | 148 | |
| 1 | $ pimlico --version 1.2.0 | 0 | 155 | |
| 2 | $ pimlico ops --help Usage: pimlico ops [options]
User operation logs of your API keys, newest first, with revert reason, policy
and cost. Operations rejected on submission (validation errors such as AA24)
never become operations: find them with `pimlico requests --method
eth_sendUserOperation --status error`
Options:
--key <name> Only this API key, by name (see `pimlico keys list`); every
active key when omitted
--chain <chainId> Only this EVM chain
--status <status> Only operations whose latest status is this (choices:
"received", "failed_validation", "queued",
"added_to_mempool", "submitted", "dropped",
"included_onchain", "frontran_onchain", "failed_onchain",
"execution_reverted_onchain")
--last <window> Only records from the last 24h, 7d or 30d (choices: "24h",
"7d", "30d", default: "24h")
--limit <n> Records per page, 1 to 100 (default: 50)
--cursor <cursor> Continue from a previous page's nextCursor
--all Walk every page until exhausted or --max; with --json
prints NDJSON
--max <n> Stop --all after this many records (default: 1000)
--csv Print CSV instead of a table
-h, --help display help for command
| 0 | 185 | |
| 3 | $ pimlico whoami Logged in as ops@northwind-labs.dev Account Northwind Labs Entity organization Org id org_2pX7nQ4sVbW9kLmR3tYe6HcJ8uA Scopes write:policies write:keys | 0 | 169 | |
| 4 | $ pimlico keys list Name Status Boost Last used Req 30d Ops 30d Created production-web active on 6 min ago 9,000 1,180 2026-04-10 mobile-app active off 5 min ago 5,200 700 2026-06-09 staging active off 2 h ago 840 76 2026-07-19 analytics-readonly active off 16 min ago 3,100 0 2026-08-18 fixture-key active off 27 min ago 2,422 380 2026-10-02 | 0 | 186 | |
| 5 | $ pimlico ops --last 7d --all --max 100000 --json {"userOpHash":"0x8497fe299408a4fa09991e98340e4aeea7b5dc3f0f1315b06debafec4e672e32","chainId":8453,"status":"added_to_mempool","pending":true,"transactionHash":null,"entryPoint":"0x0000000071727De22E5E9d8BAf0edAc6f37da032","sender":"0x13f5794d5d1302332ee9a10aaaadb6bd6d20ea54","revertReason":null,"policy":"sp_brave_banshee","costUsd":null,"key":"production-web","createdAt":"2026-11-16T23:28:04.428Z"}
{"userOpHash":"0xa28c8a8bd1b819283d12ded571613c5506a719dc36b924483bf99f11adeb3dce","chainId":42161,"status":"added_to_mempool","pending":true,"transactionHash":null,"entryPoint":"0x0000000071727De22E5E9d8BAf0edAc6f37da032","sender":"0xe408e454496404967a895b0b9e280100a54fb190","revertReason":null,"policy":"sp_brave_banshee","costUsd":null,"key":"production-web","createdAt":"2026-11-16T23:25:18.863Z"}
{"userOpHash":"0xd5184662105a43f0dd8fd4249e9d1f49bf1e34435a5bd955248d28a8ffbb5165","chainId":84532,"status":"added_to_mempool","pending":true,"transactionHash":null,"entryPoint":"0x0000000071727De22E5E9d8BAf0edAc6f37da032","sender":"0x0b9f075fc4919611621314041c022249dd4eaeff","revertReason":null,"policy":"sp_amused_arclight","costUsd":null,"key":"fixture-key","createdAt":"2026-11-16T23:25:05.335Z"}
{"userOpHash":"0x0f5656ee42a86ffd7715626ee1aaaf3673aa94d6341e0248760054182df2fe47","chainId":10,"status":"included_onchain","pending":false,"transactionHash":"0xc41c1533c437ffc35dae561b22dce2195bd8be2f9772f92ddf33159cc3dfd347","entryPoint":"0x0000000071727De22E5E9d8BAf0edAc6f37da032","sender":"0xbee51ccb71fd291605fbd9df7ed201329cfb892c","revertReason":null,"policy":"sp_brave_banshee","costUsd":"0.044000","key":"production-web","createdAt":"2026-11-16T23:02:47.949Z"}
{"userOpHash":"0xfc1dd86ea8b188d10e7e97976ec3916bbc1617c88f1a42ff058766be541a9d9a","chainId":42161,"status":"included_onchain","pending":false,"transactionHash":"0x259ef75ecd8bcb2d5ee074fea45874af5bbf34f53dbacb0d00a66c3a98a267ac","entryPoint":"0x0000000071727De22E5E9d8BAf0edAc6f37da032","sender":"0xb2d65d63a71218ee93edd8
[… 283051 more characters]600 records in 12 pages | 0 | 1138 | |
| 6 | $ pimlico requests --method eth_sendUserOperation --status error --last 7d --all --json {"createdAt":"2026-11-16T21:08:22.468Z","chainId":84532,"method":"eth_sendUserOperation","status":"client_error","httpCode":400,"apiCredits":50,"traceId":"cad313d437db11b3d416ecff4fa2654e","key":"fixture-key","error":{"code":-32500,"message":"AA25 invalid account nonce"},"request":null,"response":null}
{"createdAt":"2026-11-16T16:47:46.680Z","chainId":84532,"method":"eth_sendUserOperation","status":"server_error","httpCode":500,"apiCredits":50,"traceId":"b86ce82c6db614bd3d3b6661587fb733","key":"fixture-key","error":{"code":-32603,"message":"Internal error"},"request":null,"response":null}
{"createdAt":"2026-11-16T15:24:08.578Z","chainId":84532,"method":"eth_sendUserOperation","status":"server_error","httpCode":500,"apiCredits":50,"traceId":"9a459eef575b5b6682dca3e8966a97a2","key":"fixture-key","error":{"code":-32603,"message":"Internal error"},"request":null,"response":null}
{"createdAt":"2026-11-16T14:05:43.485Z","chainId":84532,"method":"eth_sendUserOperation","status":"client_error","httpCode":400,"apiCredits":50,"traceId":"9d04310e6216a23b276a783e535ebdd3","key":"fixture-key","error":{"code":-32500,"message":"AA25 invalid account nonce"},"request":null,"response":null}
{"createdAt":"2026-11-16T07:56:52.347Z","chainId":84532,"method":"eth_sendUserOperation","status":"client_error","httpCode":400,"apiCredits":50,"traceId":"a1a6a6619de6a1450f57517a89dee167","key":"fixture-key","error":{"code":-32500,"message":"AA25 invalid account nonce"},"request":null,"response":null}
{"createdAt":"2026-11-16T06:22:40.905Z","chainId":84532,"method":"eth_sendUserOperation","status":"client_error","httpCode":400,"apiCredits":50,"traceId":"64b80ae8b956fbf7fb043948b1271006","key":"fixture-key","error":{"code":-32500,"message":"AA25 invalid account nonce"},"request":null,"response":null}
{"createdAt":"2026-11-15T21:06:12.670Z","chainId":84532,"method":"eth_sendUserOperation","status":"client_error","httpCode":400,"apiCredits":50,"traceId":"f79d3145cc4759a53b253149a0a7cdd7","key":"fixt
[… 4030 more characters]20 records in 1 page | 0 | 176 |
Final state
outcome
pass
final answer
I wrote 64 failed user operations from the last 7 days to `/work/failed-ops.csv`, one row each with no duplicate hashes. I pulled all 600 operations from that window across every active API key and kept the ones that failed: | Status | Count | |---|---| | `execution_reverted_onchain` | 57 | | `failed_validation` | 5 | | `dropped` | 2 | I counted `dropped` as a failure. Both were thrown out of the mempool because their fee was too low (`maxFeePerGas` stayed below the base fee for 25 blocks), so they never landed on-chain. The other failure statuses, `failed_onchain` and `frontran_onchain`, didn't appear in this window. Three operations were still pending, and I left them out. Each row has the hash, chain, final status, transaction hash, entry point, sender, revert reason, sponsorship policy, cost in USD, API key and timestamp. The filter uses each operation's latest status. **Main revert reasons:** half of the failures (32) are `ERC20: transfer amount exceeds balance`. Next are a generic `execution reverted` (11) and `Ownable: caller is not the owner` (6). **Not in the CSV:** there are also 21 `eth_sendUserOperation` calls that errored in the last 7 days. Pimlico rejected these when they were sent (validation errors like AA24), so they never became user operations and don't show up in the operations log. I can export them to a separate file if you want them too.
teardown
—
mock gaps
—
contamination
—
dns lookups
0 (0 denied)
web tools
WebFetch (sandbox) · WebSearch (provider)
context inputs
none
prompt
You have the `pimlico` CLI available. Export every user operation that failed in the last 7 days to failed-ops.csv, one row per operation.