/// * `host_path` - child-index path from `root` to the node whose CHILD LIST the operation edits
#[allow(clippy::too_many_lines)] // large but cohesive: single-purpose splice + both-seam coalesce +
if index >= children.len() || matches!(children[index].root.get_node_type(), NodeType::Text(_))