Skip to main content

Module versions

Module versions 

Source
Expand description

An entry’s earlier values (docs/specs/SPEC_VAULT_GENERATE_CAPTURE_AND_BROWSER_SIGNINS_2026_10_28.md §4.4).

A new value (an edit, a capture, later a rotation or a browser save) becomes the current one; the value it replaces is kept for 7 days, marked when and by whom it was replaced, and the person can put it back from the Vault pane. Only the current value is ever filled or delivered, except a version a command names (id@previous, a rotation’s id@pending). A version is the entry’s sealed blob as it was: nothing here opens one except to show its last characters or to hand it to such a command.

A rotation (Vault rotate) keeps its new value as a pending version until its commands succeed, then makes it current; if they fail, the pending version stays for 7 days, marked with the step that failed, and the person can put it in from the pane (the service may already hold it).

Structs§

Rotation
A rotation under way: its pending version, and the entry as it was read.
VaultVersionInfo
An earlier value as the pane shows it: when it was replaced and by whom, and its last characters as the entry’s own value shows them. No value.

Constants§

INTERRUPTED
A pending value whose rotation never finished (srv stopped during it).
KEEP_MS
How long a replaced value is kept (§12, decision 8).
KEPT_PREFIX
What the state of a version that a sync conflict kept starts with, then why it was kept (“changed on at the same time”, sync_merge::Kept::label). Unlike the others it is not pruned after 7 days: the person settles it. A version kept for a delete holds no value (an empty blob): it is only shown.
OVERTAKEN
A pending value that wasn’t made current because the entry changed meanwhile.
PENDING
A rotation’s new value, not yet the entry’s.
PREVIOUS

Functions§

abandon_rotation
Drops a rotation whose set never started: no service saw its value, so there is nothing to keep or put back.
failed_at
A pending value whose rotation failed at step (2: set, 3: verify).
finish_rotation
Ends a rotation: Ok makes its pending value the entry’s, the value it replaces kept like any other; Err(step) keeps it, marked with the step that failed. An entry changed meanwhile is never overwritten: the pending value is kept, marked, and the rotation fails.
list
The entry’s earlier values, newest first.
prune
Deletes what is past its 7 days, and marks a rotation’s pending value that has waited longer than any rotation runs as interrupted (its request was dropped, or srv stopped): the person can then put it in. A failure is logged, not raised.
restore
Puts version seq back as the entry’s value, for the person; the value it replaces is kept like any other.
sealed_version
Version seq of entry id (this incarnation), for a command that names it: its sealed blob, or why it can’t be had.
start_rotation
Starts a rotation of entry id: value goes into its main part as a pending version that nothing is given yet. Refused while another rotation of it runs.