[bug] skill-usewhen-index.json is never rebuilt (loadIndex has no caller)

Đang mở Phù hợp với người mới
#2,808 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 6 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
62/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
devtools

Hướng nghiên cứu

Bắt đầu từ writer được nêu trong báo cáo: AlgorithmNudge.hook.ts, file này chỉ chạy việc dựng lại chỉ mục khi có --rebuild-index, và hàm loadIndex(), hàm khởi chạy nó. Xác nhận không có nơi nào gọi loadIndex(), sau đó kiểm tra trong LIFEOS/TOOLS/derived-artifacts.json mục max-age 24 giờ dành cho MEMORY/STATE/skill-usewhen-index.json. Hoàn thành khi chỉ mục được làm mới theo lịch dự kiến, hoặc writer không còn dùng và mục manifest bị xóa, đồng thời kiểm tra derived-freshness đạt vào ngày thứ hai.

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

Mô tả

What happened

skill-usewhen-index.json is never rebuilt (loadIndex has no caller)

Summary

LifeOS 8.761.0. LIFEOS/TOOLS/derived-artifacts.json declares MEMORY/STATE/skill-usewhen-index.json with a maximum age of 24 hours and the note that it is refreshed per turn. Its only writer is AlgorithmNudge.hook.ts --rebuild-index, which is started only from loadIndex(). Nothing calls loadIndex() (a search finds the definition only), and nothing reads the index.

Seen: the index is built once at install and never again. From the second day the integrity lane derived-freshness reports "MEMORY/STATE/skill-usewhen-index.json: age ... exceeds declared max 24h" as a blocking finding.

Suggested fix: call loadIndex() again where the index is needed, or drop the manifest entry and the dead writer.

Details

  • Kind: bug
  • LifeOS version: 8.761.0

Filed with the LifeOS /feedback command. The reporter approved this exact text before it was sent; paths, secrets and personal details were stripped locally.

Ngôn ngữ chính
TypeScript
Star
19.8k
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.