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

未关闭 适合新手
#2,818 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 6 天内回复

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
80/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript
领域
tooling

调研方向

阅读 LIFEOS/WORKFLOWS/Inventory.ts 第 161 行附近提出孤立发现的位置,并将其与已经通过 WORKFLOWS_CLOCK_ID 跳过 dispatcher 的 outsideWorkflows() 进行比较。然后选择向 Services.ts 注册表添加一行始终启用的 dispatcher,或者向孤立条件添加相同的 id 豁免。完成意味着 bun ~/.claude/LIFEOS/WORKFLOWS/Workflows.ts attention 不再打印 "installed without a declaration" 行,而其他孤立发现仍然有效。

由索引模型根据 Issue 内容生成。

描述

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
主要语言
TypeScript
星标
19.8k
派生
2.5k
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

danielmiessler/LifeOS 的其他 Issue

查看 danielmiessler/LifeOS 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。