Patch edits are applied in descending line-number order using double-anchor verification, matching both line indices and verbatim text quotes to prevent index drift and misaligned edits.
Referenced by