Skip to main content
Three subsystems that make the fund self-aware: explainability surfaces everything the LLM needs in a single call, adaptive thresholds tune decision confidence from outcomes, and the backtest runner validates strategies before deployment.

Explainability

The Explainer reads from every fund subsystem and returns structured dictionaries that give the LLM a complete picture. Each section is wrapped in error handling so a failure in one subsystem does not break the entire response.

Fund State Explanation

Returns everything about the fund in one call:

Strategy Explanation

Deep dive into a single strategy:

Risk Explanation

Full risk breakdown:

Full Snapshot

Everything combined: status, strategies, NAV history, risk dashboard, stress test, P&L attribution, correlation matrix, execution report, hypotheses, regime, alpha model, decisions, decay report, alerts, ledger, and promotion status. Use this when the LLM needs a complete picture to make a decision.

Design

The Explainer is stateless. It holds a reference to the FundManager and reads from subsystems on demand. If a subsystem is not enabled or throws an error, that section returns "unavailable" instead of failing the entire call.

Adaptive Thresholds

Self-tuning confidence thresholds that learn from decision outcomes. Over time, the fund raises thresholds for actions that produce bad outcomes and lowers them for actions that consistently succeed.

How It Works

  1. After each autonomous decision, the outcome (profitable or not) is recorded
  2. Every 120 oversight ticks, the tuner computes precision (profitable / total) per action type
  3. Thresholds are adjusted:
  • Precision < 0.6: raise threshold by 0.05 (be more conservative)
  • Precision > 0.8: lower threshold by 0.02 (allow more actions)
  1. Updated thresholds are injected into the DecisionFramework

Bounds

Thresholds are clamped to [0.2, 0.95] to prevent the system from becoming either reckless or paralyzed. A minimum of 10 samples per action type is required before any adjustment.

Configuration

Precision Tracking

Built-in Backtester

The BacktestRunner generates synthetic prediction market data and runs strategies through it. It produces callables that plug directly into the Autopilot’s evaluate() method, so every strategy is backtested before deployment.

Synthetic Price Data

Generates bounded random walks that simulate prediction market price movement:
  • Prices stay within [0.02, 0.98] (valid probability range)
  • Drift is proportional to the edge estimate (positive edge = upward drift)
  • Bid/ask spread and volume are included in each tick
  • Default: 500 ticks per backtest run

Integration with Autopilot

When the fund is configured, the BacktestRunner provides two callables:
The backtest function returns a results dict with sharpe, trades, max_drawdown_pct, and walk_forward_consistency. The robustness function returns a dict with p_value indicating statistical significance.

Direct Usage

MCP Tools Summary