feat(regress-guard): add AI-coding governance gate plugin - #34
Open
1339190177 wants to merge 1 commit into
Open
1339190177 wants to merge 1 commit into
1339190177 wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
用户问题(This PR solves)
Agent 自信地谎报「done」——直接提交 main 的工作流里没有任何机器验证完成度声明。regress-guard 在提交这个唯一卡点上强制重验:门禁自己跑测试,不信 AI 自报。
用户可见行为与测试方式(Behavior / how to test)
/regress:init→ 提交流程带门禁(测试失败/验收未勾即拦)bash validate.sh应 5/5;python3 -m pytest tests/ -q应全绿(664 用例)python3 scripts/validate.pyexit 0(27 plugins 含本插件);python3 scripts/build_dist.pyexit 0(plugin.zip 292KB)版本与市场注册(Version / registration)
v1.88.0,marketplace.json 条目与清单一致(name/version/description/author/category=developer-tools/keywords/双语 description_i18n)。
依赖与副作用(Dependencies / side effects,README 已专节声明)
.regress/与~/.zcode/regress-guard-hooks(安装副本)第三方材料(Third-party)
无(MIT,运行时零第三方代码)。历史仓库:github.com/1339190177/regress-guard(同一作者维护,本目录为市场蒸馏版,剥离开发工具件)。
自查清单(Checklist)
validate.py、build_dist.py沙箱实测通过(exit 0 ×2)