Greedy evaluation double-counts late verification results and can hang
@JunkaiWang-TheoPhy đang làm issue này rồi.
Từ ngày 1/11/2026.
- #15 của @JunkaiWang-TheoPhy — đang mở
Đá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
- 82/100
Hướng nghiên cứu
Bắt đầu từ phương thức _recorder của BasicEvaluator và nhánh thành công đầu tiên, nhánh này cộng n - recorded_attempts vào all_done khi greedy_mode được bật. Chạy bản tái tạo offline từ issue: hai bài toán, n=2, một hàng đợi kết quả đã nạp sẵn và đầu ra StringIO. Hoàn thành khi các bộ đếm giữ nguyên ở 4/4 và recorder thoát. Sau đó thêm một chốt chặn bỏ qua các kết quả sau đó cho bài toán đã thành công, rồi kiểm tra test hồi quy có vượt qua không.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
With --greedy-mode and multiple attempts per problem, completed verification results can make the recorder's task count exceed its total and prevent evaluation from terminating.
Baseline: current master, c67e4213597b1477351d9ef5ca37fb622084cc78.
The first successful result adds n - recorded_attempts to all_done to account for that problem's skipped attempts. A generation/verification task may already be in flight when this happens: the worker checks success before the network/proof operation, not when it completes. Its completed result can therefore already be queued. The recorder does not repeat the greedy-success check and counts that result again.
Deterministic reproduction
No model or Lean server is needed to reproduce the recorder state. Instantiate BasicEvaluator with greedy_mode=True and n=2, create two EvaluationResult records, and preload its result queue with:
- Problem A: success.
- Problem A: another completed success or failure.
- Problem B: failure.
- Problem B: success.
Run the actual _recorder against this queue and a StringIO output. The initial all_tasks is 4; the resulting all_done is 5. Once the queue is empty, the recorder remains alive until explicitly interrupted because it only exits when all_done == all_tasks.
I reproduced both variants of the late A result. The same setup without greedy mode terminates normally and retains each attempted result.
Expected behavior and proposed fix
After the first success, ignore later results for that problem in the recorder while holding its existing lock. Those attempts have already been accounted for. In the example above, the count should remain 4/4, with one recorded attempt for A and two for B, and the recorder should terminate.
A minimal three-line guard and an offline regression are prepared. With the tests retained on unchanged master: 2 failed, 1 passed; with the guard: 3 passed. No mathematical formalization or proof-verification result is involved.
AI assistance: investigation and local reproduction used OpenAI Codex.
- Ngôn ngữ chính
- Lean
- Star
- 56
- Fork
- 13
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
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 MoonshotAI/CombiBench
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 18/100
MoonshotAI/CombiBench#13 · 1 bình luận ·
Tất cả issue của MoonshotAI/CombiBench
Issue tương tự
-
00 - Bug component: numpy.linalg
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
-
Task select patterns with uppercase letters never matchCó thể đã có người làm @manobhisriram đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
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 76/100
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 62/100
MoonshotAI/kimi-code#5539 ·
Maintainer thường phản hồi trong vòng 1 ngày