chore(memory): R2 closure BDR-117, LRN-139..141, plan Rev 4, contract 19-25
This commit is contained in:
1 parent
be0f6d8beb
commit
b41c24b29d
5 files changed
+94
-1
No files matched your search
@@ -962,3 +962,15 @@ Apply: every dynamic key site gets unit test asserting heading text has no 'edit
|
||||
## LRN-138 — Unblockable leave + no draft storage: content-free loss flag (2026-11-13)
|
||||
Pattern: browser Back not interceptable (BDR-078) + owner forbids storing drafts + owner forbids silent loss. Resolution: on unmount with dirty dialog write one content-free flag (kind + element key, scoped sheetId+userId) to sessionStorage, try/catch; next mount of same sheet+user shows notice once, clears flag. Relies on React 19 parent-first cleanup on deletion.
|
||||
Apply: any "cannot block leave, cannot keep data" conflict -> record the fact of loss, not the data, and tell user on return.
|
||||
|
||||
## LRN-139 — Navigation API cancels same-document Back traversal in Chromium (2026-11-14)
|
||||
Pattern: Navigation API `navigate` event on same-document traverse is cancelable in Chromium 156 (probe: CDP Page.navigateToHistoryEntry -3, userInitiated true, preventDefault keeps entry). Gives real "confirm before leave" for SPA Back/history-menu jumps without data router (BDR-078). Then navigation.traverseTo(destination.key) after user confirms; pass-through flag for that follow-up event.
|
||||
Apply: guard only when dirty + destination leaves route + event.cancelable; fallback (no API, Firefox/Safari unverified) = after-the-fact notice. e2e via CDP history jump; page.goBack with cancel times out. Probe browser behaviour with throwaway page before planning.
|
||||
|
||||
## LRN-140 — crypto.subtle missing on http LAN origin (2026-11-14)
|
||||
Pattern: crypto.subtle absent on non-secure origin (http LAN dev/trial address); loopback 127.0.0.1 counts secure so tests miss it. Async SHA-256 binding broke reload restore on owner trial origin + added blank first frame.
|
||||
Apply: for equality binding (not secret) use sync non-crypto hash (FNV-1a 64 BigInt) salted with random per-record value; test with crypto.subtle undefined. Check every crypto.subtle use against the LAN http origin.
|
||||
|
||||
## LRN-141 — Stacked modals: ask only removed layers; never rule silent loss into a limit (2026-11-14)
|
||||
Pattern: stacked modal layers + "ask all layers" guard: question appeared in lower dialog hidden under still-open upper modal (citations sheet) -> looks frozen. Also ruling "accept as documented limit" for silent loss broke owner condition; reviewer caught it.
|
||||
Apply: a guard asks only layers the move actually removes; before showing a question, close clean layers above the dirty one. Never rule a silent-loss case into "documented limit" when owner condition forbids silent loss: restore notice instead. Label limits owner did not see as "to confirm", never "accepted".
|
||||
Reference in new issue
Block a user