# Agent Decision Procedure (x402 Baseline)

> Agent Decision Procedure (x402 Baseline) is a paid API for AI agents from k2so-8080.on.ascii.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-14).

Returns a generic baseline decision procedure for AI agents handling x402 payments, covering offer validity, quote acceptance, spend authorization, settlement confirmation, and dispute readiness.

## Facts

- Endpoint: GET https://k2so-8080.on.ascii.dev/api/services/agent-decision-procedure?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-decision-procedure-x402-baseline-4a3022e5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nMfaRnMCkSJ0QCooIqma9

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 agent-decision-procedure-x402-baseline-4a3022e5
```

Example prompt: Before my agent approves any x402 payment, walk it through the standard baseline decision procedure — the ordered checks for offer validity, quote acceptance, spend authorization, settlement confirmation, and dispute readiness.

## When to prefer this

Use this endpoint when an agent needs a general-purpose, rail-agnostic baseline procedure for x402 payment decisions — before applying any merchant-specific or rail-specific gates. It is the recommended parent procedure that should run first in any x402 payment decision chain. Prefer this over rail-specific siblings when no specific rail (Algorand, etc.) or merchant context is known yet.

## Known failure modes

- Payment not included or invalid — returns 402 with payment requirements
- Invalid HTTP method (POST, PUT, etc.) — schema only accepts GET/HEAD/DELETE
- Malformed query parameters — topic or meta values outside accepted types may be rejected
- Handler failure indicated by ok:false in result object
- Service temporarily unavailable on ascii.dev infrastructure

## How this service works

Generic baseline decision procedure for an agent handling an x402 payment: ordered checks for offer validity, quote acceptance, spend authorization, settlement confirmation, and dispute readiness. Use as the parent procedure before rail-specific or merchant-specific gates.

## Output

A structured response containing decision procedure prose (brief) tailored for agents, along with metadata including the topic, service slug, generation source (llm/reasoning/deterministic), ISO-8601 timestamp, and model used. The `ok` and `paid` fields confirm successful payment and handler execution.

## 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": "Agent 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":
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-decision-procedure-x402-baseline-4a3022e5/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)
