Design Undo Delete for Shared Collections
Model soft deletion, bounded retention, authorized restoration, and final expiry for shared collections.
For this exercise, assume an authorized owner can delete a shared collection. Deletion records a tombstone and retention deadline, hides the collection from normal reads, and permits an authorized restore before expiry unless the collection identifier has been reused.
When retention expires, restoration is permanently rejected and cleanup may remove retained contents asynchronously. Concurrent delete and restore commands must produce one authoritative lifecycle. Sharing-policy changes, cross-workspace moves, and item-level undo are outside scope.