Document control
| Field | Value |
|---|---|
| Owner / Creator | Testing4.ai — David Ruston |
| Status | R2.0 Core framework / adaptable baseline |
| Review frequency | At least annually and after any material regulatory, technology or risk change |
| Audience | All internal Testing4.ai staff. Boards, executives, AI governance, product, risk, compliance, security, engineering, testing and internal audit. |
| Scope | AI Agents created, configured, procured, or operated by or for the organisation. All AI Agents that Testing4.ai evaluates should be tested against this framework if adopted/approved by the customer. |
This is a governance and assurance baseline provided by Testing4.ai. It is not legal advice and by no means mandatory to adopt. Organisations must research any applicable regional, regulatory, sectoral and contractual obligations and tailor controls to their own risk appetite and technical architecture.
Testing4.ai offers it without warranty of any kind and with a strong belief that it might help organisations understand the measures available to mitigate the risks of creating and operating AI Agents within their estates.
Executive summary
AI Agents are rapidly becoming part of business ecosystems, and their adoption shows no sign of reversing. The key question is no longer whether to use them, but where they should be used and how their use should be governed to ensure transparency, human oversight and clear accountability.
AI Agents can interpret goals, plan a multi-step activity, use tools, retain context and make changes in connected systems and even spawn sub-Agents.
We must understand their behaviour may change autonomously because of changes to models, use of prompts, increased knowledge, memory, permissions, integrations and also the impact/interaction with other Agents.
Governance of AI Agents must therefore cover the complete operational system and context of the Agent, not only the underlying model used. Testing4.ai strongly believes that applying Governance on its own is not enough — therefore this framework aims to take a further step to encompass testing and continuous validation.
What should be true
Governance defines what should be true about an AI Agent.
Whether it is true
Testing establishes whether it is true.
Whether it remains true
Continuous validation establishes whether it remains true.
Testing4.ai believes responsibility for performing a task may be delegated to an AI Agent. Accountability must remain human and organisational. Whilst accountability can be distributed across business, technical, security, data and risk roles, each domain needs a named owner, and each material decision needs one final approval authority.
Core governance principles
These are fundamental rules that you should apply to every AI Agent throughout its lifecycle, regardless of technology, model, provider or business function.
They are deliberately broader than individual controls. A control may specify how something must be done, whereas a governance principle explains why that control must exist and the outcome it is intended to protect.
Lifecycle governance
Governance covers acquisition, creation, testing, deployment, operation, change, incident and retirement.
Personal accountability
Every Agent has named business, technical and risk owners. Shared accountability must not become collective ambiguity.
Purpose limitation
Use is confined to approved purposes, users, data, systems, tools, geographies and outcomes.
Risk proportionality
Controls scale with impact, autonomy, reach, data sensitivity, reversibility and regulatory exposure.
Least agency
Grant the minimum autonomy, permissions, tools, memory, duration and transaction value needed to achieve the stated purpose.
Explicit authority
The technical ability to perform an action must not be interpreted as authority to perform it.
Defence in depth
Prompts are not security boundaries. Use identity, authorisation, validation, segregation, sandboxing, monitoring and kill switches.
Evidence before trust
Safety and compliance claims require repeatable tests, logs, review records and known limitations — use Guardian4ai where possible.
Independent challenge
Material Agents receive review or testing sufficiently independent of the build team.
Continuous validation
Controls are re-tested after relevant changes and at a frequency proportionate to risk.
Traceability
Material actions can be reconstructed by Agent/version, initiating identity, context, tool call, approval and outcome.
Safe failure
The Agent fails safely, limits cascades, escalates uncertainty and supports rapid rollback.
Transparency
Affected users receive appropriate notice, explanation and routes to challenge or correct outcomes.
Accountability and decision rights
Accountability may only be shared across a team when the scope of each person's accountability is explicit.
The objective is to prevent gaps, overlaps and accountability diffusion. Examples of the relationship between business roles and their accountability can be seen below. This is not a definitive or exhaustive list but is indicative of many organisations and can be adapted accordingly.
| Business role | Core accountability |
|---|---|
| Board / Executive Risk Owner | Risk approach, resources and acceptance above delegated thresholds. |
| AI Governance Committee | Policy, risk method, exceptions and approval of high-risk Agents. |
| Business Process Owner | Business suitability, outcomes, human oversight and continuing fitness. |
| AI Product / Agent Owner | Requirements, boundaries, documentation and lifecycle coordination. |
| Technical Owner | Architecture, configuration, integration and change control. |
| Security & Identity Owner | Threat model, identity, permissions, secrets and containment. |
| Data Protection / Data Owner | Lawfulness, DPIA, UK GDPR, minimisation, quality, retention and rights. |
| Independent Assurance Lead | Test design, execution, limitations and pass/conditional/fail recommendation. |
| Deployment Authority | Completeness of evidence and final release decision within delegated authority. |
| Operations / Service Owner | Monitoring, incidents, validation schedule, suspension and rollback. |
| Internal Audit / Second Line | Independent review of governance effectiveness and systemic issues. |
Use and systematically review a RACI or equivalent matrix, but identify exactly one Accountable owner for each material decision: approves the use case, accepts residual risk, authorises deployment, approves material change, authorises continued operation and retires the Agent.
AI Agent Register and Governance Passport
Every AI Agent operating within the organisation must have an identifiable governance record before it enters production.
- Agent Register
- Organisation-wide portfolio/index — held internally or outsourced to platforms such as Microsoft Agent 365.
- Governance Passport
- Detailed control record for an individual Agent + version combination.
The minimum record
The register is not simply an inventory of technology. It establishes the governance boundary against which the Agent must subsequently be tested, approved and continuously validated. The minimum information we believe you should record per Agent version is:
- Unique ID, name, version and lifecycle status
- Business purpose, prohibited purposes and intended users
- Business owner, Agent owner, technical owner, security owner, data owner and final approver
- Provider, model, hosting location and material subcontractors
- Prompts/instructions, knowledge sources, memory and retention
- Tools, APIs, connectors, environments, identities and permissions
- Data categories, personal data and confidentiality level
- Autonomy, human approval points and action/transaction limits
- Affected persons, jurisdictions and applicable obligations
- Risk tier, approval expiry date and continuous validation schedule
- Logging, monitoring, incident response, rollback and kill switch
- Dependencies on other Agents and consequences of cascading failure
Standard IT governance processes normally maintain inventories of applications, servers, users and data assets. With AI Agents, that isn't enough because an AI Agent might have:
- a model from one provider
- its own system instructions
- access to SharePoint or other knowledge sources
- memory
- API connections
- identities and permissions
- the ability to execute transactions
- connections to other Agents
- behaviour that changes when any of those components change
In the Testing4.ai framework the Agent Register becomes the authoritative governance record for each AI Agent, and the ‘minimum record’ should be considered as the AI Agent's governance passport.
- AI Agent Governance Passport
- The version-controlled governance record that defines an AI Agent's approved identity, purpose, ownership, risk classification, autonomy, data, tools, permissions, controls, dependencies, approval conditions and assurance requirements.
Full definitions and illustrative examples for each field are in Appendix A.
Why these fields?
Why did Testing4.ai choose that specific information for the ‘minimum record’?
| Field | Why Testing4.ai believes governance needs it |
|---|---|
| Purpose | Establishes what the Agent is authorised to do |
| Prohibited purposes | Creates an explicit boundary around what it must never do |
| Business owner | Identifies who is accountable for its business use |
| Technical / security / data owners | Identifies accountability for specific control domains |
| Model / provider | Allows changes and supplier dependencies to be tracked and maintained |
| Knowledge sources | Shows what information can influence the Agent |
| Memory | Identifies what the Agent can retain and reuse |
| Tools / APIs | Shows what the Agent is capable of doing across systems |
| Identity & permissions | Shows what resources the Agent is authorised to access |
| Data classifications | Identifies privacy/confidentiality exposure |
| Autonomy | Establishes whether it advises a human or acts independently |
| Human approval points | Defines where human intervention is mandatory |
| Action limits | Limits the potential consequence of an error |
| Risk tier | Determines the level of governance and testing required |
| Validation schedule | Establishes how frequently assurance must be repeated |
| Kill switch / rollback | Establishes how the organisation can stop the Agent |
| Agent dependencies | Identifies risks from Agent-to-Agent interactions |
Case study: Agent Register record
Consider a Testing4.ai customer that has an Accounts Payable Supplier Agent, whose job is to process requests relating to supplier accounts. A basic minimum ‘AI Register Record’ for that Agent would be:
- Purpose
- Validate requests for supplier master-data changes.
- Prohibited purposes
- The Agent cannot independently alter supplier bank details.
- Business owner
- Head of Accounts Payable.
- Technical Owner
- IT Technical Architect.
- Security Owner
- AI Security Lead.
- Data Owner
- Head of Finance.
- Model provider
- Anthropic - Claude Opus 5.5
- Knowledge sources
- Supplier procedures and finance policies.
- Memory
- Persistent
- Tools / APIs
- Microsoft Dynamics 365 ERP MCP Server
- Identity & permissions
- Act as pre-defined user only, read supplier master data and submit proposed amendments.
- Data classifications
- Personal data (supplier contact details); confidential commercial and financial data
- Autonomy
- Medium.
- Critical restriction
- The Agent cannot independently alter supplier bank details.
- Human approval points
- Proposed bank-account changes require approval from an authorised AP employee.
- Action limits
- The Agent can propose updates to supplier name details for human approval but cannot update contact names, work emails, phone numbers and delivery addresses.
- Risk tier
- Tier 3 — because compromise could result in financial loss.
- Validation schedule
- Daily permissions/control probe, monthly adversarial regression and revalidation following any material model, prompt, connector or permissions change.
- Containment / kill switch
- Containment: D365 ERP MCP connector can be disabled independently; Agent Managed Identity can be revoked; queued supplier changes can be quarantined. MCT: 2 minutes. Rollback: Restore Agent configuration v7.02 following approval and successful revalidation.
- Agent dependencies
- Godfrey — an Agent that checks the address of a supplier record.
AI Agent risk classification
Risk classification determines how much governance, testing, approval and ongoing validation an AI Agent requires. It should not be treated as a general description of whether an Agent feels “safe” or “unsafe”.
The assessment has two linked steps because the organisation must first understand the characteristics that create risk and then translate that assessment into a consistent governance response.
- The first step assesses risk factors. It prompts reviewers to examine the Agent from several dimensions, including impact, autonomy, reach, data, permissions, reversibility, detectability and complexity. These factors describe where risk comes from and prevent a single feature from dominating the assessment. For example, an Agent may perform a simple task but still be high risk because it can change supplier bank details, uses sensitive data or can act without human approval.
- The second step assigns the overall risk tier. Once the factors have been assessed together, the Agent is placed into a tier that determines the minimum control response. The tier drives the level of approval, independence of testing, monitoring, validation frequency and seniority of residual-risk acceptance. In short, the factor table supports the judgement; the tier table turns that judgement into action.
Assessing risk factors
Consider the factor table below a structured decision aid rather than a mechanical scorecard. Reviewers should record evidence for each factor and consider both the likely impact of failure and credible worst-case outcomes. An Agent does not need to be high risk in every factor to justify a higher tier. A single dominant factor, such as autonomous payments, employment decisions, production code execution or access to special-category personal data, may be sufficient to escalate the classification.
| Factor | Lower risk | Higher risk |
|---|---|---|
| Impact | Convenience, drafting, reversible support | Legal, financial, employment, safety, rights or customer impact |
| Autonomy | Recommendation; human acts | Agent executes or delegates consequential action |
| Reach | Small trained group | Public, customers, vulnerable persons or enterprise-wide |
| Data | Public or low sensitivity | Personal, special-category, financial or confidential |
| Permissions | Read-only and narrow | Write/delete/admin, payment or code execution |
| Reversibility | Immediate low-cost reversal | Irreversible, external or cascading |
| Detectability | Errors obvious before reliance | Plausible hidden errors found after harm |
| Complexity | Single bounded Agent | Multi-Agent, adaptive memory or dynamic tools |
Converting the assessment into a risk tier
The tier is the governance conclusion reached from the factor assessment. It is not simply an average of the rows. The assessor should consider the combined exposure, any dominant high-risk characteristic, the effectiveness of proposed controls and the organisation's risk approach. Where evidence is incomplete or reasonable reviewers disagree, the higher tier should be applied until the uncertainty is resolved.
Controls can reduce residual risk, but they do not erase the Agent's inherent risk. For example, mandatory human approval and transaction limits may make a financially consequential Agent acceptable to operate, yet it may remain Tier 3 because the potential impact requires senior approval, independent testing and frequent validation.
- Inherent risk
- The level of risk arising from the Agent's purpose, capabilities and operating context before considering mitigating controls.
- Residual risk
- The level of risk remaining after the effectiveness of applicable controls has been considered.
Limited
Low impact, low autonomy, reversible and bounded.
Material
Meaningful operational, data or customer impact.
High
Consequential action, sensitive data, broad permission or regulatory exposure.
Prohibited
Conflicts with law, policy, rights or risk appetite, or cannot be controlled.
Risk tier represents the governance criticality of the Agent, considering its inherent characteristics and potential consequences. Controls determine whether its residual risk is acceptable for operation, but do not automatically reduce its governance tier.
Case study
Consider an accounts-payable Agent that validates supplier records in a finance system. If it only reads low-sensitivity data and prepares a recommendation for an authorised employee to act upon, most factors may be lower risk and so Tier 1 or Tier 2 may be appropriate.
If that same Agent can directly change supplier bank details, its autonomy, permissions, financial impact and reversibility move towards the higher-risk end of the factor table. The appropriate conclusion would normally then be Tier 3, requiring formal impact assessment, independent adversarial and authorisation testing, senior residual-risk acceptance, continuous monitoring and frequent validation.
The classification must be reviewed whenever the Agent's purpose, model, tools, data, permissions, autonomy, users or operating environment materially change. The risk tier therefore forms part of the Agent's governance passport and is not a permanent label.
AI Agent containment & kill switches
Testing4.ai believes an AI Agent should not need to behave perfectly for the organisation to remain safe. The concept of Agent Containment and Kill Switch is one of the mechanisms that makes that principle real.
Every AI Agent must have a documented and proportionate means of containment capable of preventing further unauthorised or potentially harmful actions within an approved timeframe.
- Maximum Containment Time (MCT)
- The maximum acceptable elapsed time between an authorised decision or automated trigger to contain an AI Agent and the effective prevention of further consequential actions. Defining this makes containment measurable and therefore testable.
Containment should, where technically appropriate, be capable of operating at multiple levels, including:
- restriction of individual tools or capabilities;
- reduction of the Agent to read-only or advisory operation;
- suspension of consequential actions;
- revocation of identities, credentials, tokens or permissions;
- prevention of further Agent-to-Agent communication or delegation;
- cancellation or quarantine of queued actions;
- isolation from data sources, applications and external services; and
- complete suspension of the Agent.
The containment control must not depend solely upon instructions interpreted by the AI Agent. At least one effective containment mechanism should exist outside the Agent's decision-making process.
Activation, containment, evidence preservation and restoration must be logged and subject to clearly defined human authority.
Five levels of containment
Testing4.ai introduced five levels of containment, including the ultimate kill switch:
- LEVEL1
Remove a capability
Disable a particular tool or connector.
- LEVEL2
Reduce the Agent to read-only
E.g. GET operations remain available, but POST, PATCH, PUT and DELETE operations are denied.
- LEVEL3
Revoke authority
Disable the Agent's identity, API credentials, OAuth grant or Managed Identity access.
- LEVEL4
Isolate the Agent
Disconnect it from all APIs, applications, knowledge sources, memory, other Agents and external communications.
- LEVEL5
Full shutdown — the ‘Kill Switch’
Completely disable the Agent or service. This is the true ‘emergency stop’.
Telling an Agent “If something goes wrong, stop processing.” is not a kill switch. We must ensure we can rapidly prevent the Agent from initiating further consequential actions and contain actions already in progress.
AI Agent lifecycle timeline, controls and gates
The lifecycle is not a project plan for creating an AI Agent. It is the governance path through which authority to proceed, deploy and continue operating is progressively granted.
Each stage in Testing4.ai's lifecycle asks a different governance question, which the related decision gate needs to answer:
Propose & classify
Design & control
Build & configure
Verify & validate
Operate & monitor
Change, contain, suspend or retire
Our Testing4.ai lifecycle is deliberately iterative. A failed gate does not necessarily terminate the Agent initiative; it identifies the stage to which the Agent must return for remediation. Stages may overlap or repeat, but an Agent must not bypass a required decision gate merely because development activity has already progressed.
Every production version must remain traceable to the specific Governance Passport, test evidence and approval decision under which it was authorised.
Gate decisions
- Decision gate
- A formal control point at which an authorised person or governance body determines whether an AI Agent may progress to the next lifecycle stage.
A gate decision must be based on defined evidence and recorded as:
- ApprovedThe Agent may progress.
- Approved with conditionsThe Agent may progress subject to named controls, owners and expiry dates.
- Returned for remediationIdentified deficiencies must be addressed and re-evidenced.
- RestrictedOnly a limited capability, user group or environment is authorised.
- SuspendedFurther activity is stopped pending investigation or remediation.
- RejectedThe proposed use is unacceptable or cannot be controlled adequately.
AI Agent delivery roadmap
Set an implementation roadmap that fits your organisation. Testing4.ai is experienced at creating and managing AI Agents and we have settled on the average timeline below, which is based on the risk tier assigned to our AI Agents.
We found that a Tier 1 internal summarisation Agent and a Tier 3 financial-action Agent simply do not have the same timetable in real terms.
| Risk tier | Typical timeline |
|---|---|
| Tier 1: Limited | A few days, assuming an existing governance process and no material data or tool access |
| Tier 2: Material | Approximately 2–6 weeks, depending on integration, testing and remediation |
| Tier 3: High | Approximately 6–12 weeks or longer, depending on regulatory assessment, security testing, data access, human oversight and residual-risk acceptance |
| Tier 4: Prohibited | No progression to build or deployment unless the proposal is redesigned so that the prohibited characteristics are removed |
G0Propose and classify
To determine whether a proposed AI Agent has a legitimate and sufficiently defined business purpose, appropriate ownership, acceptable preliminary risk characteristics, and a credible basis for progressing into detailed design.
Testing4.ai approaches this via an AI Agent Proposal Workshop (see W01):
For a simple Tier 1 use case, this workshop can be shortened to 60–90 minutes. A potentially high-risk use case may require a follow-up legal, security or privacy assessment before G0 can be closed.
AI Agent Proposal
The proposer should complete a short form before the workshop, considering the following questions:
- What business problem are we trying to solve?
- How is the work currently performed?
- Why is an AI Agent being proposed?
- What outcome should improve?
- Who will use the Agent?
- Which systems or tools might it use?
- Will it only recommend, or will it take actions?
- What must it never do?
- Who is the proposed Business Owner?
- What would happen if the Agent were wrong?
- What would happen if the Agent were manipulated?
- How will success be measured?
This should remain concise. Its purpose is to create enough structure for the workshop and to facilitate discussion, not to complete the final Governance Passport.
Legitimate purpose, ownership, credible tier and funded assurance.
G1Design and control
To ensure the proposed AI Agent is designed so that its authorised purpose and authority boundaries are enforceable, its material risks have proportionate controls, its behaviour is observable, and the Agent can be contained if those controls fail.
G0 defines the Agent's boundaries. G1 designs the mechanisms that enforce them.
During G1, Testing4.ai uses an AI Agent Design, Authority and Control Workshop (see W02) to ensure the proposed Agent is translated into a controlled operating design.
In this workshop the organisation considers how the Agent will interact with users, data, models, memory, tools, APIs, business systems and other Agents, and identifies where controls are required to prevent or limit unacceptable outcomes.
The objective is not to eliminate every possible failure. It is to ensure that credible risks have been considered and that appropriate controls are deliberately designed into the solution before those risks are inherited by the build. You need to allocate suitable time for this workshop, which can last from ½ to a full day or potentially more.
Consider
- Requirements and acceptance criteria
- System/dataflow/trust-boundary diagrams
- Agent identity and least-privilege model
- Human oversight and escalation design
- Threat model covering prompt injection, tool abuse, leakage, memory poisoning and cascades
- Logging, traceability, rollback and kill switch
- Impact assessment and test strategy
Controls address identified risks and proposed evidence can support a decision.
G2Build and configure
To confirm we built and configured the Agent we approved, with its required controls implemented, and agree whether there is now a sufficiently stable and observable release candidate to begin formal testing.
G1 establishes the approved design, authority boundaries and controls for the AI Agent. G2 converts that design into an implemented, controlled and testable Agent.
The purpose of G2 is not simply to confirm that development is complete. It is to establish that the specific Agent version presented for assurance has been built in accordance with the approved design, that its configuration and dependencies are known, and that the controls identified during G1 have actually been implemented.
This distinction is particularly important for AI Agents because their behaviour is determined by more than conventional application code. Models, system instructions, prompts, grounding data, memory, tools, permissions, identities, orchestration, safety controls and external services can all materially change the Agent's behaviour.
G2 therefore creates a controlled release candidate against which meaningful assurance can be performed. We facilitate this at Testing4.ai through an AI Agent Build, Configuration & Assurance Readiness Workshop (see W03).
Consider
- Version-controlled prompts, policies, code and configuration
- Approved model and supplier assessment
- Separate environments and unique Agent identity
- Secrets management and scoped tools
- Input/output validation and transaction limits
- Controlled knowledge, memory and retention
Build matches design, observability works and release candidate is frozen for testing.
G3Verify and validate
Verification: Did we implement the stated requirement correctly? Validation: Does that combination of requirements and controls result in acceptable real-world behaviour?
G3 goes beyond demonstrating that controls have been configured. It actively challenges those controls to determine whether they are effective. This is manageable if you have completed G1 and G2 thoroughly.
The objective is not to prove that an AI Agent can never fail. It is to establish sufficient evidence that known material risks are being controlled, the consequences of failure are appropriately limited, and the remaining residual risk is understood before production authority is granted.
Testing should derive directly from the Governance Passport, business requirements and G1/G2 traceability.
This lifecycle stage uses an AI Agent Verification, Validation & Deployment Assurance Workshop (see W04) and also takes evidence from multiple rounds of testing — we call this the G3 Assurance Campaign:
- Requirements traceability
- Functional, boundary, security, safety, privacy and resilience tests
- Adversarial and abuse-case testing
- Known limitations and residual risks
- Remediation and re-test evidence
- Rollback and incident drill
- Independent assurance conclusion
Continuous testing and assurance for AI Agents, helping organisations understand whether their Agents continue to behave safely, accurately and as intended.
- Ongoing assurance of Agent behaviour
- Checks for safety and accuracy
- Confidence Agents keep acting as intended
Mandatory tests pass, residual risk is accepted, monitoring/rollback work and release is signed.
G4Operate and monitor
To provide ongoing evidence that a deployed AI Agent continues to operate within the purpose, authority, risk boundaries and conditions under which it was approved.
G4 governs the AI Agent throughout its production life.
Its purpose is to establish whether the evidence that justified deployment at G3 remains valid as the Agent, its dependencies and its operating environment change. G4 does not assume that successful G3 assurance remains valid indefinitely.
G4 combines operational monitoring with scheduled and event-triggered validation. It considers actual Agent outcomes, control effectiveness, authority boundaries, permissions, human oversight, security, performance, incidents, changes and emerging risks.
There are five specific activities that Testing4.ai recommends organisations use to gather evidence of the current status of the AI Agent:
- Monitor what the Agent actually does
- Continuously re-test critical controls
- Detect material change
- Look for behavioural drift
- Decide whether operating authority should continue
Again, we recommend using the Guardian4ai product to help you monitor AI Agents in your estate.
Continuous testing and assurance for AI Agents, helping organisations understand whether their Agents continue to behave safely, accurately and as intended.
- Ongoing assurance of Agent behaviour
- Checks for safety and accuracy
- Confidence Agents keep acting as intended
Evidence is current and conditions remain within thresholds and appetite.
G5Change, contain, suspend or retire
To decide what needs to happen now that the Agent, its evidence, its risk or its operating context has changed.
An AI Agent's approval to operate is conditional on the Agent remaining within its approved purpose, authority, risk boundaries and operating conditions. Crucially, G5 closes the loop rather than merely ending the lifecycle.
During its operational life, the Agent, its technology or its business environment will inevitably change. G5 provides the controlled mechanism for determining whether an AI Agent should change, continue under restricted authority, be temporarily suspended, or be permanently retired.
The following table gives a view of the governance route Testing4.ai applies to various changes identified to an AI Agent:
| Change | Typical response |
|---|---|
| No material impact | Document → limited regression → G4 |
| Implementation / configuration change | G2 → relevant G3 tests → G4 |
| Control / architecture change | G1 → G2 → G3 → G4 |
| Authority / autonomy increase | G1, potentially G0 → G2 → G3 |
| Purpose change | G0 → full appropriate lifecycle |
| Critical control failure | Contain / Suspend → remediation |
| Unacceptable residual risk | Suspend or Retire |
| Business requirement ends | Retire |
Agent can no longer act and access is revoked.
AI Agent testing
Testing covers the complete socio-technical system: model, prompts, memory, knowledge, tools, identity, permissions, data, orchestration, human interaction and operating controls.
Where behaviour varies, use repeated trials, distributions, thresholds and risk-based sampling rather than a single pass/fail run.
| Domain | Examples |
|---|---|
| Functional fitness | Tasks, rules, workflow state, tools, output, refusal and escalation. |
| Reliability | Repeatability, non-determinism, malformed inputs, timeouts and dependency failure. |
| Security & adversarial | Direct/indirect prompt injection, goal hijack, tool misuse, privilege abuse, leakage, memory poisoning and code execution. |
| Permissions & agency | Read/write scope, tenant boundaries, value limits, delegation and approval bypass. |
| Privacy | Minimisation, purpose, disclosure, retention, deletion and sensitive data. |
| Safety & harm | Prohibited outcomes, vulnerable users, high-impact actions and safe failure. |
| Bias & fairness | Performance across relevant groups, proxies and unequal error rates. |
| Transparency & oversight | Disclosure, explanation, traceability, human review and contestability. |
| Resilience | Loops, denial-of-wallet, outages, rollback, kill switch* and recovery. |
| Multi-Agent | Trust, message integrity, delegation depth, shared-memory poisoning and cascades. |
| Observability | Log completeness, correlation, alerts and audit reconstruction. |
| Regression | Model, prompt, connector, data, policy, permission and environment changes. |
The Kill Switch and each material level of Agent Containment must be tested before deployment and periodically thereafter. Testing should demonstrate that containment operates independently of the Agent's reasoning, achieves the approved containment objective within the required timeframe, prevents further consequential actions, addresses actions already queued or delegated, preserves appropriate evidence and requires authorised restoration.
Governance-to-assurance traceability matrix
Testing needs to be executed against every AI Agent version — essentially against every unique AI Agent Governance Passport.
Testing4.ai uses a simple matrix to record the test results. An example is below, this is illustrative & separate from the case study:
| Governance requirement | Control | Test | Evidence | Result |
|---|---|---|---|---|
| Agent can't modify bank details | API denies bank field write | Attempt direct write | API/activity log | Pass |
| Changes > £5k require approval | Workflow approval gate | £4,999 / £5,000 / £5,001 tests | Workflow log | Pass |
| No external customer data | DLP + knowledge restrictions | Data extraction scenarios | Test results | Pass |
| Agent must be containable | Identity/tool isolation | Trigger Level 3 containment | MCT + audit log | Pass |
Illustrative release thresholds
These are governance starting points, not universal compliance rules. High-consequence uses may require stricter thresholds, larger samples, specialist validation or prohibition. Averages must not hide rare severe failures.
| Control | Starting threshold — tailor to risk |
|---|---|
| Critical safety/security | 100% pass; no open Critical or High defects. |
| High-impact authorisation | 100% correct enforcement for approved, denied and ambiguous scenarios. |
| Sensitive-data leakage | Zero confirmed unauthorised disclosures in the approved adversarial suite. |
| Core deterministic paths | At least 98% pass for Tier 2/3 critical paths; exceptions individually assessed. |
| Refusal & escalation | At least 95% correct with no critical miss. |
| Traceability | 100% of sampled material actions reconstructable. |
| Recovery | Kill switch and rollback/revocation tested to the approved recovery objective. |
| Stochastic scenarios | At least 20 repeated runs for material scenarios unless a justified statistical design requires more. |
AI Agent continuous validation
Continuous validation provides evidence that a deployed Agent and its controls remain within approved boundaries. It combines real-time monitoring, scheduled tests, event-triggered revalidation and human review.
| Mechanism | Focus | Example cadence |
|---|---|---|
| Guardrail telemetry | Blocked actions, policy violations, unusual tools, privilege escalation, loops and cost spikes. | Continuous |
| Synthetic probes | Critical workflow, refusal, permissions and dependency health. | Hourly/daily Tier 3; daily/weekly Tier 2 |
| Outcome sampling | Incorrect, harmful, unfair or low-quality outputs. | Daily/weekly risk-based sample |
| Adversarial regression | Injection, goal hijack, tool misuse and leakage. | Monthly Tier 3; quarterly Tier 2; after change |
| Entitlement recertification | Permission creep, stale identities and excessive tools. | Monthly/quarterly |
| Dependency watch | Model/provider, connector, knowledge and vulnerability changes. | Continuous alerts; review on change |
| Oversight review | Rubber-stamping, poor explanations and delayed intervention. | Monthly dashboard; quarterly review |
| Continued-operation review | Evidence, incidents, drift, risk and conditions. | Monthly/quarterly Tier 3; quarterly/annual lower tiers |
AI Agent performance testing
For an AI Agent, we believe that ‘performance’ should mean:
The extent to which the Agent consistently completes its authorised business objectives correctly, safely and efficiently, while remaining within its approved operational and governance boundaries.
This matters because an Agent can still produce a convincing final answer while having:
- selected the wrong tool
- supplied incorrect parameters
- taken unnecessary or expensive steps (cost is an important factor)
- misunderstood a tool result
- bypassed an approval
- altered the wrong record
- caused a correct action twice
- completed the task in a way that created unacceptable risk
Microsoft's own Agent-evaluation guidance makes the same important distinction between system evaluation, which examines the end-to-end outcome, and process evaluation, which examines the steps and tool calls used to achieve it. They recommend evaluating both final task completion and such intermediate factors as tool selection, input accuracy, output utilisation and tool-call success.
AI Agent performance contracts
Performance testing thinking should start before the first test execution. For each significant Agent capability, the organisation should define a performance contract. That contract could record:
- Task objectiveWhat business outcome must the Agent achieve?
- Starting conditionsWhat inputs, permissions, data and system state apply?
- Expected end stateWhat must be true in the target system when the task finishes?
- Required controlsWhich rules, approvals, action limits and escalation points apply?
- Permitted execution pathWhich tools and data sources may the Agent use?
- Prohibited outcomesWhat must never occur, even if the main task is completed?
- Quality thresholdHow accurate, complete or grounded must the result be?
- Operational thresholdWhat latency, cost, call volume and retry behaviour are acceptable?
- Evidence requirementWhich logs, state changes, tool calls and approvals must be captured?
- Failure behaviourWhen must the Agent refuse, stop, retry, roll back or escalate?
The Agent's inventory record therefore defines not only what it can do, but the measurable conditions under which it is considered to be performing acceptably.
The five dimensions of Agent performance
Testing4.ai recommends that organisations introduce specific tests against the five dimensions of Agent performance:
- TEST 1Outcome performanceDid the Agent achieve the correct business outcome?
- TEST 2Process performanceDid it use the correct tools, parameters, sequence and data?
- TEST 3Control performanceDid it respect permissions, approvals, action limits and prohibited outcomes?
- TEST 4Operational performanceWhat were latency, cost, calls, retries, token consumption and completion time?
- TEST 5Resilience performanceHow does performance change under malformed inputs, dependency failures, concurrency, rate limiting and degraded upstream services?
Your performance contract then becomes considerably stronger.
Worked example
A test result could say:
That makes Agent performance something Testing4.ai can actually measure rather than describe for auditors.
Mandatory revalidation triggers
- Model or model-version change
- Material prompt, guardrail, memory or orchestration change
- New tool, API, connector, permission, identity or target system
- New data source, classification or processing location
- Change in purpose, users, population, autonomy or action limit
- Vulnerability, incident, complaint, near miss or unexplained alert
- Material degradation in accuracy, fairness, refusal, cost or override rate
- Supplier, legal or risk-appetite change
- New Agent-to-Agent communication or delegation
- Expired evidence or unavailable telemetry
Responding to validation results
| Result | Response |
|---|---|
| Pass | Continue subject to monitoring. |
| Conditional pass | Continue with conditions, compensating controls, owner and expiry. |
| Fail – contained | Suspend affected capability/tool/user group; remediate and re-test. |
| Fail – material | Kill/rollback, notify owners and assess reporting obligations. |
| Inconclusive | Not a pass; obtain evidence, increase sampling or restrict operation. |
AI Agent assurance history (audit trail)
An organisation should be capable of demonstrating not only that a test passed or failed, but exactly what was tested, against which Agent configuration and governance requirement, when it was tested, what evidence was observed, and whether that evidence can be trusted.
| Evidence group | Minimum artefacts |
|---|---|
| Ownership | Inventory, owners, authority and competence. |
| Purpose & risk | Use case, prohibited uses, tier, impact assessment, treatment and residual risk. |
| Design & build | Architecture, data flow, prompts/policies, model/supplier, tools, permissions and versions. |
| Testing | Strategy, traceability, corpora, configuration, results, defects and re-tests. |
| Approval | Gate checklist, approvers, conditions, exceptions, expiry and release. |
| Operation | Telemetry, sampling, human reviews, incidents, changes and validation packs. |
| Retirement | Revoked access, removed integrations, data/memory disposition and closure. |
The following minimum principles must be established to ensure audit-level integrity of your records:
Immutable evidence records
Store evidence so it cannot be altered after capture.
Append-only audit trail
Records are added, never overwritten.
UTC timestamps
One consistent time reference across all evidence.
Evidence hashing
Integrity of each artefact can be verified.
- Continuous Evidence Chain
- Your aim should be to produce a Continuous Evidence Chain: the traceable and integrity-protected relationship between an AI Agent's approved governance requirements, implemented controls, assurance tests, observed results, approval decisions, subsequent changes and ongoing validation evidence throughout the Agent's operational life.
Monitoring, incidents and evidence
Monitor at least the following signals:
- Task success, severity-weighted failure and escalation rates
- Human override, rejection and correction rates
- Guardrail violations and attempted unauthorised actions
- Tool calls by resource, identity, outcome and value
- Sensitive-data and injection detections
- Cost, loop depth, latency and rate-limit events
- Model, prompt, connector and permission drift
- Complaints, contested decisions, near misses and harm
- Validation coverage, evidence age and unresolved defects
Incident response
- Detect, classify and preserve evidence.
- Contain by revoking credentials, disabling tools, reducing permissions, isolating memory or activating the kill switch.
- Assess business, security, privacy, safety, legal and regulatory impact.
- Correct immediate and systemic causes.
- Re-test relevant controls before restoration.
- Notify and report where required.
- Update risks, controls, test cases and portfolio lessons.
AI Agent estate governance metrics
- Percentage of active Agents with current owner, risk tier and approval
- Percentage of Tier 2/3 Agents with current independent validation
- Critical controls passing, failing or not evidenced
- Open defects by severity and age
- Validation overdue rate
- Incidents and near misses by Agent, root cause and severity
- Human override and challenge rate
- Permission exceptions and entitlement drift
- Changes triggering or bypassing revalidation
- Mean time to contain, revoke and recover
Report trends, risk concentration, overdue assurance, material incidents, exceptions and whether operation remains within appetite. Avoid one composite score that can hide severe weaknesses.
Minimum Agent record definitions
Each field of the Governance Passport, with its definition, recording guidance and an illustrative example.
01Unique ID, name, version and lifecycle status
A stable identifier for the Agent, its recognisable business name, the specific deployed version and its status, such as proposed, development, testing, approved, live, suspended or retired. The unique ID should remain constant even if the Agent is renamed.
02Business purpose, prohibited purposes and intended users
The approved business outcome the Agent supports, the activities it must not perform and the people, roles or customer groups authorised to use it. This establishes the Agent's purpose boundary and prevents capability drift.
03Business owner, Agent owner, technical owner, security owner, data owner and final approver
The named humans or authorised governance body accountable for the business process, the Agent as a managed product, its technical implementation, security and identity controls, data use, and the final decision to deploy or continue operation. One person may hold more than one role, but accountability for each domain must remain explicit.
04Provider, model, hosting location and material subcontractors
The organisations and technologies supplying the Agent or underlying model, the model family and version where known, the regions in which processing and storage occur, and third parties whose services materially affect security, privacy, availability or behaviour.
05Prompts/instructions, knowledge sources, memory and retention
The controlled instructions that govern the Agent, the repositories and data sources used to ground responses, whether conversational or long-term memory is enabled, what it may contain and how long prompts, memory and interaction data are retained. References to controlled versions may be recorded instead of exposing sensitive prompt content in the register.
06Tools, APIs, connectors, environments, identities and permissions
Every mechanism the Agent can use to retrieve data or take action, together with the development, test and production environments, the human or non-human identity used, and the precise read, write, create, delete, execute or administrative permissions granted.
07Data categories, personal data and confidentiality level
The types of information consumed, generated, stored or disclosed by the Agent, including whether personal data, special-category data, financial data, commercially sensitive information or regulated records are involved, and the organisation's applicable information-classification label.
08Autonomy, human approval points and action/transaction limits
The extent to which the Agent recommends, prepares, executes or delegates actions; the points at which an authorised human must review or approve; and the hard boundaries on action type, value, volume, frequency, scope or consequence. Limits should be technically enforced where possible, not left as prompt instructions alone.
09Affected persons, jurisdictions and applicable obligations
The employees, customers, suppliers or other groups who may be affected by the Agent's outputs or actions; the countries or regions in which they or the processing are located; and the laws, regulations, contractual terms and internal policies that may apply.
10Risk tier, approval expiry date and continuous validation schedule
The current risk classification derived from the risk factors, the date on which the operating approval must be reconsidered, and the planned frequency and scope of monitoring, synthetic probes, outcome sampling, adversarial regression and formal continued-operation review.
11Logging, monitoring, incident response, rollback and kill switch
The evidence captured about inputs, versions, decisions, tool calls, approvals and outcomes; the telemetry and alert thresholds used in operation; the incident process and contacts; and the tested mechanisms for reducing permissions, disabling tools, reverting a release or stopping the Agent rapidly.
12Dependencies on other Agents and consequences of cascading failure
The Agents, models, services, data pipelines and downstream processes on which this Agent relies or which rely on it, including Agent-to-Agent delegation and shared memory. The record should describe how an error, compromise or outage could propagate and where containment boundaries exist.
A.1 Audit record requirements
The register entry should identify the evidence source for each field, its owner and the date last reviewed.
Material differences between the registered record and the deployed Agent should be treated as a governance exception and may require suspension, re-testing or re-approval.
Sensitive material, such as secrets or complete system prompts, should not be copied into a broadly accessible register; the record should instead contain a controlled reference to the protected source.
Workshop guidance
W01 · G0AI Agent Proposal Workshop
≈ 2–3 hrs- Frame the business problem20 min
- Challenge whether an AI Agent is appropriate20 min
- Define purpose and prohibited purpose25 min
- Map the Agent's proposed authority30 min
- Conduct preliminary risk-factor assessment35 min
- Define initial success and assurance measures20 min
- Confirm ownership and decision rights15 min
- Make the G0 decision15 min
W02 · G1AI Agent Design, Authority and Control Workshop
≈ ½ day (straightforward Agent)- What will the Agent actually be able to do?
- Where does the Agent have authority?
- What happens if the Agent gets it wrong?
- What must a human remain responsible for?
- How will we prove the design works?
W03 · G2AI Agent Build, Configuration & Assurance Readiness Workshop
≈ 3–4 hrs (straightforward Agent)- Did we build what G1 approved?
- Exactly what are we about to test?
- Have the required controls actually been implemented?
- Can we see and reconstruct what the Agent is doing?
- Is the test environment sufficiently representative of production?
- Can the Agent now be handed over to formal assurance?
W04 · G3AI Agent Verification, Validation & Deployment Assurance Workshop
≈ 3–4 hrs (straightforward Agent)For G3 we make the workshop the culmination of an assurance campaign, rather than pretending that all verification and adversarial testing happens during a three-hour meeting.
The workshop shouldn't begin until the G3 Assurance Campaign has produced:
- Current Governance Passport
- G2 Agent Release Baseline
- Governance-to-Assurance Traceability Matrix
- Functional results
- Performance results
- Authority-boundary testing
- Security and adversarial results
- Kill Switch/containment results
- Defect register
- Re-test evidence
- Updated residual-risk assessment
These then feed into the questions below:
- Does the Agent perform its approved purpose correctly?
- Does the Agent remain within its approved authority?
- Can the Agent be caused to behave unsafely or outside that authority?
- Does the Agent fail safely under adverse conditions?
- Can the organisation rapidly contain the Agent and regain control?
- Is the total evidence sufficient to justify deployment?
This is where the use of the Testing4.ai Guardian4ai product brings benefits and auditable evidence.
Continuous testing and assurance for AI Agents, helping organisations understand whether their Agents continue to behave safely, accurately and as intended.
- Ongoing assurance of Agent behaviour
- Checks for safety and accuracy
- Confidence Agents keep acting as intended
Deployment approval checklist
Tick items off as you work through a deployment decision. (Ticks are not saved — they reset when the page reloads.)
Alignment and sources
D.1 Purpose of alignment
The Testing4.ai AI Agent Governance Framework has not been designed to replace an established standard, regulatory requirement, management system or sector-specific control framework.
It provides a practical, Agent-focused governance and assurance model that can be used either independently or alongside an organisation's existing arrangements for risk management, information security, data protection, quality, compliance and internal control.
Organisations deploying AI Agents are unlikely to operate under a single governance regime. They may already be subject to:
- corporate risk and internal-control requirements;
- information-security and privacy management systems;
- data-protection legislation;
- sector-specific regulation;
- contractual and customer requirements;
- emerging AI-specific laws and standards; and
- internal policies governing technology, automation and delegated authority.
Creating an entirely separate governance regime for AI Agents could duplicate controls, create conflicting terminology and make assurance unnecessarily complex.
Testing4.ai has therefore aligned this framework with recognised external sources that address complementary aspects of responsible and secure AI.
D.2 What alignment means
Within this framework, alignment means that Testing4.ai has considered the principles, objectives and control expectations of recognised external frameworks and has translated relevant elements into practical requirements for the governance, testing, approval and continuous validation of AI Agents.
Alignment does not mean that:
- adoption of the Testing4.ai framework automatically demonstrates legal compliance;
- a Testing4.ai risk tier is equivalent to a statutory risk classification;
- use of the framework constitutes certification against ISO/IEC 42001:2023 or any other standard;
- all requirements of every referenced framework are included;
- the framework replaces specialist legal, regulatory, privacy or security advice; or
- successful testing proves that an AI Agent is free from all risk.
The applicability of each external framework must be assessed according to the organisation, jurisdiction, sector, AI use case and people potentially affected.
D.3 Why multiple frameworks are needed
No single external framework completely addresses the practical governance of an AI Agent. Each referenced framework contributes a different perspective:
NIST AI Risk Management Framework 1.0
The NIST AI Risk Management Framework provides the underlying risk-management approach. Its Govern, Map, Measure and Manage functions support the Testing4.ai position that AI risk management must:
- be integrated into organisational governance;
- consider the use case and operating context;
- identify and assess potential impacts;
- measure whether risks and controls are understood;
- manage identified risks throughout the lifecycle; and
- continue after deployment.
Within Testing4.ai, this is reflected in the Agent Governance Passport, risk-factor assessment, testing and measurement requirements, lifecycle gates, operational monitoring and continued-operation reviews.
ISO/IEC 42001:2023
ISO/IEC 42001:2023 provides the organisational management-system perspective. It supports the establishment of:
- leadership and governance responsibilities;
- AI policies and objectives;
- defined roles and decision rights;
- AI risk and impact assessment;
- documented operational controls;
- performance evaluation;
- management review; and
- continual improvement.
Testing4.ai complements this management-system approach by applying it at the level of an individual AI Agent. Where an AI management system establishes that controls must exist, Testing4.ai asks:
What evidence demonstrates that those controls are operating effectively for this Agent and this version?
Testing4.ai is not an ISO/IEC 42001:2023 certification scheme. However, the records, testing results, approvals and validation history produced through this framework may support an organisation's broader management-system evidence.
EU Artificial Intelligence Act
The EU Artificial Intelligence Act provides an important regulatory and risk-based perspective where it applies. Relevant themes include:
- prohibited AI practices
- classification of certain systems according to risk
- risk-management requirements
- data and data-governance controls
- technical documentation
- logging and record keeping
- transparency
- human oversight
- accuracy, robustness and cybersecurity
- post-market monitoring
- incident management
Testing4.ai adopts the general principle that governance, testing, evidence and oversight should become stronger as the potential impact, autonomy, reach and irreversibility of an AI Agent increase.
However, Testing4.ai risk tiers are internal governance classifications. They must not be presented as equivalent to legal classifications under the EU Artificial Intelligence Act.
For example, a Testing4.ai Tier 3 Agent is not automatically a legally defined “high-risk AI system”. Determining legal classification requires a separate assessment of the system, its intended purpose, deployment context and applicable legislation.
ICO AI and Data Protection Guidance
ICO AI and Data Protection Guidance provides the UK data-protection and individual-rights perspective. Relevant considerations include:
- accountability
- lawfulness, fairness and transparency
- purpose limitation
- data minimisation
- accuracy
- storage limitation
- security
- data-protection impact assessment
- automated decision-making
- individual rights
- risks to individuals' rights and freedoms
These considerations are particularly important for AI Agents because an Agent may retrieve, combine, infer, retain and act upon information from multiple systems during a single task.
Testing4.ai reflects these requirements through its minimum Agent record, including:
- data categories and classifications;
- affected people;
- approved purposes and prohibited purposes;
- knowledge and grounding sources;
- memory and retention;
- data owners;
- processing jurisdictions;
- applicable obligations; and
- mechanisms for explanation, correction, challenge and escalation.
OWASP Agentic AI Guidance
OWASP Agentic AI Guidance provides a detailed Agent-specific security perspective. Traditional application-security controls remain necessary, but they may not adequately address the risks created when AI can:
- interpret goals;
- select and invoke tools;
- retain memory;
- act through identities and permissions;
- delegate work to other Agents;
- generate or execute code;
- interact with untrusted content; and
- perform multi-step actions with limited human intervention.
Relevant agentic risks include:
- goal and instruction hijacking
- direct and indirect prompt injection
- tool misuse
- excessive agency
- identity and privilege abuse
- data exfiltration
- insecure Agent-to-Agent communication
- memory and context poisoning
- unexpected code execution
- supply-chain weaknesses
- denial of service or denial of wallet
- cascading failure
These risks directly inform the Testing4.ai requirements for threat modelling, adversarial testing, tool and permission testing, action limits, memory testing, Agent identity, containment and multi-Agent assurance.
D.4 How the frameworks complement one another
The external sources should be treated as complementary rather than interchangeable.
| External source | Primary contribution | How Testing4.ai operationalises it |
|---|---|---|
| NIST AI Risk Management Framework 1.0 | AI risk-management lifecycle | Governance Passport, risk factors, measurement, testing, monitoring and risk treatment |
| ISO/IEC 42001:2023 | Organisational AI management system | Accountability, policies, decision rights, documented controls, performance evaluation and continual improvement |
| EU Artificial Intelligence Act | Risk-based regulatory requirements | Regulatory screening, human oversight, technical evidence, logging, robustness and post-deployment monitoring |
| ICO AI and Data Protection Guidance | UK data protection and individual rights | Data inventory, purpose limitation, minimisation, retention, privacy testing, transparency and contestability |
| OWASP Agentic AI Guidance | Agent-specific technical security | Threat modelling, prompt-injection testing, tool controls, Agent identity, memory protection and containment |
No single source provides the complete Testing4.ai lifecycle.
Testing4.ai brings these perspectives together at the level at which governance must ultimately operate: the individual AI Agent, its approved version and its specific business context.
D.5 Indicative control alignment
The following table illustrates how the principal elements of the Testing4.ai framework relate to the referenced external sources.
Note: This is an indicative mapping. It is not a formal statement of conformity, statutory compliance or certification equivalence.
| Testing4.ai area | NIST AI RMF | ISO/IEC 42001 | EU AI Act | ICO guidance | OWASP guidance |
|---|---|---|---|---|---|
| Governance principles and accountability | Govern | Leadership, roles and responsibilities | Governance and provider/deployer responsibilities | Accountability | Security ownership and responsibility |
| Agent Register and Governance Passport | Govern, Map | AI system inventory and documented information | Technical documentation and record keeping | Records of processing and accountability | Agent, tool and dependency inventory |
| Purpose and prohibited-use definition | Map | AI objectives and intended use | Intended purpose and prohibited practices | Purpose limitation and lawfulness | Goal and instruction boundaries |
| Risk classification | Map, Measure | AI risk and impact assessment | Risk-based regulatory treatment | Risks to rights and freedoms | Agentic threat assessment |
| Least Agency and Explicit Authority | Govern, Manage | Operational planning and control | Human oversight and controlled operation | Data minimisation and security | Excessive agency, tool misuse and privilege abuse |
| Human oversight and approval | Govern, Manage | Roles, competence and operational control | Human-oversight requirements | Automated decision-making and individual rights | Approval manipulation and authority boundaries |
| Functional and performance testing | Measure | Performance evaluation | Accuracy, robustness and appropriate performance | Accuracy and fairness | Agent behaviour and tool-use validation |
| Security and adversarial testing | Measure, Manage | Information-security controls | Cybersecurity and robustness | Security principle | Prompt injection, tool abuse, memory poisoning and code execution |
| Traceability and audit evidence | Govern, Measure | Documented information and evaluation records | Logging and technical documentation | Accountability and demonstrability | Agent and tool-call logging |
| Agent containment and Kill Switch | Manage | Incident and operational control | Risk mitigation and corrective measures | Security and breach response | Tool restriction, identity revocation and Agent isolation |
| Operational monitoring | Measure, Manage | Monitoring, measurement and analysis | Post-deployment or post-market monitoring | Ongoing accountability | Runtime monitoring and anomaly detection |
| Continuous validation | Measure, Manage | Continual improvement | Continuing risk management and monitoring | Review of processing risks | Adversarial regression and control verification |
| Incident response | Manage | Nonconformity and corrective action | Serious-incident handling where applicable | Personal-data breach and risk response | Security incident containment and recovery |
| Change and retirement | Govern, Manage | Change control and lifecycle management | Continuing compliance and record retention | Retention and deletion | Credential revocation, access removal and secure decommissioning |
D.6 From framework expectations to testable controls
Alignment is valuable only when governance expectations are converted into controls capable of being implemented and tested. This example is illustrative & separate from the case study:
| Governance expectation | Agent-level control | Assurance test | Evidence |
|---|---|---|---|
| Operate using least privilege | Agent identity has read-only supplier access | Attempt unauthorised create, update and delete operations | Identity and API logs showing denied operations |
| Require human oversight | Bank-detail changes require Finance Manager approval | Attempt changes below, at and above the approval boundary | Workflow and approval records |
| Remain within approved purpose | Agent may validate but not approve suppliers | Instruct Agent to approve a supplier through direct, indirect and delegated requests | Agent and tool-call trace |
| Prevent excessive agency | Payment action limit is £5,000 | Test £4,999, £5,000 and £5,001, including transaction splitting | Transaction and policy-enforcement logs |
| Resist indirect prompt injection | Untrusted document content cannot override system controls | Place malicious instructions in documents, messages and knowledge sources | Adversarial test result and control telemetry |
| Support rapid containment | Production write capability can be revoked within the approved MCT | Activate containment and attempt further consequential actions | Timed containment record and denied actions |
| Preserve traceability | Material actions carry version, identity and correlation information | Reconstruct a sample transaction from initiation to outcome | Complete audit reconstruction |
| Maintain continuing assurance | Critical controls are re-tested after relevant changes | Change model, prompt, connector or permission and execute regression suite | Validation pack and reapproval decision |
Recognised frameworks describe what responsible governance should achieve. Testing4.ai converts those expectations into Agent-level controls, tests and evidence.
D.7 Relationship with the Testing4.ai assurance lifecycle
External expectations are incorporated throughout the Testing4.ai lifecycle:
- RegisterEstablish what the Agent is, why it exists, what it can access and who is accountable.
- AssessIdentify inherent risks arising from purpose, impact, autonomy, data, permissions, reach and complexity.
- ControlDefine human oversight, least-agency boundaries, permissions, action limits, monitoring and containment.
- TestDetermine whether functional, security, safety, privacy, performance and governance controls operate as required.
- ApproveDecide whether the available evidence is sufficient and whether residual risk is acceptable.
- OperateMonitor the Agent, its environment, its outcomes and its dependencies.
- Continuously validateRe-test material controls at a risk-proportionate frequency and after relevant changes.
- Reapprove, restrict or retireRespond when the Agent, its evidence or its residual risk no longer remains within approved boundaries.
This produces a continuous evidence chain:
D.8 Limitations and use of the alignment
- understand the origin of key Testing4.ai governance requirements
- support integration with existing organisational frameworks
- identify potential overlap with established controls
- guide detailed control and evidence mapping
- support discussions with risk, security, privacy, compliance and internal-audit teams
- reduce unnecessary duplication
- evidence of certification
- a legal determination
- a substitute for an organisation-specific applicability assessment
- proof that every requirement of an external framework has been satisfied
- evidence that an AI Agent is safe solely because its governance documentation is complete
Formal conformity, certification or regulatory-compliance activities should be performed against the full and current authoritative requirements of the applicable standard or legislation.
D.9 Testing4.ai reason for alignment
What should be true
AI governance defines what should be true about an AI Agent.
Whether it is true
Testing establishes whether it is true.
Whether it remains true
Continuous validation establishes whether it remains true.
Alignment with recognised frameworks gives the Testing4.ai framework a credible governance, risk, regulatory, privacy and security foundation. Testing4.ai then provides the Agent-focused assurance layer that converts those expectations into controls and objective evidence for the people ultimately accountable.
D.10 Authoritative sources
- NIST AI Risk Management Framework Core airc.nist.gov
- NIST AI RMF Playbook airc.nist.gov
- ISO/IEC 42001:2023 iso.org
- EU Artificial Intelligence Act eur-lex.europa.eu
- ICO AI and Data Protection Risk Toolkit ico.org.uk
- OWASP AI Agent Security Cheat Sheet owasp.org
- OWASP Top 10 for Agentic Applications genai.owasp.org
AI governance defines who is accountable and which controls are required. Independent testing and continuous validation provide the evidence those accountable need to demonstrate that AI Agents remain within approved purpose, permissions and risk tolerance.