pub fn record_changes<R>(f: impl FnOnce() -> R) -> (R, Vec<Change>)
Record every change announced inside f. What the tests read, and the persistence layer’s input.
f