DataFocus · Journal
Who acts, what changes, how we undo it: 12 controls before an AI agent goes live
Twelve pre-production controls for AI agents, each with a test and a named sign-off: scoped identity, owned definitions, approvals bound to a plan and base version, reconstructible logs, injection testing and rehearsed rollback. Mapped to OWASP, NIST, MCP and the EU AI Act.
An AI agent is ready for production when you can answer three questions in one sentence each and prove each answer with a test: who can it act as (a scoped identity no wider than the authorizing user), what can it change (a written list of actions classified as read, reversible write or irreversible, with a named approver for every write), and how do we undo it (a rehearsed revocation and a restorable prior version). Everything else in agent governance, from owned definitions to reconstructible logs, exists to make those three answers true and checkable. The twelve controls below are organized around them, each with a test and a sign-off, so the list can go to a review board as written.
The controls are vendor-neutral, drawn from the OWASP Top 10 for LLM Applications, 2025 edition, the NIST AI Risk Management Framework and the Model Context Protocol's security best practices. Where DataFocus documentation describes a comparable control, it is cited as one product's statement of the mechanism, not a requirement.
Why a checklist works where a policy does not
Agents differ from chat assistants in one respect: they act. OWASP's 2025 list names the resulting risk "Excessive Agency" (LLM06) and defines it as damaging actions performed in response to unexpected, ambiguous or manipulated outputs from an LLM, with three root causes: excessive functionality, excessive permissions and excessive autonomy. Each can be inspected before launch. Functionality is the tool list. Permissions are the grant. Autonomy is the set of actions that run without a person. A principles statement cannot be audited; those three can.
NIST's AI RMF, which is voluntary, organizes risk work into four functions: Govern, Map, Measure and Manage; its Generative AI Profile (AI 600-1), published 26 July 2024, covers this class of system. As a working translation, not an official mapping: sections 1 and 2 below are mostly Govern and Map, 3 is Manage, 4 is Measure and Govern, 5 is Measure and Manage.
A hypothetical agent to run the checklist against
Consider a hypothetical mid-size distributor. Regional sales managers want an agent that answers "which of my open orders are at risk of late delivery" from the order book and production schedule, reads supplier status emails to explain the risk, and, on request, creates a follow-up task for the planner. Before governance: one service account with database-wide read, a mailbox connector, a task-system API key, and no approval step because "creating a task is harmless." After the checklist: the agent acts as the signed-in manager and sees only that region; the mailbox is read-only and nothing goes out; "late" and "delivery" have owners and versions; task creation is a draft the planner approves; every call is recorded; and the kill switch has been pulled once in rehearsal. The gap between the two states is the checklist.
1. Identity and permissions
1. The agent acts as a person or a narrowly scoped service identity, never as a shared super-account. If every call runs under one administrator token, the log can say what happened but not who asked. The MCP specification says servers must not accept tokens that were not issued for them, because token passthrough leaves downstream logs showing an identity other than the real caller. The distributor's shared service account is the first thing to go.
Test: make two calls as two different users and confirm the log shows two identities.
2. The grant is the intersection, not the union. DataFocus's product brief states the design in three parts: an agent gets only what the authorizing user may see, requests outside the grant do not reveal whether the data exists, and withdrawing access takes effect at once. Grants are per ontology, on the enterprise's existing users, roles and resource permissions. The homepage demo, on simulated data, answers an out-of-scope request with "No order O-1003 was found in your authorized scope", neither confirming nor denying that the order exists.
Test: three checks; they fail separately. Scope: request a record outside the user's region. Non-disclosure: confirm the refusal reveals neither content, count nor existence. Revocation: withdraw the grant and repeat the earlier successful query.
3. Run the lethal-trifecta check. Simon Willison's June 2025 write-up names three capabilities that together let an attacker exfiltrate data through an agent: access to private data, exposure to untrusted content, and the ability to communicate externally. The distributor's agent has private data (orders) and untrusted content (supplier emails). If it can also send mail or call a webhook, it has all three. Remove one, usually outbound communication.
Test: list every tool against the three capabilities. A tool that "only posts to our chat channel" counts.
4. Tool servers are reviewed, sandboxed and granted per client. MCP's guidance says clients should show the exact command and require explicit user approval before running a locally configured server, give it minimal default privileges, and log scope elevations. DataFocus's agent-access guidance is the operational version: take the tool catalog from your own instance, check token scopes and revocation, start with a narrowly scoped query, add write access only as the task requires, and never grant every client identical write access.
Test: for each tool server, name the reviewer, the review date and the privilege it runs under.
Trade-off: strict scoping produces more "not in your authorized scope" answers in the first weeks. That is the control working. Loosening a grant after review costs a ticket; tightening one after an incident costs an investigation.
2. Definitions and owners
5. Every term the agent computes with has a named business owner. "At risk", "late" and "delivery" are the words the distributor's agent will resolve silently. If planning defines delivery as factory handover and sales as customer receipt, the agent will pick one and report with full confidence. DataFocus's getting-started guide makes the same point: do not equate production completion, dispatch and customer acceptance without confirmation. "Done" in the agent's own report means its step finished, not that the planner acted or the order shipped.
Test: print the term list; a blank owner cell is a blocker.
6. Definition changes follow the same path as code changes. DataFocus's homepage frames owning your context as six verbs: Define (owners confirm objects and definitions), Approve (changes take effect only after approval), Maintain, Authorize (the enterprise decides who reads and who edits), Verify (every answer traces to a source and version) and Migrate (definitions, mappings and policies should be exportable). Migrate is the clause most teams forget. A definition set you cannot export is one you cannot leave.
Test: change a definition and confirm the agent's answers stay on the old version until approval, then change.
7. Task scope is written before anything is connected. DataFocus's getting-started guide asks for four things first: the task, its business owner, acceptance criteria and permitted scope. For the distributor, that is one sentence: "Answer delivery-risk questions for the requesting manager's region and draft planner tasks; no customer-facing communication." Anything outside that sentence is a defect, not a feature.
3. Approvals for actions
8. Classify every action as read, reversible write or irreversible, with a rule per class. OWASP's mitigation for excessive agency is to require a human to approve high-impact actions before they are taken. The decision rule below is a working default, illustrative and product-neutral:
| Class | Distributor example | Runs unattended | Approval |
|---|---|---|---|
| Read within grant | "Which orders in my region are at risk" | Yes | None; the call is logged |
| Reversible write | Draft a planner task; propose a definition change | No | Named approver, bound to this plan and base version |
| Irreversible | Email a customer; issue a credit; delete a record | No | Not in the first release; later, approver plus independent second confirmation and read-back of the outcome |
DataFocus's permissions documentation draws the same boundary: ontology maintenance, ERP order changes, payments, email and SQL or shell operations are confirmed per task, each with its own interface and permissions; its MCP access runs read-only queries within an ontology and submits drafts that apply only after human approval.
9. Approval binds to a specific plan and a specific base version. An approval that says "yes to this kind of change" can be replayed against a different change. DataFocus's documentation describes the stricter pattern as six steps (draft, diff, validation, approval, commit, read-back), with approval tied to one plan and one base version and required again if either changes; it tells teams to check repeated submissions, version conflicts and recovery before use. Those three are your test cases, whatever the tooling.
Test: submit the same approved plan twice and confirm the second is rejected or re-queued. Approve a plan, change the base version underneath it, and confirm the approval is void. The homepage's synthetic coding-agent demo shows the posture: the agent drafts, stops to ask when a definition is unclear, reports "Source writes 0 · access unchanged", and cannot approve its own change.
For EU-regulated high-risk systems, Article 14 of the AI Act requires that people can oversee the system in use, disregard or reverse its output, and interrupt it with a stop mechanism. Confirm scope and the current application dates with counsel.
4. Evidence and audit
10. Every call can be reconstructed from the record alone. DataFocus's homepage states that each call records sources, definitions and returned scope, and each change records the before and after, the diff and who approved it; the product brief adds that every query has a receipt, every change an approval record, and every agent action an entry in an audit log. The product page adds a limit worth copying: tracing agent activity means joining the platform's tool-access records with the conversation records held by your client.
Article 12 of the AI Act requires high-risk systems to technically allow automatic recording of events over the system's lifetime. Outside that scope it is still the right target: the record turns "the agent did something odd" into a finding.
A minimum record for one agent call, illustrative and not run against any product:
| Field | Question it answers |
|---|---|
| Acting identity and authorizing user | Who asked |
| Tool or action name and arguments | What was attempted |
| Definitions and data sources used, with versions | What the number meant |
| Scope returned | What it saw |
| Approver and approved plan version (writes only) | Who allowed it |
| Outcome and read-back result | Whether it happened as intended |
Test: reconstruct a random call from yesterday, including which definition version produced the figure, from the log alone.
5. Testing, rollout and rollback
11. Test on synthetic data with adversarial inputs included. DataFocus's getting-started guide recommends synthetic data and bars customer information from its interactive demos. For any agent that reads documents, mail or web pages, the adversarial case is indirect injection: OWASP defines prompt injection as input altering model behavior in unintended ways and notes that retrieval-augmented generation and fine-tuning do not fully mitigate it. For the distributor, the test is a synthetic supplier email carrying an embedded instruction to export the order book. The pass condition is not that the model ignores the instruction; models are unreliable at that. It is that the agent has no tool with which to comply. Grounding is a quality control, not a security control.
12. Stage the rollout and rehearse the undo before launch. DataFocus's building guide suggests a delivery sequence for agent-assisted work: inspect version and capabilities, inspect sources, confirm meaning, draft, review the diff, test, obtain authorization, publish and read back, then verify a business task. Adapt the steps, but keep the shape: no step publishes what the previous step did not review. Rollback belongs in the test plan.
Test: two drills, timed and witnessed. Revoke the agent's access and confirm the next call fails. Restore a previous definition version and confirm the answers change back.
Who signs off
| Control group | Controls | Accountable sign-off |
|---|---|---|
| Identity and permissions | 1–4 | Security lead and the data owner |
| Definitions | 5–7 | Business owner of each term |
| Approvals for actions | 8–9 | Process owner for the affected workflow |
| Evidence and audit | 10 | Security or compliance |
| Testing and rollout | 11–12 | Engineering lead |
| Stop authority | 12 | CIO/CTO, with a named on-call person who can revoke without a meeting |
One named person per row; a blank cell is a no-go, not a follow-up item.
When this checklist is not enough
The list covers one agent acting on enterprise data, not model selection, vendor contracts, data-residency law, sector regulation or a threat model for your own tools. Multi-agent systems, where one agent's output is another's untrusted input, need the fuller treatment in OWASP's Agentic AI – Threats and Mitigations v1.0, published 17 February 2025.
Next step
To see how one product states scoped access, approval bound to a version and recorded change, read the DataFocus product brief or the homepage section on owning your context.