{"uid":"cap_wJ2Mv3lm_w5z9I_BxImMS","slug":"x402-settlement-pattern-anomaly-decision-procedure-bf3c9f2b","name":"x402 Settlement Pattern Anomaly Decision Procedure","description":"Paid agent-facing brief on x402 settlement pattern anomaly decision procedure: what an agent can and cannot infer from a raw settlement record, and how to detect anomalies in its own settlement history. Inputs: recent settlement list (amounts, counterparties, timestamps, facilitators, rails). Outputs per settlement: inferred service class (subscription-like recurrence, one-off, burst), deviation flags (amount vs rolling med-0. Blunt decision procedure, not marketing.","url":"https://k2so-8080.on.ascii.dev/api/services/x402-settlement-pattern-anomaly-decision-procedu?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":"x402 settlement pattern anomaly decision procedure: what an agent can 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_BaHLSQd9TYPrE_9RVjugu","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 brief for agents to classify settlement records, infer service classes, and detect anomalies in their own x402 payment settlement history.","exampleAgentPrompt":"Look at my recent x402 settlements and tell me if any amounts or counterparty patterns look anomalous — I want to know the service class for each one (subscription-like, one-off, or burst) and whether anything deviates significantly from my rolling median.","exampleUseCases":[{"title":"Audit agent payment history for fraud","prompt":"My autonomous agent has been making x402 payments for the past two weeks — can you run the settlement anomaly procedure on the recent records and flag anything that looks like an unexpected charge or unusual counterparty pattern?"},{"title":"Classify recurring vs one-off settlements","prompt":"I have a list of x402 settlements from the last month. Can you tell me which ones look like subscription-style recurrences, which are one-offs, and which look like burst payments?"},{"title":"Detect billing drift in agent micropayments","prompt":"My agent pays several x402 services regularly, but I suspect one of them has been charging more than usual. Run the anomaly decision procedure on my settlement history and tell me if any amounts deviate from the rolling median."}],"resultDescription":"A structured decision procedure brief containing: per-settlement inferred service class (subscription-like recurrence, one-off, or burst), deviation flags comparing amounts against a rolling median, anomaly indicators across counterparties and rails, and explicit statements about what can and cannot be validly inferred from raw settlement records. Response includes generation metadata (model, timestamp, generation source).","failureModes":["Missing or malformed settlement list input returns an error","Payment not made results in a 402 response requiring USDC payment before content is delivered","Empty settlement history may produce no anomaly flags but still returns a valid brief","LLM generation failure may return an error with ok:false in the result object","Network timeout on the ascii.dev host"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to audit its own x402 payment settlement records for anomalies, classify settlement patterns, or apply a principled decision procedure to determine what can be safely inferred from raw settlement data. It is purpose-built for autonomous agents operating in x402 payment ecosystems, unlike generic fraud detection or accounting APIs that lack awareness of x402 rail semantics and agent-specific payment patterns.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:39:10.257Z","isFirstParty":false,"canonicalSlug":"x402-settlement-pattern-anomaly-decision-procedure-bf3c9f2b"}