Data Retention and Disposal Policy
| Category | Confidentiality |
|---|---|
| Version | 1.1 |
| Status | Approved |
| Approved | 2026-11-26 by Mishkin Berteig |
| Next Review | 2027-11-26 |
| ID | POL-12 |
| Document version | policies/data-retention.md at commit a64a7f19af19 (SHA-256 3bd629c2277a) |
Linked Controls
- DATA-16 Data Retention
- DATA-17 Data Disposal
- PRIV-3 Personal data retention and disposal
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:
- An account erasure (by the person, by MaxGood.work staff, or by staff on an Avatar Owner's request) anonymizes the account, redacts personal data in conversations and content in place, deletes stored originals (documents and media files) and deletes embeddings. Removing a member from an Avatar, deleting Expertise or a title, and the automatic retention sweeps dispose of the data each covers
- If the customer requests deletion, the request is acknowledged and completed within the 30-day period set under GDPR and PIPEDA Compliance
- If a customer's Terms of Service are violated, data deletion may be immediate and without notice
- The person erased receives a confirmation email to the address held before erasure when the erasure originates from their own request or a staff action
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.
- What removal deletes: the notes and structured data kept about the person for that Avatar, the memories about the person held for that Avatar, and the text of the feedback the person gave there.
- What the Avatar keeps: under Models A and B, metadata only of the person's interactions (time, application, language, cited sources, feedback type and a sentiment flag), never what was said, and the name reads "Former member"; under Model C, the whole interactions. A person added back starts a new membership, and what they said before is metadata only to the Avatar's Owner and Admins, unless Model C applied.
- What the person keeps: their own view of their whole interactions with the Avatar, in Profile, without links into the Avatar's Expertise.
- Classification: a classifier labels every interaction with an Enterprise Avatar from the person's own words as the message arrives, and labels earlier interactions in the background. The label is stored with the interaction.
- Use in the person's other Avatars: under Model A only the person's words are used and the Avatar's replies are not; under Model B an interaction is used unless a classifier labels it work; under Model C interactions are used whole. The person sees the classifier's work or personal label on their own interactions with a Model B Avatar in the chat; no one else is shown a label.
- Model B handover: the person's work interactions in the Avatar become one draft summary that only that person sees; they edit, approve or decline it within 14 days. Approval adds it to the Avatar's Expertise as a disabled title, and a declined, expired or approved draft has its text blanked.
- Disposal under legal hold: a destruction step held by a legal hold waits for the hold to be lifted (see Legal Hold).
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
- What an erasure does: it redacts the person's personal data in place (name, email addresses, platform identifiers, notes, interaction text, uploaded profile data) and replaces it with fixed placeholders; non-PII metadata is retained. No row is deleted except derived embedding vectors, which are removed. Uploaded originals are deleted from S3, every version. Pending handover drafts are blanked. An Avatar the person owns alone is retired and its Expertise redacted; an Avatar owned with other active members blocks the erasure until ownership is resolved.
- Who may erase: the person themself in MaxGoodWeb (Profile > Account > Delete account), after typing the confirmation word and re-authenticating with their password or an emailed one-time code; MaxGood.work staff in MaxGoodAdmin, with a recorded reason. MaxGood.work staff accounts and Foundation Author accounts are not erasable through these paths. Avatar Owners and Avatar Admins cannot erase a person: they remove or archive the membership, or file an erasure request from the Avatar's Security & Privacy tab.
- Tracking: every erasure and every erasure request is a row in the
user_erasuresregister (source, status, requested, completed and closed times, the S3 objects still owed). MaxGoodAdmin's Erasure Requests queue lists the open requests; a request open for 30 days is flagged overdue. Staff complete a request by erasing the person, or close it with a reason. - Audit: each erasure writes a
user_erasedaudit row; audit rows are retained as they are.
Legal Hold
- MaxGood.work staff, on the Security Officer's instruction, set a legal hold on a person in MaxGoodAdmin with a recorded reason, to suspend normal retention/disposal schedules for that person
- Legal holds override all other retention policies
- Data subject to legal hold must not be modified or deleted until the hold is released: while a hold is active, an erasure still anonymizes the account and ends sign-in, and every step that would destroy the person's content (including the destruction at removal from an Avatar) is recorded and deferred; lifting the hold runs the deferred steps
- Every legal hold, lift and deferred run is an audit row with ids only; the reason is held on the hold record and in no audit row or log
GDPR and PIPEDA Compliance
- Users may request deletion of their personal data (right to erasure / right to be forgotten)
- Erasure requests are completed within 30 days; a request open for 30 days is flagged overdue in MaxGoodAdmin
- Erasure requests are tracked in the
user_erasuresregister and MaxGoodAdmin's Erasure Requests queue - Anonymized or aggregated data that cannot identify individuals is not subject to deletion requests