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
So nodespace import dir ../nodespace-docs --auto-collection-routing (see CLAUDE.md) creates a new collection node for a given name/path on each occurrence (per subdirectory match and/or per re-import run) instead of reusing an existing collection with that name/path.
Impact
Sidebar/collection tree shows (or would show) many duplicate collections with identical names.
Content is split across duplicate collections, so a "collection" the user thinks is one thing is actually several.
Expected
--auto-collection-routing should resolve an existing collection by name/path (find-or-create) and route content into the single canonical collection, rather than minting duplicates. Re-importing the same tree should be idempotent (no new duplicate collections).
Notes
Likely lives in the import / auto-collection-routing path (core CLI/import).
Dedup key should be the collection path (the routing already derives a path), not a fresh id per match.
Second facet found during the same load test: imported sub-collections are invisible in the sidebar (no membership)
Ground-truthed against tenant_demo synced to a fresh device as [email protected] (person 993a1c99):
The 18 imported collections (Architecture, Components, Decisions, Docs, …) are member_of the Default/root collectionc0000000-0000-0000-0000-000000000001 (which in this tenant is named "T4 Collection"). Their content nodes sync fine (reachable via the open root).
BUT no member_of edge links a person to any of them — demo@ is a member of 0 collections. Query: SELECT ... FROM relationship WHERE relationship_type='member_of' AND out_node=<person> → empty.
Result: the sidebar (get_all_collections, which returns collections the caller is a member of + the default) shows only "T4 Collection" even though all 18 collection nodes are local and their content is present.
So --auto-collection-routing creates the sub-collection nodes and links them to the root, but never stamps the importing user (or any person) as a member → the collections are undiscoverable in the UI despite being fully synced.
Two distinct problems on this issue now
Duplicates — multiple collection nodes per name (original report).
No membership on import — imported collections have no person member_of edge, so they don't surface in the collection sidebar. Either the import should add the importer as a member, and/or the sidebar should also surface collections that are member_of the root (open) regardless of explicit membership.
Facet 1 (duplicate collection nodes — this issue's title) is resolved by #1704 (merged, 6d7985e): collection ids are now deterministic (UUIDv5 of the normalized name) across the import AND the interactive create paths, so independent devices/re-imports converge on one node per name. Facet 2 (imported/nested collections have no person member_of edge → invisible in the sidebar) is split out to #1705. Closing this issue as the duplicates facet is fixed.
Activity
mstomar125 commentedon Jul 20, 2026
Second facet found during the same load test: imported sub-collections are invisible in the sidebar (no membership)
Ground-truthed against
tenant_demosynced to a fresh device as[email protected](person993a1c99):member_ofthe Default/root collectionc0000000-0000-0000-0000-000000000001(which in this tenant is named "T4 Collection"). Their content nodes sync fine (reachable via the open root).member_ofedge links a person to any of them —demo@is a member of 0 collections. Query:SELECT ... FROM relationship WHERE relationship_type='member_of' AND out_node=<person>→ empty.get_all_collections, which returns collections the caller is a member of + the default) shows only "T4 Collection" even though all 18 collection nodes are local and their content is present.So
--auto-collection-routingcreates the sub-collection nodes and links them to the root, but never stamps the importing user (or any person) as a member → the collections are undiscoverable in the UI despite being fully synced.Two distinct problems on this issue now
member_ofedge, so they don't surface in the collection sidebar. Either the import should add the importer as a member, and/or the sidebar should also surface collections that aremember_ofthe root (open) regardless of explicit membership.Deterministic collection ids to stop --auto-collection-routing creati…
mstomar125 commentedon Jul 20, 2026
Facet 1 (duplicate collection nodes — this issue's title) is resolved by #1704 (merged, 6d7985e): collection ids are now deterministic (UUIDv5 of the normalized name) across the import AND the interactive create paths, so independent devices/re-imports converge on one node per name. Facet 2 (imported/nested collections have no person
member_ofedge → invisible in the sidebar) is split out to #1705. Closing this issue as the duplicates facet is fixed.Reword remaining GitHub issue-number provenance comments in packages/…