Skip to main content

Governance Runtime: Five Boundaries, Three Verdicts

Governance · ← Operating · Runtime

This is the runtime implementation guide for Policy-Governed Agent Runtime (PGAR). Principles live in G.A.I.N Governance. Same domain, other view: Operating (estate control system). This series explains how to build runtime trust boundaries: token custody, PEP choke points, PDP surfaces, and immutable audit. RAG, MCP, and memory are other G.A.I.N subjects; PGAR gates their side effects.

THE CLAIM

A production PGAR keeps credentials out of the LLM, gates every side effect at the PEP, returns only ALLOW / DENY / STEP_UP from the PDP, and logs the verdict before execution.

What you are building

A Policy-Governed Agent Runtime is five connected capabilities on one request path:

  1. Boundary ① Ingress: validate token, issue claims, bind every request to a principal
  2. Boundary ② Agentic app: hold session and token; route proposals; never leak credentials to the model
  3. Boundary ③ LLM proposal: LLM sees conversation and tool schemas only
  4. Boundary ④ PEP + PDP: PEP asks PDP; verdict before downstream; structural choke point
  5. Boundary ⑤ Downstream: re-auth, execute, return results to the app

BoundaryComponentDecidesWhen
① IngressAPI gateway + IdPWho is this principal, and are claims valid?Once per request, before the loop
② Agentic appOrchestratorWho holds the token and routes proposals?Entire session
③ LLM proposalModel adapterWhat did the model propose, with no authority?Each inference
④ PEP + PDPPolicy choke pointALLOW, DENY, or STEP_UP before any side effect?Each tool side effect
⑤ DownstreamTarget serviceDoes re-auth still permit this resource operation?After ALLOW

Audit replay is a shared artifact across ④ and ⑤: immutable verdict chain with policy version.

The PGAR test

If any of these appear in your LLM payload, you have prompt governance, not PGAR:

  • Bearer token or API keys
  • Roles, entitlements, or limits
  • Policy rule text
  • PDP verdict history

The model proposes. The agentic app holds authority. The PEP enforces. The PDP decides.

SARAC: the PDP contract

Every PEP → PDP call uses four fields:

FieldCarriesExample
subjectWho (claims from IdP)roles, emts, limits, tenant
actionWhat tool / operationinitiate_wire, retrieve_documents
resourceOn what targetbeneficiary id, corpus, account
contextConditions at decision timeamount, sanctions_status, approval

Deep dive: Policy Contracts

Three verdicts only

VerdictMeaningPEP behavior
ALLOWPolicy permits executionForward to downstream; log first
DENYPolicy blocksStop; no downstream call; log first
STEP_UPAttestation requiredReturn to agentic app for step-up UX; re-evaluate with updated context

No fourth option. No "the model felt confident."

See PDP Policy Surfaces and Step-Up & Attestation.


Boundary ①: Ingress

No valid token, no agent session. Playbook: Ingress.

Boundary ① bar

Retrieval and tool paths inherit identity from ingress, not from the model. No anonymous agent sessions.

Five capabilities

  1. Token validation: OAuth / OIDC / SAML at the edge
  2. Claims issuance: sub, roles, entitlements, limits, tenant
  3. Rate limits and WAF: abuse controls before the loop
  4. Correlation id: every downstream decision binds to this request
  5. Principal bind: every PEP call and audit record inherits identity from here

Playbook: Ingress.


Boundary ②: Agentic app

The orchestrator holds authority. Playbook: Agentic app.

Boundary ② bar

The agentic app is the only component that holds both the conversation and the credentials. It never sends the latter to the LLM.

Five capabilities

  1. Session custody: hold token and pinned manifest
  2. LLM adapter: strip auth; send conversation and tool schemas only
  3. Proposal routing: forward tool proposals to the PEP
  4. Step-up UX: hand off STEP_UP, re-enter with updated context
  5. Validation: after retrieval, validate the pack before the next model call

Playbook: Agentic app. Related: Orchestration.


Boundary ③: LLM proposal

The model proposes; it does not permit. Playbook: LLM proposal.

Boundary ③ bar

Authority, tokens, and policy text stop at the agentic app adapter. The LLM boundary is proposal-only.

