feat(source-control): record a report-only Merge-Risk line on each unattended lane merge

Đã đóng
#13,657 5 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@kyle-sexton đang làm issue này rồi.

Từ ngày 6/11/2026.

  • #13676 của @kyle-sexton — đã merge

Đánh giá

Issue này chưa được đánh giá.

Mô tả

needs-human priority: medium status: ready work-class: scoped

Problem

Owner decision Q57 (#12984, 2026-11-05): do not wire merge-risk's demote into any merge gate yet; record each unattended merge's rating so revert rates per risk level can be measured, then bring Q57 back with those numbers. Nothing records a rating today.

Done when

  • When the unattended merge path arms a merge (.github/scripts/pr-merge/enable-auto-merge.mjs), /review:merge-risk rates the head it arms, and one line is written to the PR body before it enters the merge queue: Merge-Risk: max=<level> demote=<bool> head=<sha> rubric=<review plugin version> rater=<model> checker=<model>. Check: a unit test of the line builder, and one lane merge on main whose squash commit carries the line.
  • The line is report-only: no gate, hold or rung reads it, and a missing or failed rating never blocks or delays the merge (it records Merge-Risk: unrated reason=<reason> instead). Check: a test where the rating fails and the merge still arms.
  • The rating step records its duration and outcome in the lane's existing telemetry, so its cost per merge can be baselined.
  • The model and effort for the rating come from configuration, not code.

Related

  • Refs #12984 (replay results and the recording design; option 1 was chosen)
  • Depends on #13656 for the revert-rate join.
Ngôn ngữ chính
Shell
Star
22
Fork
2
Merge trung bình
1 giờ 13 phút
Pull request đã merge (30 ngày)
954

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của melodic-software/claude-code-plugins

Tất cả issue của melodic-software/claude-code-plugins

Issue tương tự

Thêm issue về Shell/Bash

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.