1.0.25.27: codify interrupt handling invariants