Skip to content

test: pin legal-hold applied_at to the closure test timeline - #292

Closed
kcrmin wants to merge 1 commit into
developfrom
fix/account-closure-legal-hold-time-bomb
Closed

kcrmin wants to merge 1 commit into
developfrom
fix/account-closure-legal-hold-time-bomb

Conversation

@kcrmin

@kcrmin kcrmin commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Superseded by #294.

AccountClosurePersistenceIntegrationTest inserted legal holds without
applied_at, so the column took the database clock, then released them at
fixed instants derived from REQUESTED (2026-08-03). Once the wall clock
passed 2026-10-02 the release violated account_legal_hold_release_after_apply
(released_at >= applied_at), so two tests have failed on every run since:

- activeHeldAccountDoesNotStarveLaterActionableAccountAndReleaseRequeuesIt
- retentionHonorsExactIdentifierBoundaryAndLegalHoldBeforeAtomicRelease

Both holds now carry an explicit applied_at on the test's own timeline.
Production queries read only the hold status, so no runtime code changes.

Verified: the class passes 17/17 with the fix and still fails 2/17
without it; the full suite passes (1054 tests, 0 failures, 1 opt-in skip).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kcrmin kcrmin closed this Oct 26, 2026
@kcrmin
kcrmin deleted the fix/account-closure-legal-hold-time-bomb branch October 26, 2026 13:09
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