# Async Job Payment Lifecycle Decision Procedure for Agents

> Async Job Payment Lifecycle Decision Procedure for Agents 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-13).

Returns a deterministic decision procedure guiding AI agents through the payment lifecycle for long-running asynchronous jobs over x402/MPP, covering submission, polling, cancellation, timeouts, and job-status interpretation.

## Facts

- Endpoint: GET https://k2so-8080.on.ascii.dev/api/services/decision-procedure-for-agents-paying-for-long-ru
- 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/async-job-payment-lifecycle-decision-procedure-for-agents-509e9312
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fRyd1ImK291wmECDCKTh4

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 async-job-payment-lifecycle-decision-procedure-for-agents-509e9312
```

Example prompt: I need the decision procedure for paying for a long-running async video generation job over x402 — specifically how to split the submission payment, manage polling budgets, handle cancel-before-completion refunds, and interpret job status codes like queued, running, succeeded, and failed.

## When to prefer this

Choose this endpoint when your agent needs authoritative, structured guidance on handling payment lifecycle decisions for async or long-running jobs over x402/MPP — especially when you need concrete rules for polling budgets, cancellation thresholds, timeout recovery, and status-code interpretation. Prefer this over general x402 documentation when the job type is asynchronous (video generation, scraping, batch inference) and deterministic guardrails are needed rather than open-ended advice.

## Known failure modes

- Invalid or missing method parameter returns validation error
- Unrecognized topic override may result in fallback to default procedure
- Service unavailability returns non-200 with no procedure content
- Payment not made (no x402 header) results in 402 Payment Required with payment details
- Meta flag set to 1 returns free metadata instead of paid procedure content

## How this service works

Deterministic procedure for an agent that must pay for a long-running or asynchronous job over x402/MPP (video generation, scraping, inference, batch processing). Covers: submit-payment split (pay only for submission, never for the whole job up front), polling budget with max polls and max total spend across polls, cancel-before-completion refund thresholds, resume-after-timeout rules with re-payment guardrails, job-status code interpretation (queued/running/succeeded/failed/canceled), and a

## Output

A structured decision procedure document containing prose guidance for agents covering: how to split payments at job submission vs. completion, polling budget limits with max poll counts and max total spend, cancel-before-completion refund thresholds, resume-after-timeout re-payment rules and guardrails, and an interpretation guide for job-status codes (queued, running, succeeded, failed, canceled). Also includes metadata such as generation source (llm, reasoning, or deterministic), ISO-8601 timestamp, topic, and service slug.

## 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": "Async job payment lifecycle decision procedure for 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": "stri
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/async-job-payment-lifecycle-decision-procedure-for-agents-509e9312/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)
