This lesson is for the person in a small organisation who has to turn an agent use policy into something enforceable: the contractor, the technical co-founder, the one developer. It covers how policy clauses map to technical controls and evidence, how to express permission tiers as configuration that is evaluated outside the model, how to handle credentials, data classes and logging, and how to test that the policy holds. It assumes the policy document itself follows the structure in the everyone version and the accompanying template.
Policy, control, evidence
A policy clause is only meaningful if three things exist: the clause (what we intend), a control (the mechanism that makes it true), and evidence (the record that shows the control worked). Management system standards are built on this triad. ISO/IEC 42001 specifies requirements for establishing, implementing, maintaining and continually improving an AI management system and, per ISO’s own description, uses the Plan-Do-Check-Act method rather than prescribing details of specific applications [1]. NIST’s AI RMF puts policies, roles and inventory under its Govern function: for example GOVERN 1.6 (“mechanisms are in place to inventory AI systems”), GOVERN 2.1 (documented roles and responsibilities) and GOVERN 6.1 (policies for third-party AI risks), with MANAGE 2.4 requiring mechanisms “to supersede, disengage, or deactivate AI systems” that behave inconsistently with intended use [2].
A small organisation does not need certification to benefit from the structure. It needs a table like this, maintained alongside the policy:
| Policy clause | Control | Evidence |
|---|---|---|
| Only registered agents may connect to organisational systems | OAuth app allowlist or admin consent required in the identity provider; MCP server allowlist in the agent host | Identity provider app list; host configuration under version control |
| Agents may not send external email without approval | Agent’s mail grant is draft-only, or a gateway holds outbound mail from agent identities for approval | Grant scopes; approval events in audit log |
| No client personal information to unapproved tools | Data loss prevention rules on agent egress; approved-tool list in the register | DLP alerts; register entries |
| Each agent has its own identity | Dedicated service accounts or OAuth clients per agent | Identity provider client list matching the register |
| Agent activity is logged and retained for 12 months | Central log pipeline; retention policy on storage | Retention configuration; sample queries |
| Agents can be stopped within 15 minutes | Policy-store kill switch; documented revocation steps | Quarterly drill results |
If a clause has no control, either build one or rewrite the clause as guidance. If a control produces no evidence, you will not be able to show it worked after an incident.
The Australian baseline
The National AI Centre’s Guidance for AI Adoption sets out six essential practices: decide who is accountable; understand impacts and plan accordingly; measure and manage risks; share essential information; test and monitor; and maintain human control [3]. The foundations version gives “getting started” actions that map neatly onto a small-organisation policy: assign a senior AI governance owner, create an AI policy, screen use cases for risk, keep an AI register, test before deployment and monitor after, ensure meaningful human oversight, and build in override points where people can “pause, override, roll back or shut down AI systems” [3]. The next-steps actions include setting up risk management that accounts for differences between traditional IT, narrow AI, general purpose AI and agentic AI systems [3]. The National AI Centre also publishes an AI policy template and checklist of what a policy should clearly outline before publication [4].
The OAIC’s guidance on commercially available AI products is the privacy anchor. Its key points include that privacy obligations apply to personal information input into an AI system and to output containing personal information, that APP 6 limits use or disclosure to the primary purpose of collection unless an exception applies, and that, as best practice, organisations should not enter personal information, particularly sensitive information, into publicly available generative AI tools [5].
Permission tiers as configuration
The Allowed, Ask and Never tiers in the everyone version need to become rules evaluated by something other than the model. A useful published example of the pattern is Claude Code’s permission system: allow rules run without approval, ask rules prompt for confirmation, deny rules block, and rules are evaluated “deny, then ask, then allow”, with the first match in that order deciding the outcome regardless of specificity [6]. Its documentation also states the property that matters most: permission rules are enforced by the harness, “not by the model”, and instructions in prompts shape what the model tries to do but do not change what is allowed [6].
You can apply the same semantics to any agent stack. A vendor-neutral policy file might look like this:
# agent-policy.yaml (illustrative; evaluate in your gateway, not in the prompt)
version: 3
defaults:
decision: deny # anything unmatched is refused
precedence: [deny, ask, allow]
agents:
email-drafter:
owner: priya@coastalledger.example
principal: shared-inbox@coastalledger.example
data_classes: [internal, client-personal]
external_input: true # reads inbound client email
rules:
allow:
- tool: mail.read
where: { folder: "Inbox/Clients" }
- tool: mail.create_draft
ask:
- tool: mail.send
where: { recipient_domain_in: ["coastalledger.example"] }
deny:
- tool: mail.send # external send never, even with approval
where: { recipient_domain_not_in: ["coastalledger.example"] }
- tool: mail.forward
- tool: "*.delete"
bank-reconciler:
owner: daniel@coastalledger.example
data_classes: [internal, client-financial]
rules:
allow:
- tool: ledger.read
- tool: ledger.categorise
deny:
- tool: ledger.create_payment
- tool: ledger.approve_payment
- tool: http.fetch # no general network egressThree design choices carry the security weight:
- Default deny. Unmatched tool calls are refused. New tools added by a server update do not silently become available.
- Deny beats allow. An exception cannot be carved out of a deny with a narrower allow; if you need one, restructure the deny. This avoids rule sets whose meaning depends on ordering subtleties.
- Conditions on arguments, not just tool names.
mail.sendto an internal domain andmail.sendto anyone are different risks. Rules that only match tool names push you towards either over-granting or under-granting.
This is OWASP’s complete mediation applied to agents: authorisation in downstream systems “rather than relying on an LLM to decide if an action is allowed or not” [7].
Where to enforce
Enforce at the narrowest point the agent cannot bypass. In order of preference: the resource server itself (the mail system only issued a draft-only scope), an authorisation gateway or MCP proxy in front of tools, and finally the agent host’s permission layer. Prompt instructions are guidance to the model, never a control.
The data rule that matters most
Most agent data loss follows one pattern: the agent reads sensitive data, reads attacker-influenced content, and has a channel to send data out. Willison’s “lethal trifecta” names it [8], and Greshake et al. demonstrated the underlying mechanism of indirect prompt injection against real systems [9]. Encode it as a policy constraint at the agent level:
An agent configuration may combine at most two of: access to confidential or personal data; ingestion of content from outside the organisation; the ability to send data to arbitrary external destinations. Combining all three requires a documented exception approved by the policy owner and a human approval step on every external send.
This is checkable in configuration review: list each agent’s data classes, input sources and egress tools from the register and flag any that hold all three.
Credentials
Write the credential rules as concrete prohibitions and requirements:
- No shared human credentials. Agents never receive a staff member’s password, session cookie or personal API key. If a service has no way to give an agent its own identity, record that as a risk in the register.
- Per-agent identities. One OAuth client or service account per agent, so audit logs attribute actions correctly and one agent can be revoked without affecting others.
- Short-lived over static. AWS’s IAM guidance is a representative statement of the principle: require workloads to use temporary credentials via roles, apply least-privilege permissions, and use access activity to refine policies [10]. Static keys, where unavoidable, get an expiry and a rotation schedule.
- Narrow tokens. GitHub recommends fine-grained personal access tokens over classic tokens where possible [11]; the general rule is to choose the most specific token type each platform offers.
- No secrets in prompts or tool arguments. Anything in the model’s context may end up in provider logs, transcripts or an attacker’s server via injection.
- MFA and admin restriction stay on. The Essential Eight’s mitigation strategies include restricting administrative privileges and multi-factor authentication [12]. Do not create exemptions for agent convenience.
Logging requirements
Write logging into the policy with the specificity of NIST SP 800-53’s AU family: which events are logged (AU-2), what each record contains (AU-3: type, time, location, source, outcome, identities), how long records are kept (AU-11) and that logs are protected from modification and deletion (AU-9) [13]. For agents, the event list should at least include every tool call, every policy decision (allow, ask with outcome, deny), every grant creation, change and revocation, and every change to agent configuration or tool definitions. Lesson 10 gives a record schema.
Human approval design
Ask rules are a control only if humans exercise judgement on them. Parasuraman and Manzey’s review found that automation bias produces both omission and commission errors, occurs in naive and expert users, and “cannot be prevented by training or instructions” [14]. Engineering implications:
- Budget your asks. Track approvals per person per day. If one person is approving dozens of routine actions, move the routine ones to Allowed with tighter conditions, or to Never, so the remaining asks get attention.
- Show the effect, not the intent. Render the recipient list, the diff, the amount, the destination URL. “The agent wants to send an email” is not reviewable.
- Make denial cheap. One action, no justification required, and the agent receives a structured refusal it can report.
- Bound approvals. An approval covers one call or a short window, not “always”. Lesson 12 covers grant duration.
Third-party agents and MCP servers
Every MCP server or plug-in is code from a supplier with access to your agent’s context and, often, to credentials. The MCP specification itself says tools “represent arbitrary code execution” and that tool descriptions and annotations should be considered untrusted unless obtained from a trusted server [15]. Policy should require: an allowlist of approved servers with pinned versions; provenance checks before installation; review of tool definitions on update; and isolation of local servers (filesystem and network limits), as the project’s local server security guidance recommends [16]. NIST’s GOVERN 6.1 and MANAGE 3.1 cover the same ground for third-party AI generally [2].
Testing the policy
A policy is a hypothesis about behaviour. Test it:
- Configuration tests. In CI, load
agent-policy.yamland assert invariants: every agent has an owner; no agent holds the trifecta without an exception record; no allow rule matches a tool that a deny also matches. - Adversarial evaluations. Run each agent against injection test cases relevant to its inputs. AgentDojo provides 97 realistic tasks and 629 security test cases across domains such as email, banking and travel, and is designed to be extended with new tasks and attacks [17]. Add every real incident’s triggering input to your own suite.
- Drills. Quarterly, time how long it takes to stop an agent and revoke its access from a cold start. Record the number; it is evidence for the “can be stopped within N minutes” clause.
# test_policy.py: illustrative invariants for agent-policy.yaml
import yaml
TRIFECTA_DATA = {"client-personal", "client-financial", "confidential"}
EGRESS_TOOLS = {"mail.send", "http.fetch", "http.post", "chat.post"}
def load():
with open("agent-policy.yaml") as f:
return yaml.safe_load(f)
def test_every_agent_has_owner():
for name, agent in load()["agents"].items():
assert agent.get("owner"), f"{name} has no owner"
def test_no_unapproved_trifecta():
for name, agent in load()["agents"].items():
sensitive = TRIFECTA_DATA & set(agent.get("data_classes", []))
allowed = {r["tool"] for r in agent["rules"].get("allow", [])}
external_input = agent.get("external_input", False)
if sensitive and external_input and allowed & EGRESS_TOOLS:
assert agent.get("exception_id"), f"{name} holds the trifecta without an exception"Exceptions and change control
Real organisations need exceptions, and a policy without an exception path gets bypassed instead. Make exceptions explicit objects:
- Recorded. Each exception has an ID, the agent, the clause it departs from, the reason, the compensating control (for example, approval on every external send) and the approver.
- Time-boxed. Exceptions expire, typically in 30 to 90 days, and must be renewed deliberately. An exception that is renewed three times is a sign the policy should change.
- Visible in configuration. Reference the exception
ID in the policy file (
exception_idin the test above), so configuration review and the register agree.
Treat changes to agent configuration like code changes: version control, review by someone other than the author for any change that widens access, and a changelog entry in the register. Changes that narrow access (removing a tool, shortening a token lifetime) can be fast-tracked; changes that widen it should not be.
Review triggers
An annual review is the floor. Write these triggers into the policy so review happens when risk actually changes:
| Trigger | Why it matters |
|---|---|
| A new agent, or an existing agent given a new tool | Changes the action surface |
| An agent connected to a new data class | May create the trifecta or new privacy obligations |
| A model or framework upgrade | Behaviour can change without any configuration change; the National AI Centre notes AI systems “can change their behaviour over time” [3] |
| A new MCP server or major server update | New supplier code with access to context and credentials |
| Any incident or near miss | Evidence that a control did not work as assumed |
| A change in law or regulator guidance | OAIC guidance and Australian AI guidance have both been revised since 2024 |
Worked example: implementing Coastal Ledger’s policy
Coastal Ledger (eight staff, accounting) has a two-page policy owned by Priya. Arjun, a contractor, implements it.
- Register to configuration. The register lists two agents. Arjun creates one OAuth client per agent in the identity provider and disables user consent for new third-party apps, so new agents need admin approval. That is the control for “only registered agents”.
- Email drafter. The mail grant is draft-only, which enforces “a person sends” at the resource server, the strongest enforcement point. Because the agent reads inbound client email (external input) and handles personal data, the absence of a send scope is what keeps it out of the trifecta.
- Reconciler. The accounting platform offers a read-and-categorise scope; Arjun uses it, so payment creation is impossible rather than merely forbidden.
- Logging. Both platforms’ audit logs are forwarded to a central store with 12-month retention. Arjun writes three saved queries: all agent actions this month, all denials, all grant changes. Daniel’s monthly review runs them.
- Drill. The first drill takes 41 minutes because nobody knows where the identity provider’s revoke button is. The runbook gets screenshots; the second drill takes nine.
The policy did not change during implementation, but two clauses gained controls and one (“staff will not paste tax file numbers into agents”) was honestly reclassified as training plus monthly log review, because no technical control was available.
Key takeaways
Maintain a clause-control-evidence table alongside the policy, and treat any clause without a control as guidance rather than a rule. Express Allowed, Ask and Never as default-deny configuration with deny-first precedence and argument-level conditions, evaluated in a resource server or gateway the model cannot influence. Encode the lethal-trifecta constraint as a checkable rule over each agent’s data classes, input sources and egress tools. Give every agent its own short-lived, narrowly scoped identity, log every tool call and policy decision to the AU-family standard, and budget human approvals so they stay meaningful. Test the policy with configuration invariants, adversarial evaluations and timed kill-switch drills, and feed every incident back into the suite.
primitive builds per-agent Allowed, Ask and Never rules for credentials; the patterns here apply whatever enforcement layer you use.
Sources and further reading
- International Organization for Standardization & International Electrotechnical Commission. (2023). ISO/IEC 42001:2023 AI management systems. ISO. https://www.iso.org/standard/42001
- National Institute of Standards and Technology. (2023). Artificial Intelligence Risk Management Framework (AI RMF 1.0) (NIST AI 100-1). https://doi.org/10.6028/NIST.AI.100-1
- National Artificial Intelligence Centre. (2025). Guidance for AI adoption: foundations. Department of Industry, Science and Resources, Australian Government. https://www.ai.gov.au/staying-safe-and-responsible/essential-ai-practices/guidance-ai-adoption-foundations
- National Artificial Intelligence Centre. (2026). Create an AI policy (with AI policy guide and template). Department of Industry, Science and Resources, Australian Government. https://www.ai.gov.au/staying-safe-and-responsible/essential-ai-practices/create-ai-policy
- Office of the Australian Information Commissioner. (2024, updated 2025). Guidance on privacy and the use of commercially available AI products. OAIC. https://www.oaic.gov.au/privacy/privacy-guidance-for-organisations-and-government-agencies/guidance-on-privacy-and-the-use-of-commercially-available-ai-products
- Anthropic. (2026). Configure permissions. Claude Code documentation. https://code.claude.com/docs/en/permissions
- OWASP Gen AI Security Project. (2025). LLM06:2025 Excessive Agency (OWASP Top 10 for LLM Applications 2025). OWASP Foundation. https://genai.owasp.org/llmrisk/llm062025-excessive-agency/
- Willison, S. (2025, 16 June). The lethal trifecta for AI agents: private data, untrusted content, and external communication. Simon Willison’s Weblog. https://simonwillison.net/2025/Jun/16/the-lethal-trifecta/
- Greshake, K., Abdelnabi, S., Mishra, S., Endres, C., Holz, T., & Fritz, M. (2023). Not what you’ve signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection. Proceedings of the 16th ACM Workshop on Artificial Intelligence and Security (AISec ’23), 79–90. https://doi.org/10.1145/3605764.3623985 (preprint: https://arxiv.org/abs/2302.12173)
- Amazon Web Services. (2026). Security best practices in IAM. AWS Identity and Access Management User Guide. https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html
- GitHub. (2026). Managing your personal access tokens. GitHub Docs. https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens
- Australian Signals Directorate. (2017, last reviewed 2023). Essential Eight explained. Australian Signals Directorate. https://www.cyber.gov.au/publication/essential-eight-explained
- Joint Task Force. (2020). Security and Privacy Controls for Information Systems and Organizations (NIST SP 800-53 Rev. 5), AU family. National Institute of Standards and Technology. https://csrc.nist.gov/pubs/sp/800/53/r5/upd1/final
- Parasuraman, R., & Manzey, D. H. (2010). Complacency and Bias in Human Use of Automation: An Attentional Integration. Human Factors, 52(3), 381–410. https://doi.org/10.1177/0018720810376055 (open-access copy: https://doi.org/10.14279/depositonce-8052)
- Model Context Protocol. (2026). Specification, revision 2026-07-28. https://modelcontextprotocol.io/specification/2026-07-28
- Model Context Protocol. (2026). Local Server Security (documentation for protocol revision 2026-07-28). https://modelcontextprotocol.io/docs/2026-07-28/tutorials/security/local-server-security
- Debenedetti, E., Zhang, J., Balunović, M., Beurer-Kellner, L., Fischer, M., & Tramèr, F. (2024). AgentDojo: A Dynamic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agents. arXiv preprint arXiv:2406.13352. https://arxiv.org/abs/2406.13352