Overview

17 AI in policy practice

As AI tools became embedded in everyday workflows, ACME explored where they could help with authorization-related work without being trusted to make access decisions. The chapter argues that AI should not become the policy engine because authorization requires deterministic, explainable, and auditable decisions, while AI is inherently inferential and nondeterministic. Instead, ACME kept a strict boundary: policy engines remain the source of truth for permit and deny decisions, and AI is limited to supportive roles.

Within that boundary, AI proved useful for policy authoring and analysis. It helped engineers explain existing decisions, explore alternative ways to express the same intent, analyze concrete requests, and review logs to spot patterns, edge cases, and surprising outcomes. These uses improved clarity and maintainability, but human judgment remained central, since the AI’s output was always advisory and had to be checked against actual policy evaluation traces and runtime evidence.

The chapter also shows how this principle applies to RAG systems, where authorization must happen before retrieval so unauthorized data never enters the model’s context. By enforcing access control at the retrieval boundary and using decision logs to connect runtime behavior back to governance, ACME made AI-enabled systems safer and more accountable. The broader takeaway is that policy is a living practice: AI can accelerate understanding and review, but people, policy engines, and governance processes must retain authority over enforcement and change.

 Nondeterministic AI authorization. When authorization intent is embedded in prompts and inferred by an AI system, identical requests with the same context can result in different outcomes. In this example, the same access request and prompt lead to both permit and deny decisions, each with a plausible explanation. Since the reasoning is inferred rather than evaluated as policy, the results are not repeatable and cannot be used as a reliable basis for access enforcement.
Authorized context for AI prompts. ACME performs authorization before prompt construction, producing an authorized context that defines which data and actions are permitted for the current request. The AI model may receive sensitive data, but only data approved by the authorization layer. The model does not query sensitive data directly or decide what it is allowed to access.
Design-time intent versus runtime reality. Authorization policies are created to express intent at design time, while their effects are revealed through observed decisions at runtime. Comparing these two perspectives (how policies were intended to work and how they actually behave in production) helps teams identify mismatches, unexpected outcomes, and areas that need governance review.
Authorization before retrieval in RAG systems. Authorization constrains retrieval rather than generated output. By enforcing access before data is retrieved, the system ensures that the language model operates only on authorized inputs, making information leakage structurally impossible rather than merely discouraged.
 Runtime analysis and governance loop. Authorization outcomes captured in decision logs are analyzed with AI assistance and surfaced as questions, patterns, and reports. These insights feed into governance processes, where humans interpret the evidence and decide whether policy changes are needed. The flow makes authorization behavior observable and actionable without placing AI in the enforcement path.

Summary

  • Authorization needs predictability, transparency, and traceability, which AI systems cannot deliver.
  • AI works best when it is limited to assistance roles such as drafting, explaining, and analyzing.
  • Embedding authorization logic within prompts as text results in unpredictable and unsafe outcomes.
  • Clear architectural boundaries stop AI systems from turning into implicit enforcement tools.
  • Design-time intent and runtime behavior frequently differ, especially in complex policy systems.
  • Decision logs offer the evidence necessary to understand how authorization behaves in practice.
  • AI-assisted analysis helps reveal unexpected outcomes, edge cases, and policy interactions.
  • Governance relies on observable actions, not guessed intentions or likely explanations.
  • In retrieval-augmented generation systems, retrieval serves as the proper enforcement point.
  • Authorizing before retrieval prevents unauthorized data from ever entering an AI model’s context.
  • Policy residuals can be used to convert authorization results into retrieval constraints.
  • Architecture, not prompts, determines whether AI-enabled systems are safe by construction.
  • Accountability emerges when decisions are traceable from outcomes back to policy and ownership.
  • Policy becomes a practice when authoring, observation, and governance form a continuous loop.

FAQ

Why shouldn’t AI systems be used as authorization decision-makers?Authorization decisions must be deterministic, explainable, auditable, and reproducible. AI systems can produce different outputs for the same input and may give plausible but incorrect explanations, so they are not reliable for enforcement.
How can AI help with authorization without becoming the authority?AI can assist humans by drafting policies, explaining rules, summarizing decisions, exploring alternatives, and identifying edge cases. The policy engine remains the source of truth for actual access decisions.
What is the main boundary ACME uses between AI and authorization?ACME keeps AI out of the enforcement path. Authorization is evaluated first by the policy engine, and AI only works with data and context that have already been approved by authorization.
Why are AI-generated explanations of access decisions not considered authoritative?Because AI can infer intent from policy structure rather than evaluate the actual policy logic. Even when an explanation sounds correct, only the policy engine’s evaluation trace can serve as authoritative evidence.
How does AI help in policy authoring and design?AI can explain existing behavior, suggest different ways to express the same intent, and help identify confusing or overly complex policy expressions. Humans still decide which policy change best matches organizational intent.
Why should policy analysis use concrete requests instead of abstract questions?Concrete requests keep both the AI and human reviewer grounded in the actual schema, policies, and context. This makes it easier to detect when an analysis has strayed beyond the real system.
How does AI help with runtime authorization analysis?AI can summarize decision logs, cluster similar outcomes, surface unusual permits or denials, and help compare observed behavior with intended policy. This helps teams spot surprises, gaps, and edge cases.
What does “authorization before retrieval” mean in RAG systems?It means the system checks access rights before any documents or records are retrieved for the model. Only authorized content is placed into the model’s context, preventing unauthorized data from entering the prompt.
Why is retrieval considered the enforcement boundary in RAG?Because once unauthorized data is retrieved, it may influence the model’s output even if later filtered. Enforcing authorization before retrieval prevents the data from ever reaching the model.
How does architecture support accountability in AI-enabled authorization systems?Architecture makes decisions observable through logs, keeps enforcement deterministic through policy evaluation, and limits AI to assistive roles. That combination creates evidence for governance, audits, and policy improvements over time.

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime

lite $19.99 per month

  • access to all Manning books, including MEAPs!

team

5, 10 or 20 seats+ for your team - learn more


choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Authorization in Action ebook for free
choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Authorization in Action ebook for free
choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Authorization in Action ebook for free