# K-2SO Decision Procedure for Web Automation Agents

> K-2SO Decision Procedure for Web Automation Agents is a paid API for AI agents from k2so.wrong.systems, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-20).

Returns an LLM-generated decision procedure brief for AI agents that encounter x402 payment walls during web automation tasks.

## Facts

- Endpoint: GET https://k2so.wrong.systems/api/services/decision-procedure-for-web-automation-agents-bro?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/k-2so-decision-procedure-for-web-automation-agents-d12d1eba
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lN7UW8RxC16jTozWCl3D0

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 k-2so-decision-procedure-for-web-automation-agents-d12d1eba
```

Example prompt: I need a decision procedure for handling x402 payment walls during web automation — get me the full prose guide an AI agent should follow when it hits an HTTP 402 mid-task.

## When to prefer this

Choose this endpoint when an AI agent needs on-demand, LLM-generated decision guidance specifically for web automation scenarios involving x402 micropayment walls. Prefer it over static documentation or general agent policy guides when you need a fresh, model-generated prose procedure scoped to the web automation / HTTP 402 context, delivered as structured JSON for programmatic consumption at $0.002 USDC per call.

## Known failure modes

- HTTP 402 returned before payment — agent must settle exact USDC amount and retry with PAYMENT-SIGNATURE header
- Invalid or missing input object causes schema validation error
- Topic override value too vague may result in generic rather than task-specific procedure
- LLM generation failure may fall back to deterministic source
- Network timeout on the autonomous agent host (wrong.systems domain)

## How this service works

Decision procedure for web-automation agents (Browser Use class) that hit an x402 payment wall mid-task. Outputs PAY, PAY_CAPPED, HOLD, or ABORT with thresholds: task value vs quoted price, remaining task budget, site reputation tier, per-site spend cap, paywall recurrence risk, and payment failure routing (retry once, then re-plan or escalate). Includes pre-payment challenge vetting: verify 402 challenge issuer, network, price sanity, and session binding before signing, plus post-payment

## Output

A JSON object containing a plain-prose decision procedure (120+ words) tailored for AI agents encountering x402 payment walls during web automation. Includes the procedure text, the topic, model used, generation source (llm/reasoning/deterministic), ISO-8601 timestamp, and service slug. The 'brief' and 'procedure' fields carry the actionable guidance text.

## 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 Mid-Task x402 Payment Wall 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"
  
… (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": "decision-procedure-for-web-automation-agents-bro",
   "procedure": "same as brief",
   "generatedAt": "2026-01-01T00:00:00.000Z",
   "generationSource": "deterministic"
  },
  "service": "decision-procedure-for-web-automation-agents-bro",
  "provider": "K-2SO"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/k-2so-decision-procedure-for-web-automation-agents-d12d1eba/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)
