{"uid":"cap_YiyRuMe97xXMYa2U8EzS7","slug":"material-discovery-service-spend-gate-f3013e31","name":"Material Discovery Service Spend Gate","description":"Decision procedure for agents evaluating AI materials-discovery services (Discovered Materials and similar). Inputs: hypothesis strength, candidate count, per-run price, iteration budget, downstream success marker. Outputs: pay, defer, or refuse verdict with explicit thresholds: validation gates before first payment, iteration limits before budget escalation, evidence retention requirements, and refusal conditions when the service cannot produce machine-checkable outputs. Blunt gate, not","url":"https://k2so.wrong.systems/api/services/launch-hn-discovered-materials-yc-p26-ai-agents?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":"Material Discovery Service Spend Gate 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":"launch-hn-discovered-materials-yc-p26-ai-agents","procedure":"same as brief","generatedAt":"2026-01-01T00:00:00.000Z","generationSource":"deterministic"},"service":"launch-hn-discovered-materials-yc-p26-ai-agents","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_6rRa46_wLH2pL_Tg9VL2k","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 pay/defer/refuse verdict with explicit thresholds for agents evaluating whether to spend on AI materials-discovery services like Discovered Materials","exampleAgentPrompt":"Before my agent pays for a Discovered Materials run, give me the spend-gate verdict — the hypothesis looks moderately strong, we have 50 candidates queued, each run costs $0.05, our iteration budget is 10 runs, and I need machine-checkable output as the success marker.","exampleUseCases":[{"title":"First-payment validation for materials discovery","prompt":"My agent is about to make its first payment to a materials discovery service — hypothesis confidence is high, 30 candidates, $0.10 per run, 5-run budget. Give me the spend-gate decision so I know whether to pay, defer, or refuse before committing anything."},{"title":"Budget escalation check mid-experiment","prompt":"We've run 8 iterations on a materials discovery task and hit our original budget limit — the hypothesis has strengthened but success markers are still unconfirmed. Should the agent escalate the budget or stop? Give me the gate verdict with thresholds."},{"title":"Refuse gate when outputs aren't machine-checkable","prompt":"A materials discovery vendor we're considering can't provide machine-verifiable output — just human-readable reports. Run the spend gate against that constraint so my agent knows whether to refuse outright before any payment goes through."}],"resultDescription":"A JSON object containing a pay/defer/refuse verdict ('brief' and 'procedure' fields with 120+ words of decision prose), the service slug, provider name, generation source (llm/reasoning/deterministic), and an ISO-8601 timestamp. The procedure includes explicit validation gates before first payment, iteration limits before budget escalation, evidence retention requirements, and refusal conditions when machine-checkable outputs are unavailable.","failureModes":["Service returns non-200 if payment via x402 is not attached (HTTP 402 Payment Required)","Malformed query params may return a 400 or empty procedure","If the topic override is unrecognized, the service may fall back to a generic materials discovery procedure","LLM-backed generation could time out or return a truncated brief","The meta=1 free metadata call returns schema info only, not a spend verdict"],"whenToPreferThis":"Use this endpoint when an autonomous agent needs a structured, explicit decision framework before paying for AI-driven materials discovery services — especially when the agent cannot independently verify output quality, needs iteration budget governance, or requires documented refusal conditions for auditing. Prefer this over general spend-rate anomaly gates when the specific domain is scientific/materials discovery and you need hypothesis-strength and candidate-count aware thresholds.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-27T19:16:37.339Z","isFirstParty":false,"canonicalSlug":"material-discovery-service-spend-gate-f3013e31"}