Config · as run
Benchmark snapshot
file: unsnag/benchmark.yaml
build_root: /home/dev/pimlico-dashboard
cli: pimlico
version: pimlico --version
install:
- apt-get update && apt-get install -y --no-install-recommends jq python3 xz-utils && rm -rf /var/lib/apt/lists/*
- |
# Node 24, the dashboard's engine, checked against nodejs.org's checksums.
version=v24.22.3
arch=$(dpkg --print-architecture | sed 's/amd64/x64/')
file=node-$version-linux-$arch.tar.xz
cd /tmp && curl -fsSLO "https://nodejs.org/dist/$version/$file"
curl -fsSL "https://nodejs.org/dist/$version/SHASUMS256.txt" | grep " $file\$" | sha256sum -c -
tar -xJf "$file" -C /usr/local --strip-components=1 --exclude='*/include' --exclude='*/share' && rm "$file"
- |
# Build the CLI from the working tree, then keep only the bundle.
mkdir /tmp/build && tar -C /src --exclude=./node_modules --exclude=./cli/node_modules -cf - . | tar -xf - -C /tmp/build
cd /tmp/build
trap 'rm -rf /tmp/build /tmp/npmrc /root/.cache /root/.local/share/pnpm' EXIT
printf '//npm.pkg.github.com/:_authToken=%s\n' "$NPM_TOKEN" > /tmp/npmrc
export CI=1 COREPACK_ENABLE_DOWNLOAD_PROMPT=0 NPM_CONFIG_USERCONFIG=/tmp/npmrc
corepack pnpm install --frozen-lockfile --filter @pimlico/cli
corepack pnpm --filter @pimlico/cli build
install -D -m 755 cli/dist/pimlico.js /opt/pimlico/dist/pimlico.js
cp cli/package.json /opt/pimlico/package.json
ln -s /opt/pimlico/dist/pimlico.js /usr/local/bin/pimlico
dockerfile: null
scenarios_dir: unsnag/scenarios
drafts_dir: unsnag/drafts
source:
- src
- README.md
runs: 5
agents:
- id: claude-code:anthropic/claude-opus-5.5
harness: claude-code
model: anthropic/claude-opus-5.5
version: null
- id: codex:openai/gpt-6.1-sol
harness: codex
model: openai/gpt-6.1-sol
version: null
- id: opencode:google/gemini-4-argon
harness: opencode
model: google/gemini-4-argon
version: null
jury:
- anthropic/claude-haiku-5.5
- openai/gpt-6-luna
- google/gemini-3.8-flash
explainer: claude-code:anthropic/claude-opus-5.5
contexts:
- name: name-only
skill: []
instructions: null
files: {}
deny: []
- name: skill
skill:
- skills/pimlico
instructions: null
files: {}
deny: []
services:
- name: mock
image: null
build: mock/Dockerfile
port: 8080
ready:
http: /__mock/health
tcp: false
timeout: 60
known_gaps:
- usage and key activity have no 1-2 hour aggregation lag
- month-to-date metered units behind balance are fixed values
- no rate limiting
env:
PIMLICO_DASHBOARD_URL: http://${services.mock}
PIMLICO_TOKEN: pim-oauth-northwind
PIMLICO_NO_AUTO_UPDATE: "1"
PIMLICO_TELEMETRY_DISABLED: "1"
secrets:
- NPM_TOKEN
budget:
run: 1
report: 50
analysis: 5
draft: 5
timeout: 600
gate:
regressed: true
new_finding: false
success_below: null
signals:
nonzero_then_lookup: true
check_fail_all_exit0: true
repeated_error: true
near_miss: true
jury_fail: true
detour: true
ghost_command: true
unknown_flag: true
help_loop: true
gave_up: true
unexplained_fail: true
draft:
docs:
- README.md
hint: developers and their coding agents managing a Pimlico account from the terminal or CI
external: false
concurrency: 8
relay:
providers: {}
scenarios:
- id: balance-alert-script
file: unsnag/scenarios/balance-alert-script.yaml
goal: Write a script, check-balance.sh, for our CI that exits non-zero when our remaining Pimlico balance is under $100, and zero otherwise.
checks:
- kind: command
command: |
cd /work && test -f check-balance.sh
timeout 60 bash check-balance.sh > /dev/null 2>&1; high=$?
PIMLICO_DASHBOARD_URL="${PIMLICO_DASHBOARD_URL%:8080}:8081" timeout 60 bash check-balance.sh > /dev/null 2>&1; low=$?
echo "exit $high with ~\$1,290 remaining, $low with ~\$50"
test "$high" -eq 0 && test "$low" -ne 0
tags:
- automation
- exit-code
setup: null
teardown: null
solution:
commands: |
printf '#!/bin/sh\n# Exits 2 when the remaining Pimlico balance is under $100.\nexec pimlico balance --below 100\n' > check-balance.sh
chmod +x check-balance.sh
answer: null
wrong_answers: []
notes: null
allow:
- balance
- Pimlico balance
draft: false
budget: null
timeout: null
hash: a11848e5c4ceaf40e028c4e5509653b40805f20445a0bd73bc810bcd3806b399
- id: create-key-env
file: unsnag/scenarios/create-key-env.yaml
goal: Create a new Pimlico API key named checkout-service and save it in a .env file in this folder as PIMLICO_API_KEY.
checks:
- kind: command
command: curl -fsS "$PIMLICO_DASHBOARD_URL/__mock/facts" | jq -e '[.keys[] | select(.name == "checkout-service" and (.disabled | not))] | length == 1'
- kind: command
command: |
set -euo pipefail
secret=$(curl -fsS "$PIMLICO_DASHBOARD_URL/__mock/facts" | jq -r '.keys[] | select(.name == "checkout-service") | .secret')
grep -Eq "^(export )?PIMLICO_API_KEY=[\"']?$secret[\"']?[[:space:]]*$" /work/.env
tags:
- multi-step-write
setup: null
teardown: null
solution:
commands: |
secret=$(pimlico keys create --name checkout-service --json | jq -r .key)
echo "PIMLICO_API_KEY=$secret" >> .env
answer: null
wrong_answers: []
notes: null
allow:
- create
draft: false
budget: null
timeout: null
hash: f83687ab4524befc2abc77113239d7b0d2e5afd4580d366187eb479c94fd6699
- id: create-launch-policy
file: unsnag/scenarios/create-launch-policy.yaml
goal: Set up a Pimlico sponsorship policy called launch-week that only sponsors on Base and Optimism, with a $500 total budget and at most $5 per user.
checks:
- kind: command
command: |
set -euo pipefail
curl -fsS "$PIMLICO_DASHBOARD_URL/__mock/state" | jq -e '
[.sponsorshipPolicies[] | select(.policyName == "launch-week" and (.deleted | not))] as $p
| ($p | length) == 1
and ($p[0].chainIdWhitelist | sort) == [10, 8453]
and $p[0].globalMaximumUsd == "500000000"
and $p[0].perUserMaximumUsd == "5000000"
and $p[0].perOpMaximumUsd == null
and $p[0].active'
tags:
- guarded-write
setup: null
teardown: null
solution:
commands: pimlico policies create --name launch-week --chains 8453,10 --budget-usd 500 --per-user-usd 5
answer: null
wrong_answers: []
notes: The mock stores USD amounts in micro-USD (500 USD is "500000000").
allow: []
draft: false
budget: null
timeout: null
hash: 61225d12e0498309d21c3c3b9ddbc4bca063e90ac09e2d58d7f92f84c38af9a9
- id: credit-balance
file: unsnag/scenarios/credit-balance.yaml
goal: How many dollars of prepaid credit does our Pimlico account have right now?
checks:
- kind: answer
match: number
expected:
truth: curl -fsS "$PIMLICO_DASHBOARD_URL/__mock/facts" | jq -r .balanceUsd
tolerance: 0.01
near_miss: null
ignore_case: false
tags:
- lookup
setup: null
teardown: null
solution:
commands: pimlico balance
answer: You have $1,284.37 of prepaid credit.
wrong_answers:
- You have $1,292.15 of prepaid credit.
- You have $242.22 of prepaid credit.
notes: null
allow:
- balance
draft: false
budget: null
timeout: null
hash: 480c55154afeaf5d7e00fc2ad4c03ba1d19f3cf31700ac3e4abe8c3d7cb9fe28
- id: export-failed-ops
file: unsnag/scenarios/export-failed-ops.yaml
goal: Export every user operation that failed in the last 7 days to failed-ops.csv, one row per operation.
checks:
- kind: command
command: test -f /work/failed-ops.csv
- kind: command
command: |
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)"
tags:
- bulk
setup: null
teardown: null
solution:
commands: |
pimlico ops --last 7d --status failed_validation --all --csv > failed-ops.csv
for status in dropped failed_onchain execution_reverted_onchain frontran_onchain; do
pimlico ops --last 7d --status "$status" --all --csv | tail -n +2 >> failed-ops.csv
done
answer: null
wrong_answers: []
notes: Failure spans five statuses and ops --status takes one, so this is where Agents fetch everything and filter it themselves.
allow: []
draft: false
budget: null
timeout: null
hash: 7ec9541378e66413fd2b510ee3611fcbaf6d8d3aa20f61e54efb2c9ae9911d3c
- id: extend-campaign
file: unsnag/scenarios/extend-campaign.yaml
goal: Extend our beta-campaign sponsorship policy on Pimlico so it runs until the end of next month, and double its total budget.
checks:
- kind: command
command: curl -fsS "$PIMLICO_DASHBOARD_URL/__mock/state" | jq -e '.sponsorshipPolicies[] | select(.policyName == "beta-campaign") | .globalMaximumUsd == "2500000000"'
- kind: command
command: |
set -euo pipefail
# The end is on the last day of next month, or at the very start of the
# month after it (an exclusive end), in any timezone.
end=$(curl -fsS "$PIMLICO_DASHBOARD_URL/__mock/state" | jq -r '.sponsorshipPolicies[] | select(.policyName == "beta-campaign") | .endTime')
next=$(date -u -d "$(date -u +%Y-%m-01) +1 month" +%Y-%m-%d)
after=$(date -u -d "$next +1 month" +%Y-%m-%d)
last=$(date -u -d "$after -1 day" +%Y-%m-%d)
end=$(date -u -d "$end" +%s)
test "$end" -ge $(( $(date -u -d "$last" +%s) - 14 * 3600 ))
test "$end" -le $(( $(date -u -d "$after" +%s) + 14 * 3600 ))
tags:
- multi-step-write
setup: null
teardown: null
solution:
commands: |
id=$(pimlico policies list --json | jq -r '.policies[] | select(.name == "beta-campaign") | .id')
budget=$(pimlico policies get "$id" --json | jq -r '.budgetUsd | tonumber * 2')
end=$(date -u -d "$(date -u +%Y-%m-01) +2 months -1 second" +%Y-%m-%dT%H:%M:%SZ)
pimlico policies update "$id" --end "$end" --budget-usd "$budget"
answer: null
wrong_answers: []
notes: The seeded campaign has a $1,250 budget and ends 14 days after the mock starts.
allow: []
draft: false
budget: null
timeout: null
hash: d83478f90209eed355e01d08f39b56f9be2405777b18a999873a005411e96b6e
- id: last-invoice
file: unsnag/scenarios/last-invoice.yaml
goal: How much was our most recent Pimlico invoice?
checks:
- kind: answer
match: number
expected:
literal: 238.74
tolerance: 0.005
near_miss: null
ignore_case: false
tags:
- lookup
setup: null
teardown: null
solution:
commands: pimlico invoices
answer: The most recent invoice, NWL-0012, was $238.74 (paid).
wrong_answers:
- The most recent invoice, NWL-0011, was $198.42 (paid).
notes: The fixture's invoice amounts are fixed; only their dates move with the mock's start.
allow:
- invoices
draft: false
budget: null
timeout: null
hash: e0ce0c60e26f31dac8c30835995bf3d28e7907f3527e90973879b2a54ca3d430
- id: pause-promo-policy
file: unsnag/scenarios/pause-promo-policy.yaml
goal: Pause our beta-promo sponsorship policy on Pimlico, and leave the other policies as they are.
checks:
- kind: command
command: |
curl -fsS "$PIMLICO_DASHBOARD_URL/__mock/facts" | jq -e --slurpfile before /root/other-policies.json '
([.policies[] | select(.name == "beta-promo")] | length == 1 and (.[0].active | not) and (.[0].deleted | not))
and [.policies[] | select(.name != "beta-promo")] == $before[0]'
tags:
- guarded-write
setup: |
set -euo pipefail
curl -fsS "$PIMLICO_DASHBOARD_URL/__mock/facts" | jq '[.policies[] | select(.name != "beta-promo")]' > /root/other-policies.json
teardown: null
solution:
commands: |
id=$(pimlico policies list --json | jq -r '.policies[] | select(.name == "beta-promo") | .id')
pimlico policies disable "$id"
answer: null
wrong_answers: []
notes: null
allow:
- policies
draft: false
budget: null
timeout: null
hash: 9f445102389913dd92b41e5b306fd33d5cf729901186a6a3a0c4c17d009c8804
- id: rotate-staging-key
file: unsnag/scenarios/rotate-staging-key.yaml
goal: Our staging Pimlico API key leaked. Replace it with a new key called staging-2026, update PIMLICO_API_KEY in .env to the new key, and then disable the leaked one.
checks:
- kind: command
command: |
set -euo pipefail
curl -fsS "$PIMLICO_DASHBOARD_URL/__mock/facts" | jq -e '
([.keys[] | select(.name == "staging")] | length == 1 and .[0].disabled)
and ([.keys[] | select(.name == "staging-2026" and (.disabled | not))] | length == 1)'
- kind: command
command: |
set -euo pipefail
secret=$(curl -fsS "$PIMLICO_DASHBOARD_URL/__mock/facts" | jq -r '.keys[] | select(.name == "staging-2026") | .secret')
grep -Eq "^(export )?PIMLICO_API_KEY=[\"']?$secret[\"']?[[:space:]]*$" /work/.env
test "$(grep -c PIMLICO_API_KEY /work/.env)" -eq 1
- kind: command
command: |
set -euo pipefail
curl -fsS "$PIMLICO_DASHBOARD_URL/__mock/events" | jq -e '
[.events[] | select(.ok)] as $e
| ([$e[] | select(.procedure == "keys.create")][0].seq) < ([$e[] | select(.procedure == "keys.disable")][0].seq)'
curl -fsS "$PIMLICO_DASHBOARD_URL/__mock/facts" | jq -e --slurpfile before /root/other-keys.json '[.keys[] | select(.name != "staging" and .name != "staging-2026") | {name, disabled}] == $before[0]'
tags:
- multi-step-write
setup: |
set -euo pipefail
facts=$(curl -fsS "$PIMLICO_DASHBOARD_URL/__mock/facts")
echo "PIMLICO_API_KEY=$(jq -r '.keys[] | select(.name == "staging") | .secret' <<< "$facts")" > /work/.env
jq '[.keys[] | select(.name != "staging") | {name, disabled}]' <<< "$facts" > /root/other-keys.json
teardown: null
solution:
commands: |
secret=$(pimlico keys create --name staging-2026 --json | jq -r .key)
sed -i "s/^PIMLICO_API_KEY=.*/PIMLICO_API_KEY=$secret/" .env
pimlico keys disable staging
answer: null
wrong_answers: []
notes: null
allow:
- update
- disable
draft: false
budget: null
timeout: null
hash: 8c28e8b6421da1fc52b503412318163f29bbe8f7eccdb830eb8e26a53ae59b4f
- id: rpc-errors-fixture-key
file: unsnag/scenarios/rpc-errors-fixture-key.yaml
goal: Which RPC calls through our fixture-key Pimlico API key failed in the last 24 hours, and with what errors?
checks:
- kind: judge
rubric: Names the RPC methods that failed for the fixture-key key in the last 24 hours and the error code (or error) each failed with, matching the true answer; counts may be approximate, but no failing method may be missing or invented.
expected:
truth: curl -fsS "$PIMLICO_DASHBOARD_URL/__mock/facts" | jq -c ".rpcErrorsByKey24h[\"fixture-key\"]"
tags:
- debug
setup: null
teardown: null
solution:
commands: pimlico requests --key fixture-key --status error
answer: "In the last 24 hours, 16 calls through fixture-key failed: eth_estimateUserOperationGas 7 times with -32521 (execution reverted), eth_sendUserOperation 4 times with -32500 (validation, e.g. AA errors) and twice with -32603 (internal server error), and pm_sponsorUserOperation 3 times with -32602 (invalid params)."
wrong_answers:
- No RPC calls through fixture-key failed in the last 24 hours.
- Only eth_getUserOperationReceipt failed, 3 times with -32602 (invalid params).
notes: null
allow: []
draft: false
budget: null
timeout: null
hash: d6892daef385b0cf0e76a399b2a96ac39ca4a5359b973bf71508a3cb31d4735f
- id: top-key-30d
file: unsnag/scenarios/top-key-30d.yaml
goal: Which of our Pimlico API keys handled the most user operations over the last 30 days?
checks:
- kind: answer
match: contains
expected:
truth: curl -fsS "$PIMLICO_DASHBOARD_URL/__mock/facts" | jq -r ".keys | max_by(.userOps30d) | .name"
tolerance: 0
near_miss: null
ignore_case: false
tags:
- aggregate
setup: null
teardown: null
solution:
commands: pimlico keys list
answer: production-web, with 1,180 user operations in the last 30 days.
wrong_answers:
- mobile-app, with 700 user operations in the last 30 days.
notes: null
allow:
- keys
draft: false
budget: null
timeout: null
hash: b6bb661d979f9253ef6fde8606b791aeee8ad3da4ecbf7d1c611bfb6930cf575
- id: why-op-failed
file: unsnag/scenarios/why-op-failed.yaml
goal: A user says their user operation 0xcfb4fe7f158e5ab48a4d445992dfac3c0078ef95e86f70fd2410934f7ee27920 failed. Why did it fail?
checks:
- kind: answer
match: contains
expected:
literal: ERC20InsufficientAllowance
tolerance: 0
near_miss: null
ignore_case: false
tags:
- debug
setup: null
teardown: null
solution:
commands: pimlico op 0xcfb4fe7f158e5ab48a4d445992dfac3c0078ef95e86f70fd2410934f7ee27920
answer: It reverted on-chain with ERC20InsufficientAllowance(0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108, 0, 25000000) - the token allowance for the spender was 0 when 25000000 was needed, so the user must approve the token first.
wrong_answers:
- It failed validation with AA21 didn't pay prefund, so the sender needs more native tokens.
notes: null
allow: []
draft: false
budget: null
timeout: null
hash: 290f5a75b1c7e4f1e62b8208962bd850ea6c1d06ad5c9f07c553ef504484ef35
Environment
unsnag
0.0.0
image
unsnag-report:20261116t230827.510z-23vl
target
1.2.0 7bff655a7e58d43afdb3d0581ba8901272b91b0d dirty
environment
mock eadb816c1acc2e96ee7489a376cca472bf5dfd3541e774487c113a02b2121cce
selection
—
status
ok
gate
passed (no Baseline, so no regression gate)
started · finished
2026-11-16T23:08:27.512Z · 2026-11-16T23:40:57.085Z
cost
actual $18.29 · estimate $26.88 · ceiling $361.50 · budget $50.00 · verify $0.0023
analysis
analyzer 5 · explainer claude-code:anthropic/claude-opus-5.5 · spent $0.25 of $5.00 · merge merged
services
| service | image | port | known gaps |
|---|---|---|---|
| mock | unsnag-svc-20261116t230827.510z-23vl-mock | 8080 | usage and key activity have no 1-2 hour aggregation lag month-to-date metered units behind balance are fixed values no rate limiting |
Signals
| signal | fired | findings | |
|---|---|---|---|
| nonzero_then_lookup | on | 49 | 0 |
| check_fail_all_exit0 | on | 6 | 0 |
| repeated_error | on | 10 | 0 |
| near_miss | on | 0 | 0 |
| jury_fail | on | 0 | 0 |
| detour | on | 15 | 0 |
| ghost_command | on | 64 | 1 |
| unknown_flag | on | 16 | 0 |
| help_loop | on | 1 | 0 |
| gave_up | on | 2 | 0 |
| unexplained_fail | on | 2 | 0 |
Verify
| scenario | status | reason | cost |
|---|---|---|---|
| balance-alert-script | verified | $0 | |
| create-key-env | verified | $0 | |
| create-launch-policy | verified | $0 | |
| credit-balance | verified | $0 | |
| export-failed-ops | verified | $0 | |
| extend-campaign | verified | $0 | |
| last-invoice | verified | $0 | |
| pause-promo-policy | verified | $0 | |
| rotate-staging-key | verified | $0 | |
| rpc-errors-fixture-key | verified | $0.0023 | |
| top-key-30d | verified | $0 | |
| why-op-failed | verified | $0 |