Greedy evaluation double-counts late verification results and can hang

オープン 初心者向け
#14 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

@JunkaiWang-TheoPhy がすでに取り組んでいます。

2026年11月1日 から。

  • #15 @JunkaiWang-TheoPhy による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
82/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
backend

調査の方向性

BasicEvaluator の _recorder メソッドと、greedy_mode が設定されている場合に n - recorded_attempts を all_done に加算する最初の成功分岐から始めてください。issue のオフライン再現を実行します。問題は2つ、n=2、事前に読み込んだ結果キュー、StringIO 出力です。カウントが 4/4 のまま維持され、recorder が終了すれば完了です。その後、すでに成功した問題に対する後続の結果を無視するガードを追加し、回帰テストが通ることを確認してください。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Lean
スター
56
フォーク
13
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

MoonshotAI/CombiBench のほかの issue

MoonshotAI/CombiBench の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。