Skip to main content

Module save

Module save 

Source
Expand description

Explicit remote editing. Atomic replacement and cooperative locking are owned by the shipped helper; nonparticipating writers are not excluded by flock.

Structs§

RemoteSaveReceipt
RemoteVersion
An opaque baseline binds one file to its content and filesystem metadata.

Enums§

RefusalKind
RemoteSaveError
Verification

Functions§

prepare_edit
Worker-only admission. Nothing grants editability until these exact displayed bytes match the remote file and its no-follow/metadata capabilities are checked.
save
Worker-only conditional atomic replacement. The file is carried by its baseline, so a caller cannot accidentally pair a different path with the expected version.
verify
Explicit reconciliation after an ambiguous result. A matching intended state is synced again before acknowledgment; this does not prove historical authorship.