liveBook · Manning

Chapter 17: AI in policy practice

What you will learn in chapter 17 of Authorization in Action

The introduction explains why AI can help people work with authorization policies but should not make the final access decision.

After this chapter you will be able to

What it builds on

Section by section

Introduction

The introduction explains why AI can help people work with authorization policies but should not make the final access decision.

Key terms: authorization, access determination, determinism, explainability, auditability, predictable failure modes, policy-based authorization, policy engines, policy changes, hypothetical access situations

17.1 AI is not your policy engine

This section explains why AI must not make authorization decisions and how ACME keeps policy evaluation in charge while using AI within authorized boundaries.

Key terms: nondeterministic outcomes, deterministic evaluation, enforcement, policy engine, policy evaluation trace, authoritative explanations, policies as code and data, authorization decision loop, authorized context, principal

17.2 Policy authoring and analysis with AI

This section explains why AI can help ACME author and analyze policies while leaving authorization decisions to the policy engine.

Key terms: design-time tasks, enforcement path, policy engine, candidate policies, organizational intent, executable policy, policy sets

17.2.1 Explaining existing behavior

The section shows how AI can explain a specific authorization outcome while emphasizing that engineers must verify its explanation against the actual policy evaluation trace.

Key terms: Cedar schema, permit policy, entity relationships, reader relationship, policy evaluation trace, authoritative, poorly expressed policies

17.2.2 Exploring alternative expressions of intent

This section shows how AI can surface different policy changes for the same requested outcome while leaving the design choice to a human.

Key terms: forbid policy, permit policy, unless clause, authorization intent, human judgment, clarity, maintainability, intent, style

17.2.3 Using concrete requests to ground analysis

This subsection shows how specific authorization requests make AI-assisted policy analysis easier to check against the actual system.

Key terms: AI-assisted policy analysis, specific requests, expected results, schema

17.2.4 Human judgment remains central

This section explains how ACME uses AI to improve policy work and log analysis while leaving policy acceptance and authoritative access findings to humans and deterministic systems.

Key terms: advisory, human author, organizational intent, design-time workflow, enforcement path, PDP decision log, policy version, policy replay tool, deterministic rule, triage

17.3 What AI can tell you about your authorization policies

This section contrasts policy intent with runtime authorization outcomes and explains how AI can help compare them.

Key terms: design-time intent, runtime reality, decision logs, AI-assisted analysis

17.3.1 Seeing what policies really do

This section shows how AI-assisted analysis of decision logs reveals what deployed authorization policies actually do, which may differ from their owners’ intent.

Key terms: decision logs, observed decisions, inferred intent, overlapping policies

17.3.2 Identifying gaps and edge cases

This section shows how AI-assisted analysis can surface surprising authorization decisions and help teams use runtime behavior to revisit policy intent.

Key terms: AI-assisted analysis, edge cases, outliers, rare permits, unexpected denials, runtime analysis, design-time decisions, intent, behavior

17.3.3 Asking better questions

This section shows how teams can use AI and runtime data to ask broader questions about what their authorization policies do in practice.

Key terms: policy behavior, runtime data, effective audience, exceptions

17.3.4 From observation to accountability

This section shows how ACME uses evidence of runtime authorization decisions and AI-assisted explanation to make those decisions accountable without letting AI make them.

Key terms: runtime behavior, policies in effect, data used during evaluation, AI-assisted analysis, accountability, policy engine, policy and data, determinism, auditability, design-time intent

17.4 Authorization before retrieval: Making RAG safe by construction

This section explains why a RAG system must authorize data before retrieval so unauthorized information never enters the language model’s context.

Key terms: RAG, retrieval, model’s context, policy engine, authorization before retrieval, safe by construction

17.4.1 A quick review of how RAG works

Reviews how RAG retrieves and adds domain-specific material to a language model’s prompt, then identifies retrieval as the point where authorization must be enforced.

Key terms: RAG, chunks, vector embedding, vector database, query embedding, prompt, system-selected context, user-provided context, authorization, retrieval

17.4.2 Retrieval is the enforcement boundary

This subsection explains why a RAG system must authorize access before retrieval rather than rely on the model or its final response to protect data.

Key terms: retrieval, working context, access control, authorization before retrieval, prompt, response, context window, policy, accountability

17.4.3 From architectural principle to concrete flow

This section shows two ways to authorize RAG retrieval before protected content is fetched, so the LLM receives only policy-approved context.

Key terms: typed partial evaluation, policy residual, query filter, chunk metadata, candidate resource identifiers, relevance scores, batch request, two-stage design, authorized additional context, prompt constructor

17.4.4 Safe by construction, not safe by instruction

The section explains why enforcing authorization before retrieval makes ACME’s RAG systems safer and more accountable than relying on prompts to control access.

Key terms: authorization before retrieval, retrieval path, safe by construction, prompts, policy, authorized scope, governance

17.5 From architecture to accountability

The section shows how decision logs, AI-assisted analysis, and human governance turn authorization outcomes into evidence that can improve policies over time.

Key terms: decision logs, authorization behavior, AI support, policy-based authorization, policy owner, business intent, accountability, runtime evidence, governance, design-time cycle

17.6 Policy as practice

This section presents policy as an ongoing authorization practice in which AI helps people interpret evidence and improve policies without taking over enforcement or governance.

Key terms: policy, decision logs, governance, operational discipline, AI, policy engine, deterministic evaluation, data, context, evidence

17.7 Summary

Where this is used later

Concepts explained in this chapter

← Chapter 16: Using verifiable credentials for authorization Chapter 18: Authorization for AI agents →

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.