Greedy evaluation double-counts late verification results and can hang

Đang mở Phù hợp với người mới
#14 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

@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
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ệ
python
Lĩnh vực
backend

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:

  1. Problem A: success.
  2. Problem A: another completed success or failure.
  3. Problem B: failure.
  4. 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

  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 MoonshotAI/CombiBench

Tất cả issue của MoonshotAI/CombiBench

Issue tương tự

Thêm issue về Backend & API Design

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.