Data Retention and Disposal Policy

CategoryConfidentiality
Version1.1
StatusApproved
Approved2026-11-26 by Mishkin Berteig
Next Review2027-11-26
IDPOL-12
Document versionpolicies/data-retention.md at commit a64a7f19af19 (SHA-256 3bd629c2277a)

Linked Controls

Data Retention and Disposal Policy

Purpose

This policy defines retention periods and secure disposal methods for all data types within the MaxGood.work platform, ensuring data is kept only as long as necessary and disposed of securely when no longer needed.

Scope

All data stored by MaxGood.work systems, including databases, file storage, backups, logs, and third-party services.

Retention Periods

Data Type Retention Period Justification
User conversation history Kept until the person's account is erased; an erasure redacts personal data in place and retains non-PII metadata Service delivery and customer support
Interactions of a person who has left an Avatar Kept for the person in their Profile for as long as their account exists. The Avatar's Owner and Admins keep metadata only, or the whole interactions under Enterprise Model C (see Leaving an Avatar) Service delivery, the person's own record, and the Avatar's agreed use
Avatar-scoped user information kept about a member Until the member is removed from the Avatar (removal destroys it for that Avatar) or the account is erased (redacted in place) Service delivery
Other records tied to a person Until the account is erased, which redacts them in place Service delivery
User account data Kept until the account is erased; an erasure anonymizes the account row, which is kept Account management
Erasure register (user_erasures) Indefinite; rows are never deleted Proof that each erasure request was handled within 30 days
Audit rows Kept as they are, including after an erasure; the sign-in and account-event logs hold each event's email address, IP address and user agent, and nothing purges them Security monitoring and SOC 2 evidence
Content (Foundations/Expertise) Kept until the Expertise or title is deleted, or until an erasure that retires its Avatar redacts it Content delivery
Uploaded media originals (audio, video and image files in File management) Enterprise and Essential Avatars: 7 days after the file is understood. Tester Avatars and MaxGood.work staff uploads: deleted once the file is understood. Any file whose understanding failed: 7 days after the failed attempt. Foundation originals: kept. The hourly retention sweep deletes the original, every version and delete marker included Understanding runs once from the original; the stored text is the lasting record
Texts derived from a media file (faithful text, summary, outline) Until the file is deleted Content delivery; the Expertise or Foundation content is built from them
Frame images and speech text of a video (the captured frames that show content, stored as images with the file, and the text of its speech) As long as the file; deleted with the file, with the Avatar or the title, and with an erasure of the account (the frame rows are redacted in place and the stored image and speech objects are deleted) Content delivery; the Expertise or Foundation content is built from them
Media work files (extracted audio and the pieces of it sent for speech-to-text to OpenAI or, for Avatar types set to Fast, to the on-premises AI server) 7 days at most; the worker deletes them when the file is understood and a bucket lifecycle rule expires work/ objects after 7 days Processing scratch data
Sentiment analysis reports One cached report per Avatar, replaced each time it is recomputed Service analytics
Cache entries holding personal data Expire on their own within 24 hours Short-lived processing state
Payment records Kept with no deletion step; an account erasure does not change them Tax and financial compliance
Audit logs (CloudWatch) 1 day for production ECS logs; 90 days for RDS instance logs; 30 days by default for all others Security monitoring
CloudTrail events 90 days in the default event history; 7 years in the trail's log storage Compliance and forensics
Decision logs (AI agent transcripts) 7 years in the write-once evidence store (Object Lock, governance mode); the transcripts committed to the MGDataAndEvidence git history are kept indefinitely SOC 2 evidence chain
Git commit history Indefinite Source control and audit trail
Database backups (RDS automated) 31 days Disaster recovery
Pre-migrate database snapshots 7 days; a snapshot that must be kept longer is copied to mg-prod-postgres-keep-<reason> before it expires Migration recovery
Compliance evidence 7 years SOC 2 audit requirements

CloudWatch applies no retention of its own: a log group created without an explicit setting keeps its events indefinitely. The CloudWatch periods above are applied by infrastructure/set-log-retention.sh, which sets the default on every log group that carries no retention and is run after any change that creates one.

Data Disposal

Secure Deletion Methods

Storage Type Disposal Method
RDS PostgreSQL Personal data is redacted in place by UPDATE; the only row-level DELETE on an erasure removes derived embedding vectors; instance deletion uses AWS KMS key destruction
S3 objects Object deletion + bucket lifecycle policy; versioned objects permanently deleted, every version and delete marker, by the hourly retention sweep and by every file or Expertise deletion; an erased person's uploaded originals are deleted the same way
ElastiCache Redis Keys expire on their own; an erasure also deletes the person's sign-in and one-time-code keys
EBS volumes Volume deletion (underlying storage is zeroed by AWS)
Local development data Secure file deletion from encrypted volumes
Backups Automatic expiration per retention schedule; snapshots taken before a change that do not expire automatically are deleted once the change is confirmed good; encrypted at rest

Crypto-Shredding

For data encrypted with AWS KMS keys, disposal can be achieved by scheduling the KMS key for deletion, rendering all data encrypted with that key permanently unreadable.

Customer Data Deletion

When a subscription ends, the customer's data stays until one of these paths disposes of it:

Leaving an Avatar

An Avatar Client's membership of an Avatar ends when an Avatar Owner, Avatar Admin or MaxGood.work staff remove them. An Avatar Client accepts the Avatar's terms and conditions before using it, and on an Enterprise Avatar those terms state the retention model (A, B or C) the Avatar's Owner chose; the Avatar's Owner and Admins accept their own agreements.

Deleting an Avatar

Deleting an Avatar is a soft delete: the Avatar's default-grant rows are removed in the same transaction, and the organizations row and the interactions stored under the Avatar remain under the retention periods of this policy.

Erasure

GDPR and PIPEDA Compliance

← Back to Policy Library