@keyban/cli 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -11,7 +11,7 @@ humans.
11
11
  Registry name: `io.keyban.mcp/agent-wallet`.
12
12
 
13
13
  `keyban mcp` runs locally over stdio, next to your MCP client. It holds one share
14
- of a FROST threshold key in your OS keyring; Keyban holds the other. No single
14
+ of a FROST threshold key in its wallet file; Keyban holds the other. No single
15
15
  side can move funds alone, and the model never sees either share or your API
16
16
  key.
17
17
 
@@ -71,8 +71,8 @@ claude mcp add agent-wallet \
71
71
  -- npx -y @keyban/cli@latest mcp
72
72
  ```
73
73
 
74
- On first boot the server runs a key generation, keeps its share in your OS
75
- keyring, and registers itself on chain as a signer of that wallet using the
74
+ On first boot the server runs a key generation, keeps its share in the wallet
75
+ file (`KEYBAN_WALLET_PATH`, else `$XDG_CONFIG_HOME/keyban/wallet.json`), and registers itself on chain as a signer of that wallet using the
76
76
  invite key. That happens once per machine; the invite key is spent by it.
77
77
 
78
78
  ## Configuration
@@ -88,7 +88,9 @@ can pick yourself.
88
88
  | `KEYBAN_WALLET_ADDRESS` | yes | Address of the account this server drives. |
89
89
  | `KEYBAN_NETWORK` | yes | Network the wallet operates on: `BaseMainnet`, `BaseSepolia`, `XdcMainnet` or `XdcApothem`. |
90
90
  | `KEYBAN_BASE_URL` | no | Backend base URL, or one of `dev`, `testing`, `staging`, `prod`, `sandbox`. Defaults to `https://api.prod.keyban.io`. |
91
- | `KEYBAN_DKG_BLOB` | no | Pre-generated signer share, base64 JSON. For runtimes with no OS keyring; it does not replace the invite key. |
91
+ | `KEYBAN_DKG_BLOB` | no | Pre-generated signer share, base64 JSON. For runtimes whose disk does not last; it does not replace the invite key. |
92
+ | `KEYBAN_WALLET_PATH` | no | The wallet file, holding these variables and the share. Defaults to `$XDG_CONFIG_HOME/keyban/wallet.json`. |
93
+ | `KEYBAN_CONFIG` | no | All the variables above as one base64 JSON object, for runtimes like AgentCore where each variable is a chore to add. A variable set on its own wins. |
92
94
  | `MCP_LOG_FILE` | no | Path the server writes its log to. |
93
95
  | `MCP_LOG_LEVEL` | no | `debug`, `info`, `warn` or `error`. Defaults to `info` for `keyban mcp`, `warn` for `keyban wallet`. |
94
96
 
@@ -117,6 +119,8 @@ Read-only:
117
119
  | `discover_x402_services` | Search the x402 service directory |
118
120
  | `list_missions`, `get_mission` | Read the missions and their statistics |
119
121
  | `list_mission_runs`, `get_mission_run` | Read this wallet's mission runs |
122
+ | `list_runs_of_mission` | List this wallet's runs of one mission, paginated, filterable by status |
123
+ | `list_mission_run_payments` | List every payment of a run, paginated (`get_mission_run` only carries the 50 most recent) |
120
124
  | `publish_mission` | Check a draft can be published and show the page to publish it |
121
125
 
122
126
  Writing:
@@ -170,10 +174,9 @@ the link and the steps in the answer.
170
174
 
171
175
  ## Trust boundary
172
176
 
173
- The share and the API key are protected by your user account, nothing finer.
174
- On Linux (Secret Service) and Windows (Credential Manager) the OS keyring
175
- grants no per-program access: any program running as you can read them, and
176
- can run `keyban` too. What bounds such a program is the same thing that bounds
177
+ The share and the API key are protected by your user account, nothing finer:
178
+ the wallet file is readable by you alone (mode 600), so any program running as
179
+ you can read them, and can run `keyban` too. What bounds such a program is the same thing that bounds
177
180
  the agent: Keyban co-signs every signature and applies the wallet's policy
178
181
  first. Treat the machine account that holds the share like one that holds an
179
182
  SSH key.
package/SKILL.md CHANGED
@@ -121,8 +121,8 @@ and what to do next. Follow it.
121
121
  themselves while an operator approves, then go on. If one comes back still
122
122
  waiting, call it again as the answer says.
