legal: implement automated deletion-on-offboarding (or rewrite privacy claims) #175
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Source:
/legal/attorney-review-checklist.mditem A1.Problem. Today,
DELETE /accounts/me(accounts.py:524-567) only:users.deleted_at(soft-delete of the owner user)The account row, audit logs,
ai_sessions+ conversation transcripts + ticket snapshots,sessions(legacy),session_branches,session_handoffs,escalation_package*,resolution_note_*,file_uploadsrows + Railway Object Storage objects,assistant_chat(unless covered by 90d/100-cap retention),ai_usage,sales_leads,beta_feedback,notifications,stripe_events, etc. are not automatically purged.Why it matters. The generated Privacy Policy §6 and DPA §6.2 imply Customer Data is deleted after termination. The code does not enforce this. GDPR Art. 5(1)(e) storage-limitation and CCPA service-provider obligations require action.
Two acceptable paths:
Build the deletion job (recommended). Scheduled task that, on owner-initiated account deletion (or after a 30-day grace period), purges all account-scoped rows + Object Storage objects. Should also clean up:
audit_logsolder than 12 months (security-baseline retention)refresh_tokenswhereexpires_at < now()orrevoked_at IS NOT NULLemail_verification_tokens/password_reset_tokenspast expiry/useRewrite the language in privacy-policy.md §6 + dpa.md §6.2 to describe the actual behavior (deletion-on-request, with a stated SLA the team can hit manually).
Acceptance criteria.
/legal/implementation-verification.mdrows for these claims flip from ❌ → ✅Blocker for: publishing legal docs (Privacy Policy + DPA) to resolutionflow.com.
Companion files:
/legal/attorney-review-checklist.md(item A1, §C table)/legal/implementation-verification.md(retention/deletion rows)