Start with a two-week Sprint Zero.

A paid, fixed-scope engagement. You keep the audit, the architecture plan and the prototype code, whether or not you continue.