When a circuit contains a gauge detector it seems like it stops backpropagating after it hits a reset. This doesn't happen when the detector is deterministic.
Plotting with circuit.diagram("detslice-with-ops") looks like this:
The blue area is the gauge detector, and the red area is a normal detector.
As a consequence of this, errors that happen before the reset don't affect the blue gauge detector, which means that the DEM might be different depending on the order of operations.
If this is intended behavior it would be good to document it, but I would expect the behavior to be the same for deterministic and non-deterministic detectors. If so it would be great to fix it.
I uploaded the full example here: https://github.com/asierpinor/issue-stim-gauge-detectors
I should say that circuit.detecting_regions() does give the right detecting regions for both.