From acb180e363907d916f5a312ba524c2f381be3a10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=85=E5=BF=B5?= Date: Tue, 15 Sep 2026 13:01:31 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20Task6=20=E6=94=B6=E5=8F=A3=E6=B3=A8?= =?UTF-8?q?=E8=AE=B0=EF=BC=88=E4=BC=9A=E8=AF=9D=E6=97=8F=E5=88=87=E5=88=86?= =?UTF-8?q?/=E5=90=8C=E6=89=B9=E5=8E=BB=E9=87=8D=E7=AD=89=E5=AE=A1?= =?UTF-8?q?=E6=9F=A5=E4=BF=AE=E5=A4=8D=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Code --- .../plans/2026-09-15-m1-data-collection-foundation.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/superpowers/plans/2026-09-15-m1-data-collection-foundation.md b/docs/superpowers/plans/2026-09-15-m1-data-collection-foundation.md index 678affd..cd070dd 100644 --- a/docs/superpowers/plans/2026-09-15-m1-data-collection-foundation.md +++ b/docs/superpowers/plans/2026-09-15-m1-data-collection-foundation.md @@ -890,6 +890,7 @@ for sess in {e.session for e in new_events}: - `duplicated` 计数允许并发近似(唯一约束保证绝不重复入库,仅统计口径可能差 1-2,M1 接受)。 - [ ] **Step 4: 跑测试通过** → 5 passed。修到绿为止。 +(**执行注记**:最终实现以提交 173d13d 为准,含审查修复——同批 event_id 去重(防匿名端点灌倍 stay_ms)、会话族切分用 `Q(exact)|Q(startswith=sid+"#")` 取族内最大 ended_at 比较(**原计划代码比的是陈旧根段,首切后每批膨胀 visit_count,勿照抄**)、Greatest 从 `django.db.models.functions` 导入、geo "0" 占位归一、TOCTOU 毫秒窗口为接受项。13 个 ingest 测试。) - [ ] **Step 5: Commit** `feat: 批量入库服务(幂等/首触/会话兜底/聚合更新)`