# Auditing Existing Tests ## Map the cost Confirm the workspace, comparison baseline and uncommitted changes; read test entrypoints and CI configuration. Reuse current logs before collecting measurements that are genuinely missing. For broad work, group tests by responsibility: core product behavior, shared algorithms, entrypoint integration, browser/platform behavior, filesystem and process safety, distribution/installation, generated artifacts and CI selection. Identify uninspected areas; one successful cut does not establish that the whole project is optimal. Cost includes execution time, false-alarm investigation, fixture maintenance, blocked refactors, flaky reruns and resource contention. A lack of historical failures does not establish low value: rare data corruption can justify expensive protection. Choose candidates from measured bottlenecks, frequent false alarms or current development friction. Avoid predetermined deletion ratios, coverage targets or universal time limits. An expensive test outside the daily loop may cost less than hundreds of small duplicates in every feedback cycle. ## Prove the boundary of a cut For substantial reductions, keep a short, reviewable record: - **Burden:** measured execution or maintenance cost, or a concrete false alarm. - **Existing protection:** the actual mistake, entrypoints and implementation paths. - **Change:** deletion, consolidation, rewritten assertion, fixture reuse or changed execution timing. - **Surviving evidence:** how remaining tests detect the mistake; combinations intentionally no longer exercised. - **Verification:** commands and outcomes, comparable timing, baseline failures and untested environments. Prefer low-cost changes to a new test framework, dynamic dependency graph or layered runner. Selection machinery also creates maintenance obligations; introduce it only when existing tools cannot meet an evidenced need. ## Select execution by risk Use the repository's risk distribution, not another project's command names or runtime versions. - **Daily feedback:** core public behavior and affected regressions. - **Expanded checks:** relevant integration and consumers of shared changes. - **Platform and delivery checks:** distinct risks in real browsers, operating systems, installation, packaging and release identity. - **Complete verification:** infrastructure changes, uncertain impact or the project's release requirements. Before reducing platform matrices, distinguish runtime-compatibility smoke from platform-specific faults. Preserve actual evidence for platform differences. A mock or runner command list demonstrates dispatch, not native path behavior. When changing affected-test selection, check new files, renames, deletions, shared dependencies and unknown paths. Classification failures must not silently become successful skips. Respect required checks; a request for faster feedback does not authorize changing branch protection or release policy. ## Work in batches Complete a change and verification for one responsibility boundary before moving to the next. Stabilize unreliable measurements before claiming speedups. Track live process handles; an observation timeout does not justify starting another full run. Reuse verification unaffected by later changes. When only proven redundant assertions are removed, run surviving behavior checks or reuse applicable results. Reducing test cost should not produce an ever-growing verification ritual. At the end, identify retained protections, intentionally removed combinations and deferred candidates. Use an existing evidence location when useful rather than automatically creating a new body of governance documentation.