From 7689c0bdab69f3e4c22464070b0aa9df67589598 Mon Sep 17 00:00:00 2001 From: Flavio Giacchetti Date: Tue, 27 Oct 2026 21:32:15 +0100 Subject: [PATCH] docs: restrict agent validation to relevant targeted tests --- AGENTS.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index b48577b..b6f8892 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -12,3 +12,12 @@ - Do not add telemetry, network listeners, root requirements, DSP, or routing features. - Record material architectural deviations in `docs/decisions/`. - Keep patches scoped, preserve user changes, and run `./scripts/test.sh` when native prerequisites are installed. + +## Risk-based targeted tests (mandatory) +- Never run a full test suite, solution-wide build, repository-wide lint/typecheck, or repeated test cycles automatically for every edit. Conserve execution time and tokens. +- First assess changed files and realistic regression risk. For docs, copy, comments, formatting, and clearly non-behavioral changes, skip automated tests unless a specific gate requires them; inspect the diff. +- For code affecting behavior, choose only the smallest relevant existing tests/filters/packages/assemblies; run once at a meaningful checkpoint, not after every tiny change. Avoid redundant restores and installs. +- If no relevant automated test exists, perform a focused feasible check and report what remains unverified; do not run unrelated suites to claim coverage. +- Broaden testing only for significant shared/core refactors, security/privacy, migrations, releases, targeted failures suggesting wider impact, explicit requests, or mandatory CI/release gates. Explain the escalation. +- Treat generic existing “run tests/build before commit” wording as targeted, risk-based verification for changed code, except genuinely mandatory security/CI/release gates. +- Report checks performed, intentional skips, and residual risk. Never imply skipped tests passed.