RMT Engineering Logo
Guardrails, gates and cost caps

AI Governance

OptiML AI engine performs two sets of checks for every call like cost and Quality regulation. As there is a cost for every call, a cost ceiling is defined for each call to avoid unwarranted amount in invoices. Similarly a prompt version must clear 240 real transcripts without scoring and sharing inaccurate information. When an agent proposes something expensive or hard to reverse, the call is rather prompted for an human agent to takeover.

  • Every model call traced
  • Nothing is ever auto-promoted
  • Rollback to any prior version
We reply within one business day. No newsletter.
Human gate Parked for a named approver

Autonomy with a hand on the brake

OptiML AI Governance is the control layer around every AI agent on the platform: it decides what reaches the model, what the model is allowed to say back, how much a run may spend before it is stopped, which prompt version is live and which actions a human has to sign off first. None of this is a separate product to buy or a script somebody has to keep alive. It is configuration on the agent. Every decision it makes leaves a trace you can open.

OptiML Governance Layer

Unlike traditional organisations that put static models in front of customers, OptiML enables teams to build and continuously optimise agents over time, rather than relying on standard responses.

One answer, traced end to end

The path a conversation takes through AI Governance

The guardrail pipeline: a customer turn passes personal-data redaction, prompt-injection defence and policy checks before the model call, then toxicity screening, grounding verification and a policy re-check after it, before the answer is spoken Customer turn BEFORE THE MODEL PII detection and redaction Prompt-injection defence Policy checks Model call AFTER THE MODEL Toxicity screening Grounding verification Policy re-check Answer
By the numbers

Few Facts - at a glance

  • Pre + post

    model guardrails — PII, injection, toxicity, policy and grounding, on both sides of the call

  • Hard

    per-run and per-day cost caps that stop the run on breach, not next month's invoice

  • Eval-gated

    prompt promotion — a prompt that scores worse than the incumbent doesn't ship

The process

How It Works

The four stages, end to end

Every turn an agent takes runs the same four stages. Both guardrail halves run each time, whether or not the first half found anything. What differs between agents is which checks are switched on and what each one does when it trips. That is a settings screen, not code.

  1. Before the model

    The Customer conversation passes PII detection and prevention and the policy checks before a single token reaches the provider. Whatever gets prevented here for security reasons here never appears in the request that leaves your environment. Redactions logged, injection scan clear, policy passed. Then the call goes out.

  2. The call, capped and traced

    The live prompt version resolves out of the registry, the run is checked against its cost ceiling before anything leaves, and tokens in and out, cost, latency, model and provider are all recorded against the decision that call fed rather than against a call sitting on its own in a log somewhere. A ₹200 ceiling means ₹200.

  3. After the model

    The answer then goes through qaulity screening, grounding verification against the sources it cited and a policy re-check. A guardrail that trips does whatever you configured it to do. Block the turn, redact the content, regenerate the answer, escalate to a person.

  4. Release or park

    A clean record goes through. A high-stakes tool call is held for review and sent to a named approver, who can approve, reject, or request more evidence. Every action is recorded in an forensic ready environment and with integrity proof.

Features

Every capability in one module

1. Guardrails on both sides of the model

A single filter in front of the model catches the input and misses the output. Guardrails run before the call and again after it, and each one's action is a configuration choice rather than a hard-coded refusal.

Before the call: PII detection and redaction, prompt-injection defence, policy checks. After the call: toxicity screening, grounding verification, policy re-check. Each guardrail's action is set per agent, so the same check that blocks a turn on a billing agent can quietly escalate on an onboarding one. Strictness is a dial, not a rewrite.

  • Block — the turn does not go out
  • Redact the offending span and let the rest of the answer through
  • Regenerate the answer
  • Escalate, which puts a person in the loop before the customer hears anything

See how grounding verification works

2. Human approval gates

Mark any tool call high-stakes. Issuing a refund, changing a plan, updating a record, moving money: whichever ones matter in your operation. When one of them fires, the run parks in a waiting state until a named approver signs off, and that approver sees the requested action, the guardrail results behind it and the full trace before touching anything. They can approve, decline or ask for evidence. Approvals are idempotent, so a team lead who clicks approve twice still issues one refund.

  • Any tool call can be marked high-stakes, including ones you add later
  • The run parks
  • Idempotent — an approval applied twice acts once
  • Routed by rule to a named approver, and every decision written to the audit log

Build the approval into a workflow

3. Cost governance with teeth

The failure mode of autonomous agents is not usually a bad answer. It is a loop that costs four figures overnight and turns up a month later on a bill.

