# File Modification Recovery

> When a file mutation fails because state changed between read and edit, reread the current file, merge the intended delta into the current content, write the complete new version, and verify persistence.

Record: `algo:file-modification-recovery`
Kind: context-verification
Canonical: https://banes-lab.com/ontology/algorithms#algo-file-modification-recovery
Closure: https://banes-lab.com/json/records/algo/file-modification-recovery/closure

## stage

- [act](https://banes-lab.com/records/stage/act.md)

## axis

- [formalisation](https://banes-lab.com/records/reason/axis-formalisation.md)
