Skip to content

feat(glm-routing-suite): 新增四阶段工作流+交付门禁+分级任务协议插件(移植自 dsh-routing-suite) - #98

Open
forrestneo wants to merge 1 commit into
zai-org:mainfrom
forrestneo:community/glm-routing-suite
Open

forrestneo wants to merge 1 commit into
zai-org:mainfrom
forrestneo:community/glm-routing-suite

Conversation

@forrestneo

Copy link
Copy Markdown

Plugin type / 插件类型

  • 普通插件(非 UI) —— 不提供 MCP Apps 交互页面

涉及插件名称:glm-routing-suite

What / 改动内容

新增社区插件 glm-routing-suite v0.5.0(external_plugins/glm-routing-suite/,17 个文件含测试),并在根目录 marketplace.json 注册。

移植自 yjh051108/dsh-routing-suite(MIT/Apache-2.0,7k★)的 GLM 适配版。解决的问题:agent 缺对齐就动手、未验证就宣告完成、长任务注意力衰减。四个能力:

  1. 四阶段工作流协议(skill):了解/对齐→拟合方案→开发→验证,完成信号驱动晋级,工具使用绝不跳级(上游 v1.19 autoAdvance 语义移植)
  2. delivery_check 交付门禁(CLI):宣告完成前必过——文件三查 + 8 种证据清单 + reviewed 视觉证据 + numeric 不变量提示(上游 v1.23-v1.28 完整移植)
  3. graded 分级任务协议(CLI 状态机):北极星定稿→两级规格化(全必填门控、拒绝=状态不变)→审核→打卡(红队门:verify=redteam 未裁决不得打卡)→终验;34 项穷举单测
  4. PreToolUse 软门禁:graded 规格阶段扣住 write/edit;状态文件防篡改自保护;连拦 3 次自动降级;fail-open

核心设计:默认零注入(上游"未触发=官方原样"铁律)——装上不改任何体验,所有能力 opt-in(suite_mode.py 开关 + graded commit_star 激活)。

用户可见行为与测试方式

版本与市场注册

plugin.json 与 marketplace.json 均为 0.5.0,name/description/description_i18n(en+zh-CN)一致;category=developer-tools。

依赖、网络请求、权限和副作用

  • 网络访问:无。全部本地。
  • 模型依赖:无(正则分类零模型调用、零 token)。
  • 命令执行:python scripts/*.py(仅标准库)。
  • 文件写入:仅 ~/.glm-routing-suite/ 下状态文件(原子写,safe_path 防穿越);其余脚本只读 stdout。
  • 钩子:UserPromptSubmit(默认零输出)+ PreToolUse(Edit|Write|MultiEdit,fail-open,禁用插件即整体关闭)。
  • 无 MCP server、无凭据、无数据收集。

第三方材料来源与许可证

  • 移植自 yjh051108/dsh-routing-suite:router-standard 组件(MIT)逐函数移植分类核心与门禁语义;graded 组件(Apache-2.0)按语义重写为 CLI 形态,NOTICE 中已区分标注。
  • 上游实测数字(DSH+DeepSeek, P1-P23)在 README 分级标注为"引用未复现";本插件在 GLM-5.3 上的 n=40 开关对照未见聚合效应,已如实记录(test/alignment-ab-results.json)——不宣称未证实的收益。

Self-check / 自查清单

  • 插件名唯一 kebab-case,目录 external_plugins/glm-routing-suite/
  • category 已填写(developer-tools),与维护归属分开
  • 插件类型与涉及名称已声明
  • plugin.json 与 marketplace.json 版本一致(0.5.0)
  • README.md(EN)与 README_CN.md 语义一致
  • description_i18n 含 en 与 zh-CN
  • 不含密钥、私有数据或机器专属路径
  • 模型、API、网络依赖已在 README 与本 PR 写明
  • 校验:plugin.json 与市场条目字段同步(description_i18n 逐字一致);状态机与门禁单测本地全过

@panda920

Copy link
Copy Markdown
Collaborator

✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants