Your first production agent needs a release contract

A convincing demo proves that an agent can complete a task. A production release must establish when it may act, when it must stop and who owns the consequences. Treat deployment as a sequence of evidence gates, not a promotion from a chat window to a live API key.

An AI agent moving through testing, security, and monitoring checkpoints into production

Before granting write access

  • Define eligible cases and prohibited actions as explicitly as the happy path.
  • Evaluate severe failures separately from average task accuracy.
  • Enforce permissions in tools and services, not only in prompts.
  • Make retries safe and human handoffs observable.
  • Re-test the release whenever its model, tools or source data changes.

A demo has no on-call rotation

AI Agents can combine reasoning with tool calls, but the surrounding workflow determines whether that combination is useful. A support demo may find the correct customer record; a live system must also handle duplicate names, expired credentials and a timeout after an update was already accepted. Those are release requirements, not cleanup work.

Write a release contract shared by the process owner, engineering and security: permitted inputs, authoritative data, allowed actions, approval boundaries, success measures and rollback owner. If those parties cannot agree on the contract, more prompt tuning will not make the deployment ready.

Build the evidence in ten steps

  1. Define a business outcome. Measure accepted resolutions and handling time, not messages generated. Set thresholds with the owner rather than borrowing a generic accuracy target.
  2. Map exceptions. Identify ambiguous identity, missing records, policy conflicts and actions that must remain human decisions.
  3. Prepare scoped access. Use separate service credentials and enforce record-level permissions in the connected system.
  4. Build the evaluation set. Include normal cases, historical failures and adversarial inputs. Protect personal data in test fixtures.
  5. Constrain execution. Validate tool arguments, restrict destinations, set step and spend limits, and treat retrieved instructions as untrusted data.
  6. Run in draft mode. Have reviewers record why they accept, correct or reject an output; silent edits hide failure patterns.
  7. Instrument outcomes. Record tool calls, completion status, latency and cost with appropriate redaction and retention.
  8. Release to a bounded cohort. Route only eligible cases and retain a manual path when the agent abstains.
  9. Rehearse interruption. Test the kill switch, revoke credentials and confirm how partially completed work is reconciled.
  10. Re-authorize changes. Re-run evaluations after model, prompt, connector or policy updates, then review live outcomes on a regular cadence.

Controls belong outside the prompt, too

ControlWhy it matters
Least-privilege accessThe agent can only read and change what its job requires
Action allow-listHigh-risk actions (payments, deletions, external emails) need approval
Audit logEvery input, decision and action can be reviewed later
Evaluation set and regression testsModel or prompt changes cannot silently lower quality
Cost limitsBudgets, step limits and retry caps stop runaway spend
Kill switch and ownerSomeone can stop the agent and is accountable for it
Data handling rulesEnterprise APIs that don't train on your data; sensitive fields masked where possible

Promote one action at a time

Use three gates: quality on held-out examples, containment under failure and operational readiness. Passing only the first is insufficient. A tool should reject an unauthorized payment even if the model asks convincingly; a retry should not send the same message twice. Use idempotency keys or explicit duplicate checks for side effects.

  • It meets the agreed accuracy on the evaluation set and on live samples for several weeks.
  • Its errors are caught by validation or review before they reach customers.
  • Cost per task is stable and within budget.
  • The team that owns the workflow trusts it and knows how to escalate.

Track false approvals, missed escalations and review burden separately. An average score can conceal a rare but unacceptable action. If you operate in or sell into the EU, assess your role under the EU AI Act as well; our EU AI Act guide outlines the governance questions to bring to counsel.

Ship a boundary you can defend

Widen autonomy only when the evidence supports a specific additional action. Preserve the previous release, its evaluation results and the route back to manual work. The objective is a dependable business process with an agent inside it, not maximum autonomy for its own sake.

Frequently asked questions

How long does it take to get an agent into production?

For a focused first workflow, typically 4–8 weeks, depending on data access, integrations and security review.

What is an evaluation set?

A collection of real examples with the correct outcome, used to test every version of the agent before it goes live.

Should agents act autonomously?

Only for low-risk, well-tested cases. Higher-risk actions should keep a human approval step.

Can you run the agent for us after launch?

Yes. We operate agents in production with monitoring and monthly reporting. See AI Agents.

More questions? See all FAQs →

Quasphere team

Quasphere team

Written by the FinOps practitioners, cloud and DevOps engineers and applied AI engineers who deliver this work for our clients. About Quasphere.

Review the release boundary before launch

Bring your workflow, evaluation results and open risks to a deployment discussion.