fix(deployment): purge SystemArtifactDeploymentRecords in the terminal-record retention sweep (review 2026-10-21 08/G2)

This commit is contained in:
Joseph Doherty
2026-10-22 06:20:44 -04:00
parent da5a049077
commit d6a9a79c27
7 changed files with 138 additions and 4 deletions
@@ -221,6 +221,11 @@ never purged regardless of age: it is precisely the row the query-before-redeplo
reconciliation reads to decide whether a prior deploy actually landed at the site,
and expiring it by age would silently disable that idempotency guard.
The same window also bounds **`SystemArtifactDeploymentRecords`** — one row per
*Deploy Artifacts* run, written after the sweep and never read back — which the
sweep deletes by `DeployedAt` in the same bounded batches. Before 2026-10 that table
had no purge path at all.
## Diff View
Before deploying, the Deployment Manager can request a diff from the Template Engine showing: