已合并
harness编排器用户提示优化,提供安装agent配置功能 #14
harness编排器用户提示优化,提供安装agent配置功能 #14
已合并
sunday创建于 18 天前
sunday成员
18 天前

当前PR是否有AI参与:

[x ] 否

[] 是

  • AI Agent 平台:
  • AI 模型:
  • Prompt 上下文:

PR功能描述 / 为什么需要这个合入:

本 PR 优化 workflow-orchestrator 的输入确认和 Agent 配置准备流程:

  • 将 workflow.yaml、work_dir、provider、prompt 作为四项必需输入,并在执行前通过一次 question-tool 提交完成确认。
  • 为缺少 work_dir 的任务提供通用建议:在 Agent 启动的项目目录下使用任务或项目标识名的 snake_case 目录。
  • 正确识别当前使用的 Agent CLI,支持 codex、opencode 和 cannbot,避免 CANNBot 会话被误判为 OpenCode。
  • 新增 link_agent_config.py,将当前 Agent 项目的适配配置链接到 work_dir;已有文件、目录或软链接会保留并跳过。
  • 在启动编排器前记录 start_dir、work_dir 和链接结果。脚本通过标准输出提供日志,由 shell 追加到 orchestrator.log,不会覆盖既有日志。
  • 将工作流编排器日志改为追加写入,保留配置准备阶段的记录。
  • 为软链接创建、重复执行、冲突目标、悬空链接、路径空格、日志重定向和错误输入补充测试。

该PR关联的issue

无

改动类型 / Change Type

测试信息 / Testing

  • 执行命令:python3 -m unittest discover -s harness/workflow-orchestrator/tests

  • 结果:62 项测试全部通过(OK)

  • 额外通过 Python 编译检查和 git diff --check

检查清单 / Checklist

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 sunday 的贡献)
Ssunday成员
18 天前 创建了 pull request,commit d7b8a89f
CANN-robotCANN-robot成员
18 天前 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
18 天前 评论:

Thanks for your pull-request.
The full list of commands accepted by me can be found at here.
You can get sig-info at here.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
For more, you also can visit HICANN.


PR Approval Progress

✅ Congratulations! All modules have met the lgtm and approve requirements.

Module Approval Details

module lgtm status approve status
repo-cann/cannbot ✅ 宋恺, xutianze (2/2) ✅ xutianze, 宋恺 (2/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

zhou-qilong, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
Ssunday成员
18 天前 设置为草稿状态
Ssunday成员
18 天前 修改了pull request 的描述
此处折叠了54条消息 查看更多
songkai111成员
16 天前 评论:

/approve

likedislike
CANN-robotCANN-robot成员
16 天前 添加了label:approved
xutianze
xutianze成员
16 天前 评论:

/approve

likedislike
CANN-robotCANN-robot成员
16 天前 添加了label:lgtm
CANN-robotCANN-robot成员
16 天前 合入了pull request