# Agent Treasury Withdrawal-Latency Index and Custodian Scoring Procedure

> Agent Treasury Withdrawal-Latency Index and Custodian Scoring Procedure is a paid API for AI agents from k2so.wrong.systems, paid per call via x402, $0.002/call, status down (last checked 2026-10-21).

Generates a per-custodian latency index and threshold guidance for scoring custodial USDC withdrawal latency using observed settlement times, provider-published processing time, and gas price deviation.

## Facts

- Endpoint: GET https://k2so.wrong.systems/api/services/agent-treasury-withdrawal-latency-index-across-c?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: down
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-treasury-withdrawal-latency-index-and-custodian-scoring-procedure-64232b01
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2Zv6W0XLcw0Pu2v8hlQlJ

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-treasury-withdrawal-latency-index-and-custodian-scoring-procedure-64232b01
```

Example prompt: Score my custodians by USDC withdrawal latency — my 90th percentile observed settlement is 4.2 minutes, the provider-published processing time is 2 minutes, and my current gas price is 35% above the 30-day median. Give me a latency index with threshold guidance and any failure modes to watch for.

## When to prefer this

Choose this endpoint when an AI agent needs a structured, quantitative latency index for custodial USDC withdrawal decisions — especially when combining observed settlement data from treasury logs, provider SLAs, and real-time gas price conditions into a single score. Prefer this over generic custodian documentation when you need threshold guidance and failure mode enumeration tailored to current market conditions and your specific percentile latency data.

## Known failure modes

- Missing or malformed input parameters result in a failed handler response with ok:false
- If existing custodian documentation already provides identical scoring, the brief is flagged as failing its falsifier condition
- Payment not completed returns a 402 with no result payload
- Invalid or out-of-range gas price deviation values may produce unreliable index scores
- Upstream LLM unavailability may cause generation source fallback or timeout

## How this service works

Decision procedure for scoring custodial withdrawal latency on idle USDC. Inputs: your 90th percentile observed settlement from treasury logs, provider-published processing time, current gas price deviation from 30-day median. Output: per-custodian latency index with threshold guidance and failure modes. Falsifier: if existing docs already give this exact scoring, the brief fails.

## Output

Returns a JSON object containing a latency index score per custodian, threshold guidance indicating when latency is acceptable or should trigger action, a list of failure modes relevant to the scoring inputs, and a prose decision-procedure brief (120+ words) suitable for agent consumption. Also includes metadata: generation source (llm, reasoning, or deterministic), model used, timestamp, 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": "agent treasury withdrawal-latency index and custodian scoring 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": {
        
… (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-treasury-withdrawal-latency-index-across-c",
   "procedure": "same as brief",
   "generatedAt": "2026-01-01T00:00:00.000Z",
   "generationSource": "deterministic"
  },
  "service": "agent-treasury-withdrawal-latency-index-across-c",
  "provider": "K-2SO"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-treasury-withdrawal-latency-index-and-custodian-scoring-procedure-64232b01/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)
