Continuous diagnostics and mitigation