Add an option to forbid planner skips so coverage can be guaranteed
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 65/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- tooling
Hướng nghiên cứu
Start by tracing the [review] configuration, planner decisions, packet-review dispatch, and coverage records described in the issue. Add the option with its default behavior, ensure disabled skips are dispatched or cause the run to fail, and verify that deterministic exclusions remain unaffected. Done means callers can enforce complete review coverage without parsing model-written skip reasons.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
The planner may decide a changed hunk does not need review and record a model-written reason such as "mechanical". On a 36-file diff reviewed with 0.5.6, 22 hunks were skipped this way in a single run.
For interactive use this is a sensible default - it saves calls on noise. For an automated gate it is a hole, because the decision is made by a model and there is no setting that forbids it. A caller who wants "every changed hunk was actually read by the reviewer" cannot express that today, and cannot distinguish "reviewed and clean" from "never looked at" without parsing the coverage records and re-deriving the policy itself.
The deterministic exclusions are not the problem: configured path rules and generated-file markers are auditable, and a caller can verify both independently. The planner skip is the one exclusion whose justification cannot be checked.
Proposal
A configuration switch that turns planner skips off:
[review]
allowPlannerSkips = false # default true, current behaviour
With it disabled, every changed hunk that is not excluded by a deterministic rule is dispatched to packet review. A run that cannot do so fails rather than reporting partial coverage as complete.
An alternative, if the skip is valuable enough to keep by default: a strict coverage mode that keeps the planner's judgement but records it as an explicit, machine-readable exclusion class distinct from configured rules, so a caller can decide its own policy per class. The current coverage records are close to this already - the missing piece is the guarantee that the class is complete and the ability to refuse it.
Why it matters
Anyone using this tool as a merge gate has to answer "what did the reviewer not look at, and why". Deterministic exclusions answer that. A model-written "mechanical" does not, and it silently sets the coverage denominator. One flag makes the tool usable for gating without changing the default experience for everyone else.
Related: #29 (per-stage model selection) is the cheaper way to reach the same goal from the other side - if the packet review on trivial hunks costs little, skipping them buys less.
- Ngôn ngữ chính
- TypeScript
- Star
- 8
- Fork
- 1
- Merge trung bình
- 5 phút
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 0xPolygon/codegenie
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Tất cả issue của 0xPolygon/codegenie
Issue tương tự
-
JSON parser fails on commentsĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
AloisSeckar/elrh-cosca#36 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
cursor/community-plugins#572 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Plugin] calendarĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
MUKE-coder/grit#228 ·
-
[BUG] Keyring unreachableĐang mởbug status:needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
dongdongbh/Mindwtr#1587 ·
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 77/100
nuxt/icon#585 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày