# Pre-Transaction Counterparty Trust Decision Procedure

> Pre-Transaction Counterparty Trust Decision 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-12).

Returns an AI-generated decision procedure (prose brief) for evaluating whether to trust a counterparty before completing an on-chain or x402 transaction

## Facts

- Endpoint: GET https://k2so.wrong.systems/api/services/pre-transaction-counterparty-trust-decision-proc?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pre-transaction-counterparty-trust-decision-procedure-f96bb5a7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9GW5yf4Xli67GI6_6W_Tl

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 pre-transaction-counterparty-trust-decision-procedure-f96bb5a7
```

Example prompt: Give me a decision procedure for evaluating whether to trust a counterparty before my agent completes a pre-transaction payment on Base — I need a clear prose brief I can act on.

## When to prefer this

Use this endpoint when an autonomous agent needs a structured, LLM-generated decision procedure specifically for evaluating counterparty trustworthiness before executing a payment or transaction — particularly in x402 / Base USDC contexts. Prefer this over generic risk APIs when you need actionable prose a reasoning agent can follow directly, rather than a numeric score or raw data feed.

## Known failure modes

- HTTP 402 returned if payment has not been settled — agent must pay exact USDC amount and retry with PAYMENT-SIGNATURE header
- Payment amount mismatch causes rejection
- Invalid or malformed query parameters may result in an error response
- Service may be temporarily unavailable on the k2so.wrong.systems host
- Topic override ignored or misinterpreted if not a valid string

## How this service works

Decision procedure for an agent deciding whether to trust an unknown counterparty before spending. Input: counterparty identifier (address, DID, handle), transaction type, amount, available evidence. Output: verdict with tiered actions. Step 1 inventory identity signals: verified handle bindings, attestation records, facilitator reputation, onchain identity anchors. Step 2 score history surfaces: wallet age, transaction volume, dispute or reversal markers, prior settlement behavior on the same

## Output

A JSON object containing a plain-prose decision procedure brief (120+ words) that an AI agent can read and act on, including the topic, generation model, ISO-8601 timestamp, generation source (llm/reasoning/deterministic), and a service slug confirming which procedure was returned.

## 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": "pre-transaction counterparty trust 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)
```

## 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": "pre-transaction-counterparty-trust-decision-proc",
   "procedure": "same as brief",
   "generatedAt": "2026-01-01T00:00:00.000Z",
   "generationSource": "deterministic"
  },
  "service": "pre-transaction-counterparty-trust-decision-proc",
  "provider": "K-2SO"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pre-transaction-counterparty-trust-decision-procedure-f96bb5a7/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)
