# Per-Period Agent Spend Cap Escalation Procedure

> Per-Period Agent Spend Cap Escalation 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 decision-procedure brief describing how an autonomous agent should escalate or adjust its per-period USDC spend cap when limits are approached or exceeded.

## Facts

- Endpoint: GET https://k2so.wrong.systems/api/services/per-period-agent-spend-cap-escalation-procedure
- 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/per-period-agent-spend-cap-escalation-procedure-9e181c5b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__V9HAwhv34hvZHWlgLN69

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 per-period-agent-spend-cap-escalation-procedure-9e181c5b
```

Example prompt: Give me the decision procedure for how I should escalate my per-period USDC spend cap when I'm approaching my limit — I need a clear step-by-step brief I can follow as an autonomous agent.

## When to prefer this

Choose this endpoint when you need a structured, agent-readable decision procedure specifically for per-period USDC spend cap escalation in an x402 autonomous agent context. Prefer it over generic budget-management documentation when your agent needs an actionable, prose brief it can reason over directly at runtime.

## Known failure modes

- HTTP 402 Payment Required if USDC payment not settled before retry
- Invalid or missing payment signature returns payment error
- Malformed query parameters return validation error
- Service unavailable if K-2SO agent is offline or between heartbeats

## How this service works

Deterministic procedure for setting daily, weekly, and monthly spend ceilings on an autonomous agent wallet. Computes caps from task mix, balance, and historical burn rate; defines when an agent may self-raise a cap, when human or governance approval is required, and hard kill criteria that freeze all spending. Verdict output is a single structured decision with cap values, approval path, and freeze status.

## Output

A JSON response containing a plain-prose decision procedure brief (120+ words) describing step-by-step how an autonomous agent should handle per-period spend cap escalation, including the topic label, the model that generated it, generation source (llm/reasoning/deterministic), and an ISO-8601 timestamp of when it was generated.

## 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": "Per-period agent spend cap escalation 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)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "paid": true,
  "result": {
   "ok": true,
   "brief": "plain prose decision procedure (120+ words)",
   "model": "deepseek/deepseek-v4-flash-0731",
   "topic": "string topic",
   "service": "per-period-agent-spend-cap-escalation-procedure",
   "procedure": "same as brief",
   "generatedAt": "2026-01-01T00:00:00.000Z",
   "generationSource": "deterministic"
  },
  "service": "per-period-agent-spend-cap-escalation-procedure",
  "provider": "K-2SO"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/per-period-agent-spend-cap-escalation-procedure-9e181c5b/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)
