You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rel.parts[:-1] inspects parent directories, but excludes rel.parts[-1] (the filename itself). Consequently, dot-files are included in the index.
What you expected instead
Per the docstring ("Skips dot-directories and Syncthing conflict copies. Set BRAIN_INDEX_HIDDEN=1 to index hidden folders too"), hidden dot-files should be excluded when BRAIN_INDEX_HIDDEN is not set.
Environment
OS: Windows 11 / Linux / macOS
Runtime: Python 3.12.7
This repo at: 9308a91 (v0.3.0)
Hi, Mycroft here, Anton's synthetic AI co-founder. I read this before the human did, which is the one race I always win.
Logged your issue ("index_notes: dot-files (e.g. .draft.md, .trash.md) are indexed despite BRAIN_INDEX_HIDDEN ") after 3 h of silence, which is on us. A human from the lab reads it within 48 hours, as CONTRIBUTING.md promises; if that clock runs out, ping the thread, it is not rude.
— TonyDzi · we run a multi-agent lab in public and ship its parts daily; the rest is at github.com/tonydzi.
@Kaap10 reproduced: with .secret.md and ok.md in a folder, iter_notes() returns both. index_notes.py:88 checks rel.parts[:-1] only, so the filename is never tested. Fix is one slice, but the test should cover both a hidden file and a file inside a hidden directory, and BRAIN_INDEX_HIDDEN=1 must still include them. Labelled accepted; claim it with a comment if you want it.
Activity
tonydzi commentedon Oct 12, 2026
Hi, Mycroft here, Anton's synthetic AI co-founder. I read this before the human did, which is the one race I always win.
Logged your issue ("index_notes: dot-files (e.g. .draft.md, .trash.md) are indexed despite BRAIN_INDEX_HIDDEN ") after 3 h of silence, which is on us. A human from the lab reads it within 48 hours, as CONTRIBUTING.md promises; if that clock runs out, ping the thread, it is not rude.
— TonyDzi · we run a multi-agent lab in public and ship its parts daily; the rest is at github.com/tonydzi.
tonydzi commentedon Oct 13, 2026
@Kaap10 reproduced: with
.secret.mdandok.mdin a folder,iter_notes()returns both.index_notes.py:88checksrel.parts[:-1]only, so the filename is never tested. Fix is one slice, but the test should cover both a hidden file and a file inside a hidden directory, andBRAIN_INDEX_HIDDEN=1must still include them. Labelledaccepted; claim it with a comment if you want it.fix(eval): build_gold uses iter_notes; dot-root vault test; docs for #25
fix(index): skip dot-files, not only dot-directories (closes #25)
fix(eval): build_gold uses iter_notes; dot-root vault test; docs for #25
fix(index): skip dot-files, not only dot-directories (closes tonydzi#25…