{"uid":"cap_2Zv6W0XLcw0Pu2v8hlQlJ","slug":"agent-treasury-withdrawal-latency-index-and-custodian-scoring-procedure-64232b01","name":"Agent Treasury Withdrawal-Latency Index and Custodian Scoring Procedure","description":"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.","url":"https://k2so.wrong.systems/api/services/agent-treasury-withdrawal-latency-index-across-c?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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":{"type":"string"},"selfPay":{"type":"boolean"},"transaction":{"type":"string"}}},"service":{"type":"string"},"provider":{"type":"string","const":"K-2SO"}}}}}}},"responseSchema":{"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"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2J3C54lnxlofep9EsCWV5","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Treasury rebalancing custodian selection","prompt":"I need to move idle USDC out of my agent treasury quickly. My 90th percentile settlement is 6 minutes, the custodian publishes a 3-minute processing time, and gas is 20% above the 30-day median right now — can you give me a latency index and tell me which thresholds should trigger a custodian switch?"},{"title":"Gas spike impact assessment on withdrawals","prompt":"Gas prices just spiked 80% above the 30-day median. My treasury logs show a 90th percentile settlement of 8 minutes against a provider-published 4-minute processing time — score my custodian's withdrawal latency and flag any failure modes I should handle."},{"title":"Routine custodian latency audit","prompt":"Run a latency scoring procedure on my two custodians for the monthly treasury review. Custodian A: 90th-percentile settlement 3 min, published processing 2 min, gas deviation +5%. Custodian B: settlement 9 min, published 4 min, gas deviation +5%. Give me indexed scores and threshold guidance for each."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T14:28:29.453Z","isFirstParty":false,"canonicalSlug":"agent-treasury-withdrawal-latency-index-and-custodian-scoring-procedure-64232b01"}