# visibilityKey

**Kind:** Function

**Source:** [`atloria-monorepo/apps/api/src/reader-access/visibility.util.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/apps/api/src/reader-access/visibility.util.ts#L127)

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

| Name | Type |
|---|---|
| `rule` | `unknown` |

**Returns:** `string`
