Apply the designer's rules for a thread or task whose layer did not
reach the target of a merge:
- It lands on the nearest ancestor of the layer the target has, so an
excluded group does not strand it, else on the area the layer
covered. A task lands with its thread whatever its status.
- It keeps the lost layer's name, so the interface shows the lost
layer and offers relink. Restore is not offered after a merge.
- Migration 0818 gives threads the lost name and stores, at the merge,
what a later move needs once the branch document is gone.
- relink-comment-thread anchors a thread to a layer again; the tasks
created with the thread follow it.
AI-assisted-by: claude-opus-5-5