unsnag pimlico 1.2.0 · 7bff655a7e58 dirty
· 32m 29s mock
known gaps of mock: usage and key activity have no 1-2 hour aggregation lag; month-to-date metered units behind balance are fixed values; no rate limiting
runs / export-failed-ops/claude-code-anthropic-claude-opus-5.5/name-only/3 · ← prev next →

export-failed-ops/claude-code-anthropic-claude-opus-5.5/name-only/3 · pass

Outcome
pass
2/2 Checks passed
Turns
7
model turns
CLI calls
7
0 exited non-zero
Help lookups
2
reads of the CLI's help
Tokens in
54541
48227 of them cached
Tokens out
1847
written by the model
Cost
$0.08
of the model calls
Wall time
33.2s
from start to the Checks
scenario
export-failed-ops
agent
claude-code:anthropic/claude-opus-5.5 · 2.1.318
context
name-only
repeat
3 · cell ✓✓✓✓✓
findings
—
provider
Anthropic

checks

#checkresultdetailsignal
1
test -f /work/failed-ops.csv
passexited 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)"
passexited 0
missing 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

#actorcontentexitsignal
0user
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.
1agent
$ 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]
2agent
$ 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
3agent
$ pimlico whoami --json; pimlico ops --last 7d --all --max 100000 --json > /tmp/ops.ndjson; echo exit=$?; wc -l /tmp/ops.ndjson; head -c 1500 /tmp/ops.ndjson
{
  "userId": "user_2pX7mK9qRvT3nLwE8hYc4ZbA1dF",
  "orgId": "org_2pX7nQ4sVbW9kLmR3tYe6HcJ8uA",
  "email": "ops@northwind-labs.dev",
  "displayName": "Northwind Labs",
  "entityType": "org",
  "scopes": [
    "write:policies",
    "write:keys"
  ],
  "warnings": []
}
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:22:20.960Z"}
{"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:19:35.395Z"}
{"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:19:21.867Z"}
{"userOpHash":"0x0f5656ee42a86ffd7715626ee1aaaf3673aa94d6341e0248760054182df2fe47","chainId":10,"status":"included_onchain","pending":false,"transactionHash":"0xc41c1533c437ffc35dae561b22dce2195bd8be2f9772f92ddf33159cc3dfd347","entryPoint":"0x0000000071727De22E5E9d8BAf0edAc6f37da032","sender"
4agent
$ cd /tmp; jq -r .status ops.ndjson | sort | uniq -c; jq -r .userOpHash ops.ndjson | sort | uniq -d | wc -l; jq -r .key ops.ndjson | sort | uniq -c; jq -r .createdAt ops.ndjson | sort | sed -n '1p;$p'; pimlico keys list --json | jq -c '.[]? // .' | head -20
      3 added_to_mempool
      2 dropped
     57 execution_reverted_onchain
      5 failed_validation
    533 included_onchain
0
    107 fixture-key
    157 mobile-app
    316 production-web
     20 staging
2026-11-10T00:37:16.018Z
2026-11-16T23:22:20.960Z
[{"name":"production-web","disabled":false,"createdAt":"2026-04-10T23:23:08.669Z","boost":true,"lastUsedAt":"2026-11-16T23:17:28.834Z","requests30d":9000,"userOps30d":1180},{"name":"mobile-app","disabled":false,"createdAt":"2026-06-09T23:23:08.669Z","boost":false,"lastUsedAt":"2026-11-16T23:18:08.351Z","requests30d":5200,"userOps30d":700},{"name":"staging","disabled":false,"createdAt":"2026-07-19T23:23:08.669Z","boost":false,"lastUsedAt":"2026-11-16T21:23:03.987Z","requests30d":840,"userOps30d":76},{"name":"analytics-readonly","disabled":false,"createdAt":"2026-08-18T23:23:08.669Z","boost":false,"lastUsedAt":"2026-11-16T23:07:13.591Z","requests30d":3100,"userOps30d":0},{"name":"fixture-key","disabled":false,"createdAt":"2026-10-02T23:23:08.669Z","boost":false,"lastUsedAt":"2026-11-16T22:56:46.154Z","requests30d":2422,"userOps30d":380}]
[]
Shell cwd was reset to /work
detour dismissed
5agent
$ pimlico ops --last 7d --limit 2 --csv
createdAt,chainId,status,userOpHash,sender,transactionHash,entryPoint,pending,revertReason,policy,costUsd,key
2026-11-16T23:22:20.960Z,8453,added_to_mempool,0x8497fe299408a4fa09991e98340e4aeea7b5dc3f0f1315b06debafec4e672e32,0x13f5794d5d1302332ee9a10aaaadb6bd6d20ea54,,0x0000000071727De22E5E9d8BAf0edAc6f37da032,true,,sp_brave_banshee,,production-web
2026-11-16T23:19:35.395Z,42161,added_to_mempool,0xa28c8a8bd1b819283d12ded571613c5506a719dc36b924483bf99f11adeb3dce,0xe408e454496404967a895b0b9e280100a54fb190,,0x0000000071727De22E5E9d8BAf0edAc6f37da032,true,,sp_brave_banshee,,production-web
6agent
$ jq -r 'select(.status|IN("failed_validation","dropped","failed_onchain","execution_reverted_onchain")) | [.createdAt,.chainId,.status,.userOpHash,.sender,.transactionHash,.entryPoint,.pending,.revertReason,.policy,.costUsd,.key] | @csv' /tmp/ops.ndjson | (echo createdAt,chainId,status,userOpHash,sender,transactionHash,entryPoint,pending,revertReason,policy,costUsd,key; cat) > failed-ops.csv && wc -l failed-ops.csv && cut -d, -f3 failed-ops.csv | sort | uniq -c && head -3 failed-ops.csv && git status --short
65 failed-ops.csv
      2 "dropped"
     57 "execution_reverted_onchain"
      5 "failed_validation"
      1 status
createdAt,chainId,status,userOpHash,sender,transactionHash,entryPoint,pending,revertReason,policy,costUsd,key
"2026-11-16T21:26:55.501Z",8453,"execution_reverted_onchain","0x1c39f810b55ef71925c84cba2dde2c9cbb07b48c3d6a877aeb25033f903ca05b","0x8b1b323f9676f2f07c3289f88cca82e2d7f28a31","0x5ea77bbd156ebb8edabf346a20c5dd00bcd69a87240479463346934fe8271a5d","0x0000000071727De22E5E9d8BAf0edAc6f37da032",false,"UserOperation reverted with reason: Ownable: caller is not the owner","sp_brave_banshee","0.066000","production-web"
"2026-11-16T20:06:08.670Z",84532,"execution_reverted_onchain","0xcfb4fe7f158e5ab48a4d445992dfac3c0078ef95e86f70fd2410934f7ee27920","0x478927f1a2d54fa55051417d0b5c5f43ccda6c9e","0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571","0x0000000071727De22E5E9d8BAf0edAc6f37da032",false,"ERC20InsufficientAllowance(0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108, 0, 25000000)","sp_amused_arclight","0.022000","fixture-key"
?? failed-ops.csv
7agent
I wrote `/work/failed-ops.csv` with 64 failed user operations from the last 7 days, one row per operation. There are no duplicate hashes.

| Status | Count |
|---|---|
| `execution_reverted_onchain` | 57 |
| `failed_validation` | 5 |
| `dropped` | 2 |

**How I got them:** I pulled every operation from the last 7 days across all five API keys, which came to 600 operations. Then I kept the ones whose latest status is a failure. The columns are the same as the CLI's own `--csv` output, including `revertReason`, `policy`, `costUsd` and `key`.

**Choices you might want to change:**
- **Not counted as failed:** `frontran_onchain` (none in this period anyway), because the operation usually still lands on-chain in another bundle. I also left out 3 that are still pending in `added_to_mempool`.
- **Test key included:** 107 of the 600 operations came from `fixture-key`, which looks like test traffic. Its failures are in the file; filter on the `key` column if you only want production.
- **Rejected on submission:** Operations rejected when submitted (validation errors like AA24) never become operations, so they aren't in this export. They appear as failed `eth_sendUserOperation` requests in `pimlico requests`. I can add a separate export of those if you need them.

The file is untracked in the repo and I haven't committed it.

Target CLI calls

#callexitmssignal
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]
0164
1
$ pimlico --version
1.2.0
0188
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
0143
3
$ pimlico whoami --json
{
  "userId": "user_2pX7mK9qRvT3nLwE8hYc4ZbA1dF",
  "orgId": "org_2pX7nQ4sVbW9kLmR3tYe6HcJ8uA",
  "email": "ops@northwind-labs.dev",
  "displayName": "Northwind Labs",
  "entityType": "org",
  "scopes": [
    "write:policies",
    "write:keys"
  ],
  "warnings": []
}
0167
4
$ 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:22:20.960Z"}
{"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:19:35.395Z"}
{"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:19:21.867Z"}
{"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-16T22:57:04.481Z"}
{"userOpHash":"0xfc1dd86ea8b188d10e7e97976ec3916bbc1617c88f1a42ff058766be541a9d9a","chainId":42161,"status":"included_onchain","pending":false,"transactionHash":"0x259ef75ecd8bcb2d5ee074fea45874af5bbf34f53dbacb0d00a66c3a98a267ac","entryPoint":"0x0000000071727De22E5E9d8BAf0edAc6f37da032","sender":"0xb2d65d63a71218ee93edd8
[… 283051 more characters]
600 records in 12 pages
01017
5
$ pimlico keys list --json
{
  "keys": [
    {
      "name": "production-web",
      "disabled": false,
      "createdAt": "2026-04-10T23:23:08.669Z",
      "boost": true,
      "lastUsedAt": "2026-11-16T23:17:28.834Z",
      "requests30d": 9000,
      "userOps30d": 1180
    },
    {
      "name": "mobile-app",
      "disabled": false,
      "createdAt": "2026-06-09T23:23:08.669Z",
      "boost": false,
      "lastUsedAt": "2026-11-16T23:18:08.351Z",
      "requests30d": 5200,
      "userOps30d": 700
    },
    {
      "name": "staging",
      "disabled": false,
      "createdAt": "2026-07-19T23:23:08.669Z",
      "boost": false,
      "lastUsedAt": "2026-11-16T21:23:03.987Z",
      "requests30d": 840,
      "userOps30d": 76
    },
    {
      "name": "analytics-readonly",
      "disabled": false,
      "createdAt": "2026-08-18T23:23:08.669Z",
      "boost": false,
      "lastUsedAt": "2026-11-16T23:07:13.591Z",
      "requests30d": 3100,
      "userOps30d": 0
    },
    {
      "name": "fixture-key",
      "disabled": false,
      "createdAt": "2026-10-02T23:23:08.669Z",
      "boost": false,
      "lastUsedAt": "2026-11-16T22:56:46.154Z",
      "requests30d": 2422,
      "userOps30d": 380
    }
  ],
  "warnings": []
}
0177
6
$ pimlico ops --last 7d --limit 2 --csv
createdAt,chainId,status,userOpHash,sender,transactionHash,entryPoint,pending,revertReason,policy,costUsd,key
2026-11-16T23:22:20.960Z,8453,added_to_mempool,0x8497fe299408a4fa09991e98340e4aeea7b5dc3f0f1315b06debafec4e672e32,0x13f5794d5d1302332ee9a10aaaadb6bd6d20ea54,,0x0000000071727De22E5E9d8BAf0edAc6f37da032,true,,sp_brave_banshee,,production-web
2026-11-16T23:19:35.395Z,42161,added_to_mempool,0xa28c8a8bd1b819283d12ded571613c5506a719dc36b924483bf99f11adeb3dce,0xe408e454496404967a895b0b9e280100a54fb190,,0x0000000071727De22E5E9d8BAf0edAc6f37da032,true,,sp_brave_banshee,,production-web
0317

Final state

outcome
pass
final answer
I wrote `/work/failed-ops.csv` with 64 failed user operations from the last 7 days, one row per operation. There are no duplicate hashes.

| Status | Count |
|---|---|
| `execution_reverted_onchain` | 57 |
| `failed_validation` | 5 |
| `dropped` | 2 |

**How I got them:** I pulled every operation from the last 7 days across all five API keys, which came to 600 operations. Then I kept the ones whose latest status is a failure. The columns are the same as the CLI's own `--csv` output, including `revertReason`, `policy`, `costUsd` and `key`.

**Choices you might want to change:**
- **Not counted as failed:** `frontran_onchain` (none in this period anyway), because the operation usually still lands on-chain in another bundle. I also left out 3 that are still pending in `added_to_mempool`.
- **Test key included:** 107 of the 600 operations came from `fixture-key`, which looks like test traffic. Its failures are in the file; filter on the `key` column if you only want production.
- **Rejected on submission:** Operations rejected when submitted (validation errors like AA24) never become operations, so they aren't in this export. They appear as failed `eth_sendUserOperation` requests in `pimlico requests`. I can add a separate export of those if you need them.

The file is untracked in the repo and I haven't committed it.
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.

Artifacts

run.json · agent-stdout.jsonl · service-mock.log · session.jsonl