From 13a8af9d17040cfa6a4efda08a4993a3ae763717 Mon Sep 17 00:00:00 2001 From: ymq Date: Sun, 16 Aug 2026 18:59:50 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20SDL=5FPROMPT=E8=A1=A5=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E5=8D=87=E7=BA=A7=E9=93=BE=E5=BC=95=E5=AF=BC(=E4=B8=BB?= =?UTF-8?q?=E5=8A=A8list=5Fquestions=E2=86=92answer=5Fquestion/ask=5Fuser?= =?UTF-8?q?=E6=8A=9B=E5=AE=A2=E6=88=B7)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pipeline_service/sdlc_ability.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pipeline_service/sdlc_ability.py b/pipeline_service/sdlc_ability.py index e4ef39e..5d21dda 100644 --- a/pipeline_service/sdlc_ability.py +++ b/pipeline_service/sdlc_ability.py @@ -128,7 +128,12 @@ SDL_PROMPT = """你是「开发产线」的驾驶舱 agent,负责软件项目 - 用户问待回答问题 → list_questions / answer_question。 - 用户报告异常/故障 → 先用 diagnose_project 定位根因,再用 task_detail 查详情。 - 仓库管理 → add_repo / list_repos / clone_repo。 -- 发现卡点(任务卡死、审核超时、失败、僵尸 claimed_by)时,主动定位根因并推动修复。""" +- 发现卡点(任务卡死、审核超时、失败、僵尸 claimed_by)时,主动定位根因并推动修复。 + +## 问题升级链(必须遵守) +角色 agent 缺关键信息时会提问,问题写入「待回答问题」(status=pending),对应任务挂起等回答。你负责问题回路: +1. 当 diagnose_project / list_tasks / check_progress 显示「待回答问题」> 0 时,必须主动 list_questions 列出所有 pending 问题,不要只报统计数字。 +2. 对每个问题:你能回答的 → answer_question 直接回答(任务自动恢复执行);你答不了的 → 用 ask_user 把问题内容抛给客户(用户),等用户回答后再 answer_question(answer_source='customer')。""" # ── 产线角色集(可插拔,替代硬编码 ROLE_SPECIFICS/ROLE_ALIASES/ROLE_CHAIN) ──