Lesson 14 · Developers

Introducing agents at work: start with policy

about 13 minutes

When agents arrive in an organisation, the engineering work that matters most is not the integration. It is deciding what authority the agent holds, how that authority is checked, and how you will know whether it is being used well. This lesson treats the policy as a design input: it shows how to turn a short organisational policy into an inventory, a phased rollout with measurable exit criteria, and a tested off switch, and it includes a small script for reviewing a pilot from its audit log.

Agents change the question from features to authority

A chat assistant produces text; a person decides what to do with it. An agent chooses tool calls, and each tool call exercises authority: reading a mailbox, writing to a ledger, sending a message (lesson 1). That shift moves the risk from the quality of the output to the scope of what the agent can reach and the conditions under which it may act.

Three published frameworks describe the same properties from different angles:

  • Google’s approach to secure agents rests on three principles: agents “must have well-defined human controllers, their powers must be carefully limited, and their actions and planning must be observable” [1].
  • OpenAI’s governance paper (Shavit and colleagues) lists practices including attributability, where each agent instance could carry a unique identifier linking it to its user-principal, and interruptibility, described as “a critical backstop for preventing an AI system from causing accidental or intentional harm” [2].
  • OWASP’s LLM06 Excessive Agency names three root causes, excessive functionality, excessive permissions and excessive autonomy, and recommends human approval for high-impact actions, implemented “outside the scope of the LLM application” where possible [3].

A useful policy for a small organisation answers the questions these imply: who controls each agent, what it may touch, what needs approval, and how you would see and stop what it does.

Calibrate expectations with evidence

Engineers are often asked to justify an agent rollout with productivity numbers. The best available studies support some gain and warn about uneven quality, and both findings shape what you should measure.

  • In a staggered rollout of a generative AI assistant to 5,179 customer support agents, Brynjolfsson, Li and Raymond found that issues resolved per hour rose 14 per cent on average, with a 34 per cent improvement for novice and low-skilled workers and minimal impact on experienced, highly skilled workers [4].
  • In a preregistered field experiment with 758 Boston Consulting Group consultants, Dell’Acqua and colleagues found that on 18 tasks inside the AI’s capability frontier, consultants with AI completed 12.2 per cent more tasks and finished 25.1 per cent faster. For “a complex managerial task selected to be outside the frontier”, consultants using AI were “19% less likely to produce correct solutions” [5].
  • Parasuraman and Manzey’s review found that automation bias produces both omission and commission errors, occurs in naive and expert participants, and “cannot be prevented by training or instructions” [6].

Design implications follow directly. Speed alone is a misleading success metric, because a faster wrong answer looks like a gain. Measure correction: how often people edit or reject the agent’s proposed action. And because training does not fix over-trust, the checking has to be designed into the flow: show the evidence beside the proposal, and keep Ask for actions where a wrong answer is costly.

Map the policy to frameworks and to artefacts

Australia’s National AI Centre (NAIC) foundations guidance sets out six essential practices for organisations starting with AI [7]. NIST’s AI Risk Management Framework organises the same territory into four functions, Govern, Map, Measure and Manage [8], and ISO/IEC 42001:2023 specifies requirements for an AI management system using the Plan-Do-Check-Act method [9]. You do not need certification to borrow their structure. What matters for engineering is that each practice produces something you can build and inspect.

NAIC practice [7] Related AI RMF subcategory [8] Engineering artefact
Decide who is accountable GOVERN 2.1 roles and responsibilities Named owner per agent in the register; owner field required in config
Understand impacts and plan accordingly MAP 1.1 intended purposes and context One-paragraph purpose statement per agent; data classes it may touch
Measure and manage risks MANAGE 4.1 post-deployment monitoring plans Threat review (trifecta check), Allowed/Ask/Never rules, incident runbook
Share essential information GOVERN 1.6 inventory of AI systems Register generated from deployed config; disclosure text for clients
Test and monitor MEASURE 2.4 behaviour monitored in production Audit log (lesson 10), pilot review metrics, regression tests on policy
Maintain human control MANAGE 2.4 mechanisms to “supersede, disengage, or deactivate” Kill switch with a drill date; approval gates bound to exact actions

The NAIC’s policy page adds a pre-publication checklist: the policy should state what AI can and can’t be used for, who approves higher-risk use cases, what data staff can put into tools, when staff need to oversee AI use, how to report issues or misuse, and when the policy will be reviewed [10]. Each item converts into a configuration field or a process with a record. Lesson 9 shows the clause-to-control-to-evidence table in full.

Before any connection: inventory and due diligence

Inventory what already exists. Shadow use is the norm, not the exception. Collect tools from expense records, browser extension lists, OAuth consent grants in your identity provider and SaaS admin consoles, and ask staff directly. NAIC’s foundations guidance calls for an AI register covering every system, “whether you developed it internally or procured it from elsewhere” [7].

