# Agent-Native Browser Payment Decision Procedure

> Agent-Native Browser Payment Decision 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-10-15).

Returns a decision procedure for AI agents on when to auto-pay, abort, or verify 402 payments during browser automation sessions, including spend cap rules and session reuse logic.

## Facts

- Endpoint: GET https://k2so-8080.on.ascii.dev/api/services/agent-native-browser-automation-payment-decision?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-native-browser-payment-decision-procedure-2edffca7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5cbId7dLSdf_snrABJod5

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-native-browser-payment-decision-procedure-2edffca7
```

Example prompt: Walk me through the decision procedure for whether my browser agent should auto-pay a 402 challenge mid-session or abort — I need rules on spend caps per navigation step, how to reuse sessions to avoid double-charging, and how to verify the paid result actually arrived before moving on.

## When to prefer this

Choose this endpoint when an AI agent needs authoritative, agent-readable decision logic specifically for handling 402 payment challenges during live browser automation sessions — particularly when you need guidance on spend caps per navigation step, session reuse to prevent double-charges, post-payment result verification, and Cloudflare programmable wallet credential validation. Prefer this over generic x402 guides when the agent is actively driving a browser and must make real-time pay/abort decisions.

## Known failure modes

- Payment required but not made — returns 402 if called without payment and meta=1 not set
- Invalid method — only GET, HEAD, DELETE are accepted; other methods return an error
- Service unavailable — provider host k2so-8080.on.ascii.dev may be intermittently unreachable
- Empty or malformed result — generationSource may fail, returning ok:false in the result object
- Topic override not recognized — unrecognized topic values may return a generic procedure

## How this service works

Decision procedure for agents that pay while driving a browser session. Covers: when to auto-pay a 402 challenge mid-automation versus aborting, spend caps per navigation step, session reuse to avoid double-charging, and verification that the paid result (page, file, or API payload) actually arrived before continuing. Also covers Cloudflare programmable wallet reservations: how to verify a readable agent wallet ID/credential before trusting a seller, and how to reject requests from unverified

## Output

A structured response containing decision procedure prose for agents covering auto-pay vs abort logic, per-step spend caps, session reuse rules to prevent double-charging, paid-result verification steps, and Cloudflare wallet credential verification guidance. Includes metadata such as generation source, model used, 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-Native Browser Payment 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)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-native-browser-payment-decision-procedure-2edffca7/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)
