feat: SDL_PROMPT补问题升级链引导(主动list_questions→answer_question/ask_user抛客户)

This commit is contained in:
ymq 2026-08-16 18:59:50 +08:00
parent 47dcd3c11e
commit 13a8af9d17

View File

@ -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 ──