Governed AI in production, mapped to SafeAI.sg

A reference architecture for an agentic harness, its knowledge and data layers, and the governance plane around them. Each component is read against SafeAI.sg's approach to AI governance: a risk score that decides how much control a use case needs, and a principle of checking before an agent acts. Each policy is then traced to the control that enforces it.

One tier, many controls

A use case's risk tier, set by its Universal AI Use-Case Risk Score (UARS, explained below), decides which controls switch on, so governance stays proportionate to risk.

Decide centrally, enforce locally

One policy engine makes the decision. Six enforcement points across the stack apply it, because no single point is enough.

Before the action, not after

For consequential agents, checks run while the intent is still only a proposal. That is the Intent Window Principle.

How this page is organised

The page has eight tabs. This Overview introduces SafeAI.sg and UARS, and the seven tabs below build on it in order. Each tab ends with a link to the next one.

Start here: what SafeAI.sg and UARS are

No prior knowledge needed. This section explains the two ideas the rest of the page depends on.

SafeAI.sg

SafeAI.sg is Singapore's first industry-led Centre of Excellence for practical AI governance. It helps organisations deploy AI with the right level of rigour: proportionate to risk, free to access and built by practitioners for practitioners.

It is not a regulator, it does not certify anyone and it does not endorse products.

The problem it addresses is a common one. Many organisations over-govern low-risk AI tools, which stifles useful work, while under-governing high-risk ones, which creates avoidable harm. SafeAI.sg's answer is to match the amount of governance to the amount of risk.

UARS: the Universal AI Use-Case Risk Score

UARS stands for Universal AI Use-Case Risk Score. It is SafeAI.sg's proposed method for scoring how risky an AI use case is, so an organisation can decide how much governance it needs. You score the use case on five dimensions, combine them into one number, and that number places the use case in one of three tiers. SafeAI.sg offers a free, self-service toolkit for doing this in about 30 minutes.

A higher total means more risk and therefore more governance. It is a proposed illustrative framework, not a standard.

The five dimensions

Dimension
The question it asks
Weight
Autonomy
How much does the AI decide and act without a person stepping in?
x 2
Data sensitivity
How sensitive is the data the AI can see or use?
x 2
Attack surface
How many ways could someone attack or manipulate it, through its inputs, tools and connections?
x 1.5
Consequentiality
How serious is the impact on people, money or the organisation if it acts wrongly?
x 1.5
Error tolerance
How little room is there for mistakes before harm occurs?
x 1

Total = (Autonomy x 2) + (Data sensitivity x 2) + (Attack surface x 1.5) + (Consequentiality x 1.5) + (Error tolerance x 1). The indicative range is 7 to 21. Autonomy and data sensitivity count double, so they move the score most. The plain-language questions above are this page's reading of each dimension.

The three tiers

Each tier has a governance profile, a set of controls expected at that level of risk. This page reads each tier as adding to the one before it. Unfamiliar control names are explained in the glossary. The examples are for orientation and are not scored cases.

Tier 1: Standard

UARS 7 to 10

Lower-risk uses, such as an assistant that drafts text for a person to review before anything is sent.

Profile

LLM guardrails, agent identity, adversarial testing.

Tier 2: Agentic

UARS 11 to 15

AI that takes actions with some independence, such as an agent that updates records or sends messages on a person's behalf.

Adds

Human-in-the-loop checkpoints, tool scope enforcement, trajectory monitoring.

Tier 3: Full stack

UARS 16 to 21

High autonomy or high consequence, often with sensitive data and actions that are hard to reverse.

Adds

AI security posture management (AI-SPM), a generative AI firewall, circuit breakers, safety cases.

Why agents need runtime governance, not only build-time governance

In a traditional stage-gated lifecycle, governance is concentrated at build time: requirements, design review, testing and a sign-off, after which the software is assumed to behave as approved. Agents break that assumption, because their behaviour is decided while they run. This section contrasts the two models so the rest of the page makes sense. Numbers link to the sources at the end of the section.

Traditional stage-gated lifecycle (waterfall)

Governance is front-loaded and peaks at the sign-off gate. Once live, the software is assumed to behave as approved.

RequirementsSpecification signedGovernance: High
DesignDesign reviewGovernance: High
BuildCode completeGovernance: Medium
TestUAT and test reportsGovernance: High
Sign-offGate: formal approvalGovernance: Peak
ReleaseGo liveGovernance: Low
OperatePeriodic auditGovernance: Low

Agentic lifecycle with runtime governance

Gates still exist, but governance continues through every run. The agent's behaviour is decided, watched and evidenced as it acts.

Threat model and designTier, risks, scenariosGovernance: High
Build on the paved roadManifest, tool contractsGovernance: Medium
Evals gateGate: evidence packGovernance: Peak
Staged releaseCanary, error budgetGovernance: High
Run: decidePolicy decision per actionGovernance: Peak
Run: watch and containProbes, drift, breakersGovernance: Peak
Evidence and learnAudit, feedback, expiryGovernance: High

Bar height shows the intensity of governance activity at each stage. The shape is illustrative, not measured data.

Side by side