Per-run caps and organisation-per-day budgets, both in your currency. Cross one and the run stops there, with the breach written to the log. The ceiling is enforced at the moment of spend. Not reconciled in arrears. Every turn's cost is traced by provider and rolled up per conversation, per agent and per organisation, so when something does run away you can see which agent and which provider it went through.

  • A per-run ceiling and a per-day budget for the whole organisation
  • A breach stops the run there and then, and writes the event to the log
  • Per-agent daily caps, so one agent cannot eat the org budget
  • Cost traced by provider, in your currency

See the cost reports it feeds

Illustrative interface. Caps, spend and breach counts are sample data, not a price list or a performance claim. A cost-governance view: organisation spend against a per-day cap, per-agent daily caps with one agent at ninety-two per cent of its ceiling, and a per-run cap of two dollars that stopped one run today and logged the event.

4. Prompts under continuous integration

Prompts are production configuration. They get a registry, a version, a test suite and a promotion bar, and every model call behind them is traced.

Prompt and model changes are versioned in a registry and promoted only after clearing a no-regression bar against an evaluation dataset — rule checkers plus LLM-as-judge, run over real transcripts rather than invented ones. A candidate that scores worse than the incumbent on any dimension you care about does not go live. You get the failing conversations back, opened next to what the incumbent said, instead of a score to interpret. This is the bit that makes changing a live agent safe. Nobody promotes on a hunch.

  • A versioned prompt registry and a model registry, resolved at runtime
  • Rule checkers plus LLM-as-judge, scored over your own transcripts
  • A no-regression bar against the incumbent
  • The failing cases, opened side by side with what the incumbent said
  • Roll back to any earlier version
Illustrative interface. Case counts and score deltas are sample data, not a performance claim. An evaluation gate comparing a candidate prompt version against the incumbent across 240 real transcripts: accuracy and groundedness improved, policy adherence unchanged, brevity regressed, so promotion is blocked and the live version stays unchanged.

5. Full LLM observability

Every model call is traced: tokens in and out, cost, latency, model, provider and the decision it fed. That last part is the useful one. A trace that shows the call but not what the platform did with it cannot explain an outcome to whoever asks six months later. Traces are buffered asynchronously and fail open, so tracing never becomes the reason an agent goes down, and stored content is PII-safe-truncated.

  • Tokens in and out, cost, latency, model and provider
  • The decision each call fed, not merely the call itself
  • Buffered asynchronously, and fail-open
  • Content PII-safe-truncated in storage

6. The self-improving loop

Self-improvement without a gate is drift. Every proposal the platform mines is a draft, every change runs against the evaluation harness, and a human accepts it or doesn't.

Conversations that ended well get mined into proposed knowledge answers and proposed prompt improvements, each of which runs through the evaluation gate and then lands in a review queue as a draft instead of going straight into the agent that will speak to your customers tomorrow. Somebody accepts it or bins it. Nothing is ever auto-promoted, which is the whole point: the loop compounds quality under review instead of quietly moving an agent somewhere nobody chose.

  • Conversations that resolved well, mined into proposed answers
  • Prompt improvements proposed the same way
  • Every proposal through the evaluation gate first, no exceptions
  • Nothing auto-promoted, ever

See what scores a conversation well

7. Simulation before customers

Run synthetic-customer multi-turn simulations against a changed agent and let the evaluation harness score them, so the first conversation with the new behaviour is not a real customer's. An agent version snapshots prompts, voice, model, tools, guardrails and turn-taking together. That matters more than it sounds. Roll back and you restore the behaviour, not one file out of six.

  • Synthetic-customer multi-turn simulations, run before anyone real is on the line
  • Scored automatically by the evaluation harness
  • A version snapshots prompts, voice, model, tools, guardrails and turn-taking
  • Rollback to any prior version

See the agent builder where versions are created

Use Cases

Where AI Governance delivers value

Human approval gates

A refund the agent is not allowed to issue alone

A consumer electronics retailer (illustrative)

Scenario

The agent works out that a customer is owed money on order 8841 and proposes refunding ₹14,200 to the original payment method. A rule marks refunds over ₹10,000 high-stakes. So the run parks instead of completing, and lands with the billing team lead, trace attached.

Outcome

The agent still does the reasoning, the lookup and the paperwork. A human only sees the cases that cross the line they drew. That is the trade. And because approvals are idempotent, a lead who clicks approve twice still issues one refund.

Per-run and per-day cost caps

The overnight loop that stopped itself

A vehicle finance provider (illustrative)

Scenario

A collections agent hits a tool that starts failing at 2am and retries in a way nobody anticipated. The per-run ceiling on that conversation is crossed, so the run halts and the breach is written to the log. Meanwhile the organisation-per-day budget holds the rest of the fleet steady. One run stopped. Nothing else touched.

