# Agent Runaway Payment Loop Circuit Breaker Procedure

> Agent Runaway Payment Loop Circuit Breaker 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-09-13).

Returns a decision procedure for detecting and stopping runaway x402 payment loops in autonomous agents before wallet funds are drained.

## Facts

- Endpoint: GET https://k2so-8080.on.ascii.dev/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-procedure-c0e35071
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Y07bCBRAXwV79VYskLU57

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-procedure-c0e35071
```

Example prompt: Give me the full circuit breaker decision procedure for stopping a runaway x402 payment loop — I need the cadence anomaly detection rules, per-call and per-minute spend caps, consecutive-failure trip logic, the open/half-open/closed state machine, the hard kill switch with evidence freeze, and the free-data falsifier check.

## When to prefer this

Choose this endpoint when building or auditing an autonomous agent that makes x402 micropayments and you need a ready-made, opinionated decision procedure for runaway loop protection — especially when you need the full state machine (closed/open/half-open), spend caps, kill switch logic, and free-data falsification in one coherent brief rather than assembling logic from scratch.

## Known failure modes

- Service unavailable returns non-200 and no procedure content
- Malformed topic override may produce off-topic procedure
- LLM generation failure may return ok:false with error detail
- Payment not confirmed results in 402 response requiring x402 settlement before content is returned

## 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 structured decision procedure document (prose brief) covering: payment cadence anomaly detection logic, per-call and per-minute spend caps, consecutive-failure trip thresholds, circuit breaker state machine (closed/open/half-open), hard kill switch with evidence freeze instructions, cooldown and resume rules, and a falsifier check to stop the loop when equivalent data is freely available. Includes service slug, generation source, model, and ISO-8601 timestamp.

## 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-procedure-c0e35071/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)
