Quant Swarm Audit — One-Shot Backtest Forensics
audit.backtestRun a zero-trust backtest forensic audit in one call to detect lookahead leakage, weak significance, cost fragility, drawdown tails, and trade concentration before promotion.
Instructions
Runs a complete zero-trust backtest forensic audit in a single call at 0 credits.
Evaluates lookahead leakage, Newey-West HAC t-stat, Benjamini-Hochberg q-value, Deflated Sharpe, 1x/2x cost survival, drawdown tails, and top-5 trade concentration locally.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "audit.backtest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| num_trials | No | Number of strategy/parameter trials tested for BH q-value and Deflated Sharpe adjustment. | |
| spread_bps | No | Optional one-way spread override in bps. | |
| trades_csv | No | Optional inline UTF-8 CSV string of trade records (<=250 KB). | |
| returns_csv | No | Inline UTF-8 CSV string of strategy returns (ts,strategy_return; <=250 KB). | |
| trades_path | No | Optional workspace-bounded path to trade records CSV/Parquet/JSON (stdio only). | |
| trades_rows | No | Optional inline trade records [{ts, symbol, pnl_bps, position_pct}]. | |
| returns_path | No | Workspace-bounded path to CSV/Parquet/JSON strategy returns (stdio only). | |
| returns_rows | No | Inline list of strategy return rows [{ts, strategy_return}]. | |
| slippage_bps | No | Optional one-way slippage override in bps. | |
| benchmark_csv | No | Optional inline UTF-8 CSV string of benchmark returns (<=250 KB). | |
| strategy_name | No | Human-readable strategy identifier. | candidate_strategy |
| benchmark_path | No | Optional workspace-bounded path to benchmark returns (stdio only). | |
| benchmark_rows | No | Optional inline benchmark return rows [{ts, return}]. | |
| commission_bps | No | Optional one-way commission override in bps. | |
| cost_assumptions | No | Optional execution cost assumptions {spread_bps, slippage_bps, adverse_selection_bps, commission_bps}. | |
| features_manifest | No | Optional point-in-time feature manifest {as_of, features: [...]}. | |
| adverse_selection_bps | No | Optional one-way adverse selection override in bps. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| how | No | ||
| mode | No | ||
| tool | No | ||
| error | No | ||
| access | No | ||
| job_id | No | ||
| reason | No | ||
| status | No | ||
| metrics | No | ||
| eligible | No | ||
| findings | No | ||
| gbp_cost | No | ||
| job_id_a | No | ||
| job_id_b | No | ||
| next_step | No | ||
| strategy_a | No | ||
| strategy_b | No | ||
| html_report | No | ||
| max_credits | No | ||
| credits_cost | No | ||
| generated_at | No | ||
| input_sha256 | No | ||
| metrics_diff | No | ||
| new_warnings | No | ||
| preflight_id | No | ||
| random_seeds | No | ||
| has_benchmark | No | ||
| strategy_name | No | ||
| written_files | No | ||
| approval_token | No | ||
| execution_plan | No | ||
| input_sha256_a | No | ||
| input_sha256_b | No | ||
| trades_summary | No | ||
| artifact_hashes | No | ||
| coverage_matrix | No | ||
| credits_charged | No | ||
| idempotency_key | No | ||
| markdown_report | No | ||
| package_version | No | ||
| returns_summary | No | ||
| assessment_after | No | ||
| cost_assumptions | No | ||
| headline_metrics | No | ||
| not_tested_count | No | ||
| required_credits | No | ||
| assessment_before | No | ||
| idempotent_replay | No | ||
| request_access_at | No | ||
| resolved_findings | No | ||
| validation_errors | No | ||
| counts_by_category | No | ||
| overall_assessment | No | ||
| finding_transitions | No | ||
| remediation_verdict | No | ||
| has_features_manifest | No | ||
| not_investment_advice | No | ||
| outbound_data_preview | No | ||
| reproducibility_bundle | No | ||
| estimated_runtime_seconds | No |