docs: define three-project issue planning order (#1)
This commit is contained in:
@@ -208,6 +208,9 @@ def check_task_template(errors: list[str], root: Path = ROOT) -> None:
|
||||
return
|
||||
content = path.read_text(encoding="utf-8")
|
||||
required = (
|
||||
"- 任务类型:单项目 / 协同",
|
||||
"- 主项目:Sense / Brain / Bell / contracts / 根级",
|
||||
"- 主 agent:",
|
||||
"## 依赖与并行",
|
||||
"- 前置工单:无 / #编号",
|
||||
"- 是否允许与前置工单并行:是 / 否",
|
||||
@@ -216,7 +219,15 @@ def check_task_template(errors: list[str], root: Path = ROOT) -> None:
|
||||
"- 仅影响的子项目 / 交付单元:",
|
||||
"- 是否跨子项目:是 / 否",
|
||||
"- 是否修改共享接口或契约:是 / 否;唯一事实来源:",
|
||||
"- write_paths:",
|
||||
"- 各子项目需要执行的验证:",
|
||||
"## 协同接口",
|
||||
"- 生产者:",
|
||||
"- 消费者:",
|
||||
"- 契约/共享事实源:",
|
||||
"- 兼容策略:不适用 / 向后兼容 / 发布新版本",
|
||||
"- 被阻塞或需要适配的工单:",
|
||||
"- 集成顺序:",
|
||||
"## 原始需求",
|
||||
"- 来源:用户对话 / Gitea / 其他",
|
||||
"- 提出时间:",
|
||||
@@ -255,6 +266,9 @@ def check_agent_efficiency_rules(errors: list[str], root: Path = ROOT) -> None:
|
||||
"长期文档必须先修改 Wiki",
|
||||
"提交只包含当前工单相关文件",
|
||||
"### 自然语言快捷指令",
|
||||
"### 三项目并行建单顺序",
|
||||
"建单顺序不等于实施顺序",
|
||||
"主 agent / dispatcher",
|
||||
"`只分析`",
|
||||
"`建工单`",
|
||||
"`执行工单 #N`",
|
||||
@@ -288,11 +302,14 @@ def check_claude_code_entry(errors: list[str], root: Path = ROOT) -> None:
|
||||
"只修改 `AGENTS.md`",
|
||||
"## 模型路由",
|
||||
"## Agent 交接",
|
||||
"## 三项目角色路由",
|
||||
"## Haiku 只读约束",
|
||||
"当前模型足以完成任务时不升级模型",
|
||||
"Opus 输出方案后必须等待用户确认",
|
||||
"不让 Haiku 决定最终根因",
|
||||
"只读必须通过子 Agent 工具权限实现",
|
||||
"主 Claude 作为 dispatcher",
|
||||
"coordination agent",
|
||||
)
|
||||
for section in missing_sections(content, required):
|
||||
errors.append(f"CLAUDE.md 缺少:{section}")
|
||||
|
||||
Reference in New Issue
Block a user