Classify the data each agent would touch. For Australian organisations, the Office of the Australian Information Commissioner (OAIC) is explicit: privacy obligations apply to personal information put into an AI system and to output containing personal information; generating or inferring personal information is a collection under APP 3; use of personal information in an AI system is governed by APP 6; and as best practice, organisations should not enter personal information, particularly sensitive information, into publicly available generative AI tools [11]. Private sector health service providers are APP entities regardless of turnover [12], which catches many small clinics.

Do due diligence on the product. OAIC expects due diligence that includes whether the product has been tested for the intended uses, how human oversight can be embedded into processes, and who will have access to personal information input or generated [11]. NAIC puts it more bluntly: “Ask for proof” of testing [7]. Engineering questions worth asking a vendor:

Question Why it matters
Is each permission enforced outside the model, at every tool call? Complete mediation; a prompt rule is not a control
Can grants be limited by action, resource and time, and revoked? Least privilege and fast containment (lesson 12)
Does the agent ever receive credentials it uses, or only their effect? Exposure if the agent is injected (lesson 4)
What is logged, where, for how long, and can we export it? Investigation and NDB assessment (lessons 8, 10)
Where is data processed and retained, and is it used for training? APP 8 cross-border and APP 6 secondary use
How do we stop every agent at once? Interruptibility [2]

Treat vendor answers as claims until you have tested them in your own pilot.

Choose the first use case deliberately

Brown and Saner’s Agentic AI Security Scoping Matrix sorts systems into four scopes: no agency (read-only, human-initiated), prescribed agency (can modify systems but requires human approval for actions), supervised agency (autonomous execution after human initiation) and full agency (self-initiating) [13]. Start the first pilot at scope 1 or 2.

Then run two quick checks on the candidate:

  1. Lethal trifecta. Does the task combine private data, untrusted content and an outbound channel in one agent context [14]? If so, remove one leg for the pilot. A drafting agent that reads client emails (untrusted) and client records (private) should have no send tool; a person sends.
  2. Excessive agency. List the tools the agent would get and strike any it does not need for this task. Check each remaining tool’s permissions against the task, not against what the integration offers by default [3].

Good first pilots are frequent, bounded and easy to check: drafting replies from a template, summarising a queue, preparing (not posting) a reconciliation.

Roll out in phases with exit criteria

Write the phases and their exit criteria into the policy or its appendix before the pilot starts, so that widening access is a decision against evidence rather than a feeling.

Phase Agent behaviour Exit criteria to move on
0. Read-only Reads and proposes; no write tools Owner reviews a sample of proposals; no data reaches tools outside the register
1. Ask-all Every write action needs approval Enough activity to judge; low error rate; approvals are not rubber-stamped; kill switch drilled
2. Selective Allowed Low-impact, reversible actions move to Allowed No incidents attributable to Allowed actions over the period; correction rate on remaining Ask actions reviewed
3. Supervised Runs a whole task after a person starts it Separate sign-off by the AI owner; revisit threat review

NIST’s AI RMF frames the same idea as post-deployment monitoring plans that include “appeal and override, decommissioning, incident response, recovery, and change management” [8]. A move between phases is a change, and should be recorded like one.

Measure the pilot from its audit log

If your audit records follow a schema like the one in lesson 10, a pilot review is a short script. The version below reads JSON Lines records in that agent-audit/1 shape, summarises one agent’s activity, and checks five exit criteria. The thresholds are examples to agree with the owner, not recommendations. It uses only the Python standard library.

"""Summarise a pilot's audit events and check them against agreed exit criteria.

Reads JSON Lines records in the agent-audit/1 shape from lesson 10.
Standard library only; Python 3.10+.
"""
import json
import statistics
import sys
from datetime import date

CRITERIA = {
    "min_tool_calls": 200,            # enough activity to judge
    "max_error_rate": 0.02,           # failed tool calls / all tool calls
    "max_quick_approval_share": 0.5,  # approvals decided in under 10 s
    "max_open_incidents": 0,
    "max_days_since_kill_drill": 30,
}
QUICK_MS = 10_000


