Skip to content

fix: retire Obsidian wiki (opt-in) + isolate headless claude_cli sessions#182

Merged
wolverin0 merged 1 commit into
mainfrom
fix/retire-wiki-and-isolate-cli-sessions
Jul 6, 2026
Merged

fix: retire Obsidian wiki (opt-in) + isolate headless claude_cli sessions#182
wolverin0 merged 1 commit into
mainfrom
fix/retire-wiki-and-isolate-cli-sessions

Conversation

@wolverin0

Copy link
Copy Markdown
Owner

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-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 → opt-in (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_cli runs 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

…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.
@wolverin0
wolverin0 merged commit 00982d3 into main Jul 6, 2026
9 checks passed
@wolverin0
wolverin0 deleted the fix/retire-wiki-and-isolate-cli-sessions branch July 6, 2026 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant