{
  "schema_version": 1,
  "report_id": "oos-ai-grok47",
  "kind": "execution_backtest",
  "example": false,
  "purpose": "strategy_evidence",
  "package": {
    "id": "donchian-breakout",
    "version": "0.2.0",
    "content_hash": "sha256:c43a02cbfdcfcaecc9bf1a285c334a9c09e570fbb66173c23c156ed7c6f3cf3e"
  },
  "engine": {
    "name": "strategy-backtest isolated runner (tools/strategy-lab issue46)",
    "version": "63c3baecfaaa"
  },
  "decision_maker": {
    "type": "ai",
    "model": "grok-4.7-medium",
    "runs": 3,
    "masking": "ticker_date_price",
    "memory_risk": "not_excluded",
    "tools": [
      {
        "name": "get_klines",
        "version": "1",
        "calls": 131
      },
      {
        "name": "get_funding_rates",
        "version": "1",
        "calls": 132
      },
      {
        "name": "get_mark_price",
        "version": "1",
        "calls": 131
      },
      {
        "name": "get_account",
        "version": "1",
        "calls": 131
      },
      {
        "name": "get_positions",
        "version": "1",
        "calls": 131
      },
      {
        "name": "get_open_orders",
        "version": "1",
        "calls": 131
      },
      {
        "name": "get_trade_history",
        "version": "1",
        "calls": 131
      },
      {
        "name": "compute",
        "version": "1",
        "calls": 221
      }
    ],
    "compute_sandbox": {
      "name": "rustpython-restricted-compute",
      "version": "issue50-tool-compute"
    }
  },
  "capital_mode": "independent",
  "data": {
    "kind": "real",
    "source": "binance-public-usdm-monthly",
    "timeframe": "1d",
    "range": {
      "start": "2025-01-01T00:00:00Z",
      "end": "2026-11-01T00:00:00Z"
    },
    "split": {
      "out_of_sample": {
        "start": "2025-01-01T00:00:00Z",
        "end": "2026-11-01T00:00:00Z"
      }
    },
    "out_of_sample_usage": {
      "status": "reserved_for_this_version",
      "note": {
        "zh": "策略在 2026-11-05 冻结（提交 7354d4ac）之后，才第一次通过已提交策略包的门控读取 2025 年以后的数据；之后没有再修改。AI 只运行样本外（CR-46-4、CR-46-13）。模型在探测中能认出 BTC，记忆风险未排除。",
        "en": "Data from 2025 on was first read through the committed-package gate after the strategy was frozen on 2026-11-05 (commit 7354d4ac), and the strategy was not changed afterwards. The AI ran out of sample only (CR-46-4, CR-46-13). The model recognised BTC in probes; memory risk is not excluded."
      }
    }
  },
  "costs": {
    "fee_bps_per_side": 5,
    "slippage": {
      "model": "fixed_bps",
      "bps": 2
    },
    "funding": {
      "model": "historical"
    }
  },
  "sizing": {
    "initial_equity": 10000,
    "risk_pct": 9
  },
  "instruments": [
    {
      "research_instrument_id": "binance:perp:BTCUSDT",
      "execution_instrument_id": "strike:perp:BTC-USD",
      "perpetual_model": {
        "margin_mode": "isolated",
        "initial_leverage": 2,
        "liquidation": {
          "model": "maintenance_margin",
          "maintenance_margin_pct": 2.5,
          "liquidation_fee_pct": 1.25
        }
      },
      "venue_difference": {
        "zh": "研究使用 Binance USD-M 永续的历史成交价、标记价和资金费，实际执行在 Strike 永续；两者的价格来源、手续费、资金费和风险参数不同。风险参数取自当前的 Binance 公开参数，不是历史值。",
        "en": "Research uses Binance USD-M perpetual history (trades, marks, funding); execution is on Strike perpetuals, whose prices, fees, funding and risk parameters differ. Risk parameters are current Binance public values, not historical ones."
      },
      "segments": {
        "out_of_sample": {
          "trades": 15,
          "win_rate": {
            "median": 40,
            "p10": 40,
            "p90": 43.75
          },
          "avg_r": {
            "undefined": "missing_initial_risk"
          },
          "expectancy_r": {
            "undefined": "missing_initial_risk"
          },
          "profit_factor": {
            "median": 0.8568378950466833,
            "p10": 0.8170736294095335,
            "p90": 1.0097591206282706
          },
          "max_drawdown_pct": {
            "median": 38.09068444523279,
            "p10": 31.324444949818183,
            "p90": 47.06611404240956
          },
          "total_return_pct": {
            "median": -8.9374214722,
            "p10": -12.510088521,
            "p90": 1.5761278451
          },
          "exposure_pct": {
            "median": 76.13630241568525,
            "p10": 64.46768616693566,
            "p90": 79.60124245531739
          }
        }
      },
      "baselines": [
        {
          "name": "buy_and_hold",
          "segments": {
            "out_of_sample": {
              "trades": 0,
              "total_return_pct": -24.8073083691,
              "max_drawdown_pct": 55.77930014930553
            }
          }
        },
        {
          "name": "random_entry_same_exits",
          "segments": {
            "out_of_sample": {
              "trades": 27,
              "total_return_pct": -3.2160307298000004,
              "max_drawdown_pct": 45.67272455669108
            }
          }
        }
      ],
      "replay_ref": "oos-ai-grok47-btcusdt.replay.json"
    },
    {
      "research_instrument_id": "binance:perp:ETHUSDT",
      "execution_instrument_id": "strike:perp:ETH-USD",
      "perpetual_model": {
        "margin_mode": "isolated",
        "initial_leverage": 2,
        "liquidation": {
          "model": "maintenance_margin",
          "maintenance_margin_pct": 2.5,
          "liquidation_fee_pct": 1.25
        }
      },
      "venue_difference": {
        "zh": "研究使用 Binance USD-M 永续的历史成交价、标记价和资金费，实际执行在 Strike 永续；两者的价格来源、手续费、资金费和风险参数不同。风险参数取自当前的 Binance 公开参数，不是历史值。",
        "en": "Research uses Binance USD-M perpetual history (trades, marks, funding); execution is on Strike perpetuals, whose prices, fees, funding and risk parameters differ. Risk parameters are current Binance public values, not historical ones."
      },
      "segments": {
        "out_of_sample": {
          "trades": 11,
          "win_rate": {
            "median": 54.54545454545455,
            "p10": 54.54545454545455,
            "p90": 63.63636363636363
          },
          "avg_r": {
            "undefined": "missing_initial_risk"
          },
          "expectancy_r": {
            "undefined": "missing_initial_risk"
          },
          "profit_factor": {
            "median": 2.1334613692181312,
            "p10": 1.8972885888829891,
            "p90": 2.26781683926102
          },
          "max_drawdown_pct": {
            "median": 32.95084237842921,
            "p10": 32.546990914917025,
            "p90": 34.598154954200915
          },
          "total_return_pct": {
            "median": 53.176903282,
            "p10": 44.9055570715,
            "p90": 70.5648810161
          },
          "exposure_pct": {
            "median": 56.97023160595831,
            "p10": 52.21409943506322,
            "p90": 58.156204811611694
          }
        }
      },
      "baselines": [
        {
          "name": "buy_and_hold",
          "segments": {
            "out_of_sample": {
              "trades": 0,
              "total_return_pct": -38.5475410434,
              "max_drawdown_pct": 70.3973479233704
            }
          }
        },
        {
          "name": "random_entry_same_exits",
          "segments": {
            "out_of_sample": {
              "trades": 27,
              "total_return_pct": 24.2583971181,
              "max_drawdown_pct": 43.44865503908211
            }
          }
        }
      ],
      "replay_ref": "oos-ai-grok47-ethusdt.replay.json"
    }
  ],
  "parameter_search": {
    "candidates": 3,
    "note": {
      "zh": "信号参数取经典默认值、事先固定。正文措辞有过 3 个版本：原始版本、CR-46-11、CR-46-12，依据只是 2024 年下半年的行为检查，没有看收益。",
      "en": "Signal parameters are classic defaults fixed in advance. The guide had three wordings (original, CR-46-11, CR-46-12), chosen from 2024-H2 behaviour checks without looking at returns."
    }
  },
  "reproduce": {
    "command": "strategy-lab issue46-run docs/implementation/issue-46/oos/job-<symbol>.json answers <recorded answers from docs/implementation/issue-46/oos/ai-answers/>",
    "data_snapshot": "docs/implementation/issue-46/oos/snapshot-manifest.json"
  },
  "generated_at": "2026-11-05T15:09:11Z"
}
