deanonymize_document
Restore anonymized Word documents using their mapping file, verifying every change is still in place before restoring. If the document has drifted, nothing is restored and mismatches are reported.
Instructions
Reverse anonymize_for_review using its mapping file (default .anonymization.json beside the document). Every recorded change is verified to still sit where the mapping says before anything is restored; if the document drifted since anonymization, NOTHING is restored and the refusal lists every mismatch. The mapping file is left on disk to delete once the restore is confirmed. Auto-backup: prev/anchor slots in .ks4w-backups (backup=False skips rotation only); atomic validated save. Refuses documents open in Word.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| backup | No | ||
| file_path | Yes | ||
| mapping_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||