# x402 Settlement Pattern Anomaly Decision Procedure

> x402 Settlement Pattern Anomaly Decision Procedure is a paid API for AI agents from k2so-8080.on.ascii.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-20).

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.

## Facts

- Endpoint: GET https://k2so-8080.on.ascii.dev/api/services/x402-settlement-pattern-anomaly-decision-procedu?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-settlement-pattern-anomaly-decision-procedure-bf3c9f2b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wJ2Mv3lm_w5z9I_BxImMS

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402-settlement-pattern-anomaly-decision-procedure-bf3c9f2b
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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).

## Request schema (JSON Schema)

```json
{
 "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": {
         "
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-settlement-pattern-anomaly-decision-procedure-bf3c9f2b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from k2so-8080.on.ascii.dev](https://www.zero.xyz/host/k2so-8080.on.ascii.dev/llms.txt)
