Quant Swarm Audit — Preflight & Scope Matrix
audit.preflightValidates strategy returns, trades, benchmark, cost assumptions, and feature manifests locally before promotion, returning a coverage and scope matrix that separates tested, untested, and outbound data previews.
Instructions
Validates strategy returns, trades, benchmark, cost assumptions, and feature manifests locally at 0 credits. Returns a Coverage & Scope Matrix separating available checks, NOT_TESTED checks, and an outbound data preview.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trades_path | No | Optional path to CSV/Parquet/JSON trade records (ts, symbol, pnl_bps, position_pct). | |
| trades_rows | No | Optional inline trade records [{ts, symbol, pnl_bps, position_pct}]. | |
| returns_path | No | Path to CSV/Parquet/JSON strategy returns (columns: ts/date, strategy_return/return). | |
| returns_rows | No | Inline list of strategy return rows [{ts, strategy_return}]. | |
| strategy_name | No | Human-readable strategy or experiment identifier. | candidate_strategy |
| benchmark_path | No | Optional path to CSV/Parquet/JSON benchmark return series. | |
| benchmark_rows | No | Optional inline benchmark return rows [{ts, return}]. | |
| cost_assumptions | No | Optional inline execution cost assumptions dict. | |
| features_manifest | No | Optional inline feature provenance manifest dict. | |
| cost_assumptions_path | No | Optional path to JSON execution cost assumptions {spread_bps, slippage_bps, adverse_selection_bps}. | |
| features_manifest_path | No | Optional path to JSON feature provenance manifest {as_of, features: [...]}. |
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 |