Merged
feat(ops-registry-invoke): 需求分析内容验收——生成侧适配+五维度逐子项验收skill #239
景明Add on Oct 30
feat(ops-registry-invoke): 需求分析内容验收——生成侧适配+五维度逐子项验收skill #239
Merged
景明Add on Oct 30
景明
景明Collaborators
Oct 30

关联Issue https://gitcode.com/cann/cannbot/issues/151

描述

✨ 新特性

按《长尾算子验收标准规范》§5.1 需求规格说明书维度表,为 ops-registry-invoke 工作流新增需求分析内容验收 skill,并同步改造需求分析生成侧使文档真实覆盖 5.1 子项:analyze-requirements 产出后按五维度 33 个子项逐项验收 REQUIREMENTS.md,FAILED 只重做失败维度对应阶段后复验,PASS 才继续后续节点。

改动

1. 新增 skills/req-content-acceptance(160 行,disable-model-invocation,仅由工作流节点调用,自包含无外部文件依赖)

  • 五维度 33 个子项(B/M/C/S/R 编号):需求背景(3) / 模型场景(3) / 竞品算子(13,含实现 9 维与公式) / 存量算子(8,全新算子 greenfield 豁免) / 需求总结(6)
  • 三态判定:PASS 需章节号+原文片段证据;N/A 需文档明确写出的"无/❌"声明(空白≠不适用,空白=FAIL);任一维度整块缺失即 FAILED
  • 只判 PASS/FAILED 不改文档;证据只认 REQUIREMENTS.md 本身(research 中间件"做过"≠文档"写了");结果写入 requirements/req-content-acceptance.RECORD.md
  • 验收程序、证据规则、RECORD 格式、FAIL 分阶段重做路由全部内置于 skill,workflow 只挂门禁钩子

2. 生成侧适配 5.1(ops-requirement-analysis SKILL.md + output_template.md + formula_template.md)

  • §1 需求背景新增三项必写:支持的通路 / 既有算子支持度(A2) / 新旧兼容性(A5↔A2,含所有通路、kernel)
  • 竞品 code_design.md 新增接口调用示例与调用链路概述(接口→dispatch→OP定义→Kernel)
  • formula_template.md 报告结构新增 python 小算子参考实现(与 C13 子项对齐)
  • 33 个验收子项均有生成侧对应产出,FAIL 重做可修复

3. workflow 门禁(精简,仅 2 行/文件)(op-develop / requirements-spec 两处 analyze-requirements 节点)

  • approach +1 行:产出后加载验收 skill 并执行其完整验收程序(含 FAIL 重做路由,细节全在 skill)
  • acceptance +1 行:RECORD 落盘、33 子项判定全 PASS 或 N/A 且总判定 PASS(FAILED 即节点失败);verifier 独立对原文复核 RECORD 引用证据
  • out_of_scope 明确 RECORD 属本节点产物

4. skills.json native 清单登记 req-content-acceptance

测试

  • 两个 workflow YAML 解析通过(analyze-requirements approach 8 条 / acceptance 15 条)
  • 子项 ID 计数自洽:33 唯一子项 + 3 条 RECORD 示例,无重复
  • pre-commit 全绿(check-yaml / check-json / codespell / OAT)

基线 master:d6da36e

likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for 景明's contribution.)
景明景明Collaborators
Oct 30 Created pull request, commit 5a394969
景明景明Collaborators
Oct 30 Associated issue: [workflow-orchestrator] verify 会话无有效裁决时无限重验,max_retries/on_exhaust 失效
CANN-robotCANN-robotCollaborators
Oct 30 Added label: stat/needs-squash
CANN-robotCANN-robotCollaborators
Oct 30 Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
Oct 30 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
plugins-official/ops-registry-invoke ✅ zhangzijie, xutianze (2/2) ✅ zhangzijie (1/1)

💡 Tip:

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

CLA Signature Pass

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

likedislike
94 messages are collapsed here。 See more
CANN-robotCANN-robotCollaborators
25 days ago Added label: approved
xutianze
xutianzeCollaborators
25 days ago Comments:

/lgtm
/approve

likedislike
CANN-robot
CANN-robotCollaborators
25 days ago Comments:

The following users do not have permission to comment /lgtm or /approve on any module in this PR:
/approve: xutianze

likedislike
CANN-robotCANN-robotCollaborators
25 days ago Added label: lgtm
CANN-robotCANN-robotCollaborators
25 days ago Merged pull request