# Selun SCE Risk Evaluate

> Selun SCE Risk Evaluate is a paid API for AI agents from selun.sagitta.systems, paid per call via x402, $0.25/call, status unknown (last checked 2026-09-15).

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.

## Facts

- Endpoint: POST https://selun.sagitta.systems/agent/x402/sce/risk-evaluate
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/selun-sce-risk-evaluate-70e7a5aa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_u1yj5VJ76e4m5-tzFJVSA

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 selun-sce-risk-evaluate-70e7a5aa -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/selun-sce-risk-evaluate-70e7a5aa/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from selun.sagitta.systems](https://www.zero.xyz/host/selun.sagitta.systems/llms.txt)
