Refine discussion moderator messaging flow
This commit is contained in:
@@ -195,7 +195,7 @@ moderator bot 的工作流完全不使用模型,所有输出均由模板字符
|
||||
|
||||
当检测到某 channel 为讨论模式 channel 时,moderator bot 自动发 kickoff message。
|
||||
|
||||
建议内容结构如下:
|
||||
建议内容结构如下(当前实现中统一收敛在 `plugin/core/discussion-messages.ts`):
|
||||
|
||||
```text
|
||||
[Discussion Started]
|
||||
@@ -210,7 +210,7 @@ Instructions:
|
||||
2. Work toward a concrete conclusion.
|
||||
3. When the initiator decides the goal has been achieved, the initiator must:
|
||||
- write a summary document to a file
|
||||
- call the tool: discuss-callback
|
||||
- call the tool: discuss-callback(summaryPath)
|
||||
- provide the summary document path
|
||||
|
||||
Completion rule:
|
||||
@@ -331,7 +331,7 @@ Further discussion in this channel is ignored.
|
||||
- 提供结果文档路径
|
||||
- 用新消息唤醒原工作 channel 上的 Agent 继续执行
|
||||
|
||||
建议模板:
|
||||
建议模板(当前实现中统一收敛在 `plugin/core/discussion-messages.ts`):
|
||||
|
||||
```text
|
||||
[Discussion Result Ready]
|
||||
|
||||
@@ -71,13 +71,13 @@
|
||||
- [ ] 防止 `..`、绝对路径越界、软链接绕过等路径逃逸问题
|
||||
|
||||
### A5. `plugin/core/moderator-discord.ts`
|
||||
- [ ] 确认当前 `sendModeratorMessage(...)` 是否已足够支撑新流程
|
||||
- [ ] 如有必要,补充统一错误日志和返回值处理
|
||||
- [ ] 确认可被 discussion service 复用发送:
|
||||
- [ ] kickoff message
|
||||
- [ ] idle reminder
|
||||
- [ ] callback 完成通知
|
||||
- [ ] channel closed 固定回复
|
||||
- [x] 确认当前 `sendModeratorMessage(...)` 是否已足够支撑新流程
|
||||
- [x] 如有必要,补充统一错误日志和返回值处理
|
||||
- [x] 确认可被 discussion service 复用发送:
|
||||
- [x] kickoff message
|
||||
- [x] idle reminder
|
||||
- [x] callback 完成通知
|
||||
- [x] channel closed 固定回复
|
||||
|
||||
### A6. `plugin/turn-manager.ts`
|
||||
#### A6.1 理解现有轮转机制
|
||||
@@ -146,10 +146,10 @@
|
||||
|
||||
### A10. moderator 消息模板整理
|
||||
#### A10.1 kickoff message
|
||||
- [ ] 定稿 discussion started 模板
|
||||
- [ ] 模板中包含 `discussGuide`
|
||||
- [ ] 模板中明确 initiator 结束责任
|
||||
- [ ] 模板中明确 `discuss-callback(summaryPath)` 调用要求
|
||||
- [x] 定稿 discussion started 模板
|
||||
- [x] 模板中包含 `discussGuide`
|
||||
- [x] 模板中明确 initiator 结束责任
|
||||
- [x] 模板中明确 `discuss-callback(summaryPath)` 调用要求
|
||||
|
||||
#### A10.2 idle reminder
|
||||
- [ ] 定稿 discussion idle 模板
|
||||
@@ -157,10 +157,10 @@
|
||||
- [ ] 避免提醒文案歧义或像自动总结器
|
||||
|
||||
#### A10.3 origin callback message
|
||||
- [ ] 定稿发回原工作 channel 的结果通知模板
|
||||
- [ ] 模板中包含 `summaryPath`
|
||||
- [ ] 模板中包含来源 discussion channel
|
||||
- [ ] 模板中明确“继续基于该总结文件推进原任务”
|
||||
- [x] 定稿发回原工作 channel 的结果通知模板
|
||||
- [x] 模板中包含 `summaryPath`
|
||||
- [x] 模板中包含来源 discussion channel
|
||||
- [x] 模板中明确“继续基于该总结文件推进原任务”
|
||||
|
||||
#### A10.4 closed reply
|
||||
- [ ] 定稿 closed channel 固定回复模板
|
||||
|
||||
Reference in New Issue
Block a user