fix: WorldThreatModelHarness use PAI_DIR for model storage path#817
Closed
Spirotot wants to merge 1 commit intodanielmiessler:mainfrom
Closed
fix: WorldThreatModelHarness use PAI_DIR for model storage path#817Spirotot wants to merge 1 commit intodanielmiessler:mainfrom
Spirotot wants to merge 1 commit intodanielmiessler:mainfrom
Conversation
The storage path for world models was hardcoded to ~/.claude/MEMORY/RESEARCH/WorldModels/ which is incorrect for installations using the recommended PAI symlink setup. ~/.claude/MEMORY/ is typically not symlinked to the PAI directory — it is a bare directory that is not git-tracked. Models stored there are lost on reinstall and are not version-controlled with the rest of the user's PAI configuration. The correct path is $PAI_DIR/MEMORY/RESEARCH/WorldModels/ — this resolves to the pai-system repo's MEMORY/RESEARCH/ directory which is intentionally not gitignored (unlike MEMORY/LEARNING/, WORK/, STATE/ which go in pai-learning-data submodule). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Owner
|
Thank you @Spirotot! The Fix included in: Releases/v4.0.3 |
HyggeHacker
pushed a commit
to HyggeHacker/Personal_AI_Infrastructure
that referenced
this pull request
Mar 2, 2026
…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>
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
WorldThreatModelHarness/SKILL.mdstorage path was hardcoded to~/.claude/MEMORY/RESEARCH/WorldModels/$PAI_DIR/MEMORY/RESEARCH/WorldModels/Test plan
$PAI_DIRresolves correctly in your PAI installation (echo $PAI_DIR)🤖 Generated with Claude Code