Merged
feat(pypto-pro-op-orchestrator): 新增 PyPTO-Pro 算子开发编排插件 #204
feat(pypto-pro-op-orchestrator): 新增 PyPTO-Pro 算子开发编排插件 #204
Merged
李俊谕Add on Oct 23
李俊谕
李俊谕
Oct 23

描述

新增 community 插件 plugins-community/pypto-pro-op-orchestrator:PyPTO-Pro 算子开发能力从 pypto-gym(PR#816)迁入 cannbot 体系,采用 kernel-only 主 agent 直调模式——主 agent(mode: primary 的 AGENTS.md)加载 pypto-pro-kernel skill 后直接驱动 kernel 编写、验证、调试与性能优化,按需调度 6 个 subagent;不接 harness 工作流,无 yaml 状态机。skill 实体资产不在本仓,安装时由安装器按 plugin-install.json 的内联 assets 声明从 cannbot-skills 依赖仓 community/ops/ 拉取并软链(配套 PR cann/cannbot-skills!1499)。

本 PR 为单 commit(b07c06c)全量新增,21 文件 +797 行:

  1. 主 agent:AGENTS.md(mode: primary,提示词沿 gym PR#816)——确定协作方式、加载 skill、判定与审核;默认自主执行,用户显式开启多 agent 模式时只做判定、派工和审核。
  2. 6 个 subagent(agents/):planner(需求与验收分析,只读)/ coder(一次实现或有据修复)/ debugger(失败定位)/ verifier(独立验证,不改被检查文件)/ optimizer(单个优化实验 + 性能对比)/ tool(环境核对、探针、计时采集);均补 name 字段、mode: subagent。
  3. workflows/references/ 4 份:multi-agent-workflow.md(多 agent 派工/审核/交接规则)、kernel-core-principles.md(芯片/框架无关性能原则)、kernel-perf-pypto-pro-a5.md(原则在 PyPTO-Pro + A5 的落地)、performance-constraints.md(同步机制与 VF 写法参考)。
  4. 安装与登记:init.sh(薄壳,exec 安装器 source-plugin-init.sh 统一链路)、plugin-install.json(内联 assets 形态:"plugin": "." + 内联 skills 声明 community/ops/pypto-pro-kernel)、plugin-sources.json(本插件无自带 skills)、marketplace 登记、docs/community-plugins.md 登记、.claude-plugin / .codex-plugin plugin.json(version 3.0.0 沿 gym 侧)、README/QUICKSTART。community 插件不入官方插件清单,install.test.js 无改动。

对 gym PR#816 布局的适配点:AGENTS.md 保留在本仓插件侧(编排层统一在本仓,skills 仓不携带插件资产清单,无 marker 块冲突);AGENTS.md 内 skill 路径用字面 .agents/skills/pypto-pro-kernel/SKILL.md、references 路径用 workflows/references/...(由安装器 rewritePluginReferences 重写为装配后路径);6 个 subagent 放本仓插件 agents/(依赖仓资产机制只支持 skills/hooks/agentsMd 三键);references 放 workflows/ 下(插件顶层 references/ 会被安装器忽略)。

评审修复

  1. community 形态落地:按评审收敛方向,插件直接落在 plugins-community/;plugin-install.json 为内联 assets 形态——"plugin": "." + 内联 skills 声明直接指向 community/ops/pypto-pro-kernel,依赖仓不携带插件目录与 plugin-assets.json;skills 仓侧同样为 community 形态(cann/cannbot-skills 侧配套 PR,skill 落位 community/ops/、无独立 LICENSE.CANN)。
  2. README/QUICKSTART 按评审重写:讲"做什么"(能力、触发方式、交付物),不讲实现内幕;harness 概念清零。

验证

  • 安装测试(新位置复测):skill 从 community/ops 软链就位(629 文件)、6 subagent 就位、AGENTS.md marker 块合并、引用重写、零占位符残留、幂等重装全部通过
  • QUICKSTART 两个入口冒烟通过:极简提示词入口 + 多 agent 模式入口均按文档步骤走通
  • install.test.js:60 pass,无劣化(community 插件不入官方插件清单,existing 断言不受影响)
  • pre-commit:本 PR 21 个文件全 hooks 全绿
  • e2e(cannbot 通路):sigmoid 提示词复跑(cannbot CLI + dsv4.1-flash),32 分钟,与 gym 基线(PR#816 直连,22 分钟)逐项对照无回归——触发、skill 加载、check.py 静态检查 0 违规、kernel 实现、打包 whl、官方评测链路(npu:12 + msprof + 清 L2 冷启动)、报告三件套
  • 遗留:上板性能验证需 A5 环境(本机 910B 为 A3,端到端跑到环境检查阶段干净退出为预期行为;gym 基线同受此限制,非迁移引入);skill 自带 checker 单测 18 个失败为缺 pypto 源码树的存量问题,与迁移无关

关联的Issue

cann/cannbot#99

关联 PR

  • 依赖:cann/cannbot-skills!1499(plugin-install.json 内联声明的 cannbot-skills master community/ops/pypto-pro-kernel 合入后方可安装)
likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for 李俊谕's contribution.)
李俊谕李俊谕
Oct 23 Created pull request, commit 403baf3b
李俊谕李俊谕
Oct 23 Associated issue: [Requirement|需求建议]: 新增 pypto-pro-op-orchestrator 官方插件 —— PyPTO-Pro 算子开发 kernel-only 直调模式接入
CANN-robotCANN-robotCollaborators
Oct 23 Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
Oct 23 Comments:

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 ✅ wangzheng97, 金炯 (2/2) ✅ wangzheng97 (1/1)

💡 Tip:

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

CLA Signature Pass

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

likedislike
CANN-robotCANN-robotCollaborators
Oct 23 Set qq_37913898,w00934874,dengguojie,jon_jin,rxtfeng,songkai111,xutianze,pingchuantang,hanrui22,wangzheng97,hedi0515,benwallace52,linghuis,OpSphere,zihengwang2 as approver
CANN-robotCANN-robotCollaborators
Oct 23 Set qq_37913898,w00934874,dengguojie,jon_jin,rxtfeng,songkai111,xutianze,pingchuantang,hanrui22,wangzheng97,hedi0515,benwallace52,linghuis,OpSphere,zihengwang2 as approver
李俊谕
李俊谕
Oct 23 Comments:

compile

likedislike
李俊谕李俊谕
Oct 23 Pre merge succeeded (commit_id: 05131138de5b30df95310e117b986dd22fe3fc3d)
CANN-robot
CANN-robotCollaborators
Oct 23 Comments:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robotCollaborators
Oct 23 Added label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
Oct 23 Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
Oct 23 Added label: ci-pipeline-passed
wangzheng97
wangzheng97Collaborators
Oct 23 Comments:

/lgtm
/approve

likedislike
CANN-robotCANN-robotCollaborators
Oct 23 Added label: approved
jon_jin
jon_jinCollaborators
Oct 23 Comments:

/lgtm

likedislike
CANN-robotCANN-robotCollaborators
Oct 23 Added label: lgtm
CANN-robotCANN-robotCollaborators
Oct 23 Merged pull request