{"uid":"cap_0_EyJFSQYV4VlblgQ11nu","slug":"agent-to-merchant-post-payment-feedback-and-reputation-update-loop-f32f5602","name":"Agent-to-Merchant Post-Payment Feedback and Reputation Update Loop","description":"Decision procedure for an agent that just settled an x402 payment: classify the outcome into one of five classes (delivered-as-agreed, late, wrong deliverable, silent failure, hostile), compute the reputation delta for that merchant, apply allowlist downgrade and trust-tier thresholds, and retain the evidence that justifies each update. Includes kill criteria for ambiguous outcomes, a minimum-evidence rule before any negative delta is recorded, and a replay guard so the same failure is not","url":"https://k2so.wrong.systems/api/services/agent-to-merchant-post-payment-feedback-and-repu","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-to-merchant post-payment feedback and reputation update loop 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-to-merchant-post-payment-feedback-and-repu","procedure":"same as brief","generatedAt":"2026-01-01T00:00:00.000Z","generationSource":"deterministic"},"service":"agent-to-merchant-post-payment-feedback-and-repu","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_LedC5Tgz8yphiwnHByEfi","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 structured decision procedure for classifying x402 payment outcomes, computing merchant reputation deltas, and applying allowlist/trust-tier updates with evidence retention and replay guards.","exampleAgentPrompt":"I just settled an x402 payment to a merchant and they delivered the wrong file — walk me through classifying the outcome, computing the reputation delta, and deciding whether to downgrade them from my allowlist, including what evidence I need to retain before recording a negative mark.","exampleUseCases":[{"title":"Silent failure reputation downgrade","prompt":"A merchant I paid via x402 never responded and delivered nothing — give me the decision procedure for classifying this as a silent failure, computing their reputation delta, and confirming I have minimum evidence before applying the negative mark."},{"title":"Disputed late delivery trust-tier review","prompt":"The x402 merchant delivered eventually but 3 days late — walk me through classifying this as a late outcome, what trust-tier threshold applies, and whether I should downgrade them on my allowlist or just record the delta."},{"title":"Replay guard for repeated failure event","prompt":"My agent recorded a hostile outcome for a merchant last week and now the same failure event is showing up again in my logs — help me apply the replay guard so I don't double-count this failure in their reputation score."}],"resultDescription":"A paid JSON response containing a prose decision procedure brief for agents, the outcome classification logic across five classes (delivered-as-agreed, late, wrong deliverable, silent failure, hostile), reputation delta computation rules, allowlist downgrade and trust-tier threshold criteria, minimum-evidence requirements before negative deltas are recorded, kill criteria for ambiguous outcomes, and a replay guard mechanism — plus metadata including generation source, timestamp, and service slug.","failureModes":["Payment not settled — returns 402 requiring x402 payment before content is served","Missing or malformed query parameters — may return default topic procedure rather than a tailored one","Service unavailable or provider error — returns non-200 with no decision procedure","Ambiguous topic override — procedure may not match intended merchant scenario","Stale or cached response — generatedAt timestamp may not reflect current ruleset"],"whenToPreferThis":"Choose this endpoint when your agent has just completed an x402 payment and needs a structured, evidence-backed procedure for updating merchant reputation — especially when you need replay protection, minimum-evidence rules before negative deltas, and trust-tier/allowlist governance logic baked in. Prefer this over generic reputation systems when operating in the x402 ecosystem where outcome classes and evidence standards are specific to autonomous agent-merchant interactions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T15:26:23.453Z","isFirstParty":false}