write about the heuristic for tracking boundaries during user edits