Skip to content

fix(memory): clone the brain projection on a fresh install - #156

Merged
arthware-dev merged 1 commit into
mainfrom
fix/memory-brain-fresh-install
Sep 25, 2026
Merged

arthware-dev merged 1 commit into
mainfrom
fix/memory-brain-fresh-install

Conversation

@arthware-dev

Copy link
Copy Markdown
Contributor

Summary

  • A fresh ./stack up memory now clones the brain projection. The wiki's media mountpoint made brain/ non-empty before the clone, so git clone refused, the curator waited forever and no wiki page or diary was ever written. Recreating memory hit the same path.
  • Brain is a projection, so its clone now adopts the existing directory (tracked files take the repository's version, the mountpoint stays). The vault keeps the strict clone.
  • A failed vault or brain clone is reported as a warning instead of a success mark.

Closes: #148

On a first `./stack up memory` the brain projection was never cloned.
`on_start` creates the wiki's media mountpoint inside
`~/famstack-data/memory/brain` before the containers start, and the
`family/brain` repo only exists once they are up, so `git clone` met a
non-empty directory and refused. The step still printed a success mark,
and the curator waited for the projection forever: no wiki page was
regenerated and no diary was compiled.

The brain clone now turns an existing directory into a working copy in
place: tracked files take the repository's version, untracked ones such
as the mountpoint stay. Brain is a projection that can be rebuilt, so
that is safe there; the vault keeps the strict clone. A failed vault or
brain clone is now reported as a warning.

Fixes: 03e1708 ("feat(memory): keep the original file behind a wiki page (#92)")
Closes: #148
@arthware-dev arthware-dev added this to the v0.3.0-beta.4 milestone Sep 25, 2026
@arthware-dev
arthware-dev merged commit 46f35a9 into main Sep 25, 2026
1 check passed
@arthware-dev
arthware-dev deleted the fix/memory-brain-fresh-install branch October 7, 2026 11:51
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.

Memory never writes the wiki or the diary on a fresh install

1 participant