The agent ran it.
Who decided?
16 production scenarios where a runtime decision stands between an autonomous action and a consequence you cannot reverse.
One decision point, before the action
Your agent calls a tool. Before the tool runs, one gate answers one question. The same question for a $5,000 refund and for a five-cent retry.
The agent, the tools it calls, the model it talks to. You keep all of it.
Checks the tool, the projected cost, the rate and the policy. Returns one answer.
The action runs.
A human signs off first.
The action does not run.
The prompt and the completion. You call it directly — NullRun is not in that path.
The tool name, the projected cost, the business impact. Not the prompt, not the completion.
Find the case that matches your week
Every entry is a production scenario. Open the one that sounds like your week — each shows the flow, the decision, and what you keep.
- 01 · Human approvalA $5,000 refund should ask before it runs
- 02 · Sensitive fail-closedThe policy service is offline. The charge still must not happen
- 03 · Hard budget capMy agent just charged me $500 in 20 minutes
- 04 · Soft overdraftA hard cap killed a 50-step workflow halfway through
- 05 · Tool permissionsMy agent can call tools it should never touch
- 06 · Provider fallbackMy fallback provider became a budget escape hatch
- 07 · Most-restrictive-winsMy workflow policy must not weaken the organization policy
- 08 · Without rewritingI already have an agent. I need controls without rewriting it
- 09 · No proxy of promptsI need governance without putting customer prompts through another proxy
- 10 · Scoped killOne agent misbehaves at 2 a.m. — the only lever is killing everything
- 11 · Retry-safe accountingThe provider timed out. Retrying must not charge me twice
- 12 · Storm + loop controlMy retry loop is turning into an outage
- 13 · Alert storm controlMy agent loop fired 500 alerts. I needed one incident
- 14 · Policy as writtenI changed a policy. Will production behave differently?
Stop irreversible actions before they happen
Authorizations bound to the action payload. Operator approval refuses a re-check if the payload changes.
A $5,000 refund should ask before it runs
For: Operators · Finance · Approvers
Refunds, deletions, external sends — some actions should never be one autonomous click away from irreversible.
The gate returns require approval. Finance or an approver reviews and signs off before the action runs.
The agent finishes the $5,000 refund — but only after finance clicks Approve.
Case 02Sensitive fail-closedThe policy service is offline. The charge still must not happen
For: Payments · Deletions · External messages · Infrastructure changes
The policy service is offline. The charge still must not happen
For: Payments · Deletions · External messages · Infrastructure changes
During a control-plane outage, the policy service is briefly unavailable — and the agent keeps acting. A charge, a delete, or an external send goes out anyway.
Sensitive actions fail closed by design. If the runtime cannot make a decision, the function body does not run.
A control-plane outage does not become an unauthorized charge, deletion, or send.
Case 03Hard budget capMy agent just charged me $500 in 20 minutes
For: Solo dev · CLI tooling · Batch jobs
My agent just charged me $500 in 20 minutes
For: Solo dev · CLI tooling · Batch jobs
A misbehaving loop keeps calling the model. Nothing stops it until the invoice arrives — the cap is discovered after the bill, not before the call.
Every consequential call passes through one runtime policy decision point. When projected spend crosses the cap, the decision returns block.
The cap holds. The invoice is predictable.
Case 04Soft overdraftA hard cap killed a 50-step workflow halfway through
For: Long-running agents · Multi-step workflows · Batch jobs
A hard cap killed a 50-step workflow halfway through
For: Long-running agents · Multi-step workflows · Batch jobs
A hard cap kills a long-running workflow mid-chain at an arbitrary step — no credit for the work already done.
A workflow policy can run inside a bounded overdraft. The agent keeps going instead of stopping mid-run. The overdraft is counted against the organization, not reset per run.
A 50-step agent that overshoots by a small amount still finishes its work.
Case 05Tool permissionsMy agent can call tools it should never touch
For: Tool-using agents · MCP servers · Shell · Database · Code execution
My agent can call tools it should never touch
For: Tool-using agents · MCP servers · Shell · Database · Code execution
The agent can reach shell, the database, or external senders — the systems you never wanted an autonomous process to touch.
Every intended tool name passes through the same runtime decision. Allowed tools proceed; disallowed tools are blocked before they execute.
The agent stays autonomous, without reaching the systems you did not explicitly allow.
Keep the policy boundary intact
One runtime decision point, whichever provider or org role is in play. Fallback, baselines and integration patterns stay inside it.
My fallback provider became a budget escape hatch
For: Multi-vendor agents · Fallback routing
The primary provider is unavailable — the fallback kicks in — and a fresh budget route appears alongside the old one.
Per-provider usage is normalized into the same workflow counter and the same policy decision point.
Fallback changes the route, not the policy boundary.
Case 07Most-restrictive-winsMy workflow policy must not weaken the organization policy
For: Solo builders · Multiple agents · Platform teams
My workflow policy must not weaken the organization policy
For: Solo builders · Multiple agents · Platform teams
A workflow policy accidentally weakens the organization baseline — local configuration overrides the global leash.
Organization and workflow policies combine with most-restrictive-wins. A workflow can add restrictions, not remove the baseline.
Each workflow can become more specific without bypassing the organization baseline.
Case 08Without rewritingI already have an agent. I need controls without rewriting it
For: Teams with existing LangGraph · CrewAI · OpenAI Agents setups
I already have an agent. I need controls without rewriting it
For: Teams with existing LangGraph · CrewAI · OpenAI Agents setups
Adding governance means rewriting the existing graph, crew, or runner — engineering cost before any value shows up.
One initialization step. Common frameworks are instrumented automatically, and one decorator marks the function you want governed. The existing graph does not change.
Runtime control for the agent you already run.
Case 09No proxy of promptsI need governance without putting customer prompts through another proxy
For: Privacy-sensitive apps · Regulated data · Custom provider routing
I need governance without putting customer prompts through another proxy
For: Privacy-sensitive apps · Regulated data · Custom provider routing
A new governance gateway appears in the prompt data path — customer conversations now live in one more place.
Your application keeps calling the provider directly. On LLM calls NULLRUN receives the model, the token estimate and the policy signals — never the prompt, never the completion. A protected tool sends its arguments too, with sensitive values masked.
Add runtime governance without creating another store for customer prompts or completions.
Keep runtime reliable
Release-time confidence and incident-time controls. The runtime decision holds through deploys, retry loops and alert piles.
One agent misbehaves at 2 a.m. — the only lever is killing everything
For: Platform teams · Multiple workflows · On-call
One agent misbehaves at 2 a.m. — and the only available lever is killing every agent you run.
Operators halt one workflow through the control plane. The other workflows keep running, still under the same organization budget.
The bad agent stops; the other workflows keep running.
Case 11Retry-safe accountingThe provider timed out. Retrying must not charge me twice
For: Background jobs · Serverless workers · Unstable networks
The provider timed out. Retrying must not charge me twice
For: Background jobs · Serverless workers · Unstable networks
The provider timed out before the client saw the response. A retry goes out — and now the budget is charged twice for the same call.
A replay is recognized as the same execution. The earlier result is returned and the duplicate tracking event does not double-count.
A retry does not become a duplicate charge.
Case 12Storm + loop controlMy retry loop is turning into an outage
For: Webhook agents · High-throughput workers · Retry-heavy pipelines
My retry loop is turning into an outage
For: Webhook agents · High-throughput workers · Retry-heavy pipelines
A misconfigured agent retries the same call over and over — the loop hammers the provider, the dashboard, and the on-call.
A per-workflow rate cap blocks the call once the limit is reached. Repeating the same tool call in a short window also raises an operator alert.
The retry storm is stopped at the gate, and the loop is flagged to the operator.
Case 13Alert storm controlMy agent loop fired 500 alerts. I needed one incident
For: SRE · On-call engineers
My agent loop fired 500 alerts. I needed one incident
For: SRE · On-call engineers
One runaway workflow fires the same block event hundreds of times — five hundredpages, one real problem.
A repeated event updates the same alert record instead of adding another, and channel delivery is rate limited to one message per detector every 15 minutes. Nothing is dropped: every call is still tracked and costed.
One incident in the alert list.
Case 14Policy as writtenI changed a policy. Will production behave differently?
For: CI pipelines · Pre-production · Policy reviews
I changed a policy. Will production behave differently?
For: CI pipelines · Pre-production · Policy reviews
A policy change sits in a pull request — but no one knows what the runtime will do differently in production.
Rules are evaluated, not language. A tool block, a rate cap, a budget cap and an approval rule are read exactly as written. No model is asked to interpret them, and nothing in the decision depends on a prompt.
Your policy runs as written — and you can assert it in CI against the same endpoint production uses.
Explain and prove decisions
After the action runs, the same runtime decision point leaves a record you can audit, reason about and export. Customer prompts stay out of it.
What changed between two decisions on the same action?
For: Platform engineers · SRE · Compliance
The same agent, the same call, two different outcomes — yesterday and today. Was it the agent, or was it the policy?
A block or an approval writes an immutable, hash-chained audit row — and on Growth, Scale and Enterprise, so does an allowed call. Where a policy governed the decision, the row also carries the digest of that policy set — edit the policy and the digest changes, so two rows tell you which of the two moved.
The same digest on both rows means the policy held, so the agent changed.
Case 16Decision evidenceI need decision evidence without exporting prompts
For: Compliance · Security review · Incident response
I need decision evidence without exporting prompts
For: Compliance · Security review · Incident response
Compliance asks for evidence of the decisions behind the agent's actions — and exporting the prompts isn't an option.
NullRun exports the audit trail as CSV or JSONL: decisions, actors, hashes and timestamps. Prompts and completions are not in it, because NullRun never stores them in the first place.
Hand an auditor the decisions without handing over customer conversations.
Find out what your agent
spent last night.
One @protect decorator, one real API key, and the next LLM call goes through the decision point before it spends anything.
pip install nullrunNULLRUN_API_KEY=nr_live_…@nullrun.protect