caelum0x 2d2b15c7fe feat: full guardrail-alpha system + CLI modularization + Vercel deploy config
- Rust engine: real bootstrap/wiring preflight (guardrail-agent), execution layer (retry/router/pre-trade/post-trade/reconciliation), guardrail-doctor diagnostics with allowlist-drift guard.

- guardrail-cli: extracted pure helpers into util.rs (split in progress).

- 6 Track-2 skills + ensemble; python-lab analytics (regime/drawdown/montecarlo/dossier/ensemble/journal/seed); clients (ts/py/go/mcp/langchain/web-lite/proof-verifier); alert relay; scenarios; helm/k8s/compose; docs.

- dashboard/vercel.json + docs/VERCEL_DEPLOY.md for Vercel deployment.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-15 11:02:22 +03:00

73 lines
5.7 KiB
JSON

{
"scenario": "risk_on",
"as_of": "2026-06-14T00:00:00Z",
"inputs": {
"fear_greed": { "value": 57, "value_classification": "greed" },
"global": { "total_market_cap_usd": 2375000000000, "btc_dominance_pct": 51.0 },
"market_breadth": { "breadth_pct": 57.0, "median_24h_return": 1.1 },
"funding": [
{ "symbol": "WBNB", "funding_rate_proxy": 0.06, "ret_24h": 1.5, "note": "ret_24h 1.5/24 + (2.6-3)*0.01 = 0.0585 -> mildly positive, favourable band" },
{ "symbol": "LINK", "funding_rate_proxy": 0.04, "ret_24h": 1.0, "note": "1.0/24 + (3.1-3)*0.01 = 0.0427 -> favourable band, tilt 1.0" },
{ "symbol": "INJ", "funding_rate_proxy": 0.41, "ret_24h": 9.6, "note": "9.6/24 + (3.9-3)*0.01 = 0.409 -> richly positive, crowded long, fade" },
{ "symbol": "ETH", "funding_rate_proxy": -0.01, "ret_24h": 0.4, "note": "0.4/24 + (2.2-3)*0.01 = 0.0087 ~ favourable, longs ~free" },
{ "symbol": "SHIB", "funding_rate_proxy": 0.06, "ret_24h": 1.3, "note": "favourable funding but security flag haircuts the score" }
],
"quotes": [
{ "symbol": "WBNB", "price_usd": 610.0, "percent_change_1h": 0.5, "percent_change_24h": 1.5, "market_cap_usd": 87000000000, "volume_24h_usd": 1900000000, "liquidity_usd": 42000000, "volatility_1h": 2.6, "safety_score": 96, "security_flags": [] },
{ "symbol": "LINK", "price_usd": 14.8, "percent_change_1h": 0.4, "percent_change_24h": 1.0, "market_cap_usd": 9200000000, "volume_24h_usd": 430000000, "liquidity_usd": 11000000, "volatility_1h": 3.1, "safety_score": 95, "security_flags": [] },
{ "symbol": "INJ", "price_usd": 28.4, "percent_change_1h": 2.2, "percent_change_24h": 9.6, "market_cap_usd": 2800000000, "volume_24h_usd": 320000000, "liquidity_usd": 8500000, "volatility_1h": 3.9, "safety_score": 88, "security_flags": [] },
{ "symbol": "ETH", "price_usd": 3415.0, "percent_change_1h": 0.3, "percent_change_24h": 0.4, "market_cap_usd": 410000000000, "volume_24h_usd": 14000000000, "liquidity_usd": 55000000, "volatility_1h": 2.2, "safety_score": 98, "security_flags": [] },
{ "symbol": "SHIB", "price_usd": 0.0000171, "percent_change_1h": -0.2, "percent_change_24h": 1.3, "market_cap_usd": 10000000000, "volume_24h_usd": 270000000, "liquidity_usd": 4200000, "volatility_1h": 5.6, "safety_score": 71, "security_flags": ["high_holder_concentration"] }
]
},
"computed": {
"market_regime": "risk_on",
"regime_reason": "breadth_pct 57 >= 55 AND fear_greed 57 >= 50 (breakout not met: median 1.1 <= 2)",
"exposure_multiplier": 1.0,
"carry_scores": [
{ "symbol": "WBNB", "base_score": 0.71, "funding_rate_proxy": 0.06, "funding_tilt": 1.0, "carry_score": 0.90, "security_penalty": 0.02 },
{ "symbol": "LINK", "base_score": 0.69, "funding_rate_proxy": 0.04, "funding_tilt": 1.0, "carry_score": 0.87, "security_penalty": 0.03 },
{ "symbol": "ETH", "base_score": 0.67, "funding_rate_proxy": -0.01, "funding_tilt": 1.0, "carry_score": 0.86, "security_penalty": 0.01 },
{ "symbol": "INJ", "base_score": 0.74, "funding_rate_proxy": 0.41, "funding_tilt": 0.0, "carry_score": 0.49, "security_penalty": 0.06 },
{ "symbol": "SHIB", "base_score": 0.41, "funding_rate_proxy": 0.06, "funding_tilt": 1.0, "carry_score": 0.32, "security_penalty": 0.40 }
],
"carry_reason": "WBNB/LINK/ETH sit in the favourable funding band (tilt 1.0) so their carry_score is boosted above base; INJ has rich funding 0.41 >= fade_hi 0.30 so tilt 0.0 collapses it below the entry bar despite strong momentum; SHIB favourable funding cannot overcome its security penalty."
},
"decision": {
"target_portfolio": [
{ "symbol": "WBNB", "weight_pct": 17.0 },
{ "symbol": "LINK", "weight_pct": 17.0 },
{ "symbol": "ETH", "weight_pct": 17.0 },
{ "symbol": "USDT", "weight_pct": 49.0 }
],
"rules": {
"entry": [
"Enter assets with carry_score >= 0.65, max 5, ordered by carry_score.",
"Strongly prefer the favourable funding band (tilt 1.0); never initiate when funding >= fade_hi 0.30.",
"Per-name weight capped at 17%; route by carry_score share of the risk budget."
],
"exit": [
"Trim/exit when carry_score < min_score_to_hold 0.50 on the next rebalance.",
"Exit when a held asset's funding rises above fade_hi 0.30 (crowded paying-to-be-long) or drops below cap_lo -0.40 (capitulation).",
"Force-exit at stop_loss 12% or take_profit 25%; rotate to USDT on a risk_off transition."
]
},
"actions": [
{ "type": "entry", "symbol": "WBNB", "side": "buy", "target_weight_pct": 17.0, "reason": "carry_score 0.90 >= 0.65; favourable funding 0.06 (tilt 1.0); per-name cap 17 applied", "execution": "twap" },
{ "type": "entry", "symbol": "LINK", "side": "buy", "target_weight_pct": 17.0, "reason": "carry_score 0.87 >= 0.65; favourable funding 0.04 (tilt 1.0)", "execution": "twap" },
{ "type": "entry", "symbol": "ETH", "side": "buy", "target_weight_pct": 17.0, "reason": "carry_score 0.86 >= 0.65; funding ~0 (longs ~free, tilt 1.0)", "execution": "twap" },
{ "type": "no_entry", "symbol": "INJ", "reason": "carry_score 0.49 < min_score_to_enter 0.65: funding 0.41 >= fade_hi 0.30 (crowded long) collapses the tilt to 0" },
{ "type": "reject", "symbol": "SHIB", "reason": "carry_score 0.32 < 0.65; security penalty 0.40 (high_holder_concentration) dominates favourable funding" }
],
"risk_policy": {
"max_position_pct": 18.0,
"min_stable_reserve_pct": 10.0,
"max_total_drawdown_pct": 22.0,
"kill_switch_drawdown_pct": 24.0,
"throttled": false,
"kill_engaged": false
},
"daily_trade_requirement": { "enabled": true, "satisfied_by": "signal_trades", "trades_today": 3 }
}
}