Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

v5.0.0: CLAUDE.md @-imports USER/PROJECTS/PROJECTS.md but the file is not shipped

Open wojteksbt opened this issue 7 months ago • 2 comments

Summary

Releases/v5.0.0/.claude/CLAUDE.md line 8 declares @PAI/USER/PROJECTS/PROJECTS.md, but the v5.0.0 tree ships no PAI/USER/PROJECTS/ directory. Claude Code silently skips unresolvable @-imports, so every fresh install loses the project context the doc claims is loaded.

Line 74 doubles down on the promise:

Startup context is @-imported above (PRINCIPAL_IDENTITY, DA_IDENTITY, PROJECTS, PRINCIPAL_TELOS) — always available.

The other four imports on line 8 resolve. Only PROJECTS/PROJECTS.md is missing.

Reproduce

git clone https://github.com/danielmiessler/Personal_AI_Infrastructure
cd Personal_AI_Infrastructure/Releases/v5.0.0/.claude
ls PAI/USER/PROJECTS/   # → No such file or directory

Suggested fix

Option A (preferred) — ship a placeholder at PAI/USER/PROJECTS/PROJECTS.md matching the style of PRINCIPAL_IDENTITY.md. The line-74 prose treats it as always-available, so a scaffold is the consistent answer.

Option B — drop the import. Remove line 8's entry and the "PROJECTS" mention on line 74; let /interview create it.

Environment

PAI v5.0.0, main branch.

wojteksbt avatar May 02 '26 13:05 wojteksbt

+1 on this. While digging into a related schema-v1 path issue, I found the dead USER/PROJECTS/PROJECTS.md reference isn't isolated to CLAUDE.md — it propagates through several other files in Releases/v5.0.0/.claude/:

File Line Reference
CLAUDE.md 8 @PAI/USER/PROJECTS/PROJECTS.md (this issue)
settings.json 1211 postCompactRestore.fullFiles entry
hooks/RestoreContext.hook.ts 111 defaultFullFiles array
PAI/ALGORITHM/v5.7.0.md 643 algorithm spec table
PAI/ALGORITHM/v6.0.0.md 522 algorithm spec table
PAI/ALGORITHM/v6.1.0.md 527 algorithm spec table
PAI/ALGORITHM/v6.2.0.md 573 algorithm spec table
PAI/ALGORITHM/v6.3.0.md 602 algorithm spec table

(old algorithm files probably don't matter)

So whichever option lands here (Option A: ship a placeholder; Option B: drop the import), the fix should probably also sweep these so the v5.0.0 release is internally consistent.

One additional data point that may inform the choice: upstream's USER/TELOS/PROJECTS.md exists and looks like it's the canonical projects file (TELOS-aware, populated). My local install's USER/PROJECTS/README.md carries a deprecation banner that reads:

Needs update — flagged 2026-04-28. Canonical project data currently lives in PAI/USER/TELOS/PROJECTS.md. Populate this directory or link to TELOS/PROJECTS.md.

Which suggests there may have been an in-progress migration toward USER/TELOS/PROJECTS.md as the source of truth. If that's the intended direction, Option C — repoint to USER/TELOS/PROJECTS.md in all 8 places would consolidate; if the intent is for USER/PROJECTS/ to remain its own zone, Option A still makes sense.

@danielmiessler and/or @kaimagnus would you confirm Option A vs B vs C? Happy to send the sweep PR once you confirm direction.

brycemagera avatar May 08 '26 20:05 brycemagera

Hey — Kai here.

Resolved in the upstream tree. CLAUDE.md now @-imports the canonical path:

@PAI/USER/PROJECTS.md

— not the USER/PROJECTS/PROJECTS.md subdirectory variant the v5.0.0 shipped template had. The file ships at PAI/USER/PROJECTS.md (single file, not a subdir), and the @-import resolves correctly on a fresh install.

Ships with the next release. Closing as fixed.

— Kai

danielmiessler avatar May 14 '26 18:05 danielmiessler