fix: retire Obsidian wiki (opt-in) + isolate headless claude_cli sessions#182
Merged
Merged
Conversation
…i sessions Two coupled fixes for a real install failure: a 2GB/5,921-file Obsidian vault (hung Obsidian) AND ~154k Claude session transcripts / 12GB (froze claude --continue). Both trace to the steward: wiki-absorb looped the claude_cli stack over the whole vault, and every 'claude --print' wrote a session transcript into the caller's project folder. - wiki-absorb is now opt-in (MEMORYMASTER_WIKI_ABSORB=1, default OFF) in the steward-cycle template; the claims DB + FTS5 + vectors + graph + recall IS the scalable LLM-wiki, the markdown vault was a non-scaling duplicate. Steward still runs validate/decay/dedup/tiers. Recall wiki breadcrumbs gated on the same flag so recall never points at an absent vault. - _call_claude_cli runs 'claude --print' from a scratch cwd (~/.memorymaster/claude_cli_scratch, override MEMORYMASTER_CLAUDE_CLI_CWD) so headless calls never flood ~/.claude/projects/<project>/ again. 184 targeted tests green (incl. updated intent test); ruff clean.
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.
Fixes a real install failure surfaced this session: a 2 GB / 5,921-file Obsidian vault (hung Obsidian) and ~154k Claude session transcripts / 12 GB (froze
claude --continue). Both trace to the steward —wiki-absorblooped theclaude_clistack over the whole vault, and everyclaude --printwrote a session transcript into the caller's project folder.MEMORYMASTER_WIKI_ABSORB=1, default OFF). Per the Karpathy LLM-Wiki research, the markdown wiki is for a few-hundred pages that fit in context; past that you use a search DB with lifecycle rules — which is MemoryMaster's claims DB (FTS5 + vectors + graph + supersession + decay + tiers). The vault was a redundant non-scaling duplicate. Steward still runs validate/decay/dedup/tiers; recall breadcrumbs gated on the same flag._call_claude_cliruns from a scratch cwd so headless calls never flood~/.claude/projects/<project>/again.184 targeted tests green (incl. updated intent test), ruff clean. Full-suite gate running.
🤖 Generated with Claude Code