# Sagitta Risk Policy Engine

> Sagitta Risk Policy Engine 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).

Computes portfolio risk policy envelopes including exposure caps, stablecoin floors, risk budgets, and segment-aware universe guidance based on risk tolerance, timeframe, and optional portfolio segment.

## Facts

- Endpoint: POST https://selun.sagitta.systems/agent/x402/policy-envelope
- 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-sagitta-systems-492be057
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_p9yeDXufmSOiuHvcSspnR

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-sagitta-systems-492be057 -d '<json body>'
```

Example prompt: What are the risk policy constraints — exposure caps, stablecoin floor, and risk budget — for a Balanced investor with a 1-3 year timeframe focused on the Bluechips segment?

## When to prefer this

Use this endpoint when you need to establish risk guardrails before running portfolio allocation, rebalancing, or asset selection logic. Ideal when you need segment-specific constraints (Bluechips, Memecoins, Gaming, Yield Farm) rather than generic risk limits. Pair with the sibling market regime classifier and asset scoring engine for a full pre-allocation pipeline. Prefer this over manual constraint tables when the investor risk profile or timeframe may vary per decision.

## Known failure modes

- Invalid riskTolerance enum value returns 400 validation error
- Invalid timeframe enum value returns 400 validation error
- Invalid portfolioSegment enum value returns 400 validation error
- Missing required fields (timeframe or riskTolerance) returns 400
- Payment not provided or insufficient USDC returns 402 Payment Required
- Service unavailable or timeout returns 503

## How this service works

Risk policy engine. Call this when portfolio constraints and segment filters must be computed for a supplied risk tolerance, timeframe, and optional portfolio segment. Returns exposure caps, stablecoin floor, risk budget, authorization constraints, and segment-aware universe guidance.

## Output

Returns a structured policy envelope containing: exposure caps per asset or category, a stablecoin floor (minimum stable allocation), a risk budget figure, authorization constraints governing allowable trades or allocations, and segment-aware universe guidance indicating which assets or categories are eligible given the supplied portfolio segment and risk profile.

## Example request

```json
{
 "timeframe": "1-3_years",
 "decisionId": "test-policy-envelope-001",
 "riskTolerance": "Balanced",
 "portfolioSegment": "Bluechips"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "timeframe": {
   "enum": [
    "<1_year",
    "1-3_years",
    "3+_years"
   ]
  },
  "decisionId": {
   "type": "string"
  },
  "riskTolerance": {
   "enum": [
    "Conservative",
    "Balanced",
    "Growth",
    "Aggressive"
   ]
  },
  "portfolioSegment": {
   "enum": [
    "Bluechips",
    "Memecoins",
    "Gaming",
    "Yield Farm"
   ]
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "result": {
    "policyMode": "balanced_growth",
    "policyEnvelope": {
     "risk_budget": 0.62,
     "stablecoin_minimum": 0.18
    }
   },
   "status": "completed",
   "endpoint": "/agent/x402/policy-envelope",
   "productId": "policy_envelope",
   "decisionId": "policy-envelope-001"
  },
  "success": true,
  "executionModelVersion": "Selun-1.0.0"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/selun-sagitta-systems-492be057/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)
