Passing tests cannot authorize a shorter retention period

Use an approval matrix and deletion release record to separate implementation evidence from authority over retention and irreversible outcomes.

OpenThunder Editorial · 2026-11-29

For example, a purge job changes from a 30-day retention window to seven days, and tests confirm that eligible records disappear on schedule. Redeploying the previous application version can stop future deletion, but it cannot recover records already removed.

The tests pass. Approval for the shorter retention period is still pending.

A filled record makes the approval gap visible

For that seven-day purge, a compact deletion release record would read:

Field Recorded decision or evidence
Exact scope change The selector newly includes records whose retention clock began more than seven days ago and no more than 30 days ago, excluding defined preservation states.
Policy and approval The current approved schedule permits deletion after 30 days. Data-owner approval of the seven-day scope is pending; the designated policy authority must resolve the changed obligation before release.
Hold behavior Exclude held records. Defer affected records when hold status is missing, stale, or unavailable, and raise an exception for the designated owner. Recheck holds before deletion to catch changes after selection.
Downstream export The export remains on its 30-day expiry schedule. Acceptance of that different treatment is pending with the export owner and the relevant policy authority.
Recovery and release Redeployment stops future runs. No restoration evidence is attached, so recovery cannot serve as a safeguard. Release remains blocked pending scope approval and acceptance of irreversible effects.

The useful distinction is between evidence that deletion works and authority to delete the selected records. I would require both for deletion changes regardless of code authorship. AI assistance can help with implementation and test generation; the affected obligations determine who must approve release.

Approval must cover the change, but need not be a new event

A deletion policy needs two distinct decisions:

An engineering approver owns technical acceptance. A named data owner owns the business scope and the applicable approved retention schedule. Legal, privacy, or another designated policy authority resolves questions within their remit, such as changed retention obligations, uncertain legal holds, or conflicts between deletion and preservation requirements.

A documented existing authorization can cover a change. Passing tests never supplies that authorization.

One person can hold multiple roles where the organization explicitly assigns them. The release record should identify an accountable person and the decision they approved; a role label alone is insufficient.

Keep the deletion release record beside the change

Attach the record to the code review or release ticket. Each item needs evidence or an explicit, approved explanation of why it does not apply.

Scope and authority

“Delete old data” is too vague to review. “Delete records whose retention clock began more than seven days ago, excluding these defined preservation states” is a specification reviewers can challenge and test.

Holds and preservation

Unresolved preservation status should defer deletion for affected records and raise an actionable exception. That deferral needs an owner and resolution path, because indefinite preservation can conflict with deletion obligations.

Downstream copies

A successful primary-store test does not answer whether a separately managed export remains. Resolve that destination's treatment as part of scope approval.

Behavior and recovery evidence

Keep audit evidence sufficient to explain the decision without unnecessarily retaining the data intended for deletion.

A code rollback is not a data recovery plan. Recovery requires separate evidence about available copies, restoration procedures, and what restoration is permitted to reintroduce.

Match approval coverage to the change

This matrix is a proposed team policy, not a statement of legal requirements. Map the roles to your organization and apply all relevant rows.

Across every row, involve the responsible legal, privacy, or policy authority when an obligation changes, is ambiguous, or conflicts with another requirement. Existing authorization counts only when it explicitly covers the change, references a specific policy version, and identifies the permitted change class.

Change Engineering approval coverage Data-owner approval coverage Specialist focus
Refactor without changing selection, timing, holds, or destinations Evidence of equivalent behavior Documented standing approval may cover it Any obligation question that emerges
Change retention duration, eligibility filters, or affected data classes New selection and timing behavior Exact new scope Retention and purpose constraints
Change hold detection, preservation exceptions, or deletion-request precedence Preservation behavior and failure paths Affected scope and treatment Authority responsible for the affected preservation or deletion obligation
Add deletion in another store, export, cache, or backup process Each affected path Each affected owner's scope Preservation, erasure, and retention treatment
Change batching, retries, concurrency, or scheduling Operational and partial-failure behavior Changed effective timing, scope, or recoverability; otherwise standing approval may apply Obligations affected by operational behavior

“The data team approved deletion last quarter” is not a usable release authorization.

Block release when the safeguards do not hold

The record already exposes missing scope, hold decisions, and approval coverage. Also block release if implementation evidence shows that deletion can bypass a required preservation control, retries or downstream propagation exceed the approved scope, or claimed recovery lacks supporting evidence.

Irreversibility alone should not prohibit a deletion workflow. Some approved deletion outcomes intentionally leave no recovery path. Requiring every deleted record to remain restorable would undermine those outcomes; the appropriate approvers must instead accept the intended irreversible effects.

A smaller batch limits exposure, but it does not authorize deletion. A canary can still remove records that should have been preserved.

Try a five-minute approval check

Choose one pending deletion-related change and write four lines: what newly becomes deletable, which policy permits it, who can approve it, and what cannot be recovered.

An empty line identifies a review gap to resolve before execution. The four-line check does not validate holds or downstream behavior.