From 520a6d4f896f5172468a7a95922aef9a7fd81b58 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 25 Aug 2026 17:01:18 +0800 Subject: [PATCH] =?UTF-8?q?feat(sdlc):=20RoleSpec=20=E5=8A=A0=20task=5Ftit?= =?UTF-8?q?le=20=E5=AD=97=E6=AE=B5(=E5=A3=B0=E6=98=8E=E5=BC=8F=E9=98=B6?= =?UTF-8?q?=E6=AE=B5=E6=A0=87=E9=A2=98=E6=A8=A1=E6=9D=BF)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit title 继承 bug 根治的一部分:RoleSpec 声明该角色作为自动派生下一任务时的 标题后缀(如 agent.design→「应用架构与模块设计」),_create_next_task 不再硬编码。 --- pipeline_core/ability.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pipeline_core/ability.py b/pipeline_core/ability.py index f738324..173d3ff 100644 --- a/pipeline_core/ability.py +++ b/pipeline_core/ability.py @@ -32,6 +32,7 @@ class RoleSpec: system_prompt: str = "" # 角色专属 prompt(职责 + 产出要求) next_role: str = "" # 任务链下一角色(空 = 终结) model_name: str = "" # 角色专属模型(空 = 继承产线) + task_title: str = "" # 该角色作为自动派生下一任务时的标题后缀 tools: List[str] = field(default_factory=list) # 工具白名单(空 = 产线全部工具)