The shell snapshot is hashed, then reopened to source it
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 52/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- bash, typescript
Línea de trabajo
Read the fork change in PR #255, especially commits 8c443d04d3 and b1c5e383c2, and trace pin_snapshot through run_setup. Reproduce the timeout-triggered rebuild and inspect how the snapshot is hashed and sourced. Done means the session executes the exact bytes that were hashed, so a file swap cannot leave snapshotChanged false.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The fork's pin_snapshot hashes the shell snapshot, then source reopens the file by path. A writer that lands between the two during a core rebuild gets its bytes sourced under a hash that says nothing changed, so snapshotChanged stays false and the gate keeps reviewing.
rebuild (after a timeout) ─▶ hash snapshot ─▶ (writer swaps file) ─▶ source <path> ─▶ baseline taken
▲ window: the start of run_setup
Exploiting it needs a write to $TMPDIR/omp-shell-snapshots-<uid>/ racing a core rebuild, which the agent can force with a timeout. The window is the gap between two syscalls, not a review round trip.
Fix: read the snapshot bytes once and source exactly those bytes (feed them to the session as a script rather than source '<path>'), so the pin and the sourced text cannot diverge.
Found by the Opus security review of the fork change for https://github.com/STRML/omp-classifier/pull/255 (fork commits 8c443d04d3 and b1c5e383c2).
- Lenguaje dominante
- TypeScript
- Estrellas
- 1
- Forks
- 1
- Merge medio
- 49 min
- PR fusionados (30 d)
- 82
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 STRML/omp-classifier
-
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
STRML/omp-classifier#259 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
STRML/omp-classifier#253 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
STRML/omp-classifier#252 ·
Los mantenedores suelen responder en 1 día
Todos los issues de STRML/omp-classifier
Issues similares
-
bug(core): JsonOutputKeyToolsParser ignores returnId: truePosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
langchain-ai/langchainjs#12239 ·
Los mantenedores suelen responder en 1 día
-
Board view: the Monitoring column is always empty because compact issue rows drop displayStatusAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
paperclipai/paperclip#21837 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
code-yeongyu/senpi#6813 ·
Los mantenedores suelen responder en 1 día
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Dificultad 1/5 Menos de una hora Aptitud para principiantes 93/100
lingdojo/kana-dojo#34169 · 1 comentario · 5 reacciones ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100