Direct answer
A security exception is a dated risk decision, not a permanent waiver. Record five things when an agent workflow cannot meet a policy: the affected resource, the owner accepting the risk, the business reason, the compensating control that reduces the exposure meanwhile, and an expiry date after which the exception is reviewed again. An exception with no owner and no expiry is not a decision, it is an undocumented weakening of the control that nobody is accountable for.
The concrete win is a review meeting where exceptions get retired on schedule instead of accumulating as permanent carve-outs. The concrete loss is that the record-keeping is real work, and a team that writes proper exception records will discover how many policy failures it had been ignoring. The practical implication is that the requesting agent never approves its own exception. A human owner signs the risk acceptance, and the compensating control has to be verifiable by someone other than the requester.
Azure’s policy engine gives a useful vocabulary here because it separates three behaviors: reporting a condition, preventing an action, and remediating one. A policy that only reports has a very different failure profile from one that denies, and an exception has to account for the specific effect assigned rather than the policy name alone.
What Needs an Exception
Start by separating the cases that need an exception record from the cases that need a fix. A policy failure that can be corrected this week is a work item. An exception is for the failure the team cannot correct now and has decided to accept for a bounded period.
Three situations account for most agent-platform exceptions. The first is a control that blocks a legitimate workflow, where the block was not anticipated when the policy was written. The second is a legacy resource that cannot meet a new requirement without a migration the team has not scheduled. The third is a third-party dependency that cannot be configured to satisfy a control, which is the situation a vendor review surfaces, covered in the vendor security review checklist guide.
| Situation | Right response | Why an exception record applies |
|---|---|---|
| Policy blocks a legitimate agent workflow | Exception with compensating control | Fix requires a workflow redesign not scheduled yet |
| Legacy resource cannot meet a new requirement | Exception with migration plan | Risk accepted until the migration lands |
| Third-party dependency cannot be configured | Exception with monitoring control | Outside the team’s direct control |
| Typo in a policy assignment | Fix the assignment | Not an exception, a correction |
| Control the team has not implemented yet | Gap with a target date | Implementation intent, not an accepted risk |
The distinction in the last two rows matters. A gap is something the team intends to build. An exception is something the team has decided to live with, and conflating them hides risk behind optimistic language. The AISVS control mapping guide uses the same separation for standard requirements.
Exception Record Fields
Write the record so a reviewer six months later can reconstruct the decision without asking anyone. Vague fields produce exceptions that nobody can challenge and nobody can retire.
| Field | Required content | Record owner |
|---|---|---|
| Exception ID | Stable identifier used in review records | Security exception approver |
| Affected resource or workflow | Specific resource, identity or workflow path | Requesting team |
| Policy or control | Exact policy and assigned effect | Platform team |
| Risk owner | One named person accepting the risk | Risk owner |
| Rationale | Why the control cannot be met now | Requesting team |
| Compensating control | What reduces exposure meanwhile | Control owner |
| Expiry date | Date the exception is reviewed or closed | Security exception approver |
| Approval evidence | Signed record with a date | Security exception approver |
Two fields carry most of the weight. The compensating control has to be something a reviewer can verify, which means a monitoring rule, a restricted network path or a higher logging level rather than a promise to be careful. The expiry date has to be a real date, because an exception with no expiry is functionally permanent whatever the record claims.
Official, policy effects: Azure Policy’s built-in definitions distinguish reporting, prevention and remediation effects. When an exception applies to a policy, the record should name the effect, because an exception to a deny policy and an exception to an audit policy leave very different residual risks.
Official, exemption structure: Azure Policy has a documented exemption structure for scoped exceptions. Treat that structure as a template for the fields above. The exemption page was not fetched in full during research for this pass, so verify current fields such as expiry and category directly before copying them into your own register.
Risk Rationale
The rationale is the part most often written badly, because “the workflow needs it” is not a rationale, it is a restatement of the request. A useful rationale names the business function that depends on the exception, why the control cannot be met, and what happens if the exception is refused.
Push each rationale through three questions. What business outcome does this exception enable? Why can the control not be satisfied within the normal change process? What is the specific exposure if the compensating control fails? An exception that cannot answer the third question is missing its risk statement, and the review should send it back rather than approve it.
| Weak rationale | Stronger rationale |
|---|---|
| The agent needs this permission to work | The deployment pipeline needs write access to one resource group, and scoping the identity further breaks the promote step |
| It would take too long to fix | The migration is scheduled for the next quarter; the exception covers the gap until then |
| The control is too strict | The control was written before the shared cluster existed; a scope reduction is being proposed separately |
| We have always done it this way | Not a rationale. Send back for a real one |
The last row is worth stating plainly. Precedent is not a reason, and accepting it as one is how an exception register becomes a list of permanent holes. Where a policy is genuinely wrong for the environment, the answer is a policy change with its own review, not a growing pile of exceptions.
The rationale also feeds the decision record. When the same exception gets requested a third time, the register should show whether the underlying reason was ever addressed, and the governance council charter guide covers the body that escalates repeated exceptions.
Compensating Controls
A compensating control reduces the exposure while the exception is active. It has to be verifiable, it has to be owned, and it has to be proportionate to the risk being accepted.
| Policy failure | Business reason | Compensating control |
|---|---|---|
| Agent identity lacks least privilege | Migration pending | Alerting on any access outside the declared resource scope |
| Shared cluster cannot enforce isolation | Cost of dedicated clusters | Network policy limiting east-west traffic, reviewed per the NetworkPolicy blast radius guide |
| Telemetry destination not centrally locked | Vendor limitation | Periodic export integrity check, per the audit evidence integrity guide |
| Legacy resource has no audit logging | Decommission planned | Enable logging on the proxy in front of it |
Read the third column as the honest test of whether an exception is a decision or a shrug. A compensating control that cannot be checked is not a control, and an exception whose compensating control is “the owner will be careful” has no compensating control at all.
The compensating control also needs an owner separate from the requester. If the same person owns the exception, the workflow and the control that is supposed to catch its failure, the register is recording a risk acceptance that nobody is actually watching. Splitting those roles is the cheapest governance improvement available.
Derived, F042: The field design in this post, including the compensating control requirement, is a governance recommendation built on the OWASP secure coding guidance for agent workflows. It is a register design, not a universal regulatory requirement, and individual frameworks your organization reports against may impose additional fields.
Approval Authority
Approval authority decides who may accept a risk, and it is a governance decision rather than a technical one. The general rule is that the approver must be independent of the requester and must have the authority to accept the residual risk if the compensating control fails.
| Exception scope | Suggested approver | Escalation path |
|---|---|---|
| Single resource, low business impact | Platform team lead | Security reviewer |
| Cross-team workflow or shared identity | Security reviewer | Platform council |
| Control with regulatory relevance | Security reviewer plus compliance owner | Platform council |
| Exception affecting customer data paths | Risk owner with data authority | Platform council and legal |
The requesting agent does not appear anywhere in that table as an approver. Claude Code can draft the record, propose a compensating control and check whether a similar exception already exists, but the risk acceptance is a human decision. The RACI ownership guide for infrastructure changes applies the same separation between who proposes and who approves.
Approval evidence should be stored with the record. An approval that lives in a chat thread is hard to produce during an audit and easy to lose, so the signed record belongs in the same place as the exception itself.
Official, incident management context: CISA’s incident management resource guide emphasizes recorded decisions and ownership in incident handling. The same principle applies to exceptions: the record is what lets a future reviewer understand why the risk was accepted, especially if the exception later features in an incident timeline.
Expiry and Review
An expiry date is what turns an exception from a permanent hole into a bounded decision. Set the expiry when the exception is approved, and treat an expiry that arrives with no closure plan as a finding rather than an automatic renewal.
| Status | Expiry date | Review action |
|---|---|---|
| Active | In the future | Compensating control checked at the agreed cadence |
| Approaching expiry | Within 30 days | Owner confirms whether the exception is still needed |
| Expired, still needed | Past the date | Re-approval required with fresh rationale |
| Expired, closed | Past the date | Closure evidence recorded, control restored |
| Renewed | New date set | Reviewer records why the underlying reason persists |
Renewal deserves suspicion. An exception renewed twice without the underlying reason changing is usually a control the team has decided not to implement, and the honest response is either a policy change or a permanent risk acceptance signed by someone with the authority to make that call. The risk-tiered approvals guide covers matching approval weight to impact, which is the same logic applied to change approvals.
Set the review cadence to match the control’s drift rate. An exception covering an identity scope should be reviewed whenever the identity changes, in line with the access recertification guide for agent identities. An exception covering a legacy resource should be reviewed against the decommission plan.
Claude Code Boundaries
Exceptions about agent workflows have a specific boundary to respect. The agent is the thing whose behavior the control was restricting, so an exception that removes a restriction on the agent needs more scrutiny than one that removes a restriction on a human workflow.
Three boundary checks belong in every agent-workflow exception. Does the exception widen what the agent can reach, or only what it can do inside an already-scoped area? Does the compensating control detect a problem after the agent acts, or prevent it beforehand? Can a reviewer distinguish an agent action from a human one in the logs, which is the correlation question the incident timeline correlation guide covers?
The agent should not be able to modify its own exception record, its own approval, or the evidence of its own compensating control. That is an independence requirement rather than a distrust of the tool. The same reasoning appears in the policy as code audit guide, where a change to the policy engine itself is reviewed separately from changes the policy governs.
Official, agent safeguards: Claude Code’s security documentation describes permission modes, sandboxing and managed settings as available safeguards. Where an exception relaxes one of those safeguards, the record should name the specific setting changed and who verified the compensating control covers the gap. Documentation describes what the product offers, not what a particular deployment has configured.
Closure Evidence
Closure is the part of the lifecycle teams skip, and skipping it is how expired exceptions linger in a register for years. A closure needs evidence that the underlying condition changed, not just a note saying the exception is done.
| Closure reason | Closure evidence | Who records it |
|---|---|---|
| Control implemented | Configuration export showing the control active | Platform team |
| Resource decommissioned | Deletion record or teardown evidence | Requesting team |
| Policy changed | Policy change record with its own review | Security reviewer |
| Workflow redesigned | New workflow definition and a sample reviewed change | Requesting team |
| Risk permanently accepted | Signed acceptance by an authority with power to accept it | Risk owner |
The last row is the honest one. Some exceptions should end as permanent risk acceptances, made deliberately and signed by someone with the authority to accept them, rather than as a series of quiet renewals. The difference between that and an unmanaged exception is the record and the signature.
Closure evidence belongs with the original record. When an auditor asks how many exceptions were open at a given time, the register should be able to answer from the records rather than from memory.
The concrete win, loss, and implication
The concrete win is a register that shrinks on schedule. When exceptions carry expiry dates and compensating controls, the quarterly review retires the ones whose underlying reason has been fixed and re-approves only the ones still needed. Audit conversations get shorter, because the answer to “why is this control not enforced” is a dated record rather than a search through chat history.
The concrete loss is the overhead. A proper exception record takes longer to write than a Slack message asking for a waiver, and the compensating control often costs real engineering effort to build and monitor. Teams that adopt this process will also discover how many informal waivers were already in place, which is uncomfortable to surface.
The practical implication is that exception management is a governance function, not a paperwork function. Teams that keep dated records spend less time re-litigating the same exceptions and can show an auditor a controlled process. Teams that rely on informal waivers keep finding the same unmanaged holes during incidents, and the blameless postmortem evidence guide covers how those conversations go when the record does not exist.
Further reading on related risk decisions
Exceptions about what an agent may do sit next to exceptions about what a repository may instruct it to do. The repository prompt injection guide covers instructions arriving from repository content, and the plugin security audit guide covers auditing hooks and commands, which is where a compensating control often has to live. The repository hooks security guide covers trust boundaries and fail-closed behavior for hooks.
Two existing posts cover cases where a safeguard weakens quietly, which is the failure an expiry date is meant to catch. The sandbox escape guide covers what a published escape actually showed, and the settings files and secrets guide covers configuration that can disable a safeguard without a decision record. A compensating control that depends on either is weaker than the register claims.
The cost of verifying a compensating control is a real budget line. The cost per verified change guide covers pricing that effort, and the verification guide covers what to ask for before calling a control change done.
Data gap and future update
The Azure Policy exemption structure page was not fetched in full during the research pass behind this post, so the field names suggested here are drawn from the policy effects documentation and from the record design in F042 rather than from a verified copy of the current exemption schema. Before implementing this register in Azure Policy directly, check the exemption structure page for current fields such as expiry and category.
No claim is made here that an exception record satisfies any specific regulatory or contractual requirement. Frameworks your organization reports against may require different fields, different approval authorities or different retention periods, and this post does not generalize its register design to those obligations.
The CISA incident management guide is used for the general principle that decisions and ownership should be recorded. The mapping from that principle to agent-workflow exceptions is editorial, and a future update could align the record fields with a specific framework’s exception requirements once those are reviewed directly.
Working through an exception with Claude Code
Give the agent the policy, the affected resource and the business reason, and ask it to draft the record rather than to approve anything. Useful agent outputs are a first-pass compensating control proposal, a check for similar existing exceptions, and a list of what evidence the compensating control would need to be verifiable.
Two review questions catch most bad exceptions. Is the compensating control something a person other than the requester can check, and does the expiry date match a real plan rather than a default. The verification and done proof guide covers the same done-condition discipline for code changes.
When an exception request repeats, ask the agent to summarize the previous records for the same control. A pattern of repeated requests is the signal that the underlying reason was never addressed, and that is an escalation rather than another approval.
Related reading in this batch
Exception records sit next to the access decisions that often cause them. The cloud IAM permission boundary review guide covers reviewing the boundaries an exception might widen, and the break glass incident access guide covers the emergency-access case where an exception is needed immediately and reviewed afterwards.
For the documentation side of governance, the runbook ownership review cadence guide applies the same expiry discipline to operational documents, and the change freeze emergency rules guide covers the temporary suspensions of normal change control that need their own records. Budget-related exceptions, where a quota has to be raised for a legitimate reason, are covered by the cloud budget and quota guardrails guide.
One AI API Key option for OpenAI-format agents
Claude Code uses an Anthropic-format route, so the One AI free model IDs are not a Claude Code model source. The packet records Claude IDs as unavailable on 2026-11-27, and nothing in this post changes that.
OpenAI-format agents have a separate path. One AI API Key offers https://api.oneaiapikey.com/v1, one key, and 46 live free IDs, which is a different client and request format rather than a workaround for Claude Code authentication. Check the free model list and eligibility notes before wiring up an agent, read the quickstart for the request shape, or estimate spend with the cost calculator.
FAQ
Why does an exception need an expiry date if the risk is unchanged?
Because the context changes even when the risk statement does not. Owners change roles, compensating controls decay, and the underlying fix gets scheduled or dropped. An expiry date forces the decision to be made again with current information, which is the difference between a bounded decision and a permanent hole.
Can the agent that requested the exception approve it?
No. The approver has to be independent of the requester and has to hold the authority to accept the residual risk if the compensating control fails. Claude Code can draft the record and propose controls, but the risk acceptance is a human decision.
Is an exception the same as saying the control is unnecessary?
No. An exception applies to a specific resource or workflow for a bounded period. Treating it as evidence that the control is unnecessary everywhere is the failure mode that turns one exception into a general exemption, and the record should be scoped tightly enough to prevent that reading.
What makes a compensating control acceptable?
It has to reduce the specific exposure the exception creates, be verifiable by someone other than the requester, and have an owner. A monitoring rule, a restricted network path or increased logging all qualify. A promise to be careful does not.
Does a signed exception satisfy an auditor?
Not by itself. The record shows a controlled process for accepting risk, which is what auditors usually look for. Whether it satisfies a specific requirement depends on the framework, the fields captured and the approval authority, and this post does not claim compliance with any framework.
More Claude Code troubleshooting
- Claude Code Terraform Plans: Review Gates Before Apply
- Claude Code Terraform State: Locking and Access Controls
- Claude Code Terraform Drift: Triage Before Reconciliation
- Kubernetes Server-Side Apply: Ownership Checks for Claude Code
- Claude Code Kubernetes RBAC: Least Privilege Reviews
- Claude Code Pod Security: Admission Gate Reviews
- Claude Code SOC 2 Evidence: Change Management Packets
- Claude Code Incident Tabletops: NIST-Aligned Exercises
- Claude Code Threat Models: Infrastructure Agent Boundaries
- Claude Code OpenTelemetry: Semantic Conventions for Agents
- Claude Code SLO Alerts: Burn Rate During Changes
- Claude Code Error Budgets: Release Decision Policy
- Claude Code Log Pipelines: Health Checks Before Triage
Sources
- Official: Azure Policy built-in definitions, distinguishing reporting, prevention and remediation effects (F040).
- Official: Azure Policy exemption structure, documenting the structure for scoped exemptions (F041, not fetched in full during research).
- Independent: OWASP Secure Coding with AI Cheat Sheet, supporting explicit ownership, compensating controls and review dates for agent workflows (F042).
- Official: CISA incident management resource guide, on recording decisions and ownership in incident handling.
- Official: Claude Code security documentation, describing permission modes, sandboxing and managed settings as available safeguards.