Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

[bug] slugFromPath in hooks/lib/isa-utils.ts compares raw paths, so a file touched by…

Open IvanLeontev-stack opened this issue 1 week ago • 1 comments

What happened

slugFromPath misses files touched by their real path behind the LIFEOS/MEMORY symlink

Summary

hooks/lib/isa-utils.ts:1099 builds lifeosPath('MEMORY', 'WORK') + '/' and tests the tool's file_path with startsWith. The installer makes LIFEOS/MEMORY a symlink into the per-user tree (skills/LifeOS/Tools/InstallEngine.ts:1139), so a path given by the real target of that symlink (<realpath of LIFEOS/MEMORY>/WORK/<slug>/...) returns null, and EventLogger.hook.ts:290 (bumpLastToolActivity(toolFilePath)) skips the cross-session heartbeat for that slug. The same-session bump at :286 is unaffected.

Same class as #2721 (KnowledgeWriteGuard), fixed there by resolving symlinks on both sides. LIFEOS/TOOLS/IsaLadder.ts:146 already handles this by checking WORK and WORK_REAL. To see it: slugFromPath("<claude>/LIFEOS/MEMORY/WORK/x/ISA.md") -> "x", slugFromPath("<realpath of LIFEOS/MEMORY>/WORK/x/ISA.md") -> null.

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.

IvanLeontev-stack avatar Nov 24 '26 01:11 IvanLeontev-stack

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

Thanks @IvanLeontev-stack for the report.

This is fixed in our source and goes out in the next release. slugFromPath recognizes ISA work folders reached through symlinks or alternate paths. It can also find the ISA for a new file that hasn't been created yet.

Please reopen if it still happens after you upgrade.

danielmiessler avatar Dec 02 '26 08:12 danielmiessler