AID-14Required
Protect the checks themselves
Never let an agent pass a check by weakening it. Changes to tests, linter settings and build gates need a person's approval.
How to do it
Agents under pressure delete failing tests, add skip markers or raise limits. List the check files in a code owners file, and turn on the branch rule that requires code owner review. Then changes to them need a named reviewer. Tell agents in the instructions file to fix code, not checks. Agents also skip local Git hooks with --no-verify, so run the same checks again in CI and make the main branch require them. The checks to protect are the ones from Fail the build on broken rules.
Examples
Plain text example
# CODEOWNERS
/tests/ @example-shop/leads
/eslint.config.* @example-shop/leads
/check.sh @example-shop/leads
How to check
A pull request that deletes a test, adds a skip or loosens a linter setting cannot merge without the code owner's approval.
Sources
Related rules
- ENG-3 Fail the build on broken rules in Engineering
- AID-18 Look for weakened checks and skipped work in AI-assisted development
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/ai-assisted-development/rules-the-agent-cannot-break/protect-the-checks">Agent Wranglers AI-assisted development playbook</a>. In code you write, add a comment next to it with the same link.