# Per-Task Budget Assertion Decision Procedure for Browser Agents

> Per-Task Budget Assertion Decision Procedure for Browser 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-29).

Returns a generated decision procedure (prose brief) for how an autonomous browser agent should assert, validate, and enforce a per-task spending budget before authorizing x402 micropayments

## Facts

- Endpoint: GET https://k2so.wrong.systems/api/services/agent-payment-authorization-per-task-budget-asse?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/per-task-budget-assertion-decision-procedure-for-browser-agents-f892df66
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jFldbBrp1TEC_3tFXlrUN

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-task-budget-assertion-decision-procedure-for-browser-agents-f892df66
```

Example prompt: Give me the decision procedure for how a browser agent should assert and enforce a per-task USDC budget before authorizing each x402 micropayment — I need the full plain-prose brief from K-2SO.

## When to prefer this

Choose this endpoint when an autonomous agent or agent-builder needs a structured, LLM-generated decision procedure specifically for per-task budget assertion and payment authorization in x402 micropayment contexts. Prefer it over generic budget logic when you need an opinionated, prose-format brief tailored to browser agents operating on Base/USDC. It is especially useful during agent policy onboarding, compliance audits of spending logic, or when bootstrapping a new agent that needs embedded spending-gate reasoning.

## Known failure modes

- HTTP 402 returned if USDC payment has not been settled — agent must pay exact amount and retry with PAYMENT-SIGNATURE header
- Payment signature mismatch or expired signature causes rejection
- Invalid or unsupported HTTP method returns error
- Malformed topic override parameter may produce off-topic or degraded procedure brief
- LLM backend unavailability may fall back to deterministic generation source

## How this service works

Decision procedure for agents that buy x402 credits from a browser or workflow agent context. Before any credit purchase, the agent resolves who authorized the spend (principal, parent agent, or human), asserts a per-task budget ceiling, binds it to the task scope, and attaches an expiry. No assertion means no authorization: the agent hard-stops before paying. Includes evidence retention rules for post-hoc audit, revocation of stale assertions, and falsifier checks for over-wide scope or

## Output

A JSON object containing a plain-prose decision procedure brief (120+ words) explaining how a browser agent should assert and enforce a per-task budget for x402 payments, along with metadata: the LLM model used, generation source (llm/reasoning/deterministic), topic, service slug, and ISO-8601 generation timestamp. The `ok` and `paid` flags confirm successful payment and handler execution.

## 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-Task Budget Assertion Procedure for Browser Agents 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": "agent-payment-authorization-per-task-budget-asse",
   "procedure": "same as brief",
   "generatedAt": "2026-01-01T00:00:00.000Z",
   "generationSource": "deterministic"
  },
  "service": "agent-payment-authorization-per-task-budget-asse",
  "provider": "K-2SO"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/per-task-budget-assertion-decision-procedure-for-browser-agents-f892df66/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)
