Workflows inventory flags the workflows-dispatcher (the Workflows clock) as an orphan

Đang mở Phù hợp với người mới
#2,818 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ó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
80/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ệ
typescript
Lĩnh vực
tooling

Hướng nghiên cứu

Đọc LIFEOS/WORKFLOWS/Inventory.ts quanh dòng 161, nơi phát hiện mồ côi được đưa ra, và so sánh với outsideWorkflows(), vốn đã bỏ qua dispatcher qua WORKFLOWS_CLOCK_ID. Sau đó chọn giữa việc thêm một hàng dispatcher luôn bật vào registry Services.ts hoặc thêm cùng miễn trừ id vào điều kiện mồ côi. Hoàn tất nghĩa là bun ~/.claude/LIFEOS/WORKFLOWS/Workflows.ts attention không còn in dòng "installed without a declaration" trong khi các phát hiện mồ côi khác vẫn hoạt động.

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

The Workflows inventory raises a medium-severity orphan finding, "workflows-dispatcher is installed without a declaration", for com.lifeos.workflows-dispatcher on every install that schedules local workflows. WorkflowsSystem.md names the dispatcher as the one exemption ("the Workflows clock"), and outsideWorkflows() already skips it via WORKFLOWS_CLOCK_ID, but the orphan check does not: the dispatcher is not in the Services.ts registry, so declared is false and it is flagged. The Pulse Workflows page therefore always shows one attention item the user cannot resolve, and acknowledging it is the only way to quiet it.

Where (file:line)

LIFEOS/WORKFLOWS/Inventory.ts:161

Repro on a clean tree
1. On a v8.761.0 install, have at least one local workflow with a schedule or interval trigger, so `com.lifeos.workflows-dispatcher` is loaded (`launchctl list | grep workflows-dispatcher`).
2. Run `bun ~/.claude/LIFEOS/WORKFLOWS/Workflows.ts attention`.
3. The list contains "workflows-dispatcher is installed without a declaration. (launchd:com.lifeos.workflows-dispatcher)".

Negative control: the captured probe exits 1 because that line is present.
Negative control

Probe: bun $HOME/.claude/LIFEOS/WORKFLOWS/Workflows.ts attention | grep 'workflows-dispatcher'; ! bun $HOME/.claude/LIFEOS/WORKFLOWS/Workflows.ts attention | grep -q 'workflows-dispatcher is installed without a declaration' · exit 1 · captured 2026-11-15T07:44:48.517Z

Red looks like: workflows-dispatcher is installed without a declaration

! workflows-dispatcher is installed without a declaration. (launchd:com.lifeos.workflows-dispatcher)
Suggested fix

Either declare the dispatcher in the Services.ts registry (an always-on service row), or exempt it in the orphan check the same way outsideWorkflows() does: add && r.id !== WORKFLOWS_CLOCK_ID to the condition at Inventory.ts:161.

Environment
  • OS: macOS 26.6.2 (arm64)
  • Harness: claude-code
  • bun: 1.3.8 · git: 2.39.5
  • Doctor broken: none
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.