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/codex-openai-gpt-6.1-sol/skill/4 · ← prev next →

why-op-failed/codex-openai-gpt-6.1-sol/skill/4 · pass

Outcome
pass
1/1 Checks passed
Turns
3
model turns
CLI calls
1
0 exited non-zero
Help lookups
0
reads of the CLI's help
Tokens in
39690
25553 of them cached
Tokens out
278
written by the model
Cost
$0.04
of the model calls
Wall time
9.3s
from start to the Checks
scenario
why-op-failed
agent
codex:openai/gpt-6.1-sol · 0.167.2
context
skill
repeat
4 · cell ✓✓✓✓✓
findings
—
provider
openai

checks

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

reproduce

unsnag run --scenario why-op-failed --agent codex:openai/gpt-6.1-sol --context skill --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
I’ll use the pimlico skill to inspect the operation and its failure details.
$ cat /work/.agents/skills/pimlico/SKILL.md
---
name: pimlico
description: Use the `pimlico` CLI to inspect and manage a Pimlico account (ERC-4337 bundler and paymaster) — balance, invoices, usage, API keys, sponsorship policies, and the logs of user operations and RPC requests. Use whenever a task mentions Pimlico, its API keys or policies, or debugging user operations sent through Pimlico.
---

# The `pimlico` CLI

`pimlico` reads and changes the Pimlico account the user is logged in to. Every
command takes `--json`, which prints one JSON object (errors too, as
`{"error": {...}}` on stdout). Prefer `--json` when you parse output.

Exit codes: `0` ok, `1` error, `2` a threshold was breached (`balance --below`),
`3` not logged in, `75` the API is unavailable or rate-limited. On exit 3, run
`pimlico login --no-wait --json`, show the user the `url` and `code`, then call
`pimlico login --wait --json` in the same turn until `status` is not `pending`.

## Commands

| Task | Command |
| --- | --- |
| Who am I logged in as | `pimlico whoami` |
| Credits, open invoices, runway | `pimlico balance` (`--below <usd>` exits 2 under it) |
| Invoices | `pimlico invoices` (`--open` for unpaid only) |
| Traffic and spend | `pimlico usage --last 24h\|7d\|30d --group chain\|key\|day [--key <name>]` |
| One user operation | `pimlico op <userOpHash> [--chain <id>]` |
| User operation logs | `pimlico ops [--key <name>] [--chain <id>] [--status <status>] [--last 24h\|7d\|30d]` |
| RPC request logs | `pimlico requests [--key <name>] [--method <rpc method>] [--status success\|error] [--bodies]` |
| Supported chains | `pimlico chains [--mainnet\|--testnet]` (no login needed) |
| ERC-20 paymaster tokens | `pimlico erc20 tokens [--chain <id>]` |
| API keys | `pimlico keys list [--all]`, `keys get <name>`, `keys create --name <n>`, `keys rename <name> --to <n>`, `keys disable <name>` |
| Sponsorship policies | `pimlico policies list`, `policies get <sp_id>`, `policies create --name <n> …`, `policies update <sp_id> …`, `policies enable\|d
[… 1373 more characters]
2agent
$ 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:15:42.743Z",
      "transactionHash": null,
      "data": null
    },
    {
      "type": "queued",
      "at": "2026-11-16T20:15:43.058Z",
      "transactionHash": null,
      "data": null
    },
    {
      "type": "added_to_mempool",
      "at": "2026-11-16T20:15:43.178Z",
      "transactionHash": null,
      "data": null
    },
    {
      "type": "submitted",
      "at": "2026-11-16T20:15:44.573Z",
      "transactionHash": "0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571",
      "data": null
    },
    {
      "type": "execution_reverted_onchain",
      "at": "2026-11-16T20:15:49.719Z",
      "transactionHash": "0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571",
      "data": {
        "reason": "ERC20InsufficientAllowance(0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108, 0, 25000000)"
      }
    }
  ],
  "warnings": []
}
3agent
The operation reached Base Sepolia (chain `84532`) but reverted during on-chain execution because of **insufficient ERC-20 allowance**.

The revert was:
```text
ERC20InsufficientAllowance(0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108, 0, 25000000)
```

The spender `0x4337…f108` had an allowance of **0**, but needed **25,000,000 token base units**. Approve that spender for the required amount from the account holding the tokens, then retry. The token amount in human-readable units depends on its decimals.

Target CLI calls

#callexitmssignal
0
$ 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:15:42.743Z",
      "transactionHash": null,
      "data": null
    },
    {
      "type": "queued",
      "at": "2026-11-16T20:15:43.058Z",
      "transactionHash": null,
      "data": null
    },
    {
      "type": "added_to_mempool",
      "at": "2026-11-16T20:15:43.178Z",
      "transactionHash": null,
      "data": null
    },
    {
      "type": "submitted",
      "at": "2026-11-16T20:15:44.573Z",
      "transactionHash": "0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571",
      "data": null
    },
    {
      "type": "execution_reverted_onchain",
      "at": "2026-11-16T20:15:49.719Z",
      "transactionHash": "0x5c22ca85d355baa3d52b93490006137bc9905c5937fd3d616923f6935a279571",
      "data": {
        "reason": "ERC20InsufficientAllowance(0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108, 0, 25000000)"
      }
    }
  ],
  "warnings": []
}
0240

Final state

outcome
pass
final answer
The operation reached Base Sepolia (chain `84532`) but reverted during on-chain execution because of **insufficient ERC-20 allowance**.

The revert was:
```text
ERC20InsufficientAllowance(0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108, 0, 25000000)
```

The spender `0x4337…f108` had an allowance of **0**, but needed **25,000,000 token base units**. Approve that spender for the required amount from the account holding the tokens, then retry. The token amount in human-readable units depends on its decimals.
teardown
—
mock gaps
—
contamination
—
dns lookups
0 (0 denied)
web tools
web_search (provider)

context inputs

kindsourceplaced atofferedused
skillskills/pimlico.agents/skills/pimlicotruetrue

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 · rollout.jsonl · service-mock.log