Skip to content

Search leaves out brains registered inside another brain (0.3.2) - #6

Merged
moderniselife merged 1 commit into
mainfrom
fix/nested-brains
Nov 23, 2026
Merged

moderniselife merged 1 commit into
mainfrom
fix/nested-brains

Conversation

@moderniselife

Copy link
Copy Markdown
Owner

Why

A team brain kept inside a company brain's folder (for example teams/qa/ registered as its own brain) showed up in the company brain's searches. Its agent folders aren't under the outer brain's agents/, so they were treated as shared notes. For a setup that splits teams to keep their notes apart, that is a leak.

What

  • walkMarkdown skips any folder that is itself a registered brain. Searching that brain, or every brain with brain: "*", still finds its notes.
  • docs/TEAMS-AND-ROUTINES.md has a short "Brains inside brains" note.
  • Version 0.3.2.

Testing

  • New test in cli/test/team.test.mjs: it fails without the fix and passes with it.
  • npm test: 43/43 pass.

🤖 Generated with Claude Code

A team brain kept in a company brain's teams/ folder showed up in the
company brain's searches as if it were shared. walkMarkdown now skips any
folder that is itself a registered brain; searching that brain, or every
brain, still finds it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@moderniselife
moderniselife merged commit eb02841 into main Nov 23, 2026
4 checks passed
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