Repository navigation
Create managed databases beside the manager's registry, not under the ambient home (closes #3780) - #3781
Merged
Conversation
Collaborator
Author
Code Review SummaryReview Type: Pragmatic code review (initial), PR #3781, closes #3780. Requirements Check
Verification of the points raised
FindingsCritical IssuesNone. Suggested ImprovementsNone blocking. Nitpicks
RecommendationAPPROVE. |
malibio
commented
Oct 13, 2026
malibio
left a comment
Collaborator
Author
There was a problem hiding this comment.
Automated pragmatic-code-review: APPROVE (posted as a comment — GitHub blocks self-approval). Full findings in the review comment above.
Collaborator
Author
Review responseAddressed: 0 of 2 (both nits skipped, no code change)
Re-Review DecisionDecision: NO RE-REVIEW NEEDED Rationale: The review approved with no findings requiring change, and no code changed since it. 🤖 Generated with Claude Code |
… ambient home (closes #3780) DatabaseManager::create with no path used nodespace_dir(), which follows NODESPACE_HOME or else the real home, so an in-process manager over a temp registry wrote ULID-named databases into ~/.nodespace/database/ (three per run of mcp_integration). The directory is now database/ beside the registry file, which is the same path in the daemon (<nodespace dir>/databases.toml). Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
malibio
force-pushed
the
issue-3780-managed-db-registry-dir
branch
from
October 13, 2026 11:20
00eca4e to
140a689
Compare
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.
Summary
DatabaseManager::create(name, None)placed the file under the ambientnodespace_dir()/database/, which followsNODESPACE_HOMEor else the real home, even when the manager was loaded from a registry elsewhere. An in-process manager in a test therefore wrote into~/.nodespace/database/: every run ofpackages/cli/tests/it/mcp_integration.rs(itscreate_databasehelper passespath: Nonethree times) left three ULID-named ~1 MB databases there. 243 had accumulated on one machine.The managed directory is now
database/beside the manager's own registry file. In the daemon the registry is<nodespace dir>/databases.toml, so the path is unchanged there; a manager loaded from a temp registry stays inside it by construction, and no test needs to remember to isolate.Test plan
create_without_a_path_stays_beside_the_registry(new)mcp_integrationrun: no new file in the real~/.nodespace/database/bun run test:changed(rust:test 316s)bun run quality:fix🤖 Generated with Claude Code