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

Đang mở Phù hợp với người mới
#3,122 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 5 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
84/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
bun, typescript
Lĩnh vực
full-stack

Hướng nghiên cứu

Bắt đầu với LIFEOS/PULSE/modules/wiki.ts và hàm extractTitle() của tệp này, sau đó truy vết xem indexFile gọi hàm đó ở đâu đối với các trang ISA. Tái hiện vấn đề bằng cách tạo một ISA có frontmatter task: và nội dung ## Ideal State, rồi truy vấn /api/wiki để xác nhận rằng tiêu đề hiện tại của nó là ISA. Hoàn tất khi tiêu đề ISA sử dụng giá trị task trong khi hành vi dự phòng hiện có cho tiêu đề, H1 và tên tệp vẫn được giữ nguyên.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
TypeScript
Star
20k
Fork
2.5k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của danielmiessler/LifeOS

Tất cả issue của danielmiessler/LifeOS

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.