附录 C:task.json Schema 参考
复制
{
"id": "string", // 任务 ID,格式: MM-DD-slug
"name": "string", // Slug 名
"title": "string", // 任务标题
"description": "string", // 描述
"status": "string", // planning | in_progress | review | completed | rejected
"dev_type": "string", // backend | frontend | fullstack | test | docs
"scope": "string", // Commit scope, e.g., "auth"
"priority": "string", // P0 | P1 | P2 | P3 (默认 P2)
"creator": "string", // 创建者
"assignee": "string", // 指派人
"createdAt": "string", // ISO 8601 创建时间
"completedAt": "string", // ISO 8601 完成时间 (null if not done)
"branch": "string", // Feature 分支名
"base_branch": "string", // PR 目标分支
"worktree_path": "string",// Worktree 路径 (null if not parallel)
"current_phase": "number", // 当前阶段编号
"next_action": [ // 阶段序列
{"phase": 1, "action": "implement"},
{"phase": 2, "action": "check"},
{"phase": 3, "action": "finish"},
{"phase": 4, "action": "create-pr"}
],
"commit": "string", // Commit hash
"pr_url": "string", // PR URL
"subtasks": [], // 子任务列表
"relatedFiles": [], // 相关文件列表
"notes": "string" // 备注
}