IntegrAuth Lab

Labs · Authorization

Permission-aware RAG

Your agent retrieves documents on your behalf — but every candidate document is run through a real authorization Check first. Access is decided by the Check, never by the prompt.

This is the same check() evaluator the FGA lab uses, run once per candidate document (object document:<slug>, relation viewer, subject user:<you>). Retrieval is authorized against your own relationship graph — “your agent retrieves using your permissions” — so nothing comes back until a tuple says you can view it.

Before querying, grant your own user viewer access on a document or two — head to the FGA lab and either add a tuple by hand (e.g. document:readme viewer user:you) or click “Seed demo” for a populated graph.

Retrieve as your agent

The corpus

A fixed set of documents your agent could retrieve from — titles only; content is never sent unless a document comes back retrieved ✓ below.

Retrieve as an agent and the synthesized answer lands here — built only from what the Check allowed.