123
123
  - Elsewhere, in one message, tell the user the amount, the recipient, the
124
- deadline and the link, and call `agent-wallet:wait_for_intent`; call it
125
- again each time it comes back still waiting. A decision taken before the
124
+ deadline and the link, and call `agent-wallet:wait_for_intent` (it waits at
125
+ most 45 s); call it again each time it comes back still waiting. A decision taken before the
126
126
  call shows in `recentlyDecided`. Once approved, retry the same call with
127
127
  that `intentId` (a transfer: the same recipient and amount).
128
128
 
@@ -134,7 +134,7 @@ call `agent-wallet:cancel_intent`.
134
134
  ## Missions
135
135
 
136
136
  A mission is the budget and the brief an agent gets for one task: what to do,
137
- how much per run, where the money may go, for how long, who may run it and how.
137
+ which services may be paid and how often, how much per run, who may run it and how.
138
138
  You write it as a draft and try it; a human validates the trial and an operator
139
139
  publishes it; then it runs as many times as needed, by one wallet or by many.
140
140
  Every mission tool acts on this server's own wallet: never pass a wallet id.
@@ -167,74 +167,151 @@ short name; `key` is the stable kebab-case identifier (`lead-enrichment`).
167
167
 
168
168
  ### Fields
169
169
 
