Tasks Schema

Status: Historical compatibility pointer

Task schema 不在本页复制 fields、enums 或 Target tables,避免与 live code、product semantics、Policy、prompt、UI 和 reporting 再次漂移。

当前 selected Target:

历史审计背景:

Current code 的 executable source of truth:

  • callytics-infrastructure/packages/common/src/db/schema/tasks.ts
  • callytics-infrastructure/packages/common/src/db/schema/task-progress.ts
  • callytics-infrastructure/packages/common/src/db/schema/contact-timeline.ts
  • callytics-infrastructure/packages/common/src/domain/task-orchestrator/index.ts

本页保留仅为兼容旧 inbound links;下列同名章节是 anchor redirects,不复制旧字段或枚举,也不得当作现行规范。


以下 heading 只保留旧 URL fragment;每一项都重定向到 V3 的对应语义,不恢复已漂移的 schema snapshot。

1. Live Schema Overview

§1 anchor 保留用于兼容链接。V3 Target contract 中的 point-in-time implementation inventory 见 §9.1 Current:可直接复用的基础;引用前仍须核对 live code。

2. tasks

§2 anchor 保留用于兼容链接。字段语义见 §6.1 Task fields,Current / Target database 边界分别见 §9.1§9.3 tasks Target delta

2.1 typeCategory 9 values

这个标题只保留旧 #21-typecategory-9-values anchor;legacy typeCategory 的 Target mapping 见 §16.1

2.2 closeResult 15 values

这个标题只保留旧 #22-closeresult-15-values anchor;legacy closeResult 的 Target mapping 见 §16.2

2.3 Integrity / indexes worth knowing

这个标题只保留旧 §2.3 anchor;Target integrity 与 indexes 见 §9.5 Index 与 integrity

3. task_progress_events

#3-task_progress_events-表 anchor 保留用于兼容链接。Standalone progress table 的旧描述不再是 Current contract;Activity vocabulary 与 Timeline storage 分别见 §6.4§9.4

4. AI Output Tables

§4 anchor 保留用于兼容链接。Task 内建议见 §6.3 AI Suggestion fields;pre-task proposal、Reasoner run 与 SMS cursor 见 §9.6

4.1 task_suggestions

§4.1 anchor 保留用于兼容链接;请使用上面的 V3 contract 与 rollout status。

4.2 task_playbooks

§4.2 anchor 保留用于兼容链接;请使用上面的 V3 contract 与 rollout status。

4.3 ai_feedback

§4.3 anchor 保留用于兼容链接;请使用上面的 V3 contract 与 rollout status。

5. API / Page Caveats

§5 anchor 保留用于兼容链接。V3 Target Workbench projection 与 API commands 分别见 §13§10

6. Prompt Output ↔ Schema Check

§6 anchor 保留用于兼容链接。Target prompt/tool vocabulary 由 Task Policy Catalog 驱动;bounded reasoning loop 见 §12

7. Re-verification Commands

§7 anchor 保留用于兼容链接。Target validation 与 executable source map 见 §17§20

8. Cross-References

§8 anchor 保留用于兼容链接;当前方向读 Task V3 Product / Domain ContractTask V3 Rollout 状态快照,历史背景再查 Task V2+ audit