Own-agent checks: reject the Actions bot id in admit.mjs and test the source label in pr-verify
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 74/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- github-actions, javascript, node.js
調査の方向性
.github/scripts/intake-triage/admit.mjs の 274 行目と 295-298 行目付近から始め、そこでは rules validator と ownAgentIds が正の整数を受け入れ、1101 行目の ACTIONS_BOT_ID と比較します。次に .github/scripts/pr-verify/resolve-pr.mjs の 1008 行目付近を読み、その source: ラベルチェックを admission の SOURCE_LABEL と babysit_verify_evidence.py と比較します。Actions bot id と不正な source: ラベルを拒否するテストを追加し、その後、関連する intake-triage と pr-verify のテストスイートを実行します。完了とは、出荷済みのルールが以前と同じ issue を admit し verify する一方で、両方のチェックが早期に失敗することを意味します。
索引モデルが issue の本文から書いたものです。
説明
Summary
Two checks that #16999 added for own-agent issues are looser in one place than in the others that read the same rule.
.github/scripts/intake-triage/admit.mjs: the rules validator (line 274) andownAgentIds(lines 295 to 298) accept any positive integer inown-agents.identities, including the GitHub Actions bot id (ACTIONS_BOT_ID, line 1101), which the rules file's description and the module's comment say must never be listed. The Python merge gate drops that id. No admission can come from it today:apply-verdict.mjswrites nothing for an authorauthorTrustrefuses, and the shipped list is["lanes-app"]. This is hardening..github/scripts/pr-verify/resolve-pr.mjsline 1008 countssource:labels (sourceLabels(...).length === 1) but never tests the label againstSOURCE_LABEL, which admission (admit.mjs) and the merge gate (babysit_verify_evidence.py) both do. A malformedsource:label passes pr-verify and is refused at the merge gate, so the pull request stalls instead of failing early.
Evidence
- Lines read at d55250ec; the files are unchanged on main since.
- Found by a review of the byte-copied files in melodic-software/pr-pipeline-sandbox#387. Neither was seen in a live run.
Done when
- The rules validator and
ownAgentIdsreject the Actions bot id, with a test for each. - pr-verify tests the single
source:label against the same pattern admission uses, with a malformed-label test. - No change to which issues are admitted or verified under the shipped rules.
- 主要言語
- Shell
- スター
- 22
- フォーク
- 2
- 平均マージ
- 1時間 47分
- マージ済み PR(30日)
- 942
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
melodic-software/claude-code-plugins のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 71/100
melodic-software/claude-code-plugins#17364 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
melodic-software/claude-code-plugins#17039 · コメント 7 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
melodic-software/claude-code-plugins#16931 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
melodic-software/claude-code-plugins#15498 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
session-flow: remove a delivered absence's away state so idle hook cost returns to the cheap path対応中かも @kyle-sexton が今日担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 18/100
melodic-software/claude-code-plugins#17389 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
melodic-software/claude-code-plugins の issue をすべて見る
似ている issue
-
application-issue
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
Installomator/Installomator#3657 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
nekko-labs/nekko-agent#2998 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 60/100
kenzok8/openwrt-honk#35 ·
メンテナーはふだん 1 日以内に返信
-
bug severity:medium triage:confirmed triage:in-progress
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
Cotal-AI/Cotal#7795 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信