1. Split report data shaping from HTML rendering. 2. Define a stable “report model” JSON that the UI consumes. 3. Replace the giant Python HTML generator - a local janus serve dashboard.