I've tested it and it works fine. I want to make something similar with a reed switch for door/windows and combining your logic but instead of a pir having a circuit from pos > 10K > ( from here also goes to >diode and to 1K for GPIO2) > ReedSwitch > neg. It worked partially meaning, when reed switch is open... the the signal goes to 1 with the 10k pullup and no matter if the reed is closed again the esp8266 stays on until instructed to sleep again. Problem is that while the reed switch is closed the state is always 0, and CH_PD low so any timed executions are not running until the reed is triggered again.
Any ideas if there is any work around for this would really be cool.
Once again great logic pal... it worked amazingly!!!! Maybe it could work like that to feed a dallas or any low voltage sensor so it could close and open with esp8266 working cycle instead of being on all the time.
Keep up the good work!!!