- Problem
- One index over three tools, each with its own sharing model: public and private Slack channels and DMs, per-file Drive sharing, Notion with no readable sharing at all, plus restricted uploads.
- Approach
- Every document stores the shape of its source's permissions. One query decides visibility for the person asking: private channels only if their linked Slack id is a member, Drive only if they're on the file's list. For Drive, whoever owns a file decides its permissions; anyone else's sync indexes it hidden until the owner connects.
- Result
- Verified live with two real Drive accounts and private Slack channels. A production end-to-end run that created its own workspaces found no leak.