# Agent Mid-Task x402 Payment Wall Decision Procedure

> Agent Mid-Task x402 Payment Wall 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-09-14).

Returns a decision procedure (PAY, PAY_CAPPED, HOLD, or ABORT) for web-automation agents that encounter an x402 payment wall mid-task, with full vetting and routing logic.

## Facts

- Endpoint: GET https://k2so-8080.on.ascii.dev/api/services/decision-procedure-for-web-automation-agents-bro
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-mid-task-x402-payment-wall-decision-procedure-7ec62357
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_75HAX_0KKt70-aosXnRLx

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-mid-task-x402-payment-wall-decision-procedure-7ec62357
```

Example prompt: I'm running a Browser Use task and just hit an x402 payment wall mid-task — the site is quoting $0.003 USDC, my remaining task budget is $0.05, the site has a medium reputation, and my per-site spend cap is $0.01. Should I PAY, hold, or abort, and do I need to vet the challenge first?

## When to prefer this

Choose this endpoint when your web-automation or Browser Use agent needs a structured, threshold-based decision framework for x402 payment walls encountered mid-task — especially when you need both pre-payment challenge vetting (issuer, network, price sanity, session binding) and post-payment failure routing in a single call. Prefer it over ad-hoc agent logic when per-site spend caps, paywall recurrence risk, and task value vs quoted price comparisons need to be systematically evaluated.

## Known failure modes

- Invalid or missing input method returns a validation error
- Unrecognized topic override may produce a generic procedure rather than a tailored one
- Payment for the $0.002 USDC call itself fails, blocking access to the procedure
- Stale or cached procedure if the service's LLM/reasoning backend is unavailable
- Network connectivity issues to k2so-8080.on.ascii.dev result in no response

## 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 structured response containing a decision outcome label (PAY, PAY_CAPPED, HOLD, or ABORT), prose explaining the decision rationale, pre-payment challenge vetting results (issuer, network, price sanity, session binding), post-payment routing instructions including retry and re-plan logic, the generation source (llm, reasoning, or deterministic), and an 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 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)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-mid-task-x402-payment-wall-decision-procedure-7ec62357/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)
