Respecting Privacy & Least-Privilege Keys

An agent acting for an intern must never read executive payroll. Filter documents by user permissions BEFORE retrieval, and issue tiny, short-lived tool tokens instead of master admin keys.

If a restricted file enters the model’s prompt, clever questioning can trick the model into repeating it. Enforcing RBAC before search and scoping every tool token shrinks the blast radius to zero.

Mental Model

A hotel keycard that opens only your room until checkout at 11 AM—never a master skeleton key for the entire building.

What Breaks Without This

An intern asks the company assistant to "summarize all Q4 compensation docs" and the agent cheerfully quotes confidential executive payroll because it shared an admin key.

Key Concepts

Key Takeaway

Enforce user permissions before documents are searched, and mint short-lived, least-privilege tokens per tool call.

Take the AI & Agent Engineering Knowledge Check