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

72 lines
5.5 KiB
JSON

{
"scenario": "chop",
"as_of": "2026-06-14T00:00:00Z",
"inputs": {
"fear_greed": { "value": 48, "value_classification": "neutral" },
"global": { "total_market_cap_usd": 2205000000000, "btc_dominance_pct": 52.4 },
"market_breadth": { "breadth_pct": 50.0, "median_24h_return": 0.1 },
"funding": [
{ "symbol": "BTCB", "funding_rate_proxy": -0.02, "ret_24h": -0.2, "note": "-0.2/24 + (2.9-3)*0.01 = -0.0093 -> longs ~free, favourable band" },
{ "symbol": "ETH", "funding_rate_proxy": -0.01, "ret_24h": -0.4, "note": "-0.4/24 + (2.3-3)*0.01 = -0.0237 -> favourable band, longs paid slightly" },
{ "symbol": "LINK", "funding_rate_proxy": 0.08, "ret_24h": 1.9, "note": "1.9/24 + (3.1-3)*0.01 = 0.0802 -> top of favourable band" },
{ "symbol": "WBNB", "funding_rate_proxy": 0.02, "ret_24h": 0.5, "note": "0.5/24 + (2.8-3)*0.01 = 0.0188 -> favourable band" },
{ "symbol": "ADA", "funding_rate_proxy": -0.04, "ret_24h": -1.1, "note": "-1.1/24 + (3.5-3)*0.01 = -0.0408 -> bottom of favourable band" }
],
"quotes": [
{ "symbol": "BTCB", "price_usd": 64200.0, "percent_change_1h": -0.1, "percent_change_24h": -0.2, "market_cap_usd": 1270000000000, "volume_24h_usd": 29000000000, "liquidity_usd": 60000000, "volatility_1h": 2.9, "safety_score": 99, "security_flags": [] },
{ "symbol": "ETH", "price_usd": 3360.0, "percent_change_1h": -0.2, "percent_change_24h": -0.4, "market_cap_usd": 404000000000, "volume_24h_usd": 11000000000, "liquidity_usd": 54000000, "volatility_1h": 2.3, "safety_score": 98, "security_flags": [] },
{ "symbol": "LINK", "price_usd": 14.6, "percent_change_1h": 0.5, "percent_change_24h": 1.9, "market_cap_usd": 9100000000, "volume_24h_usd": 420000000, "liquidity_usd": 11000000, "volatility_1h": 3.1, "safety_score": 95, "security_flags": [] },
{ "symbol": "WBNB", "price_usd": 585.0, "percent_change_1h": 0.2, "percent_change_24h": 0.5, "market_cap_usd": 84000000000, "volume_24h_usd": 1500000000, "liquidity_usd": 41000000, "volatility_1h": 2.8, "safety_score": 96, "security_flags": [] },
{ "symbol": "ADA", "price_usd": 0.46, "percent_change_1h": 0.1, "percent_change_24h": -1.1, "market_cap_usd": 16300000000, "volume_24h_usd": 380000000, "liquidity_usd": 6800000, "volatility_1h": 3.5, "safety_score": 90, "security_flags": [] }
]
},
"computed": {
"market_regime": "chop",
"regime_reason": "breakout/risk_on not met (breadth 50 < 55), risk_off not met (breadth 50 > 40, fg 48 > 30, median 0.1 > -2) -> default chop",
"exposure_multiplier": 0.5,
"carry_scores": [
{ "symbol": "BTCB", "base_score": 0.66, "funding_rate_proxy": -0.02, "funding_tilt": 1.0, "carry_score": 0.85, "security_penalty": 0.01 },
{ "symbol": "LINK", "base_score": 0.69, "funding_rate_proxy": 0.08, "funding_tilt": 1.0, "carry_score": 0.87, "security_penalty": 0.03 },
{ "symbol": "WBNB", "base_score": 0.66, "funding_rate_proxy": 0.02, "funding_tilt": 1.0, "carry_score": 0.84, "security_penalty": 0.02 },
{ "symbol": "ETH", "base_score": 0.60, "funding_rate_proxy": -0.01, "funding_tilt": 1.0, "carry_score": 0.77, "security_penalty": 0.01 },
{ "symbol": "ADA", "base_score": 0.55, "funding_rate_proxy": -0.04, "funding_tilt": 1.0, "carry_score": 0.70, "security_penalty": 0.05 }
],
"carry_reason": "In a flat, directionless tape, funding is benign across the board (all in the favourable band, tilt 1.0), so the carry tilt lifts the high-quality names above the entry bar — but the chop exposure_multiplier 0.5 halves the risk budget so only the top carry scorers are funded and most of the book stays in reserve."
},
"decision": {
"target_portfolio": [
{ "symbol": "LINK", "weight_pct": 17.0 },
{ "symbol": "BTCB", "weight_pct": 16.6 },
{ "symbol": "USDT", "weight_pct": 66.4 }
],
"rules": {
"entry": [
"Enter carry_score >= 0.65, max 5; chop halves the risk budget (0.5x) so far fewer names are funded.",
"Prefer benign/favourable funding; never initiate when funding >= fade_hi 0.30.",
"Per-name cap 17%; route by carry_score share of the reduced risk budget."
],
"exit": [
"Trim/exit when carry_score < 0.50 or funding rises above fade_hi 0.30 on a held name.",
"Force-exit at stop_loss 12% or take_profit 25%.",
"On a downgrade to risk_off, rotate to USDT regardless of funding."
]
},
"actions": [
{ "type": "entry", "symbol": "LINK", "side": "buy", "target_weight_pct": 17.0, "reason": "carry_score 0.87 >= 0.65; favourable funding 0.08 (tilt 1.0); per-name cap 17 within halved budget", "execution": "twap" },
{ "type": "entry", "symbol": "BTCB", "side": "buy", "target_weight_pct": 16.6, "reason": "carry_score 0.85 >= 0.65; favourable funding -0.02 (tilt 1.0); fills remaining halved budget", "execution": "twap" },
{ "type": "no_entry", "symbol": "WBNB", "reason": "carry_score 0.84 qualifies but the chop 0.5x risk budget is exhausted after the two top carry scorers; remainder held as reserve" },
{ "type": "no_entry", "symbol": "ETH", "reason": "qualifies on score but no risk budget left this cycle (chop 0.5x)" },
{ "type": "no_entry", "symbol": "ADA", "reason": "qualifies on score but no risk budget left this cycle (chop 0.5x)" }
],
"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": 2 }
}
}