Greedy evaluation double-counts late verification results and can hang
@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
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:
- 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.
- 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
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de MoonshotAI/CombiBench
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 18/100
MoonshotAI/CombiBench#13 · 1 comentario ·
Todos los issues de MoonshotAI/CombiBench
Issues similares
-
00 - Bug component: numpy.linalg
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 84/100
-
Task select patterns with uppercase letters never matchPosiblemente ocupada @manobhisriram la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
MoonshotAI/kimi-code#5539 ·
Los mantenedores suelen responder en 1 día