pub fn gate_edit(
ext: &str,
old_content: &str,
new_content: &str,
) -> Option<String>Expand description
The post-edit gate decision (#1008). Returns Some(reason) only for the
clean → broken regression — the single case worth blocking — and None
(allow the write) for every other situation:
unsupported language, tree-sitter off, an already-broken pre-edit file, or a
post-edit file that still parses.