mirror of
https://github.com/storytold/wordcraft.git
synced 2026-12-02 02:37:26 -06:00
Stop descending into PropChange::old during revision collection when the outer PropChange::rev is out of bounds, matching step_prop_change which discards the outer PropChange and any buried indices together. This ensures retain_referenced_revisions leaves only genuinely referenced records in doc.revisions after a single Accept/Reject All pass. Add regression tests covering an invalid outer formatting change burying a valid inner index (both standalone and mixed with valid/nested chains) and asserting full document equality on a second resolution pass.