There is a sound clue when it is happening.
There are three clicks when problem happens.
There are two clicks when it works as expected.
I created simplified scenario without observer and redstone.
https://www.youtube.com/watch?v=IUG2wrb9zms
In this video: the problem is recreated in a first try. Lamp goes on on tripwire trigger. It gets triggered another time without me triggering it. Lamp goes off. It should stay on.
Continuation of MC-305361 with new information since I can’t reopen a ticket.