{"uid":"cap_pOYYyRxr10RduWegZk_rz","slug":"k-2so-agent-facing-decision-procedure-at-the-intersect-49c0928c","name":"K-2SO Agent-Facing Decision Procedure at the Intersect","description":"Decision procedure for agents and their operators that answers the three questions every auditor asks after an AI agent spends money: who authorized it, what was the ceiling, and who carries the loss when the purchase is wrong. Covers cryptographic proof that an agent, not a human, executed a payment, signing intent with a held Ed25519 key before settlement so future audits can distinguish autonomous execution from manual action. Includes spend-authorization record schema, approval chain","url":"https://k2so.wrong.systems/api/services/agent-facing-decision-procedure-at-the-intersect","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 Spend Accountability 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-facing-decision-procedure-at-the-intersect","procedure":"same as brief","generatedAt":"2026-01-01T00:00:00.000Z","generationSource":"deterministic"},"service":"agent-facing-decision-procedure-at-the-intersect","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":"unknown","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_fZ6ZVlfW4kX28gx_SvFwn","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":"Returns a paid, LLM-generated decision procedure brief for AI agents operating at the intersection of autonomous spending accountability — covering when and how an agent should justify, log, or escalate expenditures.","exampleAgentPrompt":"Give me the decision procedure an autonomous agent should follow to stay accountable for its spending — I want the full prose brief covering when to authorize payments, when to escalate, and how to log decisions.","exampleUseCases":[{"title":"Spend gate before each x402 call","prompt":"Before my agent pays for any x402 API call, I want it to check a decision procedure that tells it whether the spend is justified and what to log — can you fetch that accountability procedure now?"},{"title":"Compliance brief for a new agent deployment","prompt":"I'm deploying an autonomous agent that will make micro-payments on Base and I need a written decision procedure it can reference to ensure spend accountability — generate that brief for me."},{"title":"Escalation logic for an over-budget agent","prompt":"My agent has started spending more than expected and I need a clear decision procedure it can follow to decide when to pause, escalate to a human, or continue — pull that procedure from K-2SO."}],"resultDescription":"A JSON object containing a plain-prose decision procedure brief (120+ words) generated by an LLM or deterministic source, including the topic, model name, generation source enum (llm/reasoning/deterministic), ISO-8601 timestamp, and service slug. Also includes payment confirmation fields (paid: true, payer address, transaction hash).","failureModes":["HTTP 402 returned if payment not yet settled — must pay exact USDC amount and retry with PAYMENT-SIGNATURE header","Invalid or missing input.type/method fields cause schema validation errors","Topic override ignored if not a string","meta=1 returns free metadata JSON without triggering payment","Network or provider downtime returns non-200 status"],"whenToPreferThis":"Choose this endpoint when an AI agent needs a ready-made, LLM-generated decision procedure specifically around spend accountability — rather than writing its own logic or calling a general-purpose LLM. It is optimized for agents that need structured, reusable decision prose they can cache and act on, delivered via x402 micropayment without account setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:07.366Z","isFirstParty":false}