You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Persist privacy-safe SessionAnalyticsSummaryRecord outputs from the AnalyzeSession batch contract introduced in #110 / PR #111. This is the storage bridge needed before building cognitive ability trend curves (#48) and admin analytics (#91).
Problem
#110 defines the synthetic fixtures and server-side summary contract, but summaries are not yet persisted or queryable. If #48 starts directly from UI charts, it will mix product visualization with storage decisions and make the analytics layer harder to audit.
Scope
Add an explicit persistence contract for SessionAnalyticsSummaryRecord.
Decide whether the first implementation is Prisma/PostgreSQL table, append-only event table, or repository abstraction over existing practice events.
Store only privacy-safe summary fields: no raw Brain ID, no auth tokens, no email, no screenshots, no raw localStorage, no raw event payloads unless explicitly reviewed.
Summary
Persist privacy-safe
SessionAnalyticsSummaryRecordoutputs from the AnalyzeSession batch contract introduced in #110 / PR #111. This is the storage bridge needed before building cognitive ability trend curves (#48) and admin analytics (#91).Problem
#110 defines the synthetic fixtures and server-side summary contract, but summaries are not yet persisted or queryable. If #48 starts directly from UI charts, it will mix product visualization with storage decisions and make the analytics layer harder to audit.
Scope
SessionAnalyticsSummaryRecord.Acceptance Criteria
SessionAnalyticsSummaryRecordhas a single server-side persistence owner/module.Verification
pnpm lintpnpm testpnpm buildDependencies