Gate quit-time flushes through the departure gate #200
Notifications
Due Date
No due date set.
Depends on
Reference: AlexKucera/museion#200
Reference in new issue
Block a user
Parent
Follow-up from the PR #198 finish audit (converged security + general finding; pre-existing seam, untouched by that diff).
What to build
Quitting the app is the one document departure that bypasses the brief-25 gate:
PostsModel.shutdown()flushes both sessions best-effort and ignores the results. Two harms:EditorSession.flush()does not hold for an unanswered #67 conflict (only the debounce does), so quitting while the reload alert is up writes the local text over the foreign disk body — the exact harm the #114 audit calls out.Deliver: quit-time flushes route through the departure-gate conflict hold — quitting never overwrites an unanswered foreign body. Plus an explicit product decision, pinned, for the failed-flush-at-quit posture: silently drop (current behavior), block quit (the WritingLockAppDelegate refusal precedent), or rescue (strand the buffer to a recovery file).
Acceptance criteria
[Generated by AI]