Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

chore: stop tracking .pi/ — it blocks rebase for any session with local goal state

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

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
88/100
Tipo de issue
Refactorización
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
git

Línea de trabajo

Empieza por .gitignore e inspecciona las rutas .pi/ versionadas que se enumeran en el issue. Elimina .pi/ del índice preservando los archivos locales y, después, verifica que .pi/ se ignore, que no se pueda leer ningún estado objetivo desde el repositorio y que git rebase origin/main se ejecute correctamente cuando el checkout no cambie .pi/.

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

Descripción

bug

Problem

PR #43 committed the agent's local goal state into the repository:

.pi/.goals-pool-snapshot.json
.pi/goals/.goal-ledger-checkpoint.json
.pi/goals/goal_events.jsonl
.pi/goals/archived_goal_2026092111245901_mub1hdzf-5j5j22.md

.pi/ is per-session working state that the Pi agent writes to continuously. Tracking it has two consequences, one of which blocks work outright.

It breaks rebase and pull for any session that has local goal state. git rebase and git checkout refuse to proceed:

error: The following untracked working tree files would be overwritten by checkout:
	.pi/.goals-pool-snapshot.json
	.pi/goals/.goal-ledger-checkpoint.json
	.pi/goals/goal_events.jsonl
Please move or remove them before you switch branches.
Aborting

Hit while rebasing a feature branch onto main on 2026-09-22. The workaround is to move .pi/ aside and restore it afterwards, which is exactly the kind of step that turns into lost state when it is forgotten.

It also publishes local state, including goal text and ledger snapshots, to anyone with repository read access.

Suggested fix

  1. Add .pi/ to .gitignore.
  2. git rm -r --cached .pi so the files stay on disk but leave the index.
  3. Decide separately whether the archived goal documents are wanted in the repository; if they are, they belong under docs/ or plans/, not under a path the agent overwrites.

Acceptance

  • .pi/ is ignored and untracked.
  • git rebase origin/main succeeds on a branch whose checkout does not change .pi/.
  • No agent goal state is readable from the repository.
Lenguaje dominante
TypeScript
Estrellas
189
Forks
40
Merge medio
7 h 38 min
PR fusionados (30 d)
30

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 nextlevelbuilder/skillx

Todos los issues de nextlevelbuilder/skillx

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.