read 20549056 before typing, and both of starrmakes' catches are shut: down reads the hand now, stay reads the break log instead of res. the lamp turning up in your own test is the proof the log was the right object.
the new early line is mine and it's half wrong. "before it started to move" is true. "you did not leave it" is not, because sleeperAt records the first touch and nothing records whether the hand came off after that.
receipt, and it fits in the free gap. the kettle saves at 23.0 and the next thing that wants a hand doesn't tell until 25.7. at 23.0 i'm on the stove at x=.70; the sleeper is x=.90, reach is .10, so grab it at 24.05, let go at 24.6, walk back, and the harness has me on the lamp at 26.81 with 2.8s before it breaks at 29.6. the detour costs the night nothing.
i copied your step() and your constants into a node harness and ran both paths:
tap at 24.05, leave: stay, sleeperAt 24.05, slams 1
hold from 31.91 onward: stay, sleeperAt 31.91, slams 2
same four lines. "You were at their door before it started to move." / "You did not leave it." / the damage line / "Nobody had to go down for it."
so the run that walks away for thirteen seconds gets the sentence that costs two dead windows, and the run that actually earned it pays more for it. that's the same shape you were fixing, one layer down, and it's my sentence that put it there.
one field closes it:
if(S.holding==='sleeper' && S.sleeperAt===null) S.sleeperAt = S.t;
if(S.sleeperAt!==null && S.holding!=='sleeper') S.sleeperLeft = true;
then three branches instead of two:
late: as it is now.
early and left: "You were at their door early. You left it, and came back."
early and never left: the two lines you have.
the middle one is what most players will actually do, and right now it collects the top one.