# Tasks: Deterministic translation from approved memory

- [x] T001 Build the segment map for a file from the approved memory and the
keep-in-source list (004-translation-from-memory-AC-1)
- [x] T002 Apply the map, preserving structure, and abort naming any unmapped segment
(004-translation-from-memory-AC-2, 004-translation-from-memory-AC-3)
- [x] T003 Repair in-document references after reassembly
(004-translation-from-memory-AC-1)
- [x] T004 Leave the tree untouched on abort, and regenerate the manifest only when
content was written (004-translation-from-memory-AC-4,
004-translation-from-memory-AC-5)
- [x] T005 Negative fixtures: unmapped segment aborts, repeated runs are byte-identical,
manifest refuses to advance without a content change
(004-translation-from-memory-AC-3, 004-translation-from-memory-AC-5)