One row per rectification Case, written once when the range card is first delivered (GET /api/rectification/cases/[caseId], fire-and-forget after the response is built). Numbers and closed enums only: no user / case / session id, birth data, names, text or timestamps finer than the ISO week. Dedupe via a separate case_id ledger that cascades with the Case (and account deletion). Migration 20260926010000 is additive: two RLS tables with no runtime table grants, SECURITY DEFINER write (service_role), purge (service_role) and aggregate-only summary (admin_runtime) functions; 180-day retention. Admin: 「校正统计」 page + GET /api/admin/rectification-telemetry (admin.customers.read), aggregates only, no per-row view or export. TASK-rectification-telemetry-20260926. test:db not run locally (no Docker). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017eEAG8HD3mm8gsKXgk8uU8
1.7 KiB
1.7 KiB
生时校正匿名统计:真人验收清单(2026-09-26)
前提:staging 已部署含 20260926010000_rectification_telemetry.sql 的版本(门禁会先自动跑 Migrate Staging Database),并用有「查看客户基本资料」权限的后台账号登录 https://admin.staging.jyotisha.chat。
A. 后台能看到汇总
- 左侧菜单出现「校正统计」,点进去页面标题是「生时校正统计」。
- 顶部说明写着匿名、只看汇总、不能逐条查看或导出、保留 180 天。
- 右上角可以切「近 4 周 / 近 12 周 / 近 26 周」,切换后数字随之变化,不报错。
- 还没有任何数据时:会话数为 0,各分布表占比为 0,页面不报错。
B. 做一次校正后数字会增加
- 用自己的测试账号(受控账号,不要用真实用户)在 staging 走一次生时校正,直到出现「目前范围」卡片。
- 回到后台「校正统计」刷新:会话数 +1;「最终范围宽度分布」「提问数分布」「停止原因」各有一格 +1;按周趋势里本周 +1。
- 在同一个校正里继续补一件经历、再出卡,或者点「更像这个」采用:会话数不再增加(每个校正只记一次)。
- 点「停止」结束另一个校正并出现范围卡:停止原因「用户中止」+1。
C. 看不到个人信息
- 页面上没有任何用户邮箱、姓名、出生日期、地点、时间点(HH:MM)或对话内容。
- 页面上没有下载、导出或逐条列表入口。
D. 用户侧无感
- 做校正的过程中,出卡那一轮的等待时间与以前一样,没有新的报错或提示。
发现问题请截图并记下操作时间(不要截到别人的资料)。