feat: 2026-04-15~04-20 累积变更基线 — 多主线合流
主线 1: rns1-customer-coach-api + 04-miniapp-core-business 后端实施
- 新增 GET /xcx/coaches/{id}/banner 轻量接口
- performance/records 加 coach_id 参数 + view_board_coach 权限分流
- coach/customer/performance/board/task 服务层重构
- fdw_queries 结算单粒度聚合 + consumption_summary 视图统一
- task_generator 回访宽限 72h + UPSERT 替代策略 + Step 5 保底清理
- recall_detector settle_type=3 双重限制 + 门店级 resolved
主线 2: 小程序权限分流 + 新增 coach-service-records 管理者视角业绩明细页
- perf-progress 共享模块去重 task-list/coach-detail 动画逻辑
- isScattered 散客标记端到端
- foodDetail/phoneFull/creator* 字段透传
主线 3: P19 指数回测框架 Phase 1+2
- 3 个指数表 stat_date 日快照模式
- 新增 DWS_INDEX_BACKFILL / DWS_TASK_SIMULATION 工具任务
- task_engine 升级 HTTP 实时 + 推演回测双模式
主线 4: Core 维度层启用
- 新增 CORE_DIM_SYNC 任务(DWD → core 4 维度表)
- 修复 app 视图空查询问题
主线 5: member_project_tag 改为 LAST_30_VISITS 消费次数窗口
主线 6: 2 个迁移 SQL 已执行(stat_date + member_project_tag 新窗口)
- schema 基线与 DDL 快照同步
主线 7: 开发机路径迁移 C:\NeoZQYY → C:\Project\NeoZQYY(约 95% 改动量)
附带: 新建运维脚本(churned_customer_report / simulate_historical_tasks /
backfill_index_snapshots)+ tools/task-analysis/ 任务分析工具
合计 157 文件。未包含中间产物(tmp/ .playwright-mcp/ inspect-* excel/sheet 分析 txt)。
审计记录见下一个 commit。
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -86,7 +86,7 @@
|
||||
- **验证: 需求 5.2, 5.4**
|
||||
|
||||
- [x] 5. 检查点 — 基础设施层验证
|
||||
- 运行 `cd C:\NeoZQYY && pytest tests/ -v` 确保属性测试通过
|
||||
- 运行 `cd C:\Project\NeoZQYY && pytest tests/ -v` 确保属性测试通过
|
||||
- 确保 TraceContext、TraceWriter、TraceConfig、cleanup 模块可独立工作
|
||||
- ask the user if questions arise.
|
||||
|
||||
@@ -199,7 +199,7 @@
|
||||
- _Requirements: 2.2_
|
||||
|
||||
- [x] 11. 检查点 — 核心采集层验证
|
||||
- 运行 `cd C:\NeoZQYY && pytest tests/ -v` 确保属性测试通过
|
||||
- 运行 `cd C:\Project\NeoZQYY && pytest tests/ -v` 确保属性测试通过
|
||||
- 确保 xcx_* 请求能产生完整 span 链路(HTTP_IN → AUTH → SERVICE → DB_QUERY → DB_CONN → HTTP_OUT)
|
||||
- 确保异常请求能产生 ERROR span
|
||||
- 确保中间件层有 MIDDLEWARE span
|
||||
@@ -269,7 +269,7 @@
|
||||
- **验证: 需求 15.1, 15.2**
|
||||
|
||||
- [x] 15. 检查点 — 扩展采集层验证
|
||||
- 运行 `cd C:\NeoZQYY && pytest tests/ -v` 确保属性测试通过
|
||||
- 运行 `cd C:\Project\NeoZQYY && pytest tests/ -v` 确保属性测试通过
|
||||
- 确保 SSE 流式端点产生完整 trace(SSE_START → AI_CALL → SSE_EVENT → SSE_END)
|
||||
- 确保 WebSocket 连接产生完整 trace(WS_CONNECT → WS_MESSAGE → WS_DISCONNECT)
|
||||
- 确保后台 Job 产生完整 trace(JOB_START → SERVICE/DB_QUERY → JOB_END)
|
||||
@@ -336,7 +336,7 @@
|
||||
- **验证: 需求 18.1, 18.2**
|
||||
|
||||
- [x] 17. 检查点 — 后端 API 验证
|
||||
- 运行 `cd C:\NeoZQYY && pytest tests/ -v` 确保属性测试通过
|
||||
- 运行 `cd C:\Project\NeoZQYY && pytest tests/ -v` 确保属性测试通过
|
||||
- 运行 `cd apps/backend && pytest tests/ -v` 确保后端测试通过
|
||||
- 确保 6 个 API 端点均可正常响应,权限校验生效
|
||||
- ask the user if questions arise.
|
||||
@@ -410,7 +410,7 @@
|
||||
- _规范: export-paths.md_
|
||||
|
||||
- [x] 24. 最终检查点 — 全量验证
|
||||
- 运行 Monorepo 属性测试:`cd C:\NeoZQYY && pytest tests/ -v`
|
||||
- 运行 Monorepo 属性测试:`cd C:\Project\NeoZQYY && pytest tests/ -v`
|
||||
- 运行后端单元测试:`cd apps/backend && pytest tests/ -v`
|
||||
- 确保所有属性测试(Property 1-22)和单元测试全部通过
|
||||
- 确保 API 文档、后端 README、架构文档、文档地图、部署文档均已更新
|
||||
|
||||
Reference in New Issue
Block a user