Idea: Standard OCaml runtime type representation

There’s dariusf/ppx_debug: Tools for record-and-replay debugging (github.com).
It does parse source files but relies on compile-time type information.