Forbid agents from claiming validation passed when lint could not run
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 63/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 领域
- documentation, tooling
调研方向
阅读现有的 pre-commit 说明和 AGENTS.md 中的上下文预算部分,然后检查 scripts/check_baseline_ratchet.py 和基线的上限。在同一次编辑中整合现有文本,使 AGENTS.md 保持在上限以内,并使用现有术语添加所要求的规则。当 ratchet 通过并验证上限、测得的文件大小在上限以内,且规则满足列出的验证标准时,即为完成。
由索引模型根据 Issue 内容生成。
描述
What happened
Agents state that validation passed when it did not run.
- PR #496: the fix agent could not run
rufforscripts/lint.py. It guessed the formatting and then reported the tests as green. - PR #523: the agent wrote
Note: pre-commit hooks were not runin one commit, and elsewhere claimed it had regenerated.skillsaw-baseline.jsonwithskillsaw baseline. Noskillsawbinary was present, and the ceiling was missing at the head commit.
Reviewers cannot tell a verified commit from an unverified commit, so review rounds are spent on defects that a local gate would have caught.
Proposed change
Add one rule to AGENTS.md, next to the existing pre-commit instructions at lines 3-12.
The rule must require that, when scripts/lint.py cannot run, the agent:
- does not claim that tests or lint passed;
- does not hand-format code;
- lists each skipped gate in the pull request body;
- states which command failed and why.
Constraints
AGENTS.md is under the skillsaw context budget. Offset the new prose by consolidating existing text in the same commit. Do not raise a .skillsaw-baseline.json ceiling. See the context budget section of AGENTS.md.
Validation criteria
python3 scripts/check_baseline_ratchet.pypasses and validates at least one ceiling.- The measured
AGENTS.mdsize does not exceed the baseline ceiling. - The new rule uses the same terminology as the existing pre-commit bullet. Do not introduce aliases for
scripts/lint.py,pre-commit, orhook cache.
(AI generated)
- 主要语言
- Go
- 星标
- 7
- 派生
- 9
- 平均合并
- 22 小时 37 分钟
- 30 天内合并 PR
- 118
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
redhat-et/ProtoBot 的其他 Issue
-
bug component:validator triaged
难度 2/5 1-3 小时 新手友好度 82/100
redhat-et/ProtoBot#596 · 5 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
documentation triaged
难度 1/5 1 小时以内 新手友好度 88/100
redhat-et/ProtoBot#589 · 2 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
documentation risk/low triaged
难度 2/5 1-3 小时 新手友好度 62/100
redhat-et/ProtoBot#588 · 2 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
feature infra needs-human risk/low triaged
难度 2/5 1-3 小时 新手友好度 74/100
redhat-et/ProtoBot#579 · 6 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
bug infra triaged
难度 2/5 1-3 小时 新手友好度 72/100
redhat-et/ProtoBot#543 · 4 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
查看 redhat-et/ProtoBot 的全部 Issue
相似的 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 78/100
sresarehumantoo/cc-artex#456 ·
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
factory:subtask
难度 1/5 1 小时以内 新手友好度 75/100
维护者通常 1 天内回复
-
release
难度 1/5 1 小时以内 新手友好度 75/100
github/gh-aw-mcpg#17603 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
tinygo-org/tinygo#6727 ·
维护者通常 1 天内回复