Own-agent checks: reject the Actions bot id in admit.mjs and test the source label in pr-verify
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 74/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- github-actions, javascript, node.js
Hướng nghiên cứu
Bắt đầu với .github/scripts/intake-triage/admit.mjs quanh dòng 274 và 295-298, nơi trình kiểm tra quy tắc và ownAgentIds chấp nhận số nguyên dương, rồi so sánh với ACTIONS_BOT_ID ở dòng 1101. Sau đó đọc .github/scripts/pr-verify/resolve-pr.mjs quanh dòng 1008 và so sánh phần kiểm tra label source: của nó với SOURCE_LABEL trong admission và babysit_verify_evidence.py. Thêm test để từ chối id bot Actions và label source: sai định dạng, sau đó chạy các bộ test intake-triage và pr-verify liên quan; hoàn tất nghĩa là cả hai kiểm tra đều thất bại sớm trong khi các quy tắc đã phát hành vẫn admit và verify các issue giống như trước.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Shell
- Star
- 22
- Fork
- 2
- Merge trung bình
- 1 giờ 47 phút
- Pull request đã merge (30 ngày)
- 942
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của melodic-software/claude-code-plugins
-
docs(prompts): loop-lane template prose still says the merge partition reads work-class labelsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 71/100
melodic-software/claude-code-plugins#17364 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
melodic-software/claude-code-plugins#17039 · 7 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
melodic-software/claude-code-plugins#16931 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
melodic-software/claude-code-plugins#15498 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
session-flow: remove a delivered absence's away state so idle hook cost returns to the cheap pathCó thể đã có người làm @kyle-sexton đã nhận hôm nay. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 18/100
melodic-software/claude-code-plugins#17389 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của melodic-software/claude-code-plugins
Issue tương tự
-
Broken app label: nvivo15/nvivoĐang mởapplication-issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
Installomator/Installomator#3657 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
nekko-labs/nekko-agent#2998 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] 最新代码编译失败,原因是下载没有对应资源Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 60/100
kenzok8/openwrt-honk#35 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug severity:medium triage:confirmed triage:in-progress
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Cotal-AI/Cotal#7795 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày