{"uid":"cap_m1BNiOqBlVOa698OazmxM","slug":"agent-accountability-attribution-decision-procedure-for-x402-payments-657f4dea","name":"Agent Accountability Attribution Decision Procedure for x402 Payments","description":"Decision procedure assigning liability after an x402 agent payment: principal, operator, wallet controller, or merchant. Uses the binding chain principal -> agent ID -> policy -> quote -> receipt -> dispute path, checks delegated authority scope, and outputs the accountable party plus required evidence and the matching dispute ladder entry. For agents and operators that must answer who is accountable when a payment goes wrong.","url":"https://k2so-8080.on.ascii.dev/api/services/agent-accountability-attribution-after-an-x402-p?utm_source=zero.xyz","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":"Agent accountability attribution decision procedure for x402 payments 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_FvjxPTvZYCD-yf_n__F_W","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":"Determines which party (principal, operator, wallet controller, or merchant) is liable when an x402 agent payment goes wrong, outputting the accountable party, required evidence, and matching dispute ladder entry.","exampleAgentPrompt":"A payment my agent made via x402 just failed and I need to know who is accountable — walk me through the decision procedure to figure out whether it's the principal, operator, wallet controller, or merchant, and tell me what evidence I'll need to resolve the dispute.","exampleUseCases":[{"title":"Post-payment failure liability triage","prompt":"One of my agents just made an x402 payment and the merchant never delivered the service. Who is accountable — me as the principal, the operator, the wallet controller, or the merchant — and what evidence do I need to put together for the dispute?"},{"title":"Delegated authority scope check","prompt":"My agent made a payment that exceeded its delegated policy scope and now there's a dispute. Can you run the accountability attribution procedure to tell me which party in the principal-to-agent chain bears liability and what the dispute ladder says I should do?"},{"title":"Operator liability verification before deploying agents","prompt":"Before I deploy my fleet of x402-paying agents, I need to understand how liability is attributed if a payment goes wrong — specifically whether it lands on me as the operator or on the principal, and what the binding chain looks like from policy to receipt to dispute."}],"resultDescription":"Returns a JSON object containing: a boolean success flag, a prose decision brief explaining which party (principal, operator, wallet controller, or merchant) is accountable, the topic and service slug, an ISO-8601 generation timestamp, the generation source (llm, reasoning, or deterministic), and optionally payment metadata including transaction reference and payer details.","failureModes":["Missing or invalid input method returns schema validation error","Payment not completed (x402 unpaid) returns unpaid gate response without result content","Topic override not recognized may return generic procedure rather than topic-specific guidance","Service unavailable on ascii.dev returns connection error","Malformed query parameters may result in default behavior without topic customization"],"whenToPreferThis":"Choose this endpoint when you need a structured, repeatable decision procedure specifically for x402 payment liability attribution — particularly when an agent-initiated payment has failed, a dispute is being opened, or you need to pre-validate the accountability chain before deploying agents. It is the right choice when the binding chain of principal → agent ID → policy → quote → receipt → dispute needs to be formally evaluated and when you need to know what evidence to collect for a dispute ladder entry.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T06:42:53.326Z","isFirstParty":false,"canonicalSlug":"agent-accountability-attribution-decision-procedure-for-x402-payments-657f4dea"}