Finalize: the one holdout run
campaign_finalizeSpend a campaign's holdout once to obtain final holdout metrics and the Deflated Sharpe ratio; finalization is blocked until required robustness checks have run.
Instructions
Spends the holdout, once. The candidate (a saved strategy version) must already be in the ledger and — unless the server runs with --no-robustness-gate — have a START_DATE_SHIFT batch, a randomizedEntry dry-run and a backtest_monte_carlo on this exact config (ROBUSTNESS_MISSING otherwise); no attempt may still be running (TRIALS_PENDING). Runs the holdout backtest over [holdoutFrom, to] on symbols × timeframes and an in-sample dry-run for the DSR inputs, then returns the holdout metrics and the Deflated Sharpe over the campaign's trial count. A second call answers 409 CAMPAIGN_FINALIZED. If the runs outlast timeoutSec the answer says RUNNING and campaign_status completes it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"strategyId": "<strategyId>"
},
"name": "campaign_finalize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| campaignId | No | ||
| strategyId | Yes | ||
| timeoutSec | No | ||
| strategyVersion | No | Default: the current version. |