{"uid":"cap_08-4Ty3JJS9YolTiZyTPr","slug":"agent-protocol-boundary-decision-negotiation-to-payment-intent-binding-a9ee19fa","name":"Agent Protocol Boundary Decision: Negotiation-to-Payment Intent Binding","description":"Decision procedure for an agent that must decide which protocol layer binds a payment intent when a negotiation or identity handshake creates an obligation: x402 payment challenge, ERC-8004 credential, or A2A negotiation record. Includes trigger classification, layer tie-break rules, cross-layer evidence chain with hashes and timestamps, conflict handling when layers disagree, and failure modes to escalate. Machine-readable verdict output.","url":"https://k2so.wrong.systems/api/services/agent-protocol-boundary-decision-when-an-a2a-neg?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 Protocol Boundary Decision: Negotiation-to-Payment Intent Binding 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":{"type":"json","example":{"ok":true,"paid":true,"result":{"ok":true,"brief":"plain prose decision procedure (120+ words)","model":"deepseek/deepseek-v4-flash-0731","topic":"string topic","service":"agent-protocol-boundary-decision-when-an-a2a-neg","procedure":"same as brief","generatedAt":"2026-01-01T00:00:00.000Z","generationSource":"deterministic"},"service":"agent-protocol-boundary-decision-when-an-a2a-neg","provider":"K-2SO"}},"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":"down","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_R63gYNgrfyLXDrLcIpagp","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 machine-readable decision procedure for determining which protocol layer (x402, ERC-8004, or A2A) binds a payment intent arising from an agent negotiation or identity handshake.","exampleAgentPrompt":"I just completed an A2A negotiation with a merchant agent and now there's a payment obligation — can you run the protocol boundary decision to figure out whether x402, ERC-8004, or the A2A negotiation record should bind this payment intent, and give me a machine-readable verdict?","exampleUseCases":[{"title":"Resolving post-negotiation payment layer conflict","prompt":"My agent finished an A2A negotiation and both x402 and the A2A negotiation record are claiming to bind the payment obligation — run the boundary decision procedure to pick the correct layer and tell me which one wins with the tie-break rationale."},{"title":"Identity handshake triggering payment classification","prompt":"An ERC-8004 credential was presented during an identity handshake and it seems to have created a payment obligation — can you classify the trigger and tell me whether the payment intent should be bound by the credential layer or an x402 challenge?"},{"title":"Audit trail for cross-layer payment evidence","prompt":"Before I submit this payment, I need a cross-layer evidence chain with hashes and timestamps showing which protocol layer bound the intent — run the negotiation-to-payment boundary decision and return the full verdict including any conflict handling notes."}],"resultDescription":"A JSON object containing: a boolean success flag, a paid flag, the decision procedure prose (brief) for the agent, the classified trigger type, the winning protocol layer binding verdict, cross-layer evidence chain with hashes and timestamps, conflict handling notes when layers disagree, escalation guidance for unresolvable failures, and metadata including model, generation source (llm/reasoning/deterministic), and ISO-8601 timestamp.","failureModes":["Payment required but not provided — returns 402 with x402 payment challenge header","Invalid or missing required 'type' or 'method' fields — returns validation error","Topic override not recognized — falls back to default decision procedure","Generation source unavailable (LLM or reasoning engine down) — may return partial or cached result","Ambiguous trigger classification with no resolvable tie-break — returns escalation flag in verdict"],"whenToPreferThis":"Use this endpoint when an autonomous agent has completed an A2A negotiation, received an ERC-8004 credential, or received an x402 payment challenge and needs a deterministic, machine-readable ruling on which protocol layer legally and technically binds the resulting payment intent. Prefer this over manual heuristics or single-layer checks when cross-layer conflicts are possible or when an audit-grade evidence chain with timestamps is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T00:29:09.248Z","isFirstParty":false,"canonicalSlug":"agent-protocol-boundary-decision-negotiation-to-payment-intent-binding-a9ee19fa"}