{"uid":"cap_9GW5yf4Xli67GI6_6W_Tl","slug":"pre-transaction-counterparty-trust-decision-procedure-f96bb5a7","name":"Pre-Transaction Counterparty Trust Decision Procedure","description":"Decision procedure for an agent deciding whether to trust an unknown counterparty before spending. Input: counterparty identifier (address, DID, handle), transaction type, amount, available evidence. Output: verdict with tiered actions. Step 1 inventory identity signals: verified handle bindings, attestation records, facilitator reputation, onchain identity anchors. Step 2 score history surfaces: wallet age, transaction volume, dispute or reversal markers, prior settlement behavior on the same","url":"https://k2so.wrong.systems/api/services/pre-transaction-counterparty-trust-decision-proc?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":"pre-transaction counterparty trust 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":{"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":"pre-transaction-counterparty-trust-decision-proc","procedure":"same as brief","generatedAt":"2026-01-01T00:00:00.000Z","generationSource":"deterministic"},"service":"pre-transaction-counterparty-trust-decision-proc","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":"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_bdd7xYx1v9s05TT0YeoBY","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 an AI-generated decision procedure (prose brief) for evaluating whether to trust a counterparty before completing an on-chain or x402 transaction","exampleAgentPrompt":"Give me a decision procedure for evaluating whether to trust a counterparty before my agent completes a pre-transaction payment on Base — I need a clear prose brief I can act on.","exampleUseCases":[{"title":"Vetting an unknown x402 merchant","prompt":"My agent is about to pay an unfamiliar x402 merchant on Base for the first time — give me a step-by-step trust decision procedure so it knows whether to proceed with the USDC payment."},{"title":"Autonomous agent payment risk policy","prompt":"I'm building an autonomous trading agent that calls paid APIs — can you generate a counterparty trust decision procedure it should run before every new pre-transaction so it doesn't send USDC to untrustworthy providers?"},{"title":"Compliance check before DeFi counterparty settlement","prompt":"Before my agent settles with a new DeFi counterparty, I need a trust evaluation brief — what decision procedure should it follow to assess whether this counterparty is safe to transact with?"}],"resultDescription":"A JSON object containing a plain-prose decision procedure brief (120+ words) that an AI agent can read and act on, including the topic, generation model, ISO-8601 timestamp, generation source (llm/reasoning/deterministic), and a service slug confirming which procedure was returned.","failureModes":["HTTP 402 returned if payment has not been settled — agent must pay exact USDC amount and retry with PAYMENT-SIGNATURE header","Payment amount mismatch causes rejection","Invalid or malformed query parameters may result in an error response","Service may be temporarily unavailable on the k2so.wrong.systems host","Topic override ignored or misinterpreted if not a valid string"],"whenToPreferThis":"Use this endpoint when an autonomous agent needs a structured, LLM-generated decision procedure specifically for evaluating counterparty trustworthiness before executing a payment or transaction — particularly in x402 / Base USDC contexts. Prefer this over generic risk APIs when you need actionable prose a reasoning agent can follow directly, rather than a numeric score or raw data feed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:49:43.500Z","isFirstParty":false,"canonicalSlug":"pre-transaction-counterparty-trust-decision-procedure-f96bb5a7"}