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

Aperta Adatta ai principianti
#3,122 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 5 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
84/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
bun, typescript
Ambito
full-stack

Direzione di ricerca

Inizia da LIFEOS/PULSE/modules/wiki.ts e dalla sua funzione extractTitle(), poi individua dove indexFile la richiama per le pagine ISA. Riproduci il problema creando una ISA con frontmatter task: e un corpo ## Ideal State, quindi interroga /api/wiki per confermare che il suo titolo attuale è ISA. La modifica è completa quando i titoli ISA usano il valore di task e il comportamento di fallback esistente per titolo, H1 e nome del file rimane intatto.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
TypeScript
Stelle
20k
Fork
2.5k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di danielmiessler/LifeOS

Tutte le issue di danielmiessler/LifeOS

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.