Repository navigation
The Library shows the collections a person can read, and the separate Collections page is gone - #219
Merged
Merged
Conversation
zlareb1
force-pushed
the
feat/library-collections
branch
2 times, most recently
from
November 4, 2026 01:50
e25508b to
1e14ade
Compare
…iptions Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…s its own chunk With main's Assistant page and the Library's collections the shell's index chunk passed its 120 kB budget. The page a memory view shows on a code or tracker namespace, or none, is a page of its own, as the views are, and loads when it is shown. The index chunk is 115.8 kB. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
zlareb1
force-pushed
the
feat/library-collections
branch
from
November 4, 2026 01:53
1e14ade to
3a50e9d
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.
Changelog category (leave one):
Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):
The dashboard's Library now shows the collections you can read, as a tree with each one's description: pick one to see and add its documents, share it (Members) or delete it from its menu, or create a new one. The separate Admin › Collections page is gone, and
collection.listreturns each collection's description.Why
A person met two separate concepts for "a place where documents live and who can see it":
The Collections page only listed what the caller's own grants reach, so it was a per-person view behind an admin label. Its details panel already listed the collection's documents, a second, smaller Library. Agents already treat collections as Library places:
knowledge.searchandloom_searchfan out over every collection the caller can read (knowledge_search_fanout_kindsincludescollection).So a collection is now a place inside the Library, and one concept goes away:
collection.listreturns. Collections show as a tree: each parent comes before its children and is indented, the user's own@mefirst as "My files", and a collection whose parent the caller cannot read at the top. Each one is labelled with its description, and the select finds one by typing its name or description. The picker is one row at every width, with what the place is behind an info button beside it, so the list still starts where the list rules want it; a phone leaves out the library's figures line, whose count the toolbar shows. On a code or tracker namespace, or with none, the Library still opens: it reads nothing until a collection is picked, and the select lists only collections. A header namespace that is itself a collection is listed once, as that collection, with its role; untilcollection.listnames that role the page takes it from the namespace menu, and offers no write while neither says.?collection=), and the page reads it from there on every render. A pick is a history entry, so Back steps through the places picked; the page's own corrections (leaving a collection it cannot show) replace the entry. A value that is not acol-name is ignored, so the page never prints text a link made up; boot reads it with the same check. It never changes the header's namespace, which is also where the person's agents write (/v1/me/set-default-namespace).collection.list, read in full by the Library, names it, so the page never shows or writes one under the namespace's label. Until then the select says it is opening it and Add document waits. A link naming a collection the caller cannot read shows the namespace and drops the key. One whose list fails shows the namespace for now and keeps the link for "Load collections again".?doc=link, or one opened from the header search) opens only from rows read for the place shown, and never while the URL names a collection the list has not confirmed, so after a failed list it opens in its collection once the list answers. Picking another place drops it. Leaving a place also drops an open still in flight and its file preview.collection.listnames it.MembersDialog) is offered on any collection except the user's own. It and New collection close when the URL moves to another place and stay closed on the way back, so Back never lands a grant on the wrong one; the list confirming the place shown moves nothing, so what was typed stays. Delete collection, for an admin, erases what it holds (collection.delete) after a confirm; deleting the header's own namespace opens the namespace picker and leaves nothing of it on screen.col-…slug stays its one name, and the description is the display text beside it.collection.listnow returnsdescription: the collection's directory description, whichcollection.createalready stored. Since every grantee now sees it,collection.createholds it to 2000 characters (a longer one is refused with a validation error), and the select cuts it to 80 characters (by character, never inside an emoji).admin:collections), and its tests. Its details panel (grants and newest documents) is replaced by the Library itself and the Members dialog.Scope and risk
collection.listreturns (sharing.readable), and every read and write still goes through the collection's gate.collection.listmakes one more statement per page: the directory descriptions of the collections on it (loom.namespaces FINAL, keyed by org and the page's names, read with the replica's own writes so a collection created a moment ago has its description). It is a singleINover at most a page of names, with aLIMITof their count.collection.listonce per load, every page up to 20;callBudget.test.tsxpins one call for a one-page answer. Past 20 pages it says only the first 10,000 are listed, and that a link to a later one shows the namespace. If it fails, the namespace's documents still show, with a one-line note and a way to load the collections again./admin/collectionsis no longer a route. An old link lands where an unknown path does.Compatibility, rollout and rollback
collection.listentries gaindescription(string,""when none). It is additive. The dashboard reads it as optional, so a server a release behind shows names only.collection.createrefuses adescriptionover 2000 characters, which it accepted before.docs/reference/operations/collection.md,sdk/python/loom/ops.pyandsdk/typescript/src/generated/ops.tsare regenerated.Tests
tests/integration/test_knowledge_sharing.py::test_collection_list_names_each_collection_with_its_description: a collection created with a description lists it for its creator and for a grantee, and one created with none lists"". A collection the grantee cannot read is not listed. The whole file (31 tests) passes against a local server with auth on.frontend/src/views/LibraryCollections.test.tsx:collection.listnames it, and shows the namespace for one it does not hold (dropping the key) or when the list fails (keeping it);frontend/src/App.boot.test.tsx: a Library link to a collection opens on the reader's own namespace though the sender's namespace denies them, keeps the collection and reads it, and a junk?collection=still shows "No access";frontend/src/views/LibraryCollections.test.tsxalso: a?collection=that is no collection's name is ignored, and leaving after a re-read says why;collection.listis read, and a cycle in the tree keeps its collections;frontend/src/layout/Sidebar.nav.test.ts: the Access group holds Users only.tests/integration/test_knowledge_sharing.py: a grantee's list carries only the description of the collection the grant opens.a11y.spec.tsandroute-budget.spec.ts(91 tests) pass. The a11y case for the removed page now opens the Library's select, a collection's menu and the New collection dialog.npm run budget,make lint typecheck, andtests/unit/test_sharing.pyandtest_identity_incomplete.py(121 tests) pass.col-…names.col-handbook · Team handbook and onboarding, withcol-handbook-hr · People policiesunder it andcol-research · Papers and notes the agents cite. Pickingcol-handbookshows its document, the Admin role and the Members / Delete collection menu, and the URL reads?collection=col-handbook.🤖 Generated with Claude Code