Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

[bug] Vigil on 8.761.0: seven issues that keep sources red or broken

Open Hoyass opened this issue 1 month ago • 2 comments

What happened

Bringing up Vigil and Pulse /vigil on 8.761.0 turned up seven problems. Each one either makes a source show red when nothing is wrong, or keeps a source from working at all. Each is fixed locally with a small patch; the details are below so they can be fixed upstream.

Details

  1. LifeOSHooks ships without a plugin manifest. skills/LifeOSHooks/ has no .claude-plugin/plugin.json, so Claude Code never loads it, MEMORY/STATE/session-tree is never written, and the running source is red forever. Moving the plugin to a separate directory with its own manifest doesn't work either: claudeDirOf() (LifeOSHooks.ts:326) strips /skills/<name> from the plugin root, so the plugin only finds LIFEOS/TOOLS/HookBridge.ts when it is loaded from ~/.claude/skills/LifeOSHooks. Every bridge call fails silently from anywhere else. Local fix: a plugin.json in skills/LifeOSHooks/.claude-plugin/, plus the path in CLAUDE_CODE_PLUGIN_DIRS.

  2. Pulse paints not_installed as an error. The engine treats a cursor with not_installed as "not a break" (VIGIL/adapters/common.ts withCursor, readers.ts), but PULSE/modules/vigil.ts:161 maps any read.ok === false to "error". A source the install never had shows the same red dot as a broken one.

  3. The services cadence doesn't match how the source emits. VIGIL/Policy.ts:64 sets services: 5, but the services adapter only emits when a service changes state. On a healthy machine it goes quiet after 10 minutes and shows yellow. Local fix: source_cadence_minutes.services = null in USER/VIGIL/policy.json.

  4. The generic secret pattern refuses ordinary file paths. STATVS/lib/refuse.ts /\b[A-Za-z0-9+/=_-]{48,}\b/ matches an absolute path such as /Users/<name>/.config/LIFEOS/USER/MEMORY/STATE/services/... in a title or summary, so validateEvent throws "Credential-shaped string refused" and the event is lost. credentialRefusal already has a slugs mode that judges such runs segment by segment; validateEvent doesn't use it for title and summary.

  5. ContactsCli cannot get Contacts access from launchd. PEOPLE/apple.ts builds a bare binary with no Info.plist, and com.lifeos.people runs it as a child of bun. TCC then checks the responsible process (bun, no bundle) and denies in about 40 ms without a prompt, so the apple source stays blocked. Local fix: build ContactsCli inside ~/Applications/LifeOS People.app (Info.plist with NSContactsUsageDescription, ad-hoc signed with a fixed identifier), grant once via open -a, and have runAudit launch it through open -W -n -g -a <app> --stdout … --args audit so the app is its own responsible process.

  6. -- comments in VIGIL/worker/schema.sql break cf d1 query --sql. The comment lines are passed through as part of the statement and the query fails; the schema has to be applied with the comments stripped.

  7. ReleaseRecord does not recognize LIFEOS/VERSION when the git root is above LIFEOS. isRecordFile in TOOLS/ReleaseRecord.ts:60 checks f === "VERSION" against the path relative to the git root. When the repository root is ~/.claude, the path is LIFEOS/VERSION, so the record commit itself counts as shipping, and the deploy gate keeps asking for a new release record. basename(f) === "VERSION" (or a match on the LIFEOS-relative path) would fix it.

Environment

LifeOS 8.761.0, macOS 27, Claude Code 2.1.312.

Hoyass avatar Oct 29 '26 19:10 Hoyass

  1. Pulse /security still looks for the security hooks removed on 2026-10-24.

handleSecurityApi() in LIFEOS/PULSE/Observability/observability.ts (~line 1309) keeps only hooks whose command contains Safety.hook, skill-guard or agent-guard. Safety.hook.ts was dropped on 2026-10-24 (hooks/README.md, native enforcement note), so on a clean 8.761 install /api/security returns hooks: []. The page then shows Active Hooks 0 and No security hooks registered, which reads like a broken install, while the same page explains that protection now lives in permissions.deny and the git hooks.

Suggestion: drop the stale filter and the tile, or list the git hooks from LIFEOS/TOOLS/githooks/ there instead.

Hoyass avatar Oct 29 '26 19:10 Hoyass

[!NOTE] 🤖 Kai (AI assistant) responding on behalf of Daniel Miessler

Thanks @Hoyass, this was a useful list. Fixed: the release now writes the LifeOSHooks plugin.json back (the new release builder had dropped it), not-installed sources no longer show as errors, the services cadence no longer goes yellow on a healthy machine, and ReleaseRecord recognises LIFEOS/VERSION under a higher git root. The schema docs now strip the -- comment lines before cf d1 query. The credential filter stays as it is, since it is a security guard; an event it refuses is kept with its detail withheld rather than lost. The ContactsCli app-bundle change is a good fit for a PR if you want to send it. The fixes land in the next release.

danielmiessler avatar Nov 06 '26 13:11 danielmiessler