Open
feat: 新增 AGENTS.md 定义 PR 合规检视路由 #9
gcjokeAdd on Sep 21
feat: 新增 AGENTS.md 定义 PR 合规检视路由 #9
Open
Merged fromgcjoke/rmcpdfeat/agents-pr-review-routingintoopenUBMC/rmcpdmain
Merge blocked
Sep 21 Set WeliveWelove,DataSculptor,huanghan,aaronlee as approver
Sep 21 Added label: sig/sig-interface
openUBMC-robot
Sep 21 Comments:
Sep 21 Comments:
欢迎来到 openUBMC 社区
Hey @gcjoke , 感谢你对社区的贡献.
机器人使用手册
有关指令的使用,可以点击 说明文档 或 论坛 查看详情。开发人员可以在每个PR或Issue下方评论特定指令来触发机器人任务。您可以自助配置此仓库的 PR 合并规则,更多详情,请参阅机器人自助配置使用手册。
联系指引
有疑问可以联系 SIG: sig-interface ,
维护者是: @DataSculptor, @WeliveWelove, @aaronlee, @huanghan ,
优秀贡献者是: @PLUS_ONE .


Sep 21 Added label: openUBMC-cla/yes
Sep 21 Added label: needs-issue
openUBMC-robot
Sep 21 Comments:
Sep 21 Comments:
关联 Issue 通知
@gcjoke , 提交的PR需要关联issue,指导链接:https://forum.openubmc.cn/t/topic/208
如果已经关联了issue, 但是needs-issue标签仍然存在,你可以在评论 /check-issue 来移除它。


openUBMC-robot
Sep 21 Comments:
Sep 21 Comments:
The pipeline(pipeline number:17) is running. >>> Check Pipeline <<<.Please wait a moment...


Sep 21 Added label: ci-running
openUBMC-robot
Sep 21 Comments:
Sep 21 Comments:
Sep 21 Removed label: ci-running
openUBMC-robot
Sep 21 Comments:
Sep 21 Comments:
| 任务名称 | 结果 |
|---|---|
| pre-commit检查 | ✅SUCCESS |
| PR描述检查 | ❌FAILED |
| 防投毒检查 | ✅SUCCESS |
| 开源合规检查 | ✅SUCCESS |
| 编译构建 | ✅SUCCESS |
| 版本校验 | ❌FAILED |
| ipmi修改 | ✅SUCCESS |
| 修改行数检查 | ✅SUCCESS |


Sep 21 Added label: ci-failed
Sep 21 Removed label: openUBMC-cla/yes
Sep 21 Added label: openUBMC-cla/yes
openUBMC-robot
Sep 21 Comments:
Sep 21 Comments:
Sep 21 Added label: ai-co-authored
Sep 21 Added label: ai-includes-code
Sep 21 Removed label: ci-failed
Sep 21 Added label: ci-failed
Sep 21 Added label: ai-compliance-successful
openUBMC-robot
Sep 21 Comments:
Sep 21 Comments:
The pipeline(pipeline number:19) is running. >>> Check Pipeline <<<.Please wait a moment...


Sep 21 Removed label: ci-failed
Sep 21 Added label: ci-running
Sep 21 Removed label: ci-running
openUBMC-robot
Sep 21 Comments:
Sep 21 Comments:
| 任务名称 | 结果 |
|---|---|
| pre-commit检查 | ✅SUCCESS |
| PR描述检查 | ✅SUCCESS |
| 防投毒检查 | ✅SUCCESS |
| 开源合规检查 | ✅SUCCESS |
| 编译构建 | ✅SUCCESS |
| 版本校验 | ✅SUCCESS |
| ipmi修改 | ✅SUCCESS |
| 修改行数检查 | ✅SUCCESS |


Sep 21 Added label: ci-successful
当前PR是否有AI参与:
[ ] 否
[x] 是
__1. AI Agent 平台: Claude Code (openUBMC Skills Marketplace)
__2. AI 模型: GLM-5-turbo
__3. Prompt上下文 : 用户要求将 skills-marketplace 仓 code-inspection 检视路由文件落地到 rmcpd 仓根目录,由 AI 完成 fork、提分支、提交与 PR 创建
PR功能描述 / 为什么需要这个合入:
为 rmcpd 仓库新增根目录 AGENTS.md,定义 AI 代码检视入口。此前 rmcpd 缺少仓库级 AI 指令文件,合入流水线无法自动执行 PR 合规检视(mdb/IPMI 契约一致性检视、文档同步检查)。
修改方案:
AGENTS.md,包含两个相互独立的检视入口(触发条件不同,命中任一即执行、互不排斥):mds/ipmi.json时依次执行两项独立检查:①gitcode-mdb-interface-pr-reviewskill 完成 mdb/IPMI 契约一致性检视并submit-review发结构化评论;②doc-sync-checkskill 提取变更命令(NetFn/Cmd)与 docs 主干清单/关联文档 PR 双条件比对,post-pr-comment发文档覆盖评论(仅供参考,不阻塞合入)。无命中则跳过。bingo skill sync重试/手动编排;文档同步评论带head_sha幂等标记;检查异常发「检查未完成」降级评论,不阻塞合入。mds/service.json1.140.17 → 1.140.18,并在 CHANGELOG 登记本次变更。验证方案:
mds/ipmi.json变更的 PR,确认流水线按路由表触发契约一致性检视与文档同步检查评论。测试建议:
检视 AGENTS.md 路由表与降级策略是否符合 SIG 检视流程预期;后续含 mds/ipmi.json 变更的 PR 观察两次检视评论是否按预期发出。
自验证报告:
本地 pre-commit 全部通过;AGENTS.md 内容与 skills-marketplace 仓
skills/code-inspection/rules/AGENTS.md一致(仅补文件末尾换行),已在 rmcpd 语境下落地。该PR关联的issue
https://gitcode.com/openUBMC/rmcpd/issues/7
希望检视人员了解:
此 PR 由 AI (OpenClaw + GLM-5-turbo) 完成