170
- `agent-wallet:create_mission` describes its own fields. What it cannot say:
171
-
172
- - Ask the user for every amount: never pick one yourself. Amounts are integer
173
- strings in the smallest unit of the organization's currency (`"3000"` is
174
- 30.00 EUR).
170
+ `agent-wallet:create_mission` describes its own fields. Go in this order:
171
+
172
+ 1. Understand the task, and check the wallet balance
173
+ (`agent-wallet:balance`) first: a mission the wallet cannot fund is
174
+ useless.
175
+ 2. Create the draft right away with the `sources` you propose: for each, the
176
+ endpoint, what you expect from it, the calls planned per unit (per run when
177
+ the task has no unit) and the price of one call, read in the x402
178
+ catalogue. That plan is an estimate, never a limit: the sources are the
179
+ services the mission allows. The draft shows no card: the user corrects it
180
+ in chat, and you apply the corrections with `agent-wallet:update_mission`.
181
+ Do not ask for the list beforehand. For a change to an existing mission,
182
+ the same rule: `agent-wallet:update_mission` opens the next version right
183
+ away; do not ask before, do not propose in text.
184
+ 3. Propose the price per unit yourself, in the draft: the cost of one unit
185
+ (the sum of the sources' calls × price) plus a margin. The envelope of a
186
+ run is that price × the units of the mission, and it is the only limit on
187
+ spend. There is no cap over all the runs of a mission. Do not ask the user
188
+ for amounts: they correct the ones on the trial card.
189
+ 4. Leave the rest at its defaults (duration 1 day, no limit on simultaneous
190
+ runs): do not ask.
191
+ 5. On a task with units, `unitCount` is an estimate used for the envelope, not
192
+ a limit: a run may handle more or fewer units. A trial plays a small sample
193
+ of units, not a whole run: when you ask it, pass `unitCount`, the sample, a
194
+ few units, never more than the `unitCount` of the draft; you may propose its
195
+ size to the user.
196
+
197
+ Amounts are integer strings in cents of the organization's currency, never
198
+ decimals: 0.05 EUR is `"5"`, 30.00 EUR is `"3000"`. A decimal is refused with a
199
+ 400. One exception: the price of one call of a source (`callPriceRef`) takes up
200
+ to 3 decimals of a cent, as an x402 call often costs less than one: 0.003 EUR is
201
+ `"0.3"`. Prices of the sources are in the mission's currency.
202
+
203
+ - Each source is `METHOD host/path`, for example `POST api.exa.ai/search`, with
204
+ a plain path: no query string, no percent-encoding, no `.` or `..` segment;
205
+ one source per endpoint. The server refuses with `MISSION_ENDPOINT_INVALID`
206
+ what it cannot read unambiguously.
207
+ - The plan is your honest estimate: the calls one unit needs and the price of
208
+ one call read in the catalogue. Put the margin in the unit price, not in the
209
+ plan.
175
210
  - The target price per unit is a hint, not a guarantee: say « envelope 30 EUR
176
- (100 leads at a 0.30 EUR target) », never « at most 0.30 EUR per lead ».
177
- - Propose a total budget whenever the mission will run on many wallets or many
178
- times: each run reserves its whole envelope while it lasts, so the total
179
- budget also bounds how many runs can overlap.
211
+ `"3000"` (100 leads at a 0.30 EUR target) », never « at most 0.30 EUR per lead ».
180
212
  - `maxPaymentRef`, `exemptFromWalletBudgets` and `maxActiveRunsPerWallet` only
181
213
  when the task needs them. Say plainly what each one lifts: the user will see
182
214
  it flagged.
183
- - Write each endpoint `METHOD host/path`, for example `POST api.exa.ai/search`,
184
- with a plain path: no query string, no percent-encoding, no `.` or `..`
185
- segment. The server refuses with `MISSION_ENDPOINT_INVALID` what it cannot
186
- read unambiguously.
215
+
216
+ ### Around a card
217
+
218
+ Several tools show a card to the user. Write at most one sentence before it,
219
+ which does not repeat what it shows, and nothing after it: the card is the call
220
+ to action and ends the message. In French, say « essai », never « trial ».
187
221
 
188
222
  ### Try, then publish
189
223
 
190
224
  1. `agent-wallet:create_mission` (or `agent-wallet:update_mission` to change the
191
225
  open draft, or to open a draft of the next version from a published one).
192
226
  Any change voids the trials already done.
193
- 2. `agent-wallet:request_mission_trial`: asks a trial of the draft on this
194
- wallet. A card shows it to the user; tell them to validate it in the Inbox
195
- of the dashboard (an operator of the wallet; the organization's finance
196
- owner too when the draft loosens application or organization rules). It
197
- returns a run id. If the finance owner declines what the draft loosens, the
198
- trial is declined with it: change the draft and ask a new trial.
199
- 3. Once validated (`agent-wallet:get_mission_run` says `active`), play the
200
- trial like a run: pay passing the run id as `missionRunId`, record
201
- progress, then `agent-wallet:complete_mission_run`. The trial uses real
202
- money, inside the draft envelope, and does not count in the mission's total
203
- budget.
204
- 4. `agent-wallet:publish_mission` checks the draft can be published and shows
205
- the user a card with the page where they publish it. It does not publish:
206
- the user does, in the dashboard, as an operator of the wallet. You cannot
207
- publish, approve or decline: no tool does it. A refusal says what is
208
- missing (a completed trial of the current content, the finance owner's
209
- approval of what the draft loosens). To drop a draft,
210
- `agent-wallet:discard_mission_draft`.
227
+ 2. `agent-wallet:request_mission_trial`, right after the draft call, without
228
+ asking the user in the chat first: the only approval is the user's
229
+ « Validate in Keyban ». It asks a trial of the draft on this wallet; on a
230
+ task with units, pass `unitCount`, the sample (a few units, never more than
231
+ the draft `unitCount`). It returns at
232
+ once with a card, which the user validates in the Inbox of the dashboard
233
+ (an operator of the wallet; the organization's finance owner too when the
234
+ draft loosens application or organization rules). Then call
235
+ `agent-wallet:wait_for_mission_run` with the `runId`, again and again while
236
+ it says the decision is pending: do not ask the user to tell you. If the
237
+ finance owner declines what the draft loosens, the trial is declined with
238
+ it: change the draft and ask a new trial. The card then follows the run:
239
+ the user sees the payments as they happen, so write nothing in between.
240
+ 3. Once the trial is active, play it like a run without asking again (the
241
+ validation is the go-ahead): pay with the `*_in_mission` tools (below),
242
+ record progress, deliver the work result, then
243
+ `agent-wallet:complete_mission_run`. The trial uses real money, inside the
244
+ trial's envelope (sample size × unit price). It must make at least one
245
+ payment, or the draft cannot be published: ask a new trial that pays.
246
+ 4. After a successful trial the end-of-run card carries « Publish mission in
247
+ Keyban »: do not call `agent-wallet:publish_mission` then. The user
248
+ publishes in the dashboard, as an operator of the wallet; you cannot
249
+ publish, approve or decline. `agent-wallet:publish_mission` stays for
250
+ publishing later: it checks the draft can be published and shows a card
251
+ with the page. A refusal says what is missing (a completed trial of the
252
+ current content, a trial that paid, the finance owner's approval of what
253
+ the draft loosens). Publication may lower the unit price and the envelope
254
+ to the cost the trial observed: do not adjust them yourself.
255
+ To drop a draft, `agent-wallet:discard_mission_draft`.
211
256
 
212
257
  While a draft v2 is being tuned, the published v1 keeps running.
213
258
 
259
+ ### Optimize an existing mission
260
+
261
+ When the user wants a mission to cost less, or to use other sources:
262
+
263
+ 1. Read the mission (`agent-wallet:get_mission`) and the `versionStats` entry
264
+ of its published version: `bySource` says which source costs what, in amount
265
+ and in share (`shareBps`). Tell the user which source weighs what; a
266
+ `basis` of `trial` means the version only ran as trials.
267
+ 2. Look for an alternative (`agent-wallet:discover_x402_services`,
268
+ `agent-wallet:x402_info`): the price of one call, read in the catalogue or
269
+ from the seller.
270
+ 3. Open the draft right away with `agent-wallet:update_mission`, without asking
271
+ for agreement and without asking about amounts: the draft is the proposal,
272
+ the user corrects it in chat. The « create right away » rule holds for a
273
+ change as for a creation.
274
+ 4. Ask the trial right away, wait for the decision, execute, deliver the result,
275
+ then `agent-wallet:complete_mission_run` last: its card compares the unit
276
+ cost of the run with the published version. Write nothing after it.
277
+ 5. A trial that paid nothing proves nothing: say so in one sentence before the
278
+ end-of-run card.
279
+
214
280
  ### Run it
215
281
 
282
+ A mission may have several runs active at once, started by other
283
+ conversations or other agents. Only touch the runs you started in this
284
+ conversation: never log progress on, complete or abandon another one (its work
285
+ and its results are elsewhere). Start your own run and leave the others alone.
286
+
216
287
  1. `agent-wallet:start_mission_run` with the mission; optionally `units` (unit
217
- tokens such as ids) or `unitCount`, within the mission's count. It returns
218
- a run id: `active` at once, or `pending_approval` in `on_demand` mode, then
219
- a card shows it to the user: tell them to approve it in the Inbox, and
220
- check with `agent-wallet:get_mission_run` that it is `active` before
221
- paying.
222
- 2. Pay passing the run id as `missionRunId` on `agent-wallet:x402_pay` and
223
- `agent-wallet:transfer_usdc` (`--mission-run-id <id>` on the command line).
224
- The run is the budget a human validated for the task: each payment counts
225
- against the run's envelope and, when the mission has one, its total budget.
226
- Inside a trial and an on-demand run the approval threshold is lifted;
227
- inside an automatic or frequency run it still applies, and a payment above
228
- it waits for an operator. Do not attach a payment to a run it does not
229
- serve: the server cannot tell, so the user relies on you for the right run.
230
- Without a run id a payment is evaluated under the wallet policy alone,
231
- unless the policy requires a mission (`policy/mission-required`).
288
+ tokens such as ids) or `unitCount`; it may exceed the mission's estimate.
289
+ It returns at once with a run id: `active`, or `pending_approval` in
290
+ `on_demand` mode, then a card shows it to the user, who approves it in the
291
+ Inbox. Call `agent-wallet:wait_for_mission_run` with the `runId` until the
292
+ decision: do not ask the user to tell you. Once active, execute without
293
+ asking again.
294
+ 2. Pay with `agent-wallet:x402_pay_in_mission` and
295
+ `agent-wallet:transfer_usdc_in_mission`, passing the run id as `missionRunId`
296
+ (required). `agent-wallet:x402_pay` and `agent-wallet:transfer_usdc` refuse a
297
+ `missionRunId`. The run is the budget a human validated for the task: each
298
+ payment counts against the run's envelope. Inside a trial and an on-demand
299
+ run the approval threshold is lifted; inside an automatic or frequency run it
300
+ still applies, and a payment above it waits for an operator: the tool then
301
+ returns the approval link in text. Do not attach a payment to a run it does
302
+ not serve: the server cannot tell, so the user relies on you for the right
303
+ run. These tools show no card. From the command line the same calls are
304
+ `keyban wallet x402-pay-in-mission` and `keyban wallet transfer-usdc-in-mission`,
305
+ with `--mission-run-id <runId>`. Without a run id a payment is evaluated
306
+ under the wallet policy alone, unless the policy requires a mission
307
+ (`policy/mission-required`).
232
308
  3. Record progress with `agent-wallet:log_mission_progress` (`unitsDone`,
233
- idempotent, or `unitsDoneCount`, and a `note`).
234
- `agent-wallet:get_mission_run` returns what is spent and left and the units
235
- remaining: after an interruption, read it and continue from the remaining
236
- units.
237
- 4. `agent-wallet:complete_mission_run` when done.
309
+ idempotent, or `unitsDoneCount`, and a `note`); on a mission without unit,
310
+ log a `note` only, as a done count is refused. `agent-wallet:get_mission_run`
311
+ returns what is spent and left and the units remaining: after an
312
+ interruption, read it and continue from the remaining units.
313
+ 4. When done, deliver the work result first, then call
314
+ `agent-wallet:complete_mission_run`: its card ends the message.
238
315
  `agent-wallet:abandon_mission_run` withdraws a run still waiting for
