Add an option to forbid planner skips so coverage can be guaranteed

Đang mở
#31 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

  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 0xPolygon/codegenie

Tất cả issue của 0xPolygon/codegenie

Issue tương tự

Thêm issue về TypeScript

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.