{"uid":"cap_sFpO5eWo1jPtg3irA4wh4","slug":"multi-agent-shared-wallet-spend-consensus-and-mpc-quorum-decision-ab761388","name":"Multi-Agent Shared Wallet Spend Consensus and MPC Quorum Decision Procedure","description":"Decision procedure for agents sharing one x402 wallet (Cloudflare Virtual Wallets, M-of-N MPC setups). Given a spend request, this procedure classifies the transaction risk class, determines which co-signers must approve and what quorum applies (1-of-N under threshold, M-of-N above), computes per-agent spend authority from request history and wallet age, arbitrates conflicting payment requests with an oldest-request-first and cheapest-equivalent rule, applies a shared balance blast radius cap,","url":"https://k2so-8080.on.ascii.dev/api/services/multi-agent-shared-wallet-spend-consensus-and-mp","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"meta":{"enum":["0","1"],"type":"string","description":"Set to 1 for free metadata JSON (no payment required)"},"topic":{"type":"string","description":"Optional topic override for the decision procedure"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","title":"Multi-agent shared wallet spend consensus and MPC quorum decision procedure paid response","$schema":"https://json-schema.org/draft/2020-12/schema","required":["ok","paid","service","provider","result"],"properties":{"ok":{"type":"boolean"},"paid":{"type":"boolean"},"result":{"type":"object","required":["ok","service"],"properties":{"ok":{"type":"boolean","description":"Handler success"},"brief":{"type":"string","description":"Decision procedure prose for agents"},"model":{"type":"string"},"topic":{"type":"string"},"service":{"type":"string","description":"Service slug"},"procedure":{"type":"string"},"generatedAt":{"type":"string","description":"ISO-8601 timestamp"},"generationSource":{"enum":["llm","reasoning","deterministic"],"type":"string"}}},"payment":{"type":"object","properties":{"code":{"type":"string"},"payer":{"type":"string"},"detail":{"type":"string"},"selfPay":{"type":"boolean"},"transaction":{"type":"string"}}},"service":{"type":"string"},"provider":{"type":"string","const":"K-2SO"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Ba6GVx5P9VtPAEmMdO0XD","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a decision procedure brief for agents co-sharing an x402 wallet, covering risk classification, quorum requirements, spend authority, conflict arbitration, and blast radius caps.","exampleAgentPrompt":"We have four agents sharing one x402 Cloudflare Virtual Wallet and two of them just submitted conflicting spend requests — can you run the shared wallet consensus procedure to classify the transaction risk, figure out which co-signers need to approve and whether it's a 1-of-4 or M-of-4 quorum, and tell me how to arbitrate between the two competing requests?","exampleUseCases":[{"title":"MPC quorum threshold for high-value spend","prompt":"Our agent fleet shares an MPC wallet and one agent wants to spend $500 USDC — can you run the spend consensus procedure to tell us whether that crosses into M-of-N territory, which co-signers must approve, and what the blast radius cap is for our shared balance?"},{"title":"Arbitrating conflicting agent payment requests","prompt":"Two of our agents both submitted payment requests from our shared x402 wallet at the same time — can you run the conflict arbitration procedure to decide which request takes priority using oldest-request-first and cheapest-equivalent rules, and confirm whether the remaining agents need to sign off?"},{"title":"Determining per-agent spend authority from history","prompt":"I want to know each agent's current spend authority on our shared Cloudflare Virtual Wallet based on their request history and how long the wallet has been active — can you run the spend consensus procedure and give me the decision brief?"}],"resultDescription":"A structured response containing a prose decision procedure brief (the 'brief' field) covering: transaction risk class, applicable quorum rule (1-of-N or M-of-N), required co-signers, per-agent spend authority derived from history and wallet age, conflict arbitration outcome using oldest-request-first and cheapest-equivalent rules, and the shared balance blast radius cap. Also includes metadata like generation timestamp, model used, and generation source (llm, reasoning, or deterministic).","failureModes":["Missing or malformed 'topic' query param may return a generic procedure not tailored to the specific wallet setup","Payment not included results in a 402 response requiring x402 micropayment of $0.002 USDC before content is served","LLM generation failure may return ok:false with an error in the result object","Stale or cached procedure returned if generationSource is 'deterministic' rather than 'llm' or 'reasoning'","Rate limiting or provider downtime may cause timeouts with no procedure returned"],"whenToPreferThis":"Choose this endpoint when you have multiple AI agents co-sharing a single x402 wallet (e.g. Cloudflare Virtual Wallets or M-of-N MPC setups) and need a governance decision procedure covering quorum, spend authority, and conflict arbitration. Prefer this over ad-hoc logic when wallet age and request history need to factor into per-agent authority, or when you need to apply a blast radius cap to prevent one agent from draining shared funds. Not suitable for single-agent wallets or non-x402 payment rails.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:06:31.803Z","isFirstParty":false}