Quick answer
Default to AI retrofit when you have live tenants, complex workflows, and AI is the primary new capability. Consider rebuild only when architecture cannot support tenancy, security, or observability: and leadership accepts multi-year migration risk.