Master the design and implementation of transparent, user-controllable AI memory systems that enhance personalization while maintaining privacy and user agency.
type MemoryType = 'preference' | 'profile' | 'task' | 'contact' | 'workspace'
interface MemoryItem {
id: string
userId: string
type: MemoryType
summary: string
data: Record
createdAt: string
updatedAt: string
retentionDays: number
sensitivity: 'low' | 'medium' | 'high'
purpose: 'personalization' | 'productivity' | 'assistive'
consent: {
source: 'explicit' | 'implicit'
scopes: string[] // e.g., ['chat', 'email-draft']
version: number
}
audit: { createdBy: string; lastUsedAt?: string }
}