{"uid":"cap_u1yj5VJ76e4m5-tzFJVSA","slug":"selun-sce-risk-evaluate-70e7a5aa","name":"Selun SCE Risk Evaluate","description":"Protocol risk gate. Returns `doctrine_action` (BLOCK | ALLOW | ESCALATE), `risk_level`, `risk_score`, and per-domain `risk_domains`. If doctrine_action === BLOCK, halt the action and return `reason_codes` and `recommended_next` to the user. Recheck after `valid_until`. Call this when continuity-mode returns mode !== NORMAL or recommended_posture is require_review or pause.","url":"https://selun.sagitta.systems/agent/x402/sce/risk-evaluate","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"chain_id":{"type":"integer"},"addresses":{"type":"array","items":{"type":"string"}},"decisionId":{"type":"string"},"asset_types":{"type":"array","items":{"type":"string"}},"doctrine_tags":{"type":"array","items":{"type":"string"}},"protocol_name":{"type":"string"},"risk_tolerance":{"type":"string"},"threat_families":{"type":"array","items":{"type":"string"}},"requested_action":{"type":"string"}}},"responseSchema":{"type":"json","example":{"data":{"result":{"sce":{"confidence":{"basis":"Pipeline healthy; composite evaluation complete","label":"high","score":0.82},"risk_level":"HIGH","risk_score":60,"valid_until":"2026-06-17T11:41:52Z","reason_codes":["critical_cases_present","high_severity_cases_present","threat_matrix_pressure_elevated","doctrine_action_block","risk_level_high"],"risk_domains":{"bridge":"warning","keeper":"normal","oracle":"normal","frontend":"warning","treasury":"unknown","authority":"warning","dependency":"warning","governance":"warning","stablecoin":"warning"},"schema_version":"sce.risk_evaluate.v1","continuity_mode":{"mode":"INCIDENT","recommended_posture":"require_review"},"doctrine_action":"BLOCK","recommended_next":{"reason":"Action blocked. Escalation brief recommended before any protocol interaction.","sce_endpoint":"/v1/sce/escalation-brief","selun_wrapper_path":"/agent/x402/sce/escalation-brief","estimated_price_usdc_max":"10.00","estimated_price_usdc_min":"1.00"},"recommended_posture":"pause"},"validUntil":"2026-06-17T11:41:52Z","selunWrapper":true,"sceEvaluationId":"sce_risk_a1ace5b8f5144d88","sceSourceEndpoint":"/v1/sce/risk/evaluate"},"status":"completed","endpoint":"/agent/x402/sce/risk-evaluate","productId":"sce_risk_evaluate","decisionId":"sce-risk-001"},"success":true,"executionModelVersion":"Selun-1.0.0"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.25","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.25/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6PDjUBoQLollsG07P_9P7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.25","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Performs doctrine-based risk evaluation of a DeFi protocol or smart contract execution preflight, returning a risk level, risk score, domain-specific warnings, and a recommended action (e.g. BLOCK/PAUSE) for autonomous agents.","exampleAgentPrompt":"Before we execute that rebalance on the Aave protocol on chain 1, run a Sagitta SCE risk evaluation against addresses 0xabc...123 and 0xdef...456 with a moderate risk tolerance, checking for oracle and bridge threat families, and tell me if doctrine says we should block or proceed.","exampleUseCases":null,"resultDescription":"Returns a JSON object with a risk_level (e.g. HIGH), numeric risk_score (0-100), confidence label and score, doctrine_action (BLOCK/PAUSE/PROCEED), per-domain risk ratings (bridge, oracle, governance, treasury, etc.), continuity mode and recommended posture, reason codes explaining the verdict, a validity timestamp, and a pointer to the recommended next SCE endpoint (e.g. escalation-brief) if action is blocked.","failureModes":["Payment not received or insufficient USDC — 402 response blocking access","Invalid or missing chain_id — 400 validation error","Unknown protocol_name or unresolvable addresses — low-confidence result or error","Doctrine tag not recognized — evaluation proceeds without doctrine filter","Pipeline degraded — confidence label drops to 'low' with partial results","Expired evaluation — valid_until exceeded, agent must re-call"],"whenToPreferThis":"Use this endpoint when an autonomous agent needs a doctrine-gated, multi-domain risk verdict before executing any on-chain action against a DeFi protocol — especially when threat families, governance risk, or bridge/oracle exposure are relevant. Prefer over generic risk APIs when you need Sagitta SCE's structured reason codes, continuity mode, and recommended next-step routing built for agentic execution preflight.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:42:12.098Z","isFirstParty":false}