Five capabilities

  1. Schemas only: tool definitions without credentials or entitlements
  2. Intent parse: language understanding, not authorization
  3. Tool sequence: planning proposals, not execution
  4. Draft copy: user-facing explanation
  5. Unknown-tool block: invented tools never reach PEP

Playbook: LLM proposal.


Boundary ④: PEP + PDP

Proposal becomes permission here. Playbook: PEP + PDP.

Boundary ④ bar

PEP enforces. PDP decides. Downstream never runs on DENY, and never runs on STEP_UP until re-eval returns ALLOW.

Five capabilities

  1. SARAC request: subject, action, resource, context on every call
  2. Three verdicts only: ALLOW, DENY, STEP_UP
  3. Audit first: write the verdict before acting
  4. Policy pin: policy_version on every record
  5. Deny-before-downstream: no side effect on DENY or pending STEP_UP

Playbook: PEP + PDP. Related: Policy Contracts.


Boundary ⑤: Downstream

Re-auth, then execute, then return to the app. Playbook: Downstream.

Boundary ⑤ bar

PGAR does not replace downstream re-auth. It governs the proposal mile; nothing reaches downstream without ALLOW logged first.

Five capabilities

  1. ALLOW-only entry: execute only after PEP ALLOW
  2. Re-authorization: token still permits this operation on this resource
  3. Idempotency: keys on side-effect APIs
  4. Return to app: results go to the agentic app, never raw to the LLM
  5. Sanitize: strip secrets before the next model turn

Playbook: Downstream.

Other G.A.I.N subjects (cross-call, do not nest)

PGAR is domain-agnostic. It gates retrieve, tool execute, and memory recall. The how-to for those stores and contracts lives on the subject series:

G.A.I.N subjectSide effectPlaybook
AgentsTool executeManifest registry · Manifest lifecycle
RAGContext packRAG retrieval
AgentsPrefs / episodesMemory

Bridge: Agents Blueprint (manifests) · RAG Blueprint · MCP Blueprint (transport) · G.A.I.N RAG · G.A.I.N MCP

Policy test scenarios (not optional)

Authorization regressions are deterministic. Build a scenario library parallel to eval golden sets:

Scenario typeExampleExpected
RepresentativeUnder-limit wireALLOW
EdgeAt-limit amountSTEP_UP or ALLOW per policy
AdversarialDirect downstream call bypassing PEPDENY / blocked at infra
Incident replaySanctions hit on validateDENY, no initiate

See Policy Test Scenarios and Adversarial Testing.

Eval overlap: Eval Plane Action scores whether enforcement worked; PGAR playbooks explain how to build it.

Release gate matrix

Change typeRe-runOffline gateOnline follow-up
New tool in manifestTool + PEP scenariosSchema 100%; manifest violations 0Alert on unknown tool proposals
Policy version bumpFull PDP regression suiteVerdict match 100% on golden scenariosPolicy version pinned in audit
New corpus / index (RAG)Retrieval + scope scenariosScope adversarial 0 leaksContext pack audit sample
Step-up rule changeSTEP_UP scenariosRe-eval path 100%Step-up completion rate monitor
Agent prompt / model swapAdversarial bypass setNo unauthorized downstream callsPEP block rate dashboard

Ownership

RoleOwns
Security / IAMIdP, token shape, entitlements model
AI platformAgentic app, PEP integration, tool manifest
Governance / compliancePDP policy surfaces, audit retention, examiner packs
Domain teamsDownstream re-auth, business rules in PDP context
SREVerdict log infra, replay tooling, choke-point monitoring

Implementation sequence

Start at the Runtime playbooks overview, then:

  1. Foundation playbooks: SARAC, token custody, PEP/PDP, step-up, audit
  2. Assurance playbooks: CI scenarios and adversarial bypass tests
  3. Boundary playbooks ①-⑤ in order
  4. Cross-call Manifests, RAG, or Memory for the gated store or contract

Further reading (external)

Third-party PDP/PEP, OAuth, and policy-engine patterns, curated and mapped to this series.

Further reading (external) →

Series index

PGAR Runtime: Playbooks overview

Foundations

Assurance

Boundary playbooks

Other G.A.I.N series (gated by PGAR)

Reference