daemon inputs: appends, partial and failed writes hide a file's earlier content; the runner-file rule matches users' paths
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
- 48/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- javascript, node.js
Línea de trabajo
Start with inputs.mjs and trace how appendFile*, r+, and open flags are recorded; check the CLI's inject path for passing the session pid and home to the harness. Use the described appendGate oracle, where file b appends to tests/gate.json and parses the whole file. Done when prior file content remains an input for append and r+, failed writes do not count as writes, and the runner-file rule matches the session's real pid and home.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Findings (review of #133, F9 and F10; both plausible, LOW).
F9. An append, a partial write, or a failed write hides a file's earlier content.
inputs.mjscountsappendFile*as a write and records the write before the call.- So in these cases the rest of the file is an input that is never recorded:
- a test appends to a fixture that already exists, then reads it;
- a test writes with
{ flag: 'r+' }; - a test catches a failed write (to a read-only file), then reads the existing file.
- Plan:
- Record a read first for an append and for
r+. - Record the write only after the call succeeds; for the async forms, when its promise or callback resolves.
- The same applies to #141's open-flag rule (
akeeps the earlier content, so it is a read too). - Oracle: a gate kind
appendGate, in which file b appends totests/gate.jsonand parses the whole file. The edit changes the part that was already there.
- Record a read first for an append and for
F10. The runner-file rule matches users' paths.
/\/\.oracle-gaps-\d+[-/]/also matches a user's file named.oracle-gaps-<digits>-….- The fix matches the session's real pid and home, which the CLI already knows and can pass to the harness through
inject.
Authority: R46, G42, I8 (v21.2), and M 2026-11-17 "Own writes aren't inputs", whose scope is the writer's own output only.
- Lenguaje dominante
- JavaScript
- Estrellas
- 5
- Forks
- 1
- Merge medio
- 11 h 18 min
- PR fusionados (30 d)
- 66
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 TanStack/oracles
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
Los mantenedores suelen responder en 1 día
Todos los issues de TanStack/oracles
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
swc-project/swc-next-issues#532 ·
-
domain/checkout Platform(Default) priority/low testing/acceptance
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
bug confirmed css v6
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
check:passed logos:edit
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día