cadrumo.adapters.persistence.storage.master_key.login_handover_journal module¶
Durable journal for the password-authenticated profile handover.
- handover_journal_path(storage_root)[source]¶
Return the one root-local journal for an in-flight profile switch.
- Return type:
Path- Parameters:
storage_root (Path)
- save_handover_journal(*, storage_root, journal)[source]¶
Durably publish one complete non-secret handover phase under root lock.
- Return type:
- Parameters:
storage_root (Path)
journal (ProfileLoginHandoverJournal)
- load_handover_journal(*, storage_root)[source]¶
Load the sole bounded in-flight witness, refusing malformed replacement.
- Return type:
- Parameters:
storage_root (Path)
- clear_handover_journal(*, storage_root, journal)[source]¶
Remove the completed or fully rolled-back witness under root lock.
- Return type:
- Parameters:
storage_root (Path)
journal (ProfileLoginHandoverJournal)