···5454 if (existing.pds_service_id) {
5555 return { skipped: true, pds_service_id: existing.pds_service_id };
5656 }
5757- // If we already deployed but couldn't capture an id, avoid hammering deploy
5858- if (existing.status && existing.status !== "deploy_failed") {
5757+ // Retry deploy for known retryable states where id may be missing.
5858+ // Keep skipping for everything else to avoid duplicate provisioning.
5959+ const retryableStatuses = new Set(["deploy_failed", "deploy_succeeded_no_id"]);
6060+ if (existing.status && !retryableStatuses.has(existing.status)) {
5961 return { skipped: true, pds_service_id: null };
6062 }
6163 }