Accepting a proposal in Pulse returns ok, but CENSVS refuses the move and the two records stay apart
Los mantenedores suelen responder en 5 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 55/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- bun, typescript
Línea de trabajo
Start with PULSE/modules/upgrades.ts around line 175 and CENSVS/genera.ts around line 258, then inspect TOOLS/Upgrades.ts and the upgrade transition tests. Reproduce the supplied Bun command from LifeOS/install/LIFEOS to see where the refusal is lost. Done when a refused accept leaves both records unchanged and the refusal is returned to the caller, including when initiated from the principal's terminal.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What happens: PULSE/modules/upgrades.ts:175 accepts a proposal through setStatus. The store file becomes accepted and the route returns 200 {"ok":true}. The CENSVS move is refused, because CENSVS/genera.ts:258 allows proposed>accepted only from the principal's interactive session. The later move to applied is refused too, since CENSVS still reads proposed.
Run in LifeOS/install/LIFEOS:
T=$(mktemp -d); env -i PATH="$PATH" HOME="$T" STATVS_DIR="$T/statvs" LIFEOS_UPGRADES_DIR="$T/upgrades" bun -e '
const U = await import("./TOOLS/Upgrades.ts"), P = await import("./PULSE/modules/upgrades.ts");
const { id } = U.addUpgrade({ source: "manual", claim: "Example claim", recommendation: "x", current_state: "y", confidence: 0.5, target_surface: "skill" });
const path = `/api/upgrades/${id}/accept`;
const res = await P.handleRequest(new Request("http://localhost" + path, { method: "POST" }), path);
console.log(res.status, await res.text(), U.getUpgrade(id).status, U.resDualWrite.last);
console.log(U.setStatus(id, "applied", { ledger_id: "L-1" }), U.getUpgrade(id).status, U.resDualWrite.last);
'
Fix
Four architecture faults combine here: the move rule has no single source of truth (CENSVS/genera.ts says it mirrors TRANSITIONS in TOOLS/Upgrades.ts, but only genera.ts requires the principal), setStatus bypasses that invariant by writing the store first, the refusal is lost at the seam between the store and CENSVS, and the interface of setStatus returns ok and documents a by argument that does not exist. Have setStatus ask the CENSVS rule before it writes, return the refusal, and drop both TRANSITIONS and the by comment, so the rule lives only in genera.ts and a refused accept leaves both records unchanged and can still be made from the principal's terminal.
- Lenguaje dominante
- TypeScript
- Estrellas
- 20.7k
- Forks
- 2.6k
- 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 danielmiessler/LifeOS
-
Interceptor LaunchTestProfile.sh: no Windows (Git Bash/MSYS) branch, test profile never launchesAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
danielmiessler/LifeOS#3150 ·
Los mantenedores suelen responder en 5 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
danielmiessler/LifeOS#3135 · 1 comentario ·
Los mantenedores suelen responder en 5 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
danielmiessler/LifeOS#3038 · 1 comentario ·
Los mantenedores suelen responder en 5 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
danielmiessler/LifeOS#2977 · 1 comentario ·
Los mantenedores suelen responder en 5 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
danielmiessler/LifeOS#2954 · 1 comentario ·
Los mantenedores suelen responder en 5 días
Todos los issues de danielmiessler/LifeOS
Issues similares
-
Media browser returns "Not found" for repositories using the SHA-256 object formatPosiblemente ocupada @adamchodera la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Follow-ups from #312Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
janhesters/remixcn#318 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
Make the "%" unit spacing the same in the web and in A10Posiblemente ocupada @kragent66-glitch la tomó hoy. Abiertobug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
maiychrus25/OpenTea-DX-OS#226 · 1 comentario ·
-
NP OSS
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
siteboon/claudecodeui#1905 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día