Greedy evaluation double-counts late verification results and can hang

Abierto Apto para principiantes
#14 0 comentarios 0 reacciones 0 asignados Ver en GitHub

@JunkaiWang-TheoPhy ya está trabajando en esto.

Desde el 1/11/2026.

  • #15 de @JunkaiWang-TheoPhy — abierto

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
82/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
python
Área
backend

Línea de trabajo

Empieza por el método _recorder de BasicEvaluator y por la rama del primer éxito que suma n - recorded_attempts a all_done cuando greedy_mode está activo. Ejecuta la reproducción offline del issue: dos problemas, n=2, una cola de resultados precargada y una salida StringIO. Se considera terminado cuando los contadores se mantienen en 4/4 y el recorder finaliza. Después añade una guarda que ignore los resultados posteriores para un problema que ya tuvo éxito, y comprueba que la prueba de regresión pasa.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Lean
Estrellas
56
Forks
13
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de MoonshotAI/CombiBench

Todos los issues de MoonshotAI/CombiBench

Issues similares

Más issues de Backend & API Design

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.