fix: remove 29 dead references from CONTEXT_ROUTING.md#836
fix: remove 29 dead references from CONTEXT_ROUTING.md#836Spirotot wants to merge 1 commit intodanielmiessler:mainfrom
Conversation
CONTEXT_ROUTING.md in v4.0.0 and v4.0.1 references 29 files/directories that don't exist in the release: - 3 system docs (PAISECURITYSYSTEM/, BROWSERAUTOMATION.md, DEPLOYMENT.md) - 10 USER identity files (ABOUTME.md, RESUME.md, etc.) - 9 TELOS files (only README.md ships) - 3 DA identity files - 4 work section files (FEED.md, HEALTH/, FINANCES/, PROJECTS.md) Dead references waste context tokens and cause unnecessary file-not-found lookups during AI context loading. Consolidated 4 USER sections into one pointing at the README.md indexes that actually ship with the release (USER/, PROJECTS/, BUSINESS/, TELOS/). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Additional finding: v2/v3 → v4 upgrade strands user contentJust hit this exact issue after upgrading from v3 to v4.0.1. In addition to the dead references this PR fixes, there's a related migration gap worth noting: The problem: Users who customized their PAI in v2/v3 have populated content at
What we did locally:
Suggestion: It might be worth either:
Great PR — the dead reference cleanup is definitely needed. Just wanted to flag the broader migration issue for anyone else upgrading from v2/v3. |
|
Thank you @Spirotot! This cleanup is merged into PAI v4.0.3. Removing the 29 dead references and consolidating to README pointers is exactly the right approach — cleaner and more maintainable. Fix included in: Releases/v4.0.3 |
…nielmiessler#836, danielmiessler#817, danielmiessler#846) - PR danielmiessler#800: Inference.ts JSON array parsing (dual-candidate strategy) - PR danielmiessler#836: CONTEXT_ROUTING.md dead reference cleanup (75→31 lines) - PR danielmiessler#817: WorldThreatModelHarness $PAI_DIR portability (10 instances) - PR danielmiessler#846: Installer user context migration (copyMissing + migrateUserContext) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Summary
CONTEXT_ROUTING.mdin v4.0.0 and v4.0.1Problem
CONTEXT_ROUTING.mdreferences 29 files/directories that don't exist in the v4.0.0+ releases:PAISECURITYSYSTEM/,BROWSERAUTOMATION.md,DEPLOYMENT.mdABOUTME.md,RESUME.md,CONTACTS.md, etc.MISSION.md,GOALS.md,BELIEFS.md, etc. (onlyREADME.mdships)DAIDENTITY.md,DAWRITINGSTYLE.md,OUR_STORY.mdFEED.md,HEALTH/,FINANCES/,PROJECTS.mdEach dead reference wastes context tokens during AI context loading — the AI reads the path, attempts to load it, gets a file-not-found error, and moves on. With 29 dead links out of 46 total (63%), a significant portion of the routing table is noise.
Fix
USER/README.md,PROJECTS/README.md,BUSINESS/README.md,TELOS/README.md)Verification
Validated every remaining path exists in both releases:
🤖 Generated with Claude Code