I'm facing the similar problem for my current postdoc to future AP transition. I talked to my HR and advisors and was told I could keep my postdoc H1B until my AP started, However I must physically show up and sign a document on the last day. Anybody knows how long the gap between two H1Bs is safe? Say one month or long is ok without causing trouble for traveling back to China and applying green card in the future?