239
316
  approval.
240
317
 
@@ -243,29 +320,36 @@ Refusals of `agent-wallet:start_mission_run`:
243
320
  - `MISSION_RUN_FREQUENCY_REACHED` (409): the wallet already started as many
244
321
  runs as the mission allows in the current period. `params.retryAt` (ISO 8601,
245
322
  UTC) is when it may start again. Do not retry before; tell the user when.
246
- - `MISSION_RUN_LIMIT_REACHED` (409): the wallet already has the maximum of
247
- active runs of this mission; finish or abandon one.
248
- - `MISSION_TOTAL_BUDGET_EXHAUSTED` (409): the mission's total budget cannot
249
- cover this run; tell the user, do not split the work to get around it.
323
+ - `MISSION_RUN_LIMIT_REACHED` (409): the mission limits the simultaneous runs
324
+ per wallet and this wallet reached it. Finish one of your own runs first; if
325
+ the others are not yours, tell the user and stop.
326
+ - `MISSION_RUN_PENDING` (409): `on_demand` mode, a run of this mission on this
327
+ wallet already waits for approval; one request waits at a time. If you
328
+ started it, keep calling `agent-wallet:wait_for_mission_run` on it, or
329
+ withdraw it with `agent-wallet:abandon_mission_run` if you no longer need it;
330
+ otherwise tell the user a request already waits and start again once it is
331
+ approved, declined or expired. Do not retry in a loop.
250
332
  - `MISSION_NOT_PUBLISHED` (409): nothing is published yet (ask a trial) or the
