fix: guard app instance/deployment state moves with an explicit transition...
fix: guard app instance/deployment state moves with an explicit transition table handle_completed treated only TERMINATED as final, so a late, duplicate or out-of-order SRM completion could rewrite a row that had already reported its outcome