Skip to content

Commit 6e978db

Browse files
committed
docs(spec): organizationId TSDoc in the ADR-0161 note's wording
Claude-Session: https://claude.ai/code/session_01QSeKYkS1d2QkEUgqhneuU1 Co-authored-by: Claude <noreply@anthropic.com>
1 parent e8b0688 commit 6e978db

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎packages/spec/src/ai/knowledge-document.zod.ts‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,9 @@ export const KnowledgeDocumentSchema = lazySchema(() => z.object({
5858
* and read by its search: when the search is handed
5959
* `AdapterSearchOptions.organizationIds`, only documents whose organization
6060
* is in that set are ranked, so a document without one is not. An adapter
61-
* that stores `docHash` stores `organizationId` from the same version on:
62-
* the hash already covers the organization, so an adapter that held only the
63-
* hash would have every document skipped by a later complete reindex, and a
64-
* walled search would never rank them.
61+
* that stores `docHash` stores `organizationId` from the same version on;
62+
* otherwise, once it starts reading this field, a complete reindex skips its
63+
* documents and a walled search never ranks them.
6564
*/
6665
organizationId: z.string().optional()
6766
.describe('Organization of the record the document was assembled from; set by the knowledge service under a walled tenancy posture'),

0 commit comments

Comments
 (0)