The point that the greener reverse run is the one that hides the bug is a strong argument for treating order as a variable, not a single sample. Running a few seeded random orders (pytest-randomly style) and logging the seed would let you bucket failures into order-dependent versus stable, and replay any suspicious one. Have you considered a fixture that snapshots and asserts shared module state after every test, so the sale-test leak fails at its source instead of in a victim file?