Patch inversion would be lovely. It is implemented on jiff.
Here's a use case: namely, when a Markdown+YAML document goes out, we want to make modifications to the generated canonical JSON .ipynb, but we want to un-modify it when when it comes back in.