Outcome

In the morning the team finds a breach entry and one stopped run, rather than an unexplained line on an invoice four weeks later, with the cost already broken down by provider and by agent. The debugging starts from evidence.

Eval gate on prompt promotion

The prompt change that did not ship

A health insurer (illustrative)

Scenario

A candidate prompt version is meant to make claims explanations clearer. Run against 240 real transcripts, it improves accuracy and groundedness and holds policy adherence flat. Brevity regresses. The gate blocks promotion, the live version carries on unchanged and the failing cases open for review.

Outcome

The regression is caught by the harness rather than by a customer on a claims call. The author gets the specific conversations that got worse, opened beside what the incumbent said on the same input. Nobody has to argue about a score.

At a glance

Specification

The numbers and limits, without the sales copy

Specification for AI Governance
Specification Detail
Guardrails PII, prompt injection, toxicity, policy and grounding — three checks before the model call, three after
Actions Block, redact, regenerate or escalate — chosen per guardrail, per agent
Approvals Rule-driven gating on high-stakes tool calls, run parked for a named approver, idempotent and audited
Cost Per-run ceiling plus organisation-per-day budget in your currency, run halted and breach logged on cross
Evaluation Evaluation datasets of real transcripts, rule checkers plus LLM-as-judge, no-regression promotion bar
Registries Versioned prompt registry and model registry, resolved at runtime per agent version
Observability Per-call tokens in and out, cost, latency, model and provider, PII-safe-truncated, fail-open
Audit Immutable entries with integrity proofs, recorded against each decision the platform made
Improvement Mined draft answers and prompt proposals, eval-gated, never auto-promoted
Versioning Snapshots of prompts, voice, model, tools, guardrails and turn-taking, with synthetic-customer simulation and rollback
FAQ

Questions,
answered

What teams ask us before they roll out AI Governance — how it works, what it needs from your side, and what happens when it gets something wrong

Still not sure?

Talk to a specialist and get a straight answer.

Ask our team

Guardrails in OptiML AI Governance are configuration on the agent, not code anyone writes. You pick which checks run before the model call and which run after it, plus what each one does when it trips: block the turn, redact the content, regenerate the answer or escalate to a person. The same agent can be strict on one check and lenient on another. Changing it does not need a redeploy.

You mark the tool calls that count as high-stakes and write the rule that fires the gate — a refund over a threshold, any change to a payment instrument, whatever your risk team already worries about. When the rule matches, the run parks in a waiting state and routes to a named approver instead of proceeding and being reconciled afterwards. Approvals in OptiML AI Governance are idempotent and every one is audited. Most teams start with money and work outwards.

A false positive shows up in the trace rather than in an unhappy customer. Every guardrail result in OptiML AI Governance is recorded against the model call it interrupted, right next to the decision that call fed. Each guardrail's action is configurable, so a check you don't trust yet can escalate to a person instead of blocking the turn while you tune it. The groundedness score sits on the record as well, so you can see how close a blocked answer actually was. Tuning beats switching it off.

You set a ceiling per run and a budget per organisation per day, both in your currency. Caps are hard, not advisory. Crossing either one logs the event and stops the run, so the ceiling bites at the moment of spend rather than in a report next month. Every turn is traced by provider and rolled up per conversation, per agent and per organisation. That rollup is what the cost reporting in OptiML Analytics reads from.

PII detection and redaction run before the call, so redacted content never reaches the provider, and the only model and speech providers in the path are the ones you have switched on. Traces store tokens, cost, latency, model and provider, with content PII-safe-truncated. They are buffered asynchronously and fail open, so tracing cannot take an agent down. Where the data physically lives is a deployment choice. You pick the region.

Connected solutions

Where AI Governance is used

The Solutions pages that lean on this module, and what it looks like once it is configured for a particular floor, job title or job to be done.

9 solutions built on this module
Talk to a specialist

See the trace behind one real answer

Send us a transcript or a policy document from your own operation. We will ground an agent in it, run it live and open the governance trace next to it. Guardrail results, cost for the turn, prompt version and the approval rule that would have applied. No slides.

  • 30 minutes
  • Your transcript, with the trace open beside it
  • Bring your risk or compliance lead

Book your slot

Leave your email and our team will come back to you within one business day.

or reach us directly

Your details stay private. We never share them.

This website uses cookies.

Cookies are small text files that allow us to create the best browsing experience for you on our site. By continuing to use this website or clicking "Accept & Close", you are agreeing to our use of cookies. To understand how we use cookies or how to manage them, please see our cookies policy.

Ask OptiML

Powered by RMT Engineering