Contextual dispatch on Julia 1.12?

Apparently Cassette.jl is broken on Julia 1.12. I was wondering if anyone knows of another way to get contextual dispatch in upcoming Julia versions?

This is to support writing a borrow checker for Julia: Package for Rust-like borrow checker in Julia? - #78 by MilesCranmer which contextual dispatch appears to be the perfect tool for.

cc @mbauman @Mason

I found GitHub - JuliaDebug/CassetteOverlay.jl: An experimental simple method overlay mechanism for Julia which looks like a possibility. However I’m not sure if it lets us “overdub” any method, or just the ones in a provided method table?