LIFEOS/MEMORY ships as a real directory instead of a symlink into the USER data repo — boundary guard refuses every KNOWLEDGE and proposal write
Summary
DeployCore scaffolds <configRoot>/LIFEOS/MEMORY/ as a real directory in the system
tree, but SystemUserBoundary.md specifies it must be a symlink into the USER data
repo. LinkUser only links USER, never MEMORY. The result is that LifeOS's own
system/user boundary guard refuses every KNOWLEDGE and proposal write the memory reviewer
produces.
What the boundary doc specifies
LIFEOS/DOCUMENTATION/SystemUserBoundary.md, line 57:
~/.claude/LIFEOS/MEMORY/**(symlink →~/.config/LIFEOS/USER/MEMORY/**, post-Phase-G.2, 2026-05-23) | USER (work history, knowledge graph, learning signals, ...)
What a fresh install actually produces
DeployCore emits plain mkdir actions:
mkdir -p <configRoot>\LIFEOS\MEMORY\WORK
mkdir -p <configRoot>\LIFEOS\MEMORY\KNOWLEDGE
mkdir -p <configRoot>\LIFEOS\MEMORY\LEARNING
mkdir -p <configRoot>\LIFEOS\MEMORY\STATE
mkdir -p <configRoot>\LIFEOS\MEMORY\OBSERVABILITY
mkdir -p <configRoot>\LIFEOS\MEMORY\SKILLS
LinkUser then reports "<configRoot>\LIFEOS\USER → <dataRoot>\USER" and stops. MEMORY
is never relocated or linked, and <dataRoot>/MEMORY does not exist.
Symptom
The first successful memory reviewer run dispatches its items and 3 of 5 are refused:
EWRITE_FAILED: memory write refused at the system/user boundary: resolved target
<configRoot>\LIFEOS\MEMORY\KNOWLEDGE\Companies\<name>.md is outside the USER_DATA repo
(<dataRoot>\USER) — personal data must never land in the system tree (SystemUserBoundary.md)
Same for MEMORY/OBSERVABILITY/pending-proposals.jsonl.
The hot-layer writes (PRINCIPAL_MEMORY.md, DA_MEMORY.md) succeed, because those live under
USER/ which is linked. So the failure is partial and easy to miss: memory appears to work
while the entire knowledge archive and the proposal queue are silently rejected.
Reproduction
- Fresh install on a machine where
LinkUserrelocates USER to a separate data root. ls -la <configRoot>/LIFEOS/—MEMORYis a directory, not a link.- Trigger a reviewer run that emits a
knowledgeitem. - Observe
EWRITE_FAILEDfor every non-USER target.
Fix applied locally
Moved the tree into the data root and linked it back, which resolved every refusal:
mv <configRoot>/LIFEOS/MEMORY <dataRoot>/USER/MEMORY
# Windows, unelevated (see #1730 for why a junction rather than a symlink):
New-Item -ItemType Junction -Path <configRoot>\LIFEOS\MEMORY -Target <dataRoot>\USER\MEMORY
After this the same reviewer run returns succeeded: 2, failed: 0 and the knowledge files
land in the USER repo where the boundary guard expects them.
Suggested fix
LinkUser should handle MEMORY the same way it handles USER: relocate any existing
content into the data root, then link. Alternatively DeployCore should not create
MEMORY/ in the system tree at all and leave it to LinkUser, since the boundary doc makes
the USER data repo its only legitimate home.
Confirmed on current main (5e2f2e8): DeployCore.ts:161-162 still scaffolds <configRoot>/LIFEOS/MEMORY as a real directory and LinkUser.ts links only USER. For tracking: this is the same defect as #1882 (closed 2026-08-17) and the DeployCore half of #1896 (closed 2026-08-20). The maintainer's close notes there say the fix is in source and ships next release: setupUserSeparation creates the LIFEOS/MEMORY -> <dataDir>/USER/MEMORY link, scaffoldMemory targets the data home, and userDataRoot() reads the configured dir. Public main predates that fix.
Workaround that converges on the documented topology, so the next installer finds it already correct (I ran this on my own 7.40.4 install on 2026-08-25; memory writes have passed the boundary guard since):
mv <configRoot>/LIFEOS/MEMORY <dataDir>/USER/MEMORY
ln -sfn <dataDir>/USER/MEMORY <configRoot>/LIFEOS/MEMORY
where <dataDir> is the user-data home (~/.config/LIFEOS by default). Check first that <dataDir>/USER/MEMORY does not already exist, and that your USER repo's .gitignore covers the memory churn you don't want tracked. readlink -f <configRoot>/LIFEOS/MEMORY is the probe.
Fixed at source: the installer scaffolds USER/MEMORY and links LIFEOS/MEMORY to it. The Windows junction note was useful. Next release carries it. Thanks, @cammcd.