V2 产品设计完整规格

retaintive 产品页面的 V2 设计文档。Task 领域的 selected Target 已迁移到 Task V3 Product / Domain Contract,实施与环境状态见 Task V3 Rollout 状态快照。V2 Task 路径只保留 compatibility 与 historical context,不再定义当前实施路线。

当前实现和环境事实仍以 live code、schema、config、migration state 与 runtime evidence 为准;不能从 V3 Target 或 V2 历史页面推断 PROD 已发布。


页面文档

Calls 和 Contacts 没有复杂的计算指标,不需要独立的计算配置文档。


技术附录(Schema 字段字典)

逐字段对齐 callytics-infrastructure/packages/common/src/db/schema/ 的 DB schema,供工程开发参考。Target design 与 live implementation 必须显式分栏,不能把计划字段写成已上线。

页面文档
My StoresStores schema(Postgres 5 表 + DDB StoresV2)
DashboardDashboard schema(metric → source 血缘 + task/outcome 计算口径)
Lead TrackerLead Tracker schema · 漏斗与状态
TasksTask V3 Product / Domain Contract · Task V3 Rollout 状态快照 · V2 compatibility entry
CallsCalls schema(90 列单表)
CoachingCoaching schema(AI 内容在 calls,workflow 在 coaching_reviews)
ContactsContacts schema · Name Trust

跨页面底层文档

文档内容
Task V3 Product / Domain ContractSelected Target 的 Task / Next Action / Activity / Business Progress / Outcome、Policy、UI、AI authority 与 rollout boundary
Task V3 Rollout 状态快照Source、deployment、TEST、UAT、legacy retirement 与 PROD readiness 的当前证据边界
Historical Task V2+ audit保留 point-in-time parity 审计、工程假设与演进背景;不是当前实施路线
Activity Timeline schemacontact_timeline 的 live 字段、Activity/history event 与 actor/evidence contract
Operating Hours schemaoperating_schedules · blackout_periods · operating_overrides,Lead SLA 的隐藏依赖
Rules schema店铺级可配置阈值 + Quiet Hours,控制 Tasks / Lead Tracker / Dashboard 行为

unified-pipeline/tasks-feature/design/ 中的 2026-05/06 文档保留为历史研究与 rollout 记录,其中包含已经删除或从未上线的 table/prompt/Objective 方案。它们不再是 current 入口;任何实现前必须先核查 live code,并以 V3 contract 与 rollout status 的最新边界为准。


约定

  1. 枚举数以代码 const 数组为准(不抄字段注释,部分注释已 stale)
  2. 废弃概念不写(leadTemperature / cooldown 已被 task overdue 替代)
  3. 未接线字段标 ⚠️ 已定义未接线,待开发功能标 ⚠️ 待开发

隔离键:store_id(UUID),完整设计见 Store-Level 隔离