Code, Compliance and Crashes: A Risk-Based Framework for AI Trading Systems | Synapse