Record layer-eye targets by name and duplicate-name ordinal rather than document-local ids. Resolve them identically in engine and shell playback, fail visibly for missing targets, and allow explicit visibility edits without an active layer.
Add regressions for another document, duplicate layer names, deselected layers, document Undo and shell playback. Existing recordings are preserved.