Dimension
Build-time governance (stage-gated)
Run-time governance (agentic)
When governance acts
Before release, at stage gates and sign-off
Before each action, during each run, and across the agent's whole life
What is governed
A fixed artefact: requirements, design, code, test results
Behaviour: the decisions, actions and trajectories an agent produces, which vary from run to run
Core assumption
Behaviour is determined by the code and stays as tested
Behaviour emerges from model, context, tools and input, and changes with each run and over time
The input space
Specified in advance, so test cases can cover the paths
Open-ended: natural language, documents and tool results, including adversarial content
Determinism
Same input, same output, so a passing test stays passing
Non-deterministic and path-dependent, so tests sample behaviour and controls must also act at run time1
Access and authority
Roles provisioned and reviewed periodically
Decided per action from intent, context and risk, using short-lived scoped credentials
Approval
One sign-off at release
Approvals triggered by policy for each consequential action
Independent review
A second person reviews the code and design before release
An independent checker agent on a different model reviews each consequential action, and people resolve disagreements
Evidence
Test reports and sign-off documents, a point in time
Decision logs, traces, probe results and expiring evidence packs, continuous
Change
Change requests and release windows
Prompt, model, tool and policy changes gated by evals, with policy updates applied by the engine without rebuilding agents
Monitoring
Uptime, incident tickets, periodic audit
Trajectory monitoring, anomaly detection, circuit breakers and kill switches
When something goes wrong
Roll back the release, hold a post-incident review
Contain in seconds by restricting, revoking or stopping, then reconstruct from the audit trail
Cost of a gap
A defect caught at the gate is cheaper than one in production
A gap in enforcement can be exploited at machine speed and compounds across steps
Ownership after launch
Project team hands over to operations
The owner stays accountable for outcomes, and a shared platform owns the controls
Documentation
Specifications and design documents, fixed at sign-off
Policies as code and living knowledge, versioned and tested

Why the stage-gated assumptions break for agents

Behaviour is non-deterministic and path-dependent

The same request can take different routes through different tools and produce different results. Research on runtime governance makes the point that this behaviour cannot be fully governed at design time.1

Inputs are open-ended and can be hostile

Agents read documents, email and tool results. Any of it can carry instructions meant to redirect them. OWASP's agentic risk list puts goal hijack and tool misuse at the top.4

Autonomy multiplies the effect of a mistake

An agent that can call tools turns a wrong judgement into an action, and one action can trigger the next.

Behaviour drifts without any code change

A model update, a new document in the knowledge base or a changed tool response alters behaviour while the signed-off artefact stays the same.

Speed and scale outrun human review

Agents act faster than periodic review can follow, so controls that depend on a person reading a report after the fact arrive too late.

One rule, two worlds

The same policy, governed in each model. Settlements above the handler's limit need a supervisor decision.

Build-time governance

  1. A requirement is written: settlements above a limit need a supervisor.
  2. The design is reviewed and the rule is coded as a check in the claims application.
  3. Twelve test cases are signed off in user acceptance testing.
  4. The system is released. Governance moves to a yearly audit.
  5. In production, a path nobody anticipated, such as a different tool that also pays a claim, is not checked. Nobody sees it until the audit.

Run-time governance

  1. The rule is a policy in the policy engine, with an owner, a version and tests.
  2. The agent proposes each settlement as a structured intent before anything runs.
  3. The engine decides allow, deny or escalate for that intent, whichever tool or path the agent used. A supervisor approves anything above the limit.
  4. An injected invoice asks for the full amount. The engine denies it, the alert fires and the attempt becomes a new eval case.
  5. The rule changes next month. It is updated once in the engine, tested, and applies to every agent at once.

What to keep and what to add

Keep from the lifecycle you know

  • Requirements and specification. The policy catalogue and acceptance evals are the new requirements document.
  • Threat modelling and design review. They still come first, and they now feed the test scenarios and the runtime rules.
  • Independent testing and release gates. They become evals and an evidence pack, enforced by admission control.
  • Change control and separation of duties. They apply to prompts, models, tools and policy packs as well as code.
  • Documentation and ownership. They become policy as code, runbooks and named owners.

Add for agents

  • A decision point that evaluates each consequential intent before it runs.
  • Scoped, short-lived credentials and parameter limits at the tool.
  • Trajectory monitoring, circuit breakers and scoped kill switches.
  • Tamper-evident decision logs and runtime probes that keep proving the controls work.
  • Expiring evidence, so a pack proves today's agent and not last quarter's.

The short version: governance moves from a gate to a loop. The gate still exists, and the loop keeps running for as long as the agent does.

A fair reading

  • Royce's 1970 paper is the source of the stage-gated picture, yet it warned that a single pass through sequential stages is risky and recommended iteration and feedback.2 Here, waterfall means the front-loaded, gate-centred governance pattern, not a claim about how every team works.
  • Modern DevOps and CI/CD already add continuous controls to delivery, such as automated tests, staged rollout and monitoring. Runtime governance extends the same thinking from deploying software safely to governing behaviour safely.
  • This is not a replacement for build-time governance. It is a superset: the gates stay, and the governance continues while the agent runs. Frameworks such as IMDA's for agentic AI also pair assessing and bounding risks upfront with technical controls and monitoring.3

Sources for this section

  1. Runtime Governance for AI Agents (arXiv 2603.16586)
  2. Winston W. Royce, Managing the Development of Large Software Systems (1970, archived copy)
  3. IMDA, Model AI Governance Framework for Agentic AI, version 1.5
  4. OWASP GenAI Security Project, Top 10 for Agentic Applications for 2026
  5. DORA, State of AI-assisted Software Development 2025
  6. Gravitee, Runtime governance for AI agents with human-in-the-loop approvals and break-glass access controls
Copied