Skip to content

visibilityKey

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/apps/api/src/reader-access/visibility.util.ts

Deterministic key for an effective rule — stamped on RAG chunks at index time so retrieval can filter to the caller's satisfiable segments. 'public' when unrestricted. Key stability relies on canonical JSON (sorted object keys), so semantically-identical rules hash identically across restamps.

Signature

ts
function visibilityKey(rule: unknown): string

Parameters

NameType
ruleunknown

Returns: string

Was this page helpful?

Download as PDF