Under the hood
Sync arming takes mid-turn and end-of-turn options and returns early on failure paths as a session ends.
The directory-sync arming routine now accepts midTurn and forEnd options, letting it run defensively at end-of-turn without forcing a sync start. Several of its failure paths now return early instead of retrying, reducing redundant work when a session is ending.