| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
feat(ascendc-ops-perf-evolution): init 自动获取 skills/knowledge + agent 路径修复 + 4.4.2 failure_pattern 自动沉淀 Co-authored-by: chenshushu2020<chenshushu@huawei.com> # message auto-generated for no-merge-commit merge: !275 merge feat/failure-pattern-autostage into master feat(ascendc-ops-perf-evolution): init 自动获取 skills/knowledge + agent 路径修复 + 4.4.2 failure_pattern 自动沉淀 Created-by: sijiaali Commit-by: chenshushu2020 Merged-by: cann-robot Description: ## Summary 本 PR 合并原 #233 与 #275: ### 1. init / agent 路径链(原 #233) - init.sh 自动获取 cannbot-skills / cannbot-knowledge,支持 --knowledge-root / --skills-repo / --offline,并写入 .cannbot/knowledge.env - agent 路径与 skill 白名单对齐:.claude/skills/... 引用、tilelang2ascend-translator、AGENTS/partial/ops-evo 路径修复 ### 2. 4.4.2b failure_pattern 自动沉淀(原 #275) - strategy_infeasible / 重复 impl_error / impl_verdict_infeasible 失败自动生成 failure_pattern 卡 - 两级查重(INDEX + 本地 staging/promoted)、F 编号、OKF 草稿、world_model/implementation_note 回写 - 运行期只写 .cannbot/knowledge-local/staging/;promote 后由 knowledge_local.py pr --kind failure_pattern --execute 自动复制到 failure_patterns/、同步 okf_compat.json 并重建 INDEX(依赖 cannbot-skills#1628) ## Validation - bash -n init.sh 通过 - lingxi-evo.md 代码围栏配对正常 - 样例 F 卡已验证 knowledge_local.py add --kind failure_pattern 与 pr --kind failure_pattern --execute - 原 #233 / #275 均曾 CI passed;合并后重新触发 CI See merge request: cann/cannbot!275 | 25 天前 | |
fix(workflow): resolve workspace paths before relative_to in batch dispatcher Co-authored-by: NUAAwqy<162230229@nuaa.edu.cn> # message auto-generated for no-merge-commit merge: !95 merge fix/issue-21-relative-workspace-root into master fix(workflow): resolve workspace paths before relative_to in batch dispatcher Created-by: NUAA_wqy Commit-by: NUAAwqy Merged-by: cann-robot Description: ## 描述 Running batch_dispatcher.py plan --workspace-root workspace (the documented relative-root invocation) crashed with an uncaught ValueError: compute_next_actions passed a relative workspace path to Path.relative_to() against the absolute PROJECT_ROOT, so the dispatcher exited before emitting a plan for any op. Resolve the workspace root, each discovered workspace, and PROJECT_ROOT before computing the relative output path. Absolute invocations are unchanged (resolve() is a no-op on already-absolute paths). Adds tests/test_batch_dispatcher_relative_root.py covering the documented relative-root invocation against a temp project tree (monkeypatched PROJECT_ROOT and LANES_STATE_DIR). Verified locally: the new regression test passes (1 passed) and py_compile passes for both files. pytest is not available in this environment, so the test was executed through a direct import harness with the same assertions. ## 变更类型 - [x] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] 🚀 性能优化 - [ ] 📝 文档更新 - [ ] 📋 其他 ## 关联的Issue Fixes #21 ## 测试 已完成的测试用例和场景: 1. 本地验证通过,具体方法见上方描述与 commit message 2. 改动最小且聚焦于该 Issue,不涉及其他逻辑 补充的UT用例:见 commit message / 描述中的验证说明(如仓内新增测试文件,已随本 MR 一并提交) ## 文档更新 NA ## 合入检查 - [x] 已阅读 CONTRIBUTING.md,commit message 含类型标签与 DCO 签名(Signed-off-by) - [x] 代码/文档遵循项目整体风格,改动最小且聚焦于该 Issue - [x] 已完成本地验证,验证方法见"测试"章节 See merge request: cann/cannbot!95 | 24 天前 | |
fix(dashboard): parse quoted profiling csv durations Co-authored-by: Ethan_Zou<tianjun.zou@foxmail.com> # message auto-generated for no-merge-commit merge: !103 merge fix/dashboard-quoted-profile-csv-20261007 into master fix(dashboard): parse quoted profiling csv durations Created-by: Ethan_Zou Commit-by: Ethan_Zou Merged-by: cann-robot Description: ## 当前版权规范修正 按仓库贡献规范及上游同类文件模板修正新增文件版权声明;当前唯一源提交 75eb0f6d210440bae097017649d4c2b6466b1f72。相对上一提交,本次只改版权声明行,所有其他代码及许可证文字逐字一致。原提交的 CI 结果保留为历史记录;当前 SHA 的新流水线需重新核对,不能用旧结果代替。 ## 描述 op_summary*.csv 的总 Duration 以前手工 split(','),含逗号的引号字段、 转义双引号或加引号的数值都会让时间错位或变成 0。 真实看板的配对 profiling 因 0 时间跳过有效性能结果。 改用已有标准库 csv.reader 解析表头与记录,复用原有 Duration 列选择、 过滤/转换和嵌套发现流程;无新增依赖或接口。 核心行为改动仅为: python rows = csv.reader(lines) headers = [h.strip() for h in next(rows)] # find the existing Duration column for parts in rows: # existing numeric conversion and summation 仓库原生 Ruff formatter 同时重排该大文件的存量格式, 两处既有 E741 comprehension 变量 l 改名为 line。 经过这一局部变量 alpha 归一,其余 99 个函数/类 AST 完全相同; 仅 _sum_duration_column 的 AST 改变行为。保留原有署名与许可。 ## 关联的Issue Fixes [#53](https://gitcode.com/cann/cannbot/issues/53)。 已评论 /assign @Ethan_Zou,创建 PR 前回读核实实际负责人。 ## 测试 在仓库根目录: bash python3 -m pytest -q plugins-community/collaborative-agent-kernel-evolution/skills/op-dashboard/tests/test_profiling_csv.py - 相同最终 7 项真实文件回归:未修改基线 4 failed、3 passed; 修复 7 passed、0 skipped。不是复制 parser 或 mock 数值。 - 完整真实 gen_dashboard.py --op-dir ... --extract-only 验证配对数据: ref/custom 为 20/10µs,实际 panels/perf/data.json 中 speedup=2; 原版缺少这些性能字段。 - 覆盖 quoted shapes、quoted headers/numbers、逗号/转义引号 op_name, 以及既有注释、空行、缺列、无效数值和排序后嵌套文件发现控制。 - 3 文件适用原生 pre-commit 全部 Passed;diff 检查通过。 OAT wrapper 留有 BSD sed 诊断;直接 OAT 2 个 Python 文件, 文件类型/许可头/许可兼容 0 问题,真实 Ethan_Zou 新文件署名 与 Huawei-only 版权名单不匹配 1 项。不改真实署名、许可或门禁。 仅 Host 标准库与实际 CLI/文件,不表示执行 NPU、msprof、TTK 或 LLM。 50 条所有状态 Issue、102 条所有状态 PR 及空尾页核对,无同一修复。 基于 master 7cf18452ce70aef05afae89197e918f17ee3ca14。 使用 AI 辅助调查、实现和验证。 ## 文档更新 op-dashboard 的 SKILL.md 补充 CSV 引号和既有忽略规则。 ## 类型标签 - [x] 🐛 Bug 修复 - [x] 🧪 测试用例 - [x] 📝 文档更新 ## 流水线故障排查 唯一源提交 75eb0f6d210440bae097017649d4c2b6466b1f72。创建后通过 commits API 核实数量并评论 /compile, 继续回查当前 SHA 的流水线;CI 修复 amend 合入同一提交, 只使用经回读核实的远端 SHA 作 force-with-lease 条件。 CI 首轮 CodeCheck 报告 6 项复杂切片冒号前空格;原生 Ruff 为复杂边界自动加空格。 已使用局部边界变量表达等价切片,95 个其他函数/类 AST 与首次提交相同, 68 组真实初版/修复版解析控制一致,7 项目标测试再次通过,原生 source hooks Passed。 文档与回归测试字节不变;未关闭或忽略任何检查。已 amend 合入唯一提交, 以回读核实的旧 SHA 作 force-with-lease 推送,新 SHA 与 commits 数量均已核实。 继续通过 /compile 重跑当前提交。 ## CI 修复轮结果 修复轮流水线 7aef7b22c44a40d08d875e55f95d7ffe 的 14/14 个任务均为 COMPLETED,包含 CodeCheck。回读 PR head 和 commits API,当前 SHA 75eb0f6d210440bae097017649d4c2b6466b1f72 仍为唯一源提交。 See merge request: cann/cannbot!103 | 24 天前 | |
feat(model-recommend-infer-optimize): 新增推荐模型推理整网优化社区插件 Co-authored-by: Z_Ling<zhangling136@huawei.com> Co-authored-by: fanzhaoyun001<fanzhaoyun1@hisilicon.com> # message auto-generated for no-merge-commit merge: !232 merge feat/community-recommend-infer-optimize into master feat(model-recommend-infer-optimize): 新增推荐模型推理整网优化社区插件 Created-by: fanzhaoyun001 Commit-by: fanzhaoyun001;Z_Ling Merged-by: cann-robot Description: ## 描述 #### 新特性 New Features **【推荐推理 model-recommend-infer-optimize】新增社区插件:推荐模型推理整网优化工作流** 推荐 / 搜索 / 排序 / 视觉编码类模型已在 NPU 上承载大量线上推理流量,但整网推理优化长期缺少统一工作流:手段散落在图模式、算子适配、并发、访存、kernel 各层,收益不可归因,精度回归靠人工记忆,profiling 口径不统一。本 PR 把这条链路固化为社区插件( plugins-community/,实验孵化阶段)。 **流程**:条目 0-14 —— 环境基线(依赖台账、按输入格式定执行基座)→ 模型结构与显存分析 → 单卡基线 → 并发与限核策略(只分析)→ **精度基线门禁** → 性能分析与四项专项(三表 + bound 判定)→ 分层优化(GE 图模式 / 既有算子与图适配含 FA 族 / 多线程与图并行 / 访存 / 融合规划 / Kernel 生成 / 自定义算子)→ 运行时诊断(贯穿,不占轮次)→ 回归验收与基线管理。 **双门禁**:任何改动合入前必须同时过精度门禁(标杆口径、全量输出、串行单并发、整型/bool 精确相等、浮点 allclose 且输出必须全 finite)与性能门禁(同卡 / 同 batch / 同线程数 / 同限核 / 同 CircleCount 与统计策略,改善须大于噪声带)。 **持续优化循环**:L1 选动作 → L2 执行(双门禁)→ L3 采集 → L4 深度分析 → L5 收益判定 → L6 终止检查 → L7 交付件同步。终止条件四选一:目标达成 / 连续 3 轮无收益 / 无动作 / 轮次预算用尽。workflows/scripts/loop_state.py 对此做机械强制(已终止、预算用尽、连续无收益达标 → 3;准入未过 → 4;对账不一致或终止标记矛盾 → 2)。 **目录职责划分** | 位置 | 内容 | | --- | --- | | 本仓 plugins-community/model-recommend-infer-optimize/ | 编排资产:primary agent、4 个 subagent(runner/analyzer/implementer/reviewer)、workflow + references + templates、hooks、tests、evals、内置 framework/GE_SESSION_DEMO | | cannbot-skills 仓 community/model/ | 18 个原子 Skill(model-recommend-*),由 plugin-sources.json 从 vendor/cannbot-skills 装配 | **Skill 迁移**:18 个 Skill 从插件内迁出到 cannbot-skills 仓 community/model/,命名统一为 model-recommend-*,marketplace 侧注册 model-recommend-skills(见 cannbot-skills PR #1566)。本插件 plugin-sources.json 改为 skillsRepository: vendor/cannbot-skills + 18 条 community/model/model-recommend-*。 **安装器配套改动(1 行)**:script/bin/cannbot.js 资产白名单补 framework/。不加这一行,经 cannbot install 装出来的插件缺少内置执行框架,onnx 路径不可用。仓内目前仅本插件有该目录,属纯增量。 **安装安全(依据提交前检视整改)**:AGENTS.md / CLAUDE.md 改为 marker 块合并并在追加前备份;settings.json 改为按 JSON 合并(保留其它插件 hooks 与用户自定义键),解析失败不动原文件;hook 命令路径加引号;健康检查断言 hooks 确实注册、workflows/ 存在。 **前置防护 hooks**:onnx 原图零改动、状态文件 primary 独占写、只读角色越界保护;已明确声明这是前置防护而非沙箱(只挂 Edit|Write|MultiEdit,Bash 写入不受控)。 ## 关联的Issue 关联 Issue #120 配套 cannbot-skills Issue #937 / PR #1566(18 个 Skill 落地 community/model/) ## 测试 | 项 | 结果 | | --- | --- | | tests/test_pre_tool_use.py | 19 例通过(含 tmp/../model.onnx、Windows 反斜杠绕过、.py/.pt/.sh 越界、畸形载荷 fail-open) | | tests/test_loop_state.py | 12 例通过(正常 / 裸数组 ledger / ledger 领先 / 重复轮次 / history>iteration / 缺号 / 终止标记矛盾 / 终止无原因 / 准入未过 / 预算用尽 / 连续无收益 / 已终止) | | init.sh 安装(技能源指向 cannbot-skills community/model/) | opencode / claude 通过:18 Skills + 4 Agents + 框架复制到工程根;claude 额外断言 hooks 已注册 | | init.sh 缺技能源 | 明确报错 skills not found: 需要 vendor/cannbot-skills 子模块(community/model)…,不再静默失败 | | plugin-sources.json 路径存在性 | 18 条全部命中 cannbot-skills community/model/ | | 相对链接 / JSON / bash -n / py_compile | 全部通过 | | 技能名一致性 | 插件文档与 agent 声明中引用的 18 个 model-recommend-* 全部存在,无旧名残留 | **未做(受限于子模块)**:assemblePlugins 打包需要 vendor/cannbot-skills 子模块,当前 pin(f305e20)尚不含 community/model/,需 cannbot-skills PR #1566 合入后 bump 再验证;真机(Ascend 910B)性能与精度数据也需合入后补测。 ## 文档更新 - 新增插件内 quickstart.md(8 种客户端安装、框架落位、常见问题) - docs/community-plugins.md:新增社区插件表行与专章 - CHANGELOG.md:新增社区插件条目 + 安装器行为变更说明 - OAT.xml:framework/ 第三方 Apache-2.0 豁免路径改为 plugins-community/ - README.md / plugins-official/README.md:移除官方插件表中的本插件 ## 类型标签 - [x] 🌟 新特性 - [ ] ✨ 特性增强 - [ ] 🐛 Bug 修复 - [ ] ⚡ 性能优化 - [ ] 🧪 测试用例 - [ ] 📦 构建 / CI - [ ] 📝 文档更新 - [ ] 🔧 配置变更 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] ♻️ 代码重构 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: ## 评审须知 1. **本 PR 取代 #230**:#230 是把插件加到 plugins-official、Skill 内嵌;本 PR 改为社区插件 + Skill 外置到 cannbot-skills,两者只能取一,建议关闭 #230。 2. **两个仓的联动已完成**:cannbot-skills#1566 已合入(squash 为 b4baf2a,上游 master 已含 community/model/ 18 个 Skill);本仓已把 vendor/cannbot-skills bump 到同一提交,并注册 marketplace 包 model-recommend-skills(git-subdir + 同 sha + 18 条 skills),插件 plugin.json 增加 dependencies。实测 node script/scripts/assemble-plugins.js 产出 dist/plugins/model-recommend-infer-optimize/skills 18 个目录、manifest.skills 18 条、SKILLS_LICENSE 与 framework/ 齐全(提交 77ca6c6)。 3. **内置框架失败路径已修,但未编译验证**:提交前只读检视发现的 framework 缺陷(陈旧输出过精度门禁、屏障死锁、异步超时 use-after-free、sweep 失败路径等)已由 4f9ab2a(并发/超时/原子落盘)与 734334b(sweep 设备映射)修复,见下方「实现分工」。C++ 侧未在本 PR 环境编译运行,仍需在 M300 上做失败注入复核(warmup 挂住看是否超时硬退出、执行期 kill 后确认无残留 .complete)。 4. **pytorch/HF 路径为实验性**:条目 1/2/3/5 目前只有 onnx/GE 实现,pytorch 侧需用户自备等价脚本,已在主工作流「能力边界」段说明。 ## 实现分工(W1–W10 修复) M300 实跑反馈(W1–W10)由两侧并行落地,改动层次不同、互不重复;合入后已逐项复核无功能重叠。 | 层次 | 提交 | 作者 | 内容 | | --- | --- | --- | --- | | 工具 / 脚本层 | 26d21a4 e353943 113d289 a3fcb68 734334b | fanzhaoyun001 | loop_state.py(delta_pct 兼容对象、schema v2 与 migrate、findings→next_actions 覆盖告警)、verify.py --gate 逐输出精度门禁、prepare_input/prepare.sh --input-shape(禁止静默填 1)、run.sh --batch 备份/--restore/--dry-run、check_provenance.py 基线指纹、sweep.py 设备占用映射 | | 框架 / 并发层 | 4f9ab2a | Z_Ling | inference_acl 共享回调生命周期与屏障可中止、warmup/执行超时与硬退出、HandleOutputs 逐项写盘校验 + 原子 .complete、main 失败路径统一 stop/join/finalize、verify.py --run-id 输出新鲜度、inspect_config 输入输出双侧交叉校验 | 三处交汇点的最终形态(同一功能只保留一份实现): - **精度门禁**:逐输出阈值解析(load_precision_gate / gate_threshold,优先级 outputs[name] > default > --rtol/--atol)负责「阈值」;.complete + --run-id 负责「这份输出是不是本轮产生」。两者互补,职责不重叠。 - **batch 回退**:run.sh --batch 对外提供备份 / --restore / --dry-run;sweep.phase_batch 在内部对 shape_config / io_config / batch_list.json 做快照并在 finally 恢复,供 sweep 自用。两条路径独立生效。 - **设备占用判断**:合并冲突处保留 (npu, chip) = divmod(device, dies_per_npu) 的映射(支持 SWEEP_DIES_PER_NPU、两种 npu-smi 进程表排布、返回码检查、超时即终止本轮),另一侧的 npu//2 / chip%2 意图已包含在内。 验证口径:该基线上 7 套自测共 68 项全绿(loop_state 17 / pre_tool_use 19 / init_sh 6 / precision_gate 9 / provenance 5 / run_batch 3 / sweep_device_check 9);C++ 侧未编译,需在 M300 上做失败注入复核。 See merge request: cann/cannbot!232 | 30 天前 | |
fix(model-train-precision-diagnose):完善工作流 todo list Co-authored-by: MissingPompeii<guohao120@huawei.com> # message auto-generated for no-merge-commit merge: !42 merge fix/model_train_plugin into master fix(model-train-precision-diagnose):完善工作流 todo list Created-by: MissingPompeii Commit-by: MissingPompeii Merged-by: cann-robot Description: <!-- 感谢您的合入申请! --> ### 当前PR是否有AI参与: [x] 否 [ ] 是 __1. AI Agent 平台: __2. AI 模型: __3. Prompt上下文 : ### PR功能描述 / 为什么需要这个合入**: 完善工作流添加todo list,可视化agent所处分析阶段 ### 该PR关联的issue https://gitcode.com/cann/cannbot/issues/10 ## 改动类型 / Change Type - [ ] Bug 修复 / Bug Fix - [ ] 新功能 / New Feature - [x] 性能优化 / Performance - [ ] 代码重构 / Refactoring - [ ] 文档更新 / Documentation - [ ] 测试相关 / Test - [ ] 其它 / Other ## 测试信息 / Testing <!-- 简要测试说明或关键结果 / Brief test description or key results --> - [ ] 单元测试通过 / UT passed - [ ] 集成测试通过 / ST passed - [x] 人工验证通过 / Manual verified ## 检查清单 / Checklist - [x] 代码符合规范 / Code follows style guide - [ ] 测试添加并通过 / Tests added and passed - [ ] 文档已更新 / Docs updated if needed - [x] 无硬编码敏感信息 / No secrets hardcoded - [x] 提交信息符合规范 / Commit message follows convention See merge request: cann/cannbot!42 | 2 个月前 | |
feat(ops-qa-suite): 迁移 QA 检测套装插件入口与 .opencode 覆盖层 Co-authored-by: yanhf<yanhaifeng5@huawei.com> # message auto-generated for no-merge-commit merge: !295 merge migrate/ops-qa-suite into master feat(ops-qa-suite): 迁移 QA 检测套装插件入口与 .opencode 覆盖层 Created-by: yanhf Commit-by: yanhf Merged-by: cann-robot Description: ## 描述 将 cannbot-skills 仓 plugins-community/ops-qa-suite 整体迁入 cannbot。该插件是 **.opencode 项目覆盖层形态**的社区 Plugin:commands / scripts / templates / config 与 11 个内置 Skill 为紧耦合整体(技能文本以项目根相对路径引用 .opencode/scripts/repo_detector.py 等共享资产),故按**整体自包含**方式迁移,不做技能拆分。 - 迁入 AGENTS.md 编排入口、README、docs、.gitignore 与完整 .opencode 覆盖层(11 个内置 Skill、7 个命令、共享脚本/模板/配置)。 - 新增插件 manifest(.claude-plugin/plugin.json)与 plugin-sources.json:cann-error-code-standard、ops-error-code-remediation、gitcode-toolkit 三个共享 Skill 由 cannbot-skills 仓维护,于**现有子模块基线 fa084f2c** 引用(三技能在该基线均已存在),**无需子模块前移**;preserveSkillInvocationPolicy: true 保持 gitcode-toolkit 的调用策略。 - 新增 overlay 安装器 init.sh(仅 project 级——插件以目标项目为运行单元):.opencode/{commands,scripts,templates,config} 软链至目标项目,14 个 Skill 按工具落位(opencode → .opencode/skills,与源设计一致;claude → .claude/skills);共享 Skill 依「发布包 skills/ → --skills-repo → vendor/cannbot-skills」顺序解析,缺失时写入目标前退出。 - AGENTS.md frontmatter 补 name 字段满足统一安装器契约;源插件内指向 skills 仓根的 3 个共享 Skill 软链**不入库**(安装时物化),满足 marketplace 社区插件软链不得外越插件目录的既有约束。 - marketplace 新增 ops-qa-suite 插件条目(社区插件无 bundle 依赖,参照 ascendc-ops-perf-evolution 形态);docs/community-plugins.md 新增清单行与章节。 - 门禁合规修复(torch-compile 迁移"补齐许可证头"同类):fix_links.sh 补 CANN 许可证头;全树尾随空白/末尾换行清理;ruff 格式化 7 个 py 文件;repo_discovery.py 移除未用导入、scan_links.py 歧义变量名重命名;Backgroud→Background 拼写修正×5。除上述机械修复与规约适配外,内容与源仓逐字节一致。 插件目录外的变更限定在 2 个位置:.claude-plugin/marketplace.json(新增插件索引条目)与 docs/community-plugins.md(新增清单条目)。vendor/cannbot-skills 子模块指针无变更。统一安装器路径安装 3 个共享 Skill 与编排上下文,.opencode 覆盖层经 init.sh 补齐(README 已写明)。 配套收尾:本 PR 合入后,cannbot-skills 仓将另提清理 PR 删除 plugins-community/ops-qa-suite 旧副本(参照 SHMEM !1652 模式)。 ## 关联的Issue [#165](https://gitcode.com/cann/cannbot/issues/165) ## 测试 - npm --prefix script run build:plugins:全部 20 个插件组装成功,本插件收集 3 个共享 Skill,.opencode 覆盖层完整进入发布包。 - node --test plugins-community/ops-qa-suite/tests/install.test.js:20/20 通过,覆盖源码及发布包在 opencode/codex/claude/trae/dsh 下安装与重装、overlay 覆盖层落位与字节核对(11 内置 + 3 共享)、独立安装冲突保留、缺技能预检不触目标、显式 --skills-repo、无依赖失败指引、global 拒绝与自包含发布包。 - node --test plugins-community/shmem-ops-generator/tests/install.test.js:19/19 回归通过。 - npm --prefix script test:全量 393 用例通过。 - python tests/lib/dependency_validator.py .:24 errors / 47 warnings,与 master(a8021fb)逐条一致,新增 0 条、删除 0 条;development Team 15→16 为本插件登记。 - bash tests/run-gates.sh:dependency-graph 门禁通过。 - pre-commit(尾随空白 / 末尾换行 / yaml / JSON / 合并冲突 / 私钥 / ruff / codespell / OAT)对本 PR 全部 62 个文件通过。 - git diff --check 通过,PR 为 1 次提交。 未运行依赖 Ascend NPU 环境的真实算子仓扫描实测。本次检查范围为插件迁移、安装、打包与门禁合规。 ## 文档更新 - 更新 docs/community-plugins.md:新增 ops-qa-suite 清单条目与安装章节。 - 插件 README 新增「安装」章节(子模块检出、init.sh 用法、统一安装器说明与覆盖层关系)。 ## 类型标签 - [x] 🌟 新特性 - [ ] ✨ 特性增强 - [ ] 🐛 Bug 修复 - [ ] ⚡ 性能优化 - [ ] 🧪 测试用例 - [ ] 📦 构建 / CI - [x] 📝 文档更新 - [ ] 🔧 配置变更 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] ♻️ 代码重构 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/cannbot!295 | 24 天前 | |
feat(pypto-pro-op-orchestrator): 新增 PyPTO-Pro 算子开发编排插件 Co-authored-by: hongjun_nju<hongjun6@hisilicon.com> # message auto-generated for no-merge-commit merge: !204 merge feat/pypto-pro-op-orchestrator-community into master feat(pypto-pro-op-orchestrator): 新增 PyPTO-Pro 算子开发编排插件 Created-by: lijunyu_111 Commit-by: hongjun_nju Merged-by: cann-robot Description: ## 描述 新增 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 合入后方可安装) See merge request: cann/cannbot!204 | 1 个月前 | |
feat(shmem): 迁移插件入口并复用 cannbot-skills 中的 Skills Co-authored-by: guomc9<guomingce@huawei.com> # message auto-generated for no-merge-commit merge: !276 merge migrate/shmem-ops-generator-v2 into master feat(shmem): 迁移插件入口并复用 cannbot-skills 中的 Skills Created-by: guomc9 Commit-by: guomc9 Merged-by: cann-robot Description: ## 描述 将 cannbot-skills 仓 plugins-community/shmem-ops-generator 中的非 Skill 插件内容迁入 cannbot,插件入口与 Skill 能力分别维护。 [cannbot-skills PR !1637](https://gitcode.com/cann/cannbot-skills/merge_requests/1637) 已合入 master。本 PR 已按合入提交 a5e972405345c6e0964d970a7fce82f9f6a244eb 复核并固定 Skill 来源;10 个 SHMEM Skill 位于 cannbot-skills 仓的 community/ops/shmem-ops-*/目录中。 - 迁入插件 manifest、AGENTS、README、独立安装脚本和忽略配置;两份原 skills/README.md、skills/skill-format-guide.md 随插件迁入 docs/README.md、docs/skill-format-guide.md,不放入 Skill 仓或任何 Skill 目录;新增 plugin-sources.json 及插件专项安装测试。 - cannbot 插件源码不携带 skills/、references/、templates/ 的副本;原来复制进本分支的 skills/ 已移除,其中 73 个 Skill 文件由 cannbot-skills 仓维护,两份非 Skill 说明文档迁入本插件 docs/。 - plugin-sources.json 声明 10 个 community/ops/shmem-ops-* 路径;源码安装从 Skill 仓链接,发布包组装时收集 Skills,保持 Skill 字节和调用策略不变。 - marketplace 的 shmem-ops-skills 通过 git-subdir 引用 https://gitcode.com/cann/cannbot-skills.git 的 community/ops,shmem-ops-generator 继续声明对该 Skill 包的依赖。 - 独立安装脚本支持子模块中的 Skill、发布包自带 Skill,以及 --skills-repo <本地仓路径>;缺失依赖时在写入目标前退出。保留入口冲突保护、部分失败返回非零和未知参数校验。 - 更新安装命令和文档链接。统一安装器源码安装可默认跟随 Skill 仓 master;如需使用已检出的固定子模块版本,可显式追加 --skills ./vendor/cannbot-skills。 插件目录外的变更限定在以下 3 个位置: 1. .claude-plugin/marketplace.json:新增 SHMEM 插件/Skill 包索引;由于子模块版本前移,同步 9 个已有共享 Skill 包的 SHA,以满足 marketplace 与子模块 Gitlink 一致的现有约束。这些包的名称、路径和 Skill 清单均未改动。 2. vendor/cannbot-skills:从 c35e9609c758bf605fb7e651b915b8af841626a8 更新到 cannbot-skills master 的 !1637 合入提交 a5e972405345c6e0964d970a7fce82f9f6a244eb,使全新检出和打包能读取新目录;已验证该 SHA 可直接从配置的上游 URL 拉取。 3. docs/community-plugins.md:新增 SHMEM 插件清单条目。 ## 关联的Issue 无。已合入的前置 PR:[cannbot-skills !1637](https://gitcode.com/cann/cannbot-skills/merge_requests/1637)。 ## 测试 - npm --prefix script run build:plugins:全部 18 个插件组装成功,SHMEM 收集 10 个 Skill。 - node --test plugins-community/shmem-ops-generator/tests/install.test.js:19/19 通过,覆盖源码及发布包在 opencode/codex/claude/trae/dsh 下安装与重装、入口保留、源目录链接、独立安装冲突、缺失依赖预检、显式 Skill 仓和自包含发布包。 - 测试逐字节核对 10 个 Skill 的全部文件:原有 73 个 Skill 文件与 master 的 !1637 合入提交逐字节一致,组装包及已安装 Skill 与源文件一致;cannbot 插件目录没有 Skill 副本。 - 按最新 Skill 仓 master 校验所有 marketplace 共享 Skill 路径有效;SHMEM 的 marketplace、plugin-sources 和安装白名单均对应同一组 10 个 Skill,默认源码安装(不传 --skills)验证成功。 - node --test --test-name-pattern='Claude marketplace matches' script/test/install.test.js:现有 marketplace 与官方插件及子模块版本一致性测试通过。 - 全仓 python tests/lib/dependency_validator.py . 仍报告原有 27 个 error、54 个 warning;逐条与迁移前结果对比,新增 0 条、删除 0 条,SHMEM 无新增问题。 - 对本 PR 文件执行适用的 pre-commit-hooks v4.6.0、codespell v2.4.1 和基于本仓 OAT.xml 的 oat-py v1.0.3,全部通过。 - 与当前上游 master 进行 Git 合并预检,无冲突。 未运行依赖 Ascend NPU/SHMEM 环境的算子编译、正确性或性能实测。本次检查范围为插件迁移、依赖索引、安装及打包。 ## 文档更新 - 更新插件 README 中的双仓分工、子模块初始化、安装命令、文档链接和 !1637 已合入的版本说明。 - 两份原工具链说明和编写规范位于插件自身 docs/;跨仓 Skill 引用指向固定版本,文档随插件源码及发布包交付。 - AGENTS 通过客户端已发现的 shmem-ops-dev/SKILL.md 引导工作流,避免安装后引用未交付的根目录说明文档。 - 在 docs/community-plugins.md 增加 SHMEM 插件索引。 ## 类型标签 - [x] 🌟 新特性 - [ ] ✨ 特性增强 - [ ] 🐛 Bug 修复 - [ ] ⚡ 性能优化 - [ ] 🧪 测试用例 - [ ] 📦 构建 / CI - [x] 📝 文档更新 - [x] 🔧 配置变更 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] ♻️ 代码重构 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: ## 流水线故障排查 > **UT_Test 未通过?** > 请在下方流水线表格的 **UT_Test** 行,点击右侧的 >>>>> 下载 **CANNBot-skills UT 测试报告**(HTML 格式)。 > 打开报告后,展开页面中的「UT Test 失败修复指南」,复制其中的提示词并粘贴给 Agent,Agent 将根据日志自动定位并修复问题。 See merge request: cann/cannbot!276 | 26 天前 | |
feat(tilelang2ascendc): TileLang 验证通过后走泛化转译交付 Co-authored-by: wzz<wenzhongzhen3@huawei.com> # message auto-generated for no-merge-commit merge: !123 merge fa-generalizer-gate into master feat(tilelang2ascendc): TileLang 验证通过后走泛化转译交付 Created-by: gcw_jgaxEIUq Commit-by: wzz Merged-by: cann-robot Description: ## 描述 #### 新特性 New Features - 【TileLang 转译】新增 workflows/kernel-generalization.md 泛化转译指导:当复杂算子的 TileLang 验证通过时,基于已验证的生成结果完成运行期参数化,并交付标准 AscendC kernel 工程。 - 【算子生成 tilelang2ascendc-ops-generator】增加复杂算子转译门禁:evaluate_tilelang.sh 本轮验证 PASS 时进入泛化转译路径;其他情况保持既有 tilelang2ascend-translator 路径。 - 【工作流】在 Agent、任务模板与工作流文档中同步泛化转译路由,失败修复阶段保持本轮已选转译路径。 ## 关联的Issue (https://gitcode.com/cann/cannbot/issues/63) ## 测试 - 通过 bash -n plugins-community/tilelang2ascendc-ops-generator/init.sh - 通过 git diff --check - 未执行 NPU 运行时验证。 ## 文档更新 - 更新插件 AGENTS、Kernel Generator Agent 和任务工作流模板。 - 新增泛化转译工作流指导。 ## 类型标签 - [x] 🌟 新特性 - [ ] ✨ 特性增强 - [ ] 🐛 Bug 修复 - [ ] ⚡ 性能优化 - [ ] 🧪 测试用例 - [ ] 📦 构建 / CI - [x] 📝 文档更新 - [x] 🔧 配置变更 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] ♻️ 代码重构 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: ## 流水线故障排查 > **UT_Test 未通过?** > > 请在下方流水线表格的 **UT_Test** 行,点击右侧的 >>>>> 下载 **CANNBot-skills UT 测试报告**(HTML 格式)。 > 打开报告后,展开页面中的「UT Test 失败修复指南」,复制其中的提示词并粘贴给 Agent,Agent 将根据日志自动定位并修复问题。 See merge request: cann/cannbot!123 | 27 天前 | |
fix: parse nested CLI stream deltas without replaying messages Co-authored-by: Ethan_Zou<tianjun.zou@foxmail.com> # message auto-generated for no-merge-commit merge: !86 merge docs/cannbot-stream-json-nested-deltas-20261002 into master fix: parse nested CLI stream deltas without replaying messages Created-by: Ethan_Zou Commit-by: Ethan_Zou Merged-by: cann-robot Description: ## 描述 支持嵌套 stream_event 的文本和 thinking 增量,保持输出顺序,并避免完整 assistant 消息重复输出已展示的内容。 本次将原 PR 正常重整到当前 master,解决 log_parser.py 的实际冲突:沿用上游 _handle_assistant(message) 接口,合并增量解析和去重逻辑,保留旧事件与工具结果处理。原有 8 项回归测试的内容保持不变。子进程输出前缀使用具名切片索引,兼容 Ruff 格式化与 CodeCheck 的 E203 检查。 ## 关联 Issue - [#38](https://gitcode.com/cann/cannbot/issues/38) ## 如何测试 同一远端 DevEnvC_rN2D6,Ubuntu 20.04 aarch64、Python 3.11.4;实际安装 CANN 9.0.0。本次执行 Host 解析器和完整 CLI 入口,没有执行模型或 NPU。 - 将原 PR 的同一套 8 项测试运行于未修改目标基线:6 失败、2 通过;候选及干净提交树均 8 通过。 - 真实 log_parser.py CLI 的 6 个场景:基线 4 通过、2 失败;候选及干净提交树均 6 通过,包含增量、thinking、工具顺序、旧事件、完整消息与参数错误路径。 - 官方对应 E203 规则的本地复现由修复前 2 条变为修复后 0 条;两个实际变更文件通过原生 pre-commit;OAT 实际扫描这两个文件,适用检查为 filetype、license、copyright。 - 单提交、作者与提交者身份、干净工作树、正常 Git/LFS 推送以及完整 bundle 的独立恢复和 git fsck 均已核验。 当前目标:42d62f162366455a0f23ccbfecaaa9cece4f7855。 当前唯一源提交:e587d855b1193799cf07113388065d240fe4a781。 当前源[流水线 #727](https://gitcode.com/CANN/cannbot/actions/runs/ace52fde6ccb4dd796f62027bb807c7b)的实际 checkout 为 c43cbcdd22e2b716a9fe881d23def7a0e74c37bc,双亲已核对包含上述当前源及目标;收尾任务于北京时间 2026-11-01 03:18:57 结束。CodeCheck 实际返回 pass,当前报告未解决 0、已忽略 0。 Static_Vet 日志明确记录 skillspector SKIPPED、人工 CI_DEGRADE,该检查未实际执行。当前尚未形成全部适用检查实际执行通过的完整证明,不声称全 CI 通过。 ## 类型标签 - [x] Bug修复 <!-- maintenance-20261101-source-e587d855 --> See merge request: cann/cannbot!86 | 25 天前 | |
feat(plugins-community): 迁移 triton-optimizer 插件(Triton Ascend NPU 算子优化与转换工作流) Co-authored-by: djwithx1<djwithx1@gmail.com> # message auto-generated for no-merge-commit merge: !169 merge migrate/triton-optimizer-plugin into master feat(plugins-community): 迁移 triton-optimizer 插件(Triton Ascend NPU 算子优化与转换工作流) Created-by: midwinter1993 Commit-by: djwithx1 Merged-by: cann-robot Description: ## 描述 将 triton-optimizer 插件从 cannbot-skills 仓整体迁移到本仓 plugins-community/,并对齐本仓插件目 录契约,使其接入统一安装器(cannbot install)与 npm 发布流程。 #### 新特性 New Features - 【社区插件 plugins-community】【triton-optimizer】新增插件:Triton Ascend NPU 算子优化与转换工作流 。优化入口 triton-npu-optimize 按 canonical baseline + 多轮 round 迭代,经正确性与性能门禁推进;转换 入口 triton-npu-convert 以 spec-first 方式将 PyTorch 算子转换为 Triton Ascend NPU 实现并完成验证。16 个 triton-npu-* Skills 全部自包含在插件 skills/ 目录(2 个入口 Skill + 14 个支撑 Skill,覆盖状态管 理、baseline 准备、测试/benchmark 生成、run-eval、profiling、IR 与编译器源码分析、优化 pattern 知识库 、修复指导等),并附带 workflow 状态 hooks(.helix/ 运行态目录,SessionStart 引导 + PreToolUse 防护 ,仅 Claude Code 生效)。 - 【安装器适配】补齐插件契约文件:.claude-plugin/plugin.json manifest、 plugin-sources.json(skills: [] 全自包含,源码安装不依赖 vendor submodule)、init.sh 薄适配器( 委托 script/bin/source-plugin-init.sh);插件自带 LICENSE(CANN 2.0)。 #### 问题修复 Bug Fix - 【统一安装器 script】修复 source-plugin-init.sh 在 macOS 自带 bash 3.2 下因 set -u 展开空数组 "${SKILLS_ARGS[@]}" 报 unbound variable 的问题,该问题导致所有插件的源码 init.sh 入口直接失败;改用 ${SKILLS_ARGS[@]+...} 条件展开兼容旧版 bash。 ## 关联的Issue 无 ## 测试 - 源码安装冒烟(bash init.sh project <tool> <target>): - Claude Code:16 个 skills 软链至 .claude/skills/;hooks 拷贝至 .cannbot/plugins/triton-optimizer/hooks/ 并合并进 .claude/settings.json(${CLAUDE_PLUGIN_ROOT} 正确替换为绝对路径);CLAUDE.md 注入 cannbot:triton-optimizer 标记块;cannbot-plugin.json 注册表 写入正确 - OpenCode:16 个 skills 安装至 .agents/skills/,hooks 按预期跳过 - 重复安装幂等(二次执行无报错、无重复 hook 注册) - npm 打包:单独调用 assemblePlugins 组装本插件通过(16 skills 拷贝、SKILLS_LICENSE 落盘、manifest skills 清单生成) - 仓库测试:node --test test/*.test.js 失败集与 master 基线逐一 diff **完全一致**(107 个均为既有 失败,主要为 macOS /var→/private/var 符号链接导致的路径断言,以及 ops-direct-invoke 引用的 cannbot-dsl-env-check 在 submodule 锁定 commit 中不存在导致的 build:plugins 失败),本 PR 零新增失 败 ## 文档更新 - 新增 plugins-community/triton-optimizer/quickstart.md:安装(npm 统一安装器 / 源码 init.sh)、安 装内容说明、使用方式、验证与更新 - 新增 plugins-community/triton-optimizer/README.md(随迁移带入) - 更新 docs/community-plugins.md:社区插件清单增加 triton-optimizer 条目及介绍小节 ## 类型标签 - [x] 🌟 新特性 - [ ] ✨ 特性增强 - [x] 🐛 Bug 修复 - [ ] ⚡ 性能优化 - [ ] 🧪 测试用例 - [ ] 📦 构建 / CI - [x] 📝 文档更新 - [ ] 🔧 配置变更 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] ♻️ 代码重构 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/cannbot!169 | 1 个月前 | |
迁移 CANNBot 插件编排与交付仓库 Co-authored-by: chendunyang<chendunyang1@huawei.com> # message auto-generated for no-merge-commit merge: !1 merge migration/import-cannbot-test into master 迁移 CANNBot 插件编排与交付仓库 Created-by: qq_37913898 Commit-by: chendunyang Merged-by: cann-robot Description: ## 迁移说明 将 CANNBot 插件编排、交付能力和静态插件门户迁移至 cann/cannbot。 ## 主要内容 - 导入官方插件、统一安装器和 npm 发布工程; - 将算子测试插件切换为 ascendc-st-design,对应 ops/ascendc-st-design Skill,支持参数定义、测试因子、约束分析及 L0/L1/L2 ST 用例与覆盖报告; - 引入 vendor/cannbot-skills submodule,通过 gitlink 锁定可复现的 Skill 版本; - 支持同一项目安装多个官方插件,独立管理指令区块和安装记录; - 为组装包和安装目标随附插件与 Skills 许可证,明确 npm 混合许可证边界; - 增加发布前完整测试和实际 tgz/npm-bin smoke test; - 补齐 npm 新仓元数据、Skills 显式更新命令、HTTPS 插件链接和发布文档; - 纳入静态网站,更新算子测试卡片、插件文档、中英文文案和五客户端安装命令; - 已发布 npm 1.3.2,后续从 cann/cannbot 发布和维护; - 将全部迁移内容整理为基于目标仓 master 的单个提交。 ## 验证 - cd script && npm test:40 项测试全部通过; - cd script && npm run pack:check:npm dry-run 打包通过; - cd script && npm run pack:smoke:实际 tgz 安装和 cannbot npm bin 验证通过; - cd script && npm run prepublishOnly:完整发布前门禁通过; - 从公共 npm registry 全新下载 1.3.0,OpenCode、Codex、Claude Code、TRAE、DSH 五种安装目标全部通过; - 公共包内 ascendc-st-design Python 生成脚本可启动; - 网站已部署至 https://cann.cannbot.cn,首页、ascendc-st-design 插件直达页和静态资源公网验收通过; - GitCode 服务端 Hooks 检查通过。 See merge request: cann/cannbot!1 | 2 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 25 天前 | ||
| 24 天前 | ||
| 24 天前 | ||
| 30 天前 | ||
| 2 个月前 | ||
| 24 天前 | ||
| 1 个月前 | ||
| 26 天前 | ||
| 27 天前 | ||
| 25 天前 | ||
| 1 个月前 | ||
| 2 个月前 |