4 community-contributed fixes: JSON parsing, dead references, portability, upgrade migration.
Community-contributed fixes from open PRs — no new features, no breaking changes.
| PR | Fix |
|---|---|
| #800 | Inference.ts JSON parsing only matched objects {} — now handles arrays [] too, with validation via JSON.parse |
| PR | Fix |
|---|---|
| #836 | CONTEXT_ROUTING.md had 29 dead references to files removed in v4.0 — consolidated to 4 README pointers |
| #817 | WorldThreatModelHarness hardcoded ~/.claude/ path — now uses $PAI_DIR for portability |
| PR | Fix |
|---|---|
| #846 | Upgrading from v2.5/v3.0 stranded user context at skills/PAI/USER/ — installer now migrates files to PAI/USER/ and creates symlinks for backwards compatibility |
| File | Fixes |
|---|---|
PAI/Tools/Inference.ts |
#800 (JSON array parsing) |
PAI/CONTEXT_ROUTING.md |
#836 (dead reference cleanup) |
skills/Thinking/WorldThreatModelHarness/SKILL.md |
#817 (PAI_DIR portability) |
PAI-Install/engine/actions.ts |
#846 (user context migration) |
git clone https://github.com/danielmiessler/Personal_AI_Infrastructure.git
cd Personal_AI_Infrastructure/Releases/v4.0.3
cp -r .claude ~/ && cd ~/.claude && bash install.sh# 1. Back up
cp -r ~/.claude ~/.claude-backup-$(date +%Y%m%d)
# 2. Clone and copy
git clone https://github.com/danielmiessler/Personal_AI_Infrastructure.git
cd Personal_AI_Infrastructure/Releases/v4.0.3
cp -r .claude ~/
# 3. Run the installer
cd ~/.claude && bash install.sh
# 4. Rebuild CLAUDE.md
bun ~/.claude/PAI/Tools/BuildCLAUDE.tsCopy these files from this release over your existing ones:
PAI/Tools/Inference.ts— JSON array parsing fixPAI/CONTEXT_ROUTING.md— dead reference cleanupskills/Thinking/WorldThreatModelHarness/SKILL.md— PAI_DIR portabilityPAI-Install/engine/actions.ts— user context migration for upgrades
See the main README for the general upgrade procedure. The installer auto-detects existing installations regardless of which version you're upgrading from.