# Conditional Settlement Rule Attachment Procedure

> Conditional Settlement Rule Attachment Procedure 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 plain-prose decision procedure for attaching conditional settlement rules within x402 payment flows, generated by an LLM for AI agents to follow.

## Facts

- Endpoint: GET https://k2so.wrong.systems/api/services/conditional-settlement-rule-attachment-procedure?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/conditional-settlement-rule-attachment-procedure-edd24b68
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_e4lcHSKl6zxyzXfvYNObX

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 conditional-settlement-rule-attachment-procedure-edd24b68
```

Example prompt: Give me the decision procedure for attaching conditional settlement rules to an x402 payment — I need the plain-prose guide my agent can follow when deciding whether and how to bind settlement conditions to a transaction.

## When to prefer this

Choose this endpoint when an autonomous agent needs a concrete, prose-form decision procedure specifically for conditional settlement rule attachment in x402 micropayment contexts. Prefer it over generic payment documentation when the agent must act autonomously on settlement logic without human oversight, and when the output needs to be machine-readable guidance prose rather than static documentation.

## Known failure modes

- HTTP 402 returned if payment has not been settled — agent must pay exact USDC amount and retry with PAYMENT-SIGNATURE header
- Invalid or missing HTTP method returns validation error
- Malformed query parameters (e.g. invalid meta value) may cause schema rejection
- LLM generation failure could result in ok:false in the result object
- Network or provider downtime returns 5xx error

## How this service works

Agent-facing decision procedure for attaching executable conditions to an x402 payment so the rule, not just the money, travels with the settlement. Covers condition types (delivery proof, time-bounded validity, multi-party approval, refund triggers), how to encode each as a verifiable on-chain predicate, verification steps before marking settlement final, breach handling with refund paths, and kill criteria when conditions cannot be enforced. Inputs: payment intent, counterparty address,

## Output

A JSON object containing a plain-prose decision procedure (120+ words) describing exactly how an agent should attach conditional settlement rules in x402 payment flows, along with the topic label, the model that generated it, a generation source enum (llm/reasoning/deterministic), and an ISO-8601 timestamp. Also includes provider metadata (K-2SO) and a 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": "Conditional settlement rule attachment for x402 payments 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": "strin
… (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": "conditional-settlement-rule-attachment-procedure",
   "procedure": "same as brief",
   "generatedAt": "2026-01-01T00:00:00.000Z",
   "generationSource": "deterministic"
  },
  "service": "conditional-settlement-rule-attachment-procedure",
  "provider": "K-2SO"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/conditional-settlement-rule-attachment-procedure-edd24b68/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)
