Skip to content

feat(retention): enable prod modifications retention for real (POP-4134, DRY_RUN=false) - #2329

Open
carlomazzaferro wants to merge 2 commits into
mainfrom
carlomazzaferro/pop-4134-prod-mods-dryrun-off
Open

feat(retention): enable prod modifications retention for real (POP-4134, DRY_RUN=false)#2329
carlomazzaferro wants to merge 2 commits into
mainfrom
carlomazzaferro/pop-4134-prod-mods-dryrun-off

Conversation

@carlomazzaferro

@carlomazzaferro carlomazzaferro commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Split from #2328 per review discussion (Ertugrul). Flips both prod modifications reapers (smpcv2 + ampc-hnsw) to real deletion.

Stage trim+bounce test: PASSED (2026-08-03, both fleets). One-off Jobs cloned from the reaper CronJobs with the window narrowed to 14d and the newest-rows floor lowered to 500 (kept above the 328-row startup-sync lookback):

  • Real deletes: 20,164 rows ×3 parties (HNSW), 20,159 ×3 (GPU) — identical per fleet, cross-party consistent.
  • Coordinated fleet restarts after the trim: all 6 pods 1/1, zero crash loops.
  • Boot over the trimmed table exercised the full path on every party: Grouped modifications: 328Modifications to update: [], to delete: [] (no cross-party divergence) → Replaying last 328 modification results to SNS.

Remaining consideration (non-blocking, separate PR if wanted): genesis modification replay is watermark-forward with no limit, so a graph checkpoint dormant >30d would silently skip trimmed rows — a loud-failure guard (MIN(id) > last_indexed_modification_id → abort) would convert that to a clean error.

Inert until ~08-15 even once merged (prod created_at backfill 07-16 + 30d window + newest-10k floor).

…34, DRY_RUN=false)

Split from #2328 per review. Gated on the stage trim+bounce test:
modifications have never had a nonzero delete anywhere, and genesis
modification replay is watermark-forward (unbounded), so real-trim
behavior gets validated on stage first. Inert until ~08-15 regardless
(prod created_at backfill 07-16 + 30d window + newest-10k floor).
@carlomazzaferro
carlomazzaferro marked this pull request as ready for review August 3, 2026 13:59
@carlomazzaferro
carlomazzaferro requested review from a team and philsippl as code owners August 3, 2026 13:59

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 50778f2be9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

env:
RETENTION__ENABLED: "true"
RETENTION__DRY_RUN: "true"
RETENTION__DRY_RUN: "false"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Stop labeling the live deletion jobs as dry runs

When operators inspect these production values during rollout or an incident, the adjacent documentation still says DRY_RUN=true, “read-only COUNT,” and “no rows removed,” while this setting makes the reaper execute real DELETE batches. The same contradiction exists in common-values-iris-mpc-modifications-retention.yaml; update both comments to describe live deletion and the applicable rollback or kill-switch procedure so the destructive state is not misidentified as a preview.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done — both comment blocks now describe live deletion, the newest-10k floor, and the kill switch (DRY_RUN=true → preview-only, suspend=true → no runs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant