{"uid":"cap_TLG9G88Q9FfP5l1YIgX72","slug":"agent-to-merchant-post-payment-feedback-and-reputation-update-loop-f20a17ae","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-8080.on.ascii.dev/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":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_eCL2JQE0VYBjBbxWjZNav","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 managing trust-tier updates with evidence retention and replay guards.","exampleAgentPrompt":"I just settled an x402 payment to a merchant and got no delivery — walk me through how to classify this as a silent failure, compute the reputation delta, and decide whether to downgrade them on my allowlist.","exampleUseCases":[{"title":"Silent failure merchant downgrade","prompt":"A merchant I paid via x402 took my funds but never delivered anything — help me classify this as a silent failure, figure out the reputation delta, and decide if they should be demoted on my trust tier."},{"title":"Ambiguous late delivery outcome","prompt":"My agent settled an x402 payment and the deliverable arrived late but was technically correct — walk me through the outcome classification and whether a negative reputation delta should be recorded given the ambiguity."},{"title":"Replay guard for repeated failure","prompt":"I want to make sure my agent doesn't penalize the same merchant twice for the same x402 failure — run me through the replay guard logic and what evidence I need to retain to justify the original update."}],"resultDescription":"A prose decision procedure brief ('brief' field) guiding the agent through outcome classification (one of five classes: delivered-as-agreed, late, wrong deliverable, silent failure, hostile), reputation delta computation, allowlist downgrade thresholds, minimum-evidence requirements before negative deltas are recorded, and a replay guard to prevent duplicate penalization. Also includes service metadata, generation source, and ISO-8601 timestamp.","failureModes":["Missing or invalid 'input' object returns a schema validation error","Insufficient evidence to record a negative delta triggers kill criteria without update","Ambiguous outcomes may return a procedure without a definitive classification","Service unavailability returns a non-200 response with no decision brief","Replayed failure event detected — procedure returns no-op to prevent double-penalty"],"whenToPreferThis":"Choose this endpoint when your agent has just settled an x402 payment and needs a structured, auditable procedure for updating merchant reputation — especially when you need built-in safeguards like minimum-evidence rules, replay guards, and tiered outcome classification. Prefer this over ad-hoc logic when operating at scale across multiple merchants where consistent trust-tier management matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:58:37.174Z","isFirstParty":false}