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 / why-op-failed/opencode-google-gemini-4-argon/name-only/5 · ← prev next →

why-op-failed/opencode-google-gemini-4-argon/name-only/5 · pass

Outcome
pass
1/1 Checks passed
Turns
3
model turns
CLI calls
3
0 exited non-zero
Help lookups
1
reads of the CLI's help
Tokens in
6340
0 of them cached
Tokens out
825
written by the model
Cost
$0.02
of the model calls
Wall time
25.2s
from start to the Checks
scenario
why-op-failed
agent
opencode:google/gemini-4-argon · 2.2.7
context
name-only
repeat
5 · cell ✓✓✓✓✓
findings
—
provider
Google AI Studio

checks

#checkresultdetailsignal
1
answer contains "ERC20InsufficientAllowance"
passthe answer contains "ERC20InsufficientAllowance" · expected: ERC20InsufficientAllowance

reproduce

unsnag run --scenario why-op-failed --agent opencode:google/gemini-4-argon --context name-only --runs 1

Transcript highlighted = a Signal fired

#actorcontentexitsignal
0user
You have the `pimlico` CLI available.

A user says their user operation 0xcfb4fe7f158e5ab48a4d445992dfac3c0078ef95e86f70fd2410934f7ee27920 failed. Why did it fail?
1agent
$ 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]
2agent
**Analyzing Pimlico Output**

I'm currently focused on running the Pimlico operation with the provided hash. I've initiated the command and am particularly interested in the output, especially with the `--json` flag to facilitate structured analysis. My primary goal is to decipher the information to improve the efficiency of the workflow. I'll provide a full report soon.
$ pimlico op 0xcfb4fe7f158e5ab48a4d445992dfac3c0078ef95e86f70fd2410934f7ee27920
User op        0xcfb4fe7f158e5ab48a4d445992dfac3c0078ef95e86f70fd2410934f7ee27920
Chain          84532
Status         execution_reverted_onchain (failed)
Transaction    0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571
Entry point    0x0000000071727De22E5E9d8BAf0edAc6f37da032
Revert reason  ERC20InsufficientAllowance(0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108, 0, 25000000)
Policy         sp_amused_arclight
Cost           $0.022

Time                 Event                       Transaction
2026-11-16 20:21:53  received                    -
2026-11-16 20:21:53  queued                      -
2026-11-16 20:21:53  added_to_mempool            -
2026-11-16 20:21:55  submitted                   0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571
2026-11-16 20:22:00  execution_reverted_onchain  0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571
$ pimlico op 0xcfb4fe7f158e5ab48a4d445992dfac3c0078ef95e86f70fd2410934f7ee27920 --json
{
  "userOpHash": "0xcfb4fe7f158e5ab48a4d445992dfac3c0078ef95e86f70fd2410934f7ee27920",
  "chainId": 84532,
  "status": "execution_reverted_onchain",
  "failed": true,
  "transactionHash": "0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571",
  "entryPoint": "0x0000000071727De22E5E9d8BAf0edAc6f37da032",
  "revertReason": "ERC20InsufficientAllowance(0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108, 0, 25000000)",
  "policyId": "sp_amused_arclight",
  "costUsd": "0.022000",
  "timeline": [
    {
      "type": "received",
      "at": "2026-11-16T20:21:53.190Z",
      "transactionHash": null,
      "data": null
    },
    {
      "type": "queued",
      "at": "2026-11-16T20:21:53.505Z",
      "transactionHash": null,
      "data": null
    },
    {
      "type": "added_to_mempool",
      "at": "2026-11-16T20:21:53.625Z",
      "transactionHash": null,
      "data": null
    },
    {
      "type": "submitted",
      "at": "2026-11-16T20:21:55.020Z",
      "transactionHash": "0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571",
      "data": null
    },
    {
      "type": "execution_reverted_onchain",
      "at": "2026-11-16T20:22:00.166Z",
      "transactionHash": "0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571",
      "data": {
        "reason": "ERC20InsufficientAllowance(0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108, 0, 25000000)"
      }
    }
  ],
  "warnings": []
}
3agent
The user operation `0xcfb4fe7f158e5ab48a4d445992dfac3c0078ef95e86f70fd2410934f7ee27920` failed because its execution reverted on-chain (`execution_reverted_onchain`) with the following revert reason:

```
ERC20InsufficientAllowance(0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108, 0, 25000000)
```

