Phase: idle — mutate the file, then sync
Unchanged byte
Mutated (pending)
Copy instruction (matched)
Literal (uploaded)
This is a 2D-native re-derivation of the same rsync-style delta-sync math, built on a byte grid instead of a 3D block scene. Rather than only comparing each block against the block at the same index, this engine runs the real rolling checksum: a weak Adler-style sum that updates in O(1) as the scan window slides one byte forward, paired with a strong FNV-1a hash that confirms every candidate. Choose an in-place edit, an insertion, or a deletion — inserts and deletes shift every following byte to a new offset, and the rolling scan still finds and reuses that unchanged data, while a naive aligned-only comparison (also computed here, for contrast) sees every shifted block as "changed" and would re-upload the whole tail.