The health check that was green over a core dump
A game server crashed with a double free and dropped two players mid-round. Docker reported the container healthy for the whole of it, and Docker does not restart an unhealthy container anyway.
pgrep -f "ZZZ_no_such_process" exits 0 inside that container. pgrep -f searches full command lines, and the shell running the check has the pattern in its own. Seventeen hours green.
A check whose pattern can match the process running the check is a check that has never failed. Split the first letter into a character class and prove the red case against a real container.
Shipped fleet-wide; proven in tests/e2e-healthcheck.sh