RoPE splice — rotate a cached chunk to its new position
The notes a model stores about a word include where that word sat. Move the same words later in a new request and those notes are about the old positions. The unrotated comparison is the cosine of the printed angle gap. It stays 1.000 when that gap prints as 0.0000. A printed gap of 0.0160 still scores 1.000, and a printed gap of 1.0000 scores 0.540. The fix is a rotation by exactly the number of places the passage moved. After that rotation the comparison matches a passage that had been read at the new spot.
Pair i of a key is rotated by position × base^(−2i / dim). A key stored at the source position still carries that angle. Rotating it again by the gap destination − source matches a key computed at the destination.
The score drawn for a query at the destination is the cosine of the printed angle difference. The unrotated key uses the source angle. The spliced key uses the destination angle, so its score matches a native key. The move error is how far the rotated vector sits from that native key.