insertAt
Insert value at visible position index (0 = prepend before first visible element).
Returns the new Fugue state and the FugueOp.Insert op to broadcast.
Runs on the incremental FugueSeqState fast path (#1211): O(1) tree work for an append (amortized — a state rebuild after a remote merge is O(n log n) once), instead of the previous unconditional O(n log n) full tree rebuild per insert. The op minted is bit-identical to the rebuild path's — see insertOpViaRebuildOracle and its differential test.
Throws
if index is outside 0..size.
if the Lamport clock or replica's seq is already at Long.MAX_VALUE, as a decoded op-log or a peer's op can leave it (#3417). The next value would wrap to Long.MIN_VALUE, the Lamport time of FugueId.HEAD.