When there’s no tests or documentation and the system requirements aren’t clear, sometimes a rewrite, even if it is eventually discarded, is the fastest way to clarity.