Step 1 · StartD1 write throws SQLITE_BUSY
A write against D1 (INSERT/UPDATE/DELETE via db.prepare(...).run() or db.batch(...)) throws an error containing SQLITE_BUSY or "database is locked".
What happens next
- passed → step 2, Check whether two writes are landing at the same moment