### Details
- **Status:** `execution_reverted_onchain`
- **Chain:** Base Sepolia (`84532`)
- **Transaction Hash:** `0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571`
- **EntryPoint:** `0x0000000071727De22E5E9d8BAf0edAc6f37da032` (v0.7)
- **Sponsorship Policy:** `sp_amused_arclight`
- **Cause:** An ERC-20 token transfer (`transferFrom`) attempted by spender `0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108` required an allowance of `25000000` (e.g. 25 USDC/USDT with 6 decimals), but the current allowance granted by the account was `0`. To fix this, the account needs to approve the spender for at least `25000000` before (or batched together with) executing the transfer.

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]
0144
1
$ pimlico op 0xcfb4fe7f158e5ab48a4d445992dfac3c0078ef95e86f70fd2410934f7ee27920
User op        0xcfb4fe7f158e5ab48a4d445992dfac3c0078ef95e86f70fd2410934f7ee27920
Chain          84532
Status         execution_reverted_onchain (failed)
Transaction    0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571
Entry point    0x0000000071727De22E5E9d8BAf0edAc6f37da032
Revert reason  ERC20InsufficientAllowance(0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108, 0, 25000000)
Policy         sp_amused_arclight
Cost           $0.022

Time                 Event                       Transaction
2026-11-16 20:21:53  received                    -
2026-11-16 20:21:53  queued                      -
2026-11-16 20:21:53  added_to_mempool            -
2026-11-16 20:21:55  submitted                   0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571
2026-11-16 20:22:00  execution_reverted_onchain  0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571
0186
2
$ pimlico op 0xcfb4fe7f158e5ab48a4d445992dfac3c0078ef95e86f70fd2410934f7ee27920 --json
{
  "userOpHash": "0xcfb4fe7f158e5ab48a4d445992dfac3c0078ef95e86f70fd2410934f7ee27920",
  "chainId": 84532,
  "status": "execution_reverted_onchain",
  "failed": true,
  "transactionHash": "0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571",
  "entryPoint": "0x0000000071727De22E5E9d8BAf0edAc6f37da032",
  "revertReason": "ERC20InsufficientAllowance(0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108, 0, 25000000)",
  "policyId": "sp_amused_arclight",
  "costUsd": "0.022000",
  "timeline": [
    {
      "type": "received",
      "at": "2026-11-16T20:21:53.190Z",
      "transactionHash": null,
      "data": null
    },
    {
      "type": "queued",
      "at": "2026-11-16T20:21:53.505Z",
      "transactionHash": null,
      "data": null
    },
    {
      "type": "added_to_mempool",
      "at": "2026-11-16T20:21:53.625Z",
      "transactionHash": null,
      "data": null
    },
    {
      "type": "submitted",
      "at": "2026-11-16T20:21:55.020Z",
      "transactionHash": "0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571",
      "data": null
    },
    {
      "type": "execution_reverted_onchain",
      "at": "2026-11-16T20:22:00.166Z",
      "transactionHash": "0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571",
      "data": {
        "reason": "ERC20InsufficientAllowance(0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108, 0, 25000000)"
      }
    }
  ],
  "warnings": []
}
0183

Final state

outcome
pass
final answer
The user operation `0xcfb4fe7f158e5ab48a4d445992dfac3c0078ef95e86f70fd2410934f7ee27920` failed because its execution reverted on-chain (`execution_reverted_onchain`) with the following revert reason:

```
ERC20InsufficientAllowance(0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108, 0, 25000000)
```

### Details
- **Status:** `execution_reverted_onchain`
- **Chain:** Base Sepolia (`84532`)
- **Transaction Hash:** `0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571`
- **EntryPoint:** `0x0000000071727De22E5E9d8BAf0edAc6f37da032` (v0.7)
- **Sponsorship Policy:** `sp_amused_arclight`
- **Cause:** An ERC-20 token transfer (`transferFrom`) attempted by spender `0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108` required an allowance of `25000000` (e.g. 25 USDC/USDT with 6 decimals), but the current allowance granted by the account was `0`. To fix this, the account needs to approve the spender for at least `25000000` before (or batched together with) executing the transfer.
teardown
—
mock gaps
—
contamination
—
dns lookups
0 (0 denied)
web tools
webfetch (sandbox)

context inputs

none

prompt

You have the `pimlico` CLI available.

A user says their user operation 0xcfb4fe7f158e5ab48a4d445992dfac3c0078ef95e86f70fd2410934f7ee27920 failed. Why did it fail?

Artifacts

run.json · agent-stdout.jsonl · opencode.db · service-mock.log