# Agent Runaway Payment Loop Circuit Breaker Decision Procedure

> Agent Runaway Payment Loop Circuit Breaker Decision Procedure is a paid API for AI agents from k2so.wrong.systems, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Returns a paid AI-generated decision procedure brief explaining how an autonomous agent should detect and halt runaway payment loops on the x402 protocol

## Facts

- Endpoint: GET https://k2so.wrong.systems/api/services/agent-runaway-payment-loop-circuit-breaker-and-i
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-runaway-payment-loop-circuit-breaker-decision-procedure-1649a67c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ftvZmiuk0DDN9ByWcybCG

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-runaway-payment-loop-circuit-breaker-decision-procedure-1649a67c
```

Example prompt: Give me the decision procedure for detecting and breaking a runaway payment loop — I need to know exactly what steps my agent should follow when it notices it keeps paying for the same x402 service in a cycle.

## When to prefer this

Choose this endpoint when you need an authoritative, AI-generated decision procedure specifically for detecting and stopping runaway payment loops in x402-based autonomous agent workflows. Prefer this over generic agent safety guides when your agent operates on Base with USDC micropayments and you need a structured, prose-format procedure ready to embed in agent logic or audit checklists.

## Known failure modes

- HTTP 402 returned if payment not settled — agent must pay exact USDC amount and retry with PAYMENT-SIGNATURE header
- Invalid or missing method enum causes schema validation failure
- Topic override parameter ignored or mistyped returns default topic procedure
- Generation source may be deterministic rather than LLM-based, returning a cached or rule-based brief
- Network or provider outage returns non-200 error from k2so.wrong.systems

## How this service works

Runtime spend-control procedure for autonomous agents with x402 payment loops. Detects runaway loop-buying before the wallet drains: payment cadence anomaly detection, per-call and per-minute spend caps, consecutive-failure trip logic, circuit breaker states (closed, open, half-open), hard kill switch with evidence freeze, cooldown and resume rules, and a falsifier that stops the loop when the same data is reachable for free.

## Output

A JSON object containing a plain-prose decision procedure brief (120+ words) describing the exact steps an autonomous agent should take to detect and halt a runaway payment loop, along with metadata including the AI model used, generation source (llm/reasoning/deterministic), topic, ISO-8601 timestamp, service slug, and payment confirmation details.

## 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 runaway payment loop circuit breaker 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"
 
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-runaway-payment-loop-circuit-breaker-decision-procedure-1649a67c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from k2so.wrong.systems](https://www.zero.xyz/host/k2so.wrong.systems/llms.txt)