def summarise(lines, agent_id):
    calls = errors = 0
    decisions = {"allow": 0, "ask": 0, "deny": 0}
    latencies, outcomes = [], {"approve": 0, "approve_with_edits": 0, "reject": 0}
    incidents = 0
    for line in lines:
        e = json.loads(line)
        if e.get("agent", {}).get("id") != agent_id:
            continue
        if e["event_type"] == "incident.opened":
            incidents += 1
        if e["event_type"] == "incident.closed":
            incidents -= 1
        if e["event_type"] != "tool.call":
            continue
        calls += 1
        decisions[e["policy"]["decision"]] += 1
        if e["outcome"]["status"] not in ("success", "denied"):
            errors += 1  # a policy denial is the control working, not a fault
        a = e.get("approval")
        if a:
            outcomes[a["decision"]] += 1
            latencies.append(a["latency_ms"])
    asked = sum(outcomes.values())
    return {
        "tool_calls": calls,
        "decisions": decisions,
        "error_rate": round(errors / calls, 4) if calls else 0.0,
        "approvals": outcomes,
        "median_approval_ms": statistics.median(latencies) if latencies else None,
        "quick_approval_share": round(sum(l < QUICK_MS for l in latencies) / asked, 2) if asked else 0.0,
        "edit_or_reject_share": round((outcomes["approve_with_edits"] + outcomes["reject"]) / asked, 2) if asked else 0.0,
        "open_incidents": incidents,
    }


def check(s, last_kill_drill: date, today: date, c=CRITERIA):
    return {
        "enough activity": s["tool_calls"] >= c["min_tool_calls"],
        "error rate": s["error_rate"] <= c["max_error_rate"],
        "approvals are read": s["quick_approval_share"] <= c["max_quick_approval_share"],
        "no open incidents": s["open_incidents"] <= c["max_open_incidents"],
        "kill switch drilled": (today - last_kill_drill).days <= c["max_days_since_kill_drill"],
    }


if __name__ == "__main__":
    path, agent, drill = sys.argv[1], sys.argv[2], date.fromisoformat(sys.argv[3])
    with open(path) as f:
        s = summarise(f, agent)
    print(json.dumps(s, indent=2))
    results = check(s, drill, date.today())
    for name, ok in results.items():
        print(f"{'PASS' if ok else 'FAIL'}  {name}")
    sys.exit(0 if all(results.values()) else 1)

Run against a synthetic pilot log of 240 tool calls (generated for testing, not real data), it printed the following (the script rounds the rates to four and the shares to two decimal places):

{
  "tool_calls": 240,
  "decisions": {
    "allow": 139,
    "ask": 90,
    "deny": 11
  },
  "error_rate": 0.0125,
  "approvals": {
    "approve": 63,
    "approve_with_edits": 20,
    "reject": 7
  },
  "median_approval_ms": 25000.0,
  "quick_approval_share": 0.42,
  "edit_or_reject_share": 0.3,
  "open_incidents": 0
}
PASS  enough activity
PASS  error rate
PASS  approvals are read
PASS  no open incidents
PASS  kill switch drilled

With a drill date more than 30 days old, the last line became FAIL kill switch drilled and the script exited non-zero, which makes it usable as a gate in a scheduled job.

Three notes on interpreting the numbers:

  • Policy denials are not errors. The script excludes denied outcomes from the error rate. A denial is the control working; count denials separately and read them, because a burst of denials is often the first sign of injected instructions (lesson 8).
  • A high edit-or-reject share argues for keeping Ask. In the synthetic run, three in ten proposals were changed or refused. That is the jagged frontier showing up in your own data [5], and it means those actions are not ready for Allowed.
  • Quick approvals are a warning, not a verdict. A short median decision time can mean the proposals are trivially right or that people have stopped reading [6]. Sample the quick approvals and check them by hand.

Build the off switch before you need it

The NAIC asks organisations to “build in human override points” with “clear intervention points where humans can pause, override, roll back or shut down AI systems if needed” [7]. In practice that is three mechanisms, each with an owner and a test date:

  1. Revoke the agent’s grants at the authorisation server or permission service, so in-flight tokens stop working at the next check (lesson 12).
  2. Disable the agent’s tools at the host or gateway, so a still-running process cannot call them.
  3. Stop the runtime and preserve its logs and context for investigation (lesson 8).

Drill the sequence on a schedule and record the measured time from decision to last successful tool call. Shavit and colleagues describe interruptibility as crude but “a critical backstop” [2]; the drill is what turns it from a belief into a number.

Keep the security baseline

Agent accounts are accounts. The Australian Signals Directorate’s Essential Eight includes multi-factor authentication, restricting administrative privileges and regular backups among its eight strategies [15]. Applied to agents:

  • Give each agent its own identity and credentials; never run it as a staff member’s account.
  • Do not grant agents administrative roles. If a task appears to need one, the task is too broad for a pilot.
  • Back up anything an agent can write to, and test restoring it. Recovery after a bad write is a restore, not an apology.
  • Keep agent hosts and extensions patched like any other software.

Bring people with you

NAIC recommends testing the draft policy “with the people who will use, review or oversee it” [10]. For engineers, that means walking staff through the approval screen before launch and asking whether they can tell, from what is shown, exactly what will happen. If they cannot, fix the screen, not the staff.

