docs(tasks): telemetry deployed, test:db passed in gate run 2938
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017eEAG8HD3mm8gsKXgk8uU8
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
e801fcf53b
commit
12cbe6f868
File diff suppressed because one or more lines are too long
+1
-1
@@ -2,7 +2,7 @@
|
||||
|
||||
## TASK-rectification-telemetry:真实 PostgreSQL 测试与登录态后台待验(2026-09-26)
|
||||
|
||||
- 本机无 Docker:`npm run test:db` 未跑。本单新增 `frontend/tests/database-rectification-telemetry.test.ts`(列白名单、RLS 与表权限、函数执行权限、去重、归属校验、非法值整笔回滚、180 天清理、管理员只读汇总、账户删除级联),并把两张新表加进 `database-local-business.test.ts` 的 public 表白名单;两者在本机均为 docker unavailable 跳过,结果以门禁 DB job 为准(run 号待推送后补记)。替代证据:迁移 SQL 按既有迁移写法逐段复核;纯函数与白名单、迁移源文本合同在 `rectification-telemetry.test.ts`(18 条)里已跑通。
|
||||
- ~~本机无 Docker:`npm run test:db` 未跑。本单新增 `frontend/tests/database-rectification-telemetry.test.ts`(列白名单、RLS 与表权限、函数执行权限、去重、归属校验、非法值整笔回滚、180 天清理、管理员只读汇总、账户删除级联),并把两张新表加进 `database-local-business.test.ts` 的 public 表白名单;两者在本机均为 docker unavailable 跳过,结果以门禁 DB job 为准(run 号待推送后补记)。替代证据:迁移 SQL 按既有迁移写法逐段复核;纯函数与白名单、迁移源文本合同在 `rectification-telemetry.test.ts`(18 条)里已跑通。~~ → 已解除:门禁 run 2938(`e801fcf5`)真实 PostgreSQL 17 跑过,`ok 1337 - rectification telemetry: server-only write, dedupe, retention, aggregate-only admin read, account cascade`,全量 4049 / 0 fail / 0 skip;migrate run 2940 已应用迁移。
|
||||
- 无受控后台登录账号:「校正统计」页只用本地构建 + Chrome 无头、虚构汇总数据截过图;真实数据与登录态按 `docs/testing/rectification-telemetry-20260926.md` 待产品走。
|
||||
- 未部署。
|
||||
|
||||
|
||||
@@ -130,3 +130,5 @@
|
||||
3. 周粒度日期、`admin.customers.read` 权限——认可。
|
||||
|
||||
环境缺口:`npm run test:db` 以本次推送的门禁 DB job 为准(run 号见下方补记);管理员真实登录走查见 `docs/testing/rectification-telemetry-20260926.md`。
|
||||
|
||||
补记(2026-09-26):40d7930a 的门禁 run 2937 三次都挂在 `npm ci`(镜像挂起,900s 超时,非代码问题);产品侧修复 CI(`e801fcf5`)后门禁 run 2938 通过:Python 948 passed / 1 skipped,前端含 DB 4049 / 0 fail / 0 skip,其中 `database-rectification-telemetry` 在真实 PostgreSQL 通过;migrate run 2940 应用 `20260926010000_rectification_telemetry.sql`;deploy run 2941,`/api/health` gitCommit = `e801fcf5`。剩余:管理员登录态真实页面走查。
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
| 任务书 | 进度 | 主题 | 状态 | 落点 |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| `TASK-rectification-fewer-probes-card-20260926.md` | [PROGRESS](PROGRESS-rectification-fewer-probes-card-20260926.md) | **减少无效追问 + 卡片区间为主**:引导补件离线新增达标 0 → 上限 6→2、定向题问完门槛未达直接出卡;卡片区间为主标题、代表分钟副标题,第一二名差距 ≥5 个百分点才显示百分比,否则写「目前区分不开」。不放宽任何置信度。先做 | 已验收(真机清单欠) | `4e6e8d87` + 验收补改 `7203d94e`(区分不开时隐藏「最可能」),deploy-staging run 2933 已部署;回放真值 ±30/±60 19→20、宽度中位 ±1 分钟、提问 11.4→7.8;Skill 10.0.30;真机清单 `docs/testing/rectification-fewer-probes-card-20260926.md` 未走 |
|
||||
| `TASK-rectification-telemetry-20260926.md` | [PROGRESS](PROGRESS-rectification-telemetry-20260926.md) | **匿名聚合统计**:每会话一行只存数字 / 枚举(题数分类、宽度、差距、停止原因、门槛达标、耗时、版本),管理后台只看汇总、保留 180 天;动表须 test:db。排在 fewer-probes 后 | 已验收(待门禁 DB job 与部署) | `d0bfc1fc`;只存数字/枚举、不存用户 id;后台「校正统计」页;test:db 以门禁为准 |
|
||||
| `TASK-rectification-telemetry-20260926.md` | [PROGRESS](PROGRESS-rectification-telemetry-20260926.md) | **匿名聚合统计**:每会话一行只存数字 / 枚举(题数分类、宽度、差距、停止原因、门槛达标、耗时、版本),管理后台只看汇总、保留 180 天;动表须 test:db。排在 fewer-probes 后 | 已验收(后台登录走查欠) | `d0bfc1fc`,门禁 run 2938 含真实 PG 测试通过、migrate 2940、deploy 2941(`e801fcf5`);只存数字/枚举、不存用户 id;后台「校正统计」页 |
|
||||
| `TASK-rectification-offline-research-20260926.md` | `PROGRESS-rectification-offline-research-20260926.md` | **三项离线研究**:答错 1–2 题的容错、V1/V2 分盘配权正确重跑、改正「1 分钟≈1.1 天」(实测中位 3.8 天)并核实 `_representative_pairs` 推断。不改线上。结论(`docs/research/rectification_offline_research_2026_09_26.md`):R1 答错 1 题真值在区间 98–100%、头名降三到四成,答错 2 题 ±30/±60 挤出 7–10%(两道反答=8 分=淘汰线);R2 权重生效,V1/V2 在 ±30/±60 按定义恒等、±10 六题后指标不变 → `no_benefit`(已实测);R3 3.8 天/分钟复现,45 天闸≈8–34 分钟,`_representative_pairs` 推断被推翻(全配对题数不变,卡在逐月评估),另记 BUG-1048 `investigating`(闸门跨年豁免 + zip 错位)。三项均不建议立实现单 | 已验收 | `0f5442ce`(纯研究,不改线上);三项均不立实现单:答错 2 题 ±30 真值入区间 0.93、V1/V2 no_benefit、每分钟边界位移中位 3.82 天(勘误 5 份文档);新发现 BUG-1048 出题闸门两处漏洞待产品决定 |
|
||||
| `TASK-rectification-code-split-20260926.md` | — | **代码拆分(只搬不改)**:聊天组件 2043 行 / 35 useState、`POST` 926 行、`runV9AgentTurn` 1047 行,269 处切源码测试;拆分 + 增长合同 + 切片测试改调用函数。排在 fewer-probes、telemetry 之后 | 待领取 | — |
|
||||
| `TASK-rectification-dup-question-20260926.md` | `PROGRESS-rectification-dup-question-20260926.md` | **同一轮问题出现两次(BUG-1045,复发自 BUG-585,BUG-969 拼回题干、去重只在刷新路径)+ 同一道选择题连画两张(BUG-1046:提交失败不回滚本地已答 + 兜底问题块条件过宽;H2 漏收回合)**。先于 latency 单 | 已验收(Claude 09-26 直接执行:子代理复现 A 与 B-H1(选择题提交 409 / 网络错误不回滚本地已答);Claude 变基到含 BUG-1043/1044 的 staging 后独立复验 tsc/lint 0、全量 3981 条失败名单与基线逐条一致、四路由 ○、gzip 不变) | `e4c1c7a3`(已部署 `f1d16405`,health 一致) |
|
||||
|
||||
Vendored
-45963
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user