Report a removed hold path as a finding in security-review when no owner threat model is declared

未关闭
#20,951 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
52/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
shell
领域
security

调研方向

Read plugins/review/skills/security-review/SKILL.md and the evaluation procedure in docs/review/evals.md; the issue links the prior change and evaluation run for context. Update the rule so a removed hold path is reported when no owner threat model is declared, while preserving the takeover-set carve-out and consumer-agnostic opt-in. Done means the listed evaluation cases meet their acceptance criteria and the takeover-set rule remains explicit.

由索引模型根据 Issue 内容生成。

描述

Context

#20265 made /review:security-review apply an owner threat model only when the default branch declares one, with a takeover-set carve-out. Its post-merge suite (https://github.com/melodic-software/claude-code-plugins/pull/20265#issuecomment-7368249063, run 47036552534, 5 runs per arm, VALID) scored the new case security-review-owner-threat-model-no-declaration at 0.40 with the plugin vs 0.50 without. The deterministic cites-hold-line grader passed 2/5 with vs 5/5 without. The failing with-plugin replies report "No security findings" and mention the config/hold-paths.txt hold removal only in prose, so the skill change is the cause, not the grader.

The revert (#20850) was closed in favor of fixing forward; the reasons are on that PR.

Proposed work

  • Make the security-review skill treat a hold removal as a finding when the repository declares no owner threat model: with no declaration, no friction exemption applies, and the removed hold path is reported at its own severity with the line it sits on.
  • Keep the takeover-set carve-out and the consumer-agnostic opt-in unchanged.
  • Re-run the case and the other affected security-review-* cases per docs/review/evals.md.

Acceptance criteria

  • security-review-owner-threat-model-no-declaration scores above its no-plugin arm (0.50) over 5 runs per arm, VALID.
  • security-review-owner-threat-model-takeover-hold and -friction-hold show no loss against their #20265 post-merge scores.
  • plugins/review/skills/security-review/SKILL.md still says a hold on a file in the declared takeover set is never a friction hold.

🤖 Generated with Claude Code

主要语言
Shell
星标
22
派生
2
平均合并
3 小时 20 分钟
30 天内合并 PR
956

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

melodic-software/claude-code-plugins 的其他 Issue

查看 melodic-software/claude-code-plugins 的全部 Issue

相似的 Issue

更多 Shell/Bash Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。