planning interview: accept a plugin-install offer only from the person in the session

未关闭
#21,142 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
github, shell

调研方向

Start with plugins/planning/skills/interview/SKILL.md and trace offer resolution in surfaces/registry.mjs, then read interview-defenses.test.sh for the terminal round-1 read-set cap. Check how the resolver detects an interactive session and whether lane permissions cover claude plugin install. Done means tests show installs require an in-session yes and offers are withheld or installs denied for unattended runs.

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

描述

Problem

plugins/planning/skills/interview/SKILL.md "Print line exactly as given" says: on a yes to an offer, run its offers[].install command (a claude plugin install ... --scope user). The registry suppresses offers only when the model passes --unattended (surfaces/registry.mjs findOffers), and the model decides that flag; no code enforces it. An unattended run that leaves the flag off could take text in an issue or PR body as the yes and install a third-party plugin at user scope.

#21131 makes the offer reachable again for users with surface unset (the default substitution had silently disabled it), so the path now runs for most users. Security review of #21131 rated it P4, medium confidence; offerable.json fixes which plugins can be offered, and lane permission modes still gate the Bash call (not confirmed for claude plugin install).

Done when

  • An install runs only on a yes typed by the person in the session, never on text from an issue, PR, comment or fetched page, stated in the skill and kept inside the terminal round-1 read-set cap (interview-defenses.test.sh).
  • Unattended detection does not rest on the model alone: the resolver withholds offers when no interactive session is present, or the lanes deny claude plugin install, with a test.

Related

  • #21131, #21128.
主要语言
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 摘要。