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/codex-openai-gpt-6.1-sol/name-only/3 · ← prev next →

export-failed-ops/codex-openai-gpt-6.1-sol/name-only/3 · pass

Outcome
pass
2/2 Checks passed
Turns
8
model turns
CLI calls
4
0 exited non-zero
Help lookups
2
reads of the CLI's help
Tokens in
109433
94269 of them cached
Tokens out
885
written by the model
Cost
$0.06
of the model calls
Wall time
24.9s
from start to the Checks
scenario
export-failed-ops
agent
codex:openai/gpt-6.1-sol · 0.167.2
context
name-only
repeat
3 · cell ✓✓✓✓✓
findings
—
provider
OpenAI

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 codex:openai/gpt-6.1-sol --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
I’ll check the CLI’s export options, then save the failed operations from the last seven days to `failed-ops.csv`.
$ 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]
$ pwd; rg --files -g AGENTS.md -g '*pimlico*' /work 2>/dev/null
/work
err
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 ops --last 7d --all --max 2147483647 --json > /work/.ops-7d.ndjson
600 records in 12 pages
$ command -v pimlico
/usr/local/bin/pimlico
4agent
$ python - <<'PY' import json,collections p='/work/.ops-7d.ndjson' rows=[json.loads(x) for x in open(p) if x.strip()] print('count',len(rows)) print('statuses',collections.Counter(r.get('status') for r in rows)) print('sample',json.dumps(rows[0],indent=2)) PY
/bin/bash: line 1: python: command not found
errdetour dismissed
5agent
$ python3 - <<'PY' import json,collections rows=[json.loads(x) for x in open('/work/.ops-7d.ndjson') if x.strip()] print('count',len(rows)) print('statuses',collections.Counter(r.get('status') for r in rows)) print('sample',json.dumps(rows[0],indent=2)) PY
count 600
statuses Counter({'included_onchain': 533, 'execution_reverted_onchain': 57, 'failed_validation': 5, 'added_to_mempool': 3, 'dropped': 2})
sample {
  "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:25.750Z"
}
6agent
$ pimlico keys list --json
{
  "keys": [
    {
      "name": "production-web",
      "disabled": false,
      "createdAt": "2026-04-10T23:23:13.459Z",
      "boost": true,
      "lastUsedAt": "2026-11-16T23:17:33.624Z",
      "requests30d": 9000,
      "userOps30d": 1180
    },
    {
      "name": "mobile-app",
      "disabled": false,
      "createdAt": "2026-06-09T23:23:13.459Z",
      "boost": false,
      "lastUsedAt": "2026-11-16T23:18:13.141Z",
      "requests30d": 5200,
      "userOps30d": 700
    },
    {
      "name": "staging",
      "disabled": false,
      "createdAt": "2026-07-19T23:23:13.459Z",
      "boost": false,
      "lastUsedAt": "2026-11-16T21:23:08.777Z",
      "requests30d": 840,
      "userOps30d": 76
    },
    {
      "name": "analytics-readonly",
      "disabled": false,
      "createdAt": "2026-08-18T23:23:13.459Z",
      "boost": false,
      "lastUsedAt": "2026-11-16T23:07:18.381Z",
      "requests30d": 3100,
      "userOps30d": 0
    },
    {
      "name": "fixture-key",
      "disabled": false,
      "createdAt": "2026-10-02T23:23:13.459Z",
      "boost": false,
      "lastUsedAt": "2026-11-16T22:56:50.944Z",
      "requests30d": 2422,
      "userOps30d": 380
    }
  ],
  "warnings": []
}
7agent
$ python3 - <<'PY' import json,csv,os,collections rows=[json.loads(x) for x in open('/work/.ops-7d.ndjson') if x.strip()] failed={'failed_validation','dropped','failed_onchain','execution_reverted_onchain'} selected=[] seen=set() for r in rows: ident=(r.get('chainId'),r.get('userOpHash')) if r.get('status') in failed and ident not in seen: selected.append(r) seen.add(ident) fields=list(dict.fromkeys(k for r in rows for k in r)) with open('/work/failed-ops.csv','w',newline='') as f: w=csv.DictWriter(f,fieldnames=fields) w.writeheader() w.writerows(selected) with open('/work/failed-ops.csv',newline='') as f: exported=list(csv.DictReader(f)) assert len(exported)==len(selected) print('Exported',len(exported),'operations') print(dict(collections.Counter(r['status'] for r in exported))) os.remove('/work/.ops-7d.ndjson') PY
Exported 64 operations
{'execution_reverted_onchain': 57, 'failed_validation': 5, 'dropped': 2}
8agent
Exported 64 operations to [failed-ops.csv](/work/failed-ops.csv), one row per operation: 57 execution reverts, 5 validation failures, and 2 dropped operations from the last 7 days.

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]
0130
1
$ 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
0147
2
$ pimlico ops --last 7d --all --max 2147483647 --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:25.750Z"}
{"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:40.185Z"}
{"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:26.657Z"}
{"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:09.271Z"}
{"userOpHash":"0xfc1dd86ea8b188d10e7e97976ec3916bbc1617c88f1a42ff058766be541a9d9a","chainId":42161,"status":"included_onchain","pending":false,"transactionHash":"0x259ef75ecd8bcb2d5ee074fea45874af5bbf34f53dbacb0d00a66c3a98a267ac","entryPoint":"0x0000000071727De22E5E9d8BAf0edAc6f37da032","sender":"0xb2d65d63a71218ee93edd8
[… 283051 more characters]
600 records in 12 pages
01211
3
$ pimlico keys list --json
{
  "keys": [
    {
      "name": "production-web",
      "disabled": false,
      "createdAt": "2026-04-10T23:23:13.459Z",
      "boost": true,
      "lastUsedAt": "2026-11-16T23:17:33.624Z",
      "requests30d": 9000,
      "userOps30d": 1180
    },
    {
      "name": "mobile-app",
      "disabled": false,
      "createdAt": "2026-06-09T23:23:13.459Z",
      "boost": false,
      "lastUsedAt": "2026-11-16T23:18:13.141Z",
      "requests30d": 5200,
      "userOps30d": 700
    },
    {
      "name": "staging",
      "disabled": false,
      "createdAt": "2026-07-19T23:23:13.459Z",
      "boost": false,
      "lastUsedAt": "2026-11-16T21:23:08.777Z",
      "requests30d": 840,
      "userOps30d": 76
    },
    {
      "name": "analytics-readonly",
      "disabled": false,
      "createdAt": "2026-08-18T23:23:13.459Z",
      "boost": false,
      "lastUsedAt": "2026-11-16T23:07:18.381Z",
      "requests30d": 3100,
      "userOps30d": 0
    },
    {
      "name": "fixture-key",
      "disabled": false,
      "createdAt": "2026-10-02T23:23:13.459Z",
      "boost": false,
      "lastUsedAt": "2026-11-16T22:56:50.944Z",
      "requests30d": 2422,
      "userOps30d": 380
    }
  ],
  "warnings": []
}
0270

Final state

outcome
pass
final answer
Exported 64 operations to [failed-ops.csv](/work/failed-ops.csv), one row per operation: 57 execution reverts, 5 validation failures, and 2 dropped operations from the last 7 days.
teardown
—
mock gaps
—
contamination
—
dns lookups
0 (0 denied)
web tools
web_search (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 · rollout.jsonl · service-mock.log