Pulse knowledge: every ISA is titled "ISA" (wiki.ts extractTitle ignores the task: field)

Abierto Apto para principiantes
#3,122 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 5 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
84/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
bun, typescript
Área
full-stack

Línea de trabajo

Comienza con LIFEOS/PULSE/modules/wiki.ts y su función extractTitle(), y luego rastrea dónde llama indexFile a esta función para las páginas de ISA. Reproduce el problema creando un ISA con frontmatter task: y un cuerpo ## Ideal State; después, consulta /api/wiki para confirmar que actualmente su título es ISA. La tarea está terminada cuando los títulos de ISA utilicen el valor de task y se mantenga intacto el comportamiento de respaldo existente para el título, H1 y el nombre de archivo.

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

Descripción

Version

LifeOS 8.761.0 · attestation: not run

What is broken

On Pulse's /memory/knowledge page, every ISA in Recent Changes (and in the ISA list) is titled "ISA". extractTitle() in LIFEOS/PULSE/modules/wiki.ts looks only at frontmatter title: and then the first H1, and otherwise falls back to the filename. ISAs keep their name in task: (ISAFormat: "task: recommended, falls back to the H1 title"), and ladder-era ISAs start with ## Ideal State and have no H1. So every ISA falls through to its filename, ISA.md, and shows as "ISA". On this install that applied to all 8 ISAs: 8 had a task: and none had an H1.

Where (file:line)

LIFEOS/PULSE/modules/wiki.ts:309

Repro on a clean tree
1. Create any ISA with the current format (frontmatter `task: "..."`, body starting with `## Ideal State`).
2. Open Pulse `/memory/knowledge`.
3. Recent Changes lists it as "ISA". `curl -s localhost:31337/api/wiki | jq '.recentChanges[] | select(.category=="isa") | .title'` prints "ISA" for every ISA.
Negative control

Probe: grep -q 'fm.task' /tmp/claude-1000/-home-<name>-ai-projects-tools-LifeOS/ec2673f7-837d-4c31-ba00-839575e86289/scratchpad/up/LifeOS/install/LIFEOS/PULSE/modules/wiki.ts · exit 1 · captured 2026-12-01T22:56:58.144Z

(no output)
Suggested fix

Use task: for ISA pages before the H1 and filename fallbacks:

function extractTitle(content, fm, filename, category?: string): string {
  if (fm.title) return String(fm.title)
  if (category === "isa" && fm.task) return String(fm.task)
  ...
}
// indexFile: title: extractTitle(raw, fm, filename, options.category),

Tested locally: after a Pulse restart, /api/wiki recentChanges shows each ISA's task instead of "ISA".

Environment
  • OS: Ubuntu 26.04.1 LTS (x64)
  • Harness: claude-code
  • bun: 1.4.5 · git: 2.53.0
  • Doctor broken: none
Lenguaje dominante
TypeScript
Estrellas
20k
Forks
2.5k
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

  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 danielmiessler/LifeOS

Todos los issues de danielmiessler/LifeOS

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.