docs/solutions/logic-errors/2026-04-04-same-block-mixed-inline-range-refs-can-reuse-the-editor-selection-offset-model-without-op-metadata.md
After the first explicit mixed-inline rebasing pass, it looked like same-block
range refs would need richer insert_fragment operation metadata.
That turned out to be only half true.
For arbitrary tree shapes, yes. For the current proved top-level mixed-inline shape, no.
The working move was not new op metadata.
It was a core-only transform path for mixed-inline insert_fragment range refs.
That path reuses the same model as the editor-selection fix:
Because the current proved shape still has direct text children and single-text inline children, that mapping is exact enough without extending the public op.
The hard part was never “range refs need metadata” in the abstract. The hard part was “can we reconstruct the right path after insert?”
Inside the current top-level mixed-inline proof shape, the answer is yes:
That is enough for same-block refs.
It is not enough for arbitrary nested tree inserts, where the path geometry is more complex than one block of direct text-ish children.
Before adding metadata to an operation:
If yes, keep the richer transform internal. If no, then add metadata for the broader shape.
Do not widen the public operation shape just because the first guess said the problem “probably” needed it.