Make the reporting path one step: a shared channel or address that the owner watches, with an explicit no-blame rule. The first signal that an agent has acted outside its brief usually comes from the person whose work it touched.

An example: Banksia Physio

Banksia Physio has eight staff. Mei, the practice manager, is the AI owner; Alex is a contract developer who looks after the clinic’s systems.

Alex’s inventory finds three tools: an approved assistant, a free chatbot two physios used for referral letters, and a browser extension with read access to the practice’s email. Because the clinic is a health service provider, the Privacy Act applies regardless of size [12], so Mei’s policy bans patient information in any tool outside the register and the extension is removed.

The pilot is scope 2: the approved agent drafts referral letters from a template using the patient record, and a physio approves and sends each one. The trifecta check fails at first, because the agent could read inbound referral emails and had a send tool, so Alex removes the send tool and the physio sends from the practice system.

After six weeks the review script shows 410 drafts, an edit-or-reject share of about one in five, and a kill switch drill 12 days earlier. The criteria for moving on pass, but Mei and Alex decide the edit rate is too high to move letter sending to Allowed. Instead they move one low-impact action, filing the approved letter to the patient record, to Allowed, and schedule the next review.

Key takeaways

Treat the policy as a design input: each clause should become a configuration field, a control and a record you can show. Use the evidence to choose metrics, measuring correction and approval behaviour rather than speed alone, because AI help is uneven and over-trust is not fixed by training. Start at the lowest useful scope, remove a leg of the lethal trifecta, and widen access only through phases with exit criteria written down in advance. Build, drill and time the off switch before the first write tool is enabled.

primitive is building tools for scoped grants, approvals and receipts; the order of work in this lesson applies whichever tools you use.

Sources and further reading

  1. Díaz, S., Kern, C., & Olive, K. (2025). Google’s Approach for Secure AI Agents: An Introduction. Google. https://research.google/pubs/an-introduction-to-googles-approach-for-secure-ai-agents/
  2. Shavit, Y., Agarwal, S., Brundage, M., Adler, S., O’Keefe, C., Campbell, R., Lee, T., Mishkin, P., Eloundou, T., Hickey, A., Slama, K., Ahmad, L., McMillan, P., Beutel, A., Passos, A., & Robinson, D. G. (2023). Practices for Governing Agentic AI Systems. OpenAI. https://cdn.openai.com/papers/practices-for-governing-agentic-ai-systems.pdf
  3. 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/
  4. Brynjolfsson, E., Li, D., & Raymond, L. (2025). Generative AI at Work. The Quarterly Journal of Economics, 140(2), 889–942. https://doi.org/10.1093/qje/qjae044 (working paper: https://www.nber.org/papers/w31161)
  5. Dell’Acqua, F., McFowland III, E., Mollick, E., Lifshitz-Assaf, H., Kellogg, K. C., Rajendran, S., Krayer, L., Candelon, F., & Lakhani, K. R. (2023). Navigating the Jagged Technological Frontier: Field Experimental Evidence of the Effects of Artificial Intelligence on Knowledge Worker Productivity and Quality (Harvard Business School Working Paper No. 24-013). https://www.hbs.edu/faculty/Pages/item.aspx?num=64700
  6. 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)
  7. National Artificial Intelligence Centre. (2025). Guidance for AI adoption: foundations. Department of Industry, Science and Resources. https://www.ai.gov.au/staying-safe-and-responsible/essential-ai-practices/guidance-ai-adoption-foundations
  8. 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
  9. International Organization for Standardization & International Electrotechnical Commission. (2023). ISO/IEC 42001:2023 AI management systems. ISO. https://www.iso.org/standard/42001
  10. National Artificial Intelligence Centre. (2026). Create an AI policy (with AI policy guide and template, published 22 April 2026). Department of Industry, Science and Resources. https://www.ai.gov.au/staying-safe-and-responsible/essential-ai-practices/create-ai-policy
  11. 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
  12. Office of the Australian Information Commissioner. (2025). Data breach preparation and response, Part 4: Notifiable Data Breach (NDB) Scheme. OAIC. https://www.oaic.gov.au/privacy/privacy-guidance-for-organisations-and-government-agencies/preventing-preparing-for-and-responding-to-data-breaches/data-breach-preparation-and-response/part-4-notifiable-data-breach-ndb-scheme
  13. Brown, A., & Saner, M. (2025, 21 November). The Agentic AI Security Scoping Matrix: A framework for securing autonomous AI systems. AWS Security Blog. https://aws.amazon.com/blogs/security/the-agentic-ai-security-scoping-matrix-a-framework-for-securing-autonomous-ai-systems/
  14. 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/
  15. Australian Signals Directorate. (2017, last reviewed 2023). Essential Eight explained. Australian Signals Directorate. https://www.cyber.gov.au/publication/essential-eight-explained