This repo demonstrates how you might accomplish delayed key rotation into multi-sig as a mechanism for account recovery.
sisyphusSmiling/delayed-key-rotation
Proof of concept implementation of a delayed onchain social recovery mechanism
Cadence
Proof of concept implementation of a delayed onchain social recovery mechanism
Cadence