estimate_audit
Estimate the number of mutants and testing time for a source file before running a full mutation audit. Use to decide whether to proceed, scope down, or skip.
Instructions
Cheap pre-flight estimate of how big/long auditing a file will be, WITHOUT running the full mutation test cycle. Returns an approximate mutant count (exact for Rust via cargo-mutants --list; a source heuristic for TS/JS/Python/PHP, labeled fidelity:"approx"). Set withTiming:true to also run the test suite once and estimate wall-clock time. Use this before audit_code_resilience to decide whether to audit now, scope down, or skip.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to the source file to estimate, within the workspace. Example: "src/math.ts". | |
| withTiming | No | When true, run the test suite once to measure a baseline and estimate total wall-clock time (mutants × baseline / concurrency). Default false (count only, no test run). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| basis | Yes | ||
| target | Yes | ||
| mutants | Yes | ||
| fidelity | Yes | ||
| language | Yes | ||
| baselineMs | No | ||
| concurrency | No | ||
| estimatedMs | No |