R53 Run the commit hooks and the touched checks before a push
Before you push a change, run the commit hooks and the checks the change touches on the version you push, and push only when they all pass.
Reason
A change pushed for review is put forward as working, and that needs grounds someone else can check (Art. VII §1). The commit hooks and the checks the change touches are the quickest of them; run first, they keep a failure the author could have found from reaching the reviewer and CI. The rest is left to CI; rule 72 says which run to cite.
Verification
Before each push of a change, the first and every one after it, the agent runs on the version it pushes:
- the repository’s commit hooks;
- each check of the repository whose inputs the change touches, as the project instructions list the checks.
It pushes only when each of them passes (rule 54). When unsure whether a check is touched, it runs it.
Where CI runs the full set of checks on the change, checks the change does not touch need not run locally; what to cite for the full set is in rule 72.
Violated when a change is pushed and a commit hook or a check it touches did not run on the pushed version, or did not pass on it.