Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

v4.0.3 Bug Report: Stale paths in Telos skill break TELOS update command

Open sauldataman opened this issue 8 months ago • 2 comments

Description

After the PAI directory restructure (moving from ~/.claude/context/ to ~/.claude/PAI/USER/), the Telos skill was not updated to reflect the new paths. This caused the TELOS update command to silently fail — no files could be created, updated, or backed up.

Root Cause

Two stale path references survived the directory migration:

  1. Workflows/Update.md (lines 81, 143) — referenced ~/.claude/commands/update-telos.ts instead of ~/.claude/skills/Telos/Tools/UpdateTelos.ts
  2. Tools/UpdateTelos.ts (lines 41-42) — TELOS_DIR pointed to ~/.claude/context/life/telos/ instead of ~/.claude/PAI/USER/TELOS/, and backup dir used backups instead of Backups

Impact

  • TELOS update command completely broken — any attempt to add beliefs, books, lessons, etc. would fail
  • 18 TELOS template files never initialized — the directory existed but was empty
  • No backups created — backup path also pointed to nonexistent location
  • Silent failure — no clear error surfaced to indicate the path mismatch

Steps to Reproduce

  1. Invoke the TELOS update skill (e.g., "add a book to TELOS")
  2. Skill reads Workflows/Update.md which references ~/.claude/commands/update-telos.ts
  3. Script not found at that path, or if found, TELOS_DIR resolves to ~/.claude/context/life/telos/ which doesn't exist
  4. Update fails

Fix

  • Tools/UpdateTelos.ts: Update TELOS_DIR to ~/.claude/PAI/USER/TELOS/ and backup subdir to Backups
  • Workflows/Update.md: Update all script path references from ~/.claude/commands/update-telos.ts to ~/.claude/skills/Telos/Tools/UpdateTelos.ts (lines 81, 143, 289)
  • Template files: Regenerate all 18 TELOS templates in the correct directory

sauldataman avatar Mar 08 '26 00:03 sauldataman

This is already fixed in our PR #864 (fix(PAIUpgrade): correct hardcoded skill path after v3→v4 migration). The same stale path pattern affects PAIUpgrade.ts and the Telos skill.

If #864 gets merged, this issue can be closed.

rikitikitavi2012-debug avatar Mar 09 '26 11:03 rikitikitavi2012-debug

cool, have't think about this path before, thanks for the clarification.

sauldataman avatar Mar 09 '26 22:03 sauldataman