251
333
  mission is archived.
252
334
  - `MISSION_RUN_WALLET_OUT_OF_SCOPE` (403): this wallet is outside the mission's
253
335
  sharing.
254
- - `MISSION_RUN_OUT_OF_MISSION` (422): units, unit price or count fall outside
255
- the mission, or the wallet's currency differs.
336
+ - `MISSION_RUN_OUT_OF_MISSION` (422): the run does not fit the mission; read
337
+ the error, then start a run that fits or tell the user.
256
338
 
257
339
  A run that no longer fits cannot be edited: start another one. A run that goes
258
- over its envelope, the mission's total budget, its destinations or its deadline
259
- is refused with a `policy/…` reason (below). A payment above the wallet's
340
+ over its envelope, its destinations or its deadline is refused with a `policy/…` reason (below). A payment above the wallet's
260
341
  approval threshold in an `auto` or `frequency` run waits for an operator in the
261
342
  Inbox, who may allow it for the next runs of the mission. Stopping an active
262
343
  run is a human decision, in the dashboard.
263
344
 
264
345
  `agent-wallet:list_missions` and `agent-wallet:get_mission` return the
265
- statistics (runs by status, total spent, what is left of the total budget,
346
+ statistics (runs by status, total spent,
266
347
  observed price per unit next to the target) and the limits currently blocking a
267
348
  start, with their `retryAt`. `agent-wallet:list_mission_runs` and
268
349
  `agent-wallet:get_mission_run` read the runs of this wallet.
350
+ `agent-wallet:list_runs_of_mission` lists this wallet's runs of one mission.
351
+ `agent-wallet:list_mission_run_payments` pages every payment of a run beyond the
352
+ 50 most recent ones that `get_mission_run` carries.
269
353
 
270
354
  ## When the policy refuses
271
355
 
@@ -276,21 +360,22 @@ that payment.
276
360
  |---|---|---|
277
361
  | `policy/amount-exceeded` | above the per-payment cap | raise the cap on the wallet page |
278
362
  | `policy/budget-day-exceeded`, `-week-`, `-month-` | the period's budget is used | wait, or raise the budget on the wallet page |
363
+ | `policy/budget-application-…-exceeded`, `policy/budget-organization-…-exceeded` | the budget shared by every wallet of the application (or of the whole organization) is used for the period, not this wallet's own | wait for the next period, or ask an owner or admin to raise it in Settings → Policies of the application or organization; never split the payment |
279
364
  | `policy/recipient-…`, `policy/domain-…` | destination not allowed at some scope | change a destination rule, through the admin MCP only if the user asks |
280
365
  | `policy/mission-required` | this wallet only pays inside a mission run, and the payment named none | pay inside a run of the mission this task belongs to: start one with `agent-wallet:start_mission_run` if none is active, or ask the user which mission it is; never start a run of an unrelated mission to get the payment through; do not retry without a run |
281
366
  | `policy/mission-run-not-found` | the run id is unknown, belongs to another wallet, or missions are not available | check the id with `agent-wallet:list_mission_runs`; do not guess another |
282
367
  | `policy/mission-run-not-active: <status>` | the run is not active: `pending_approval` (an operator has not approved it yet), `declined`, `abandoned`, `cancelled` or `completed` | tell the user the status; wait for approval or start a new run (Missions, above); never reuse an ended run |
283
368
  | `policy/mission-run-not-active: expired` | the run passed its deadline | start a new run if the task continues |
284
369
  | `policy/mission-run-not-active: currency_mismatch` | the wallet's policy currency changed after the run started, so the envelope no longer matches | do not retry; the user must recreate the mission in the new currency and start a new run |
285
- | `policy/envelope-exceeded: … (<key>)` | the payment would take the spent total above a cap: the key is the run's id when it is the run's envelope, the mission's id when it is the mission's total budget (shared by every run and wallet of the mission) | report which one; finish or abandon the run, or ask the user for a mission with a larger envelope (run) or total budget (mission); never split the payment |
286
- | `policy/domain-mission-not-allowed: <METHOD host/path>` (x402), `policy/recipient-mission-not-allowed` (transfer) | the destination is not in the mission's own list; for x402 the whole `METHOD host/path` is compared | pick a service the mission names, with the method and path it names; to add one, update the mission with `agent-wallet:update_mission`, play a trial, and the user publishes the new version |
370
+ | `policy/envelope-exceeded: … (<key>)` | the payment would take the spent total above a cap: the key is the run's id | report which one; finish or abandon the run, or ask the user for a mission with a larger envelope; never split the payment |
371
+ | `policy/domain-mission-not-allowed: <METHOD host/path>` (x402), `policy/recipient-mission-not-allowed` (transfer) | the destination is not among the mission's sources (or recipients); for x402 the whole `METHOD host/path` is compared | pick a service the mission names, with the method and path it names; to add one, update the mission with `agent-wallet:update_mission`, play a trial, and the user publishes the new version |
287
372
  | `policy/intent-in-flight` | an earlier transfer is still pending | wait for it, or cancel it with `agent-wallet:cancel_intent` |
288
373
  | `policy/emergency-stop` | the wallet is paused | resume it on the wallet page |
289
374
  | `policy/transaction-quota-reached` | the organization's monthly transaction quota (its plan) is used up — for every wallet of the organization, until the 1st of next month (UTC) | do not retry; ask an organization admin to upgrade the plan or allow billed overage in Billing → Usage |
290
375
  | `policy/missing` | the wallet has no policy (403 at signing) | ask the user to open the wallet page; do not retry |
291
376
  | `policy/x402-no-exact-accept` | the seller only offers an x402 payment scheme the wallet cannot settle yet (e.g. `upto`) — a current limit of the wallet, not a budget problem | do not retry; pick another provider and tell the user |
292
377
  | `policy/x402-…` | the seller's x402 offer cannot be paid (unreachable, malformed, invalid recipient, wrong asset or chain, above `maxAmount`) | pick another provider |
293
- | `policy/prepaid-balance-insufficient` | the prepaid credit of the organization does not cover the payment | tell the user an admin must buy a pack in Billing → Prepaid credit; never retry or split the payment |
378
+ | `policy/prepaid-balance-insufficient` | the prepaid credit of the organization does not cover the payment; even a fraction of a cent short refuses | tell the user an admin must buy a pack in Billing → Prepaid credit; never retry or split the payment |
294
379
  | `policy/prepaid-payer-unavailable`, `policy/prepaid-suspended` | Keyban cannot pay prepaid payments for now | report it; do not retry |
295
380
 
296
381
  A destination refused with `mission` as scope is the mission's list; with