Repository navigation
Conversation
…as no usable remote Routing is keyed by the git origin remote; everything else lands in `miscellaneous`. Scratch folders, local-only repos and synced project directories therefore share one namespace — logs, brain pages and the TODO queue mix. DEVBRAIN_PROJECT cannot fix it: capture is sweep-based, so the flusher's environment, not the session's, decides. A `.devbrain-project` file names the project key on its first line. ProjectKey consults it after $DEVBRAIN_PROJECT and the data-repo guard and before the remote, walking up from cwd like `.git` so subdirectories inherit it. Keys are sanitised and canonicalised through project-aliases like remote keys; blank or dot-only values are ignored so a marker can never resolve to projects/.. The remote path is unchanged (shared canonicalFor helper). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Routing is keyed by the git origin remote; everything else lands in
miscellaneous. Scratch folders, local-only repos and synced project directories therefore share one namespace. On my machine 17 of 30 Superset project folders have no remote: their logs, brain pages and TODO queue mix, anddevbrain todo listrun in one of them shows another's tasks.DEVBRAIN_PROJECTcannot fix this: capture is sweep-based, so the flusher's environment, not the session's, decides where a transcript goes.What
.devbrain-projectfile names the project key on its first line.ProjectKeyconsults it after$DEVBRAIN_PROJECTand the data-repo guard, and before the remote, walking up from cwd the way git finds.git, so subdirectories inherit it.Sanitizeand the existingproject-aliasescanonicalisation, like remote-derived keys. Blank or dot-only values are ignored, so a marker can never resolve toprojects/...canonicalForhelper. README documents the marker.How verified
TestProjectKeyMarkerFile: no-git folder, subdirectory inheritance, marker-in-repo precedence over the remote, and blank /.././rejection. Failed before the change (routed tomiscellaneous/ the remote key), passes after.make test(vet, full suite, dashboard node checks) is green.🤖 Generated with Claude Code