Each gating workflow starts with a change class job that sorts the
pull request, merge group or push by the files it touches
(tools/ci/change_class.py): inert (nothing reads them), docs (a Python
test reads them) or code (anything else and every case of doubt).
- inert: only the classifier and the two gates do work. The required
py3.12 leg starts and skips its steps, because a skipped matrix job
would never report that context.
- docs: the Python 3.12 suite runs as well; it holds the README tests.
- code: everything runs, as before.
The gates require the classifier to succeed and every job to do what
the class asks; an unknown class fails them. bandit has no gate, so it
runs unless the class is docs or inert. The required contexts are
unchanged. The pre-push hook skips the suite for an inert push.