Turning AI into real, sustainable competitive advantage
Framework · AI Agents
The governance stack for reliable AI agents
Two sides of the same stack. Data governance controls what enters the agent; AI governance controls what comes out. Shared concerns sit between them. Underneath, five layers and five controls. Select an element to see what it demands in practice.
Click an element. Arrow keys move through the diagram.
Ensures the inputs are accurate, secure, traceable, and appropriately governed.
Protects the organisation from poor-quality, incomplete, or unauthorised data entering the system.
Ensures the outputs are explainable, auditable, compliant, and accountable.
Protects the organisation from opaque decisions, bias, and uncontrolled automation.
The governance stack architecture
The 5 controls every AI agent needs
Select an element
Arrow keys to move through.
Data Governance
Controls the inputs
This is the agent entry condition. What it is allowed to know has to be accurate, secure, traceable, and authorised for that use.
What it protectsThe organisation, from poor-quality, incomplete, or unauthorised data entering the system.
Link to the outputExplainability and audit on the AI side only hold if the input has an origin, an owner, and a permission.
What it includesQuality, access, lineage, and policy, plus the path of the data: raw, validated, trusted, accessible, certified.
Without a governed input, output control arrives too late.
Data Governance
Data accuracy and quality
Quality measures whether the data is complete, current, consistent, and fit for the use the agent will make of it.
What is checkedMissing values, duplicates, formats, drift from the source, and business rules.
Effect on the agentAn incomplete input travels into the decision and the record as if it were a fact.
EvidenceQuality rules with a visible result before the data is marked validated.
Weak data is dealt with before the model layer.
Data Governance
Secure access and usage
Who reaches the data, for what purpose, and with what privilege. The agent acts with the identity that calls it, and should inherit only what that purpose allows.
PrincipleLeast privilege, a distinct identity for the agent, an explicit purpose.
Typical failureA service key with read access to repositories the use case does not need.
Link to the outputAn action is legitimate only if the data behind it was accessible for that purpose.
Access beyond the purpose is an ungoverned input.
Data Governance
Data lineage and traceability
Lineage is the history of the data: origin, transformations, owner, and the moment it was accepted for this use.
What must be reconstructableSource, transformations, version, and who approved the use.
For the auditorWithout lineage, the agent record describes a decision with no origin.
In the stackIt is the bridge between data governance and output auditability.
What cannot be traced cannot be explained later.
Data Governance
Policy and standards compliance
Internal policies, standards, and risk appetite applied to the data before it feeds the agent.
What it alignsClassification, retention, grounds for use, and exclusions: data the agent must not see.
Where it livesIn the policy layer, and again in the check immediately before the action.
Typical failureA written policy that is not tied to a rule the runtime can enforce.
A policy that cannot reject a data item is not governing the input.
Data state
Raw data
Data just extracted. It has not passed quality rules, and it has no accepted owner for this use.
Fit forExploration and design of the flow.
Unfit forDeciding or acting on behalf of the organisation.
Next stepValidation.
Raw data stays out of the context of an agent in production.
Data state
Validated data
The data has passed the quality rules set for the use case. The shape is right. Trust is not there yet.
What is already knownCompleteness, format, and a minimum of consistency.
What is still missingOwner, classification, and authorisation to use it.
Next stepTrusted data.
Validated is a gate on the path, not the final state.
Data state
Trusted data
Known origin, identified owner, accepted quality. This is the first state in which the data can support a decision.
ConditionsMinimum lineage, a named owner, and quality inside the threshold.
UseTraining, retrieval, or agent context, according to classification.
Next stepMake it accessible only to the purpose that is allowed.
Trust in the data is assigned, with an owner and a threshold.
Data state
Accessible data
Trusted data is available to the right identity, at the right moment, for the declared purpose.
What is controlledPermission, purpose, and channel.
What is refusedLateral access through a shared agent credential.
Next stepCertification for the specific use.
Accessible means accessible to a purpose, not to the whole platform.
Data state
Certified data
The data is fit to enter an agent decision, with evidence of quality, lineage, permission, and policy alignment.
What reaches this stateThis is the state that should feed an action with effect.
Certification is per useThe same data can be certified for one flow and out of scope for another.
ValidityWhen the source or the policy changes, certification drops and the path starts again.
Without certification, the agent acts on an assumption.
Shared
Shared concerns
Bias, privacy, lineage, and risk cross both sides. They enter in the data and leave in the action.
On the data side aloneThe output stays opaque: the action does not show what it inherited.
On the AI side aloneThe input stays contaminated, and output control works on a crooked base.
In the stackEach concern has a control on the way in and another on the way out, tied by the same trace.
A shared concern needs two controls, one on each side.
Shared
Data bias
Bias enters through the sample, through omission, and through a variable that stands in for another. It leaves in the agent decision, often with an explanation that looks neutral.
On the way inWhere the distribution comes from, who is left out, which attribute stands in for another.
On the way outThe action treats groups unequally, or the explanation hides the stand-in.
The controlMeasure it in the data and measure it again in the action.
Bias is handled at the source and again in the action.
Shared
Privacy
The agent tends to gather context. Privacy is the limit: minimisation, purpose, grounds for use, and retention.
On the way inContext carries only what the purpose justifies.
On the way outThe explanation and the log do not reproduce data that should not leave.
Typical failureAn audit log that becomes a second store of personal data.
The log is a data processing activity too.
Shared
Lineage and auditability
Shared auditability means reconstructing both halves: which data the agent saw, and which action it took.
Data sideOrigin, version, permission.
Action sideRequest, policy applied, decision, execution or rejection.
Where they meetThe two identifiers meet in the same trace.
An action log without the data trace is not enough to account for the decision.
Shared
Risk
The risk of the agent is the risk of the data plus the risk of the action. The appetite set in policy has to reach the runtime.
In the dataSensitivity, quality, authorisation.
In the actionImpact, reversibility, who is affected.
At runtimeWhat crosses the threshold escalates to a person.
Risk that does not change an action is not being managed.
AI Governance
Controls the output
It controls what the agent produces and what it is allowed to do. The output has to be explainable, auditable, compliant, and accountable to someone.
What it does not replaceData governance. It explains and stops a decision about inputs that should already be governed.
How it closes the loopPolicy check, confidence, explanation, execution or rejection.
What it protectsThe organisation, from opaque decisions, bias, and automation with no brake.
A controlled output is a decision that can be explained and stopped.
AI Governance
Explainability and transparency
It is the reason for the decision, readable by the person affected and by the auditor. It comes from the trace, not from a text written afterwards to justify it.
What it points toThe inputs that counted, and the rule that stopped or allowed the action.
Two readersThe user and the auditor do not read the same text, but both start from the same fact.
Without itThe confidence score is a number with no narrative.
An explanation that does not tie to the log does not explain the decision.
AI Governance
Fairness, bias and safety
The action does not amplify a bias in the data, and it does not produce a result the policy treats as unsafe.
FairnessThe effect of the action by group, not only the average.
SafetyThe output does not instruct, reveal, or execute what policy forbids.
When it runsBefore execution, in the same step as the policy check.
The effect is measured before the action happens.
AI Governance
Accountability and auditability
Someone answers for the agent action. Auditability is the trace that makes that answer possible.
Three namesUse-case owner, model owner, data owner, named before production.
The traceIt ties request, context, rule, decision, and execution.
EscalationWithout an owner, human escalation has nowhere to go.
Accountability is a name attached to the trace.
AI Governance
Compliance and policy alignment
The proposed action is compared with policy and with the standard before it happens.
An enforceable ruleAllow, constrain, escalate, or reject.
Outside thisA document the runtime does not consult does not align the agent.
Risk appetiteIt arrives here as a threshold: minimum confidence, maximum impact, when to escalate.
Alignment runs at the moment of the action.
Output
Audit log
The record of what was asked, which context was used, which rule ran, which decision came out, and what was executed or refused.
Minimum fieldsTime, identity, use case, sources, policy result, action.
IntegrityThe agent is not the only place its own log exists.
RetentionAligned with privacy. The log has a retention period and a purpose.
Without an intact log, the explanation is only a story.
Output
Policy check
The gate immediately before the action. The agent proposal passes or fails declared rules.
An explicit resultAllow, constrain, escalate, or reject.
Trace of the ruleThe rule cites the policy it came from, so the auditor can follow it.
Fail closedIf the check does not run, the action does not run.
When the check is missing, the action does not happen.
Output
Confidence score
The agent states how well supported the decision is. Below the threshold, it does not act alone.
Where the threshold comes fromFrom the policy layer, by type of action.
What low confidence doesIt diverts to escalation or rejection. It does not remain a notice on the screen.
CalibrationThe score used here is the one calibrated for the use case.
Confidence without a threshold does not change the action.
Output
Explanation
The text that says why the action was proposed, which data weighed, and which rule decided the outcome.
For the userWhat happened, and what they can challenge.
For the auditorThe bridge to the log and to the policy version.
OriginProduced from the trace, at the moment of the decision.
The explanation is a product of the control.
Output
Execute, reject or roll back
There are three exits, and only one of them is to act: execute, reject, or roll back if the action had already started.
ExecutePolicy satisfied, confidence above the threshold, and an owner named.
RejectThe trace keeps what was asked and why it was refused.
Roll backIt exists only if the action was designed to be undone.
An irreversible action goes through a person first.
Architecture
Input side
Data governance seen as a flow: from the source to the policy that authorises the use.
OriginSources, ingestion, and integration.
ProofQuality checks, metadata, and lineage.
AuthorisationAccess, permissions, policies, and standards.
Everything the agent is allowed to know passes through this side.
Architecture
Policy and standards
The top layer. It defines what is acceptable before any execution: organisation policies, standards, and risk appetite.
What it writesThe thresholds the runtime applies: which actions, which data, which confidence, when to escalate.
Link to the rulesThe rules below cite this layer. Policy does not live in a separate document.
ChangeWhen policy changes, the agent behaviour changes, without waiting for a new model.
Policy the runtime does not read sits outside this layer.
Architecture
Runtime governance
Where governance happens while the agent is working: real-time enforcement, escalation, audit, and action control.
What it interceptsThe proposed action. It runs the check and decides to execute, escalate, or reject.
The traceProduced at the moment of the action.
Role in the stackIt makes the other four layers operational.
Outside the runtime, governance arrives after the effect.
Architecture
AI governance layer
Model guardrails, fairness, explainability, and safety applied to what the agent proposes.
It filtersContent and actions that policy forbids.
It requiresExplanation and confidence before the proposal proceeds.
It sends backBad data goes back to the data layer. The guardrail does not quietly rewrite it.
The guardrail stops the proposal and records the rule that fired.
Architecture
Data governance layer
Quality, lineage, classification, and access control at the moment the agent context is assembled.
What enters contextOnly what is classified and permitted for the purpose.
LineageIt travels with the data, so the log can cite it.
QualityBelow the threshold, confidence drops or the use is refused.
The agent context is a governed product.
Architecture
Infrastructure and security
The base the other layers assume: identity, network, encryption, secrets, and platform compliance.
Identity and secretsA distinct identity for the agent. Secrets outside the prompt. Encryption in transit and at rest.
PlatformNetwork and permissions consistent with least privilege.
If it failsThe controls above sit on access that is already open.
A secret in the prompt crosses every layer.
Architecture
Output side
What the organisation receives from the agent, after the controls. The refusal is part of it.
The decisionOutput, explanation, and rationale.
The controlConfidence, policy check, and safety check.
The trace and the loopRejection or rollback, logs, reports, and feedback to correct the flow.
A refusal is a governed result too.
Control
Trusted data pipelines
Lineage, ownership, and lifecycle of the data, from the source to use by the agent.
Owner and definitionEach set has an owner and a definition of ready to use.
Fail closedThe pipeline stops when quality or lineage breaks.
What the agent consumesThe pipeline output, not the raw source.
A shortcut around the pipeline is an input outside governance.
Control
Access controls
Least privilege, aligned to business policy and to what the standard requires for that data.
The permissionIt belongs to the purpose, not to the channel the agent runs in.
CredentialsAgent credentials are not shared across use cases.
ReviewWhoever no longer has the purpose leaves the context.
Excess privilege shows up in the incident, not on the output screen.
Control
Model guardrails
Transparency, bias mitigation, content filters, and decision oversight at every step, not only in the final reply.
They know the policyThe guardrail applies the policy layer, not a loose list.
Two objectsWhat the agent says and what the agent does.
TraceEach trigger stays in the log, with the rule that fired.
A guardrail with a trace is a control. Without a trace, it is an opaque filter.
Control
Human escalation
A person in the loop when the action is high-impact, sensitive, or an exception to the rule.
The criterionIt sits in policy. It is not left to the judgement of the model.
What the person seesContext, rule, and proposal. Their decision enters the log.
A repeated exceptionIt is a signal to correct the rule.
Escalating with context keeps governance in the human decision.
Control
Continuous monitoring
Input integrity and output behaviour, in real time, with a place the deviation goes to.
On the inputQuality, volume, source drift, permission failures.
On the outputRejection rate, escalations, confidence, irreversible actions.
The deviationIt reopens the classification of the use case.
Monitoring with an action threshold changes the flow. Watching alone does not.
Structure adapted from the diagram The Governance Stack Behind Reliable AI Agents. An operational reading for designing agents in production.