production AI agent architecture security cost

Production Deployment, Security & Cost

Operate agents as production software with least privilege, failure recovery, version control, and full run economics.

DIFFICULTY
Advanced
EST. TIME
70 min
UPDATED
2026-08-19
On this page
  1. 01Definition
  2. 02Why it matters
  3. 03Step by step
  4. 04Build it
  5. 05Failure modes
  6. 06Production notes
  7. 07Sources

Learning objectives

  • Define deployment, secrets, access, and change controls
  • Design recovery for partial failure and external side effects
  • Measure full operating cost per useful outcome

Prerequisites

A passing evaluation set · A named service owner · Staging environment

Answer first

Canonical definition

A production agent is a versioned software service with an owned mandate, constrained identity and tools, observable state, tested failure behavior, release controls, and an operating cost tied to useful outcomes.

Operating context

Why it matters

The production boundary includes permissions, data retention, vendor behavior, queues, humans, and downstream systems—not only the model endpoint.

Cost must include review, retries, failures, maintenance, and infrastructure before an automation claim is credible.

Method

Step by step

  1. 01

    Harden identity and access

    Use separate service identities, least privilege, short-lived secrets, environment boundaries, and access reviews.

  2. 02

    Control releases

    Version prompts, tools, policies, schemas, and models; require checks and approval before production changes.

  3. 03

    Design recovery

    Make side effects idempotent, persist checkpoints, support pause and replay, and document manual continuation.

  4. 04

    Measure unit economics

    Calculate cost per successful useful task including infrastructure, model, tools, review, rework, and on-call.

Hands-on lab

Write a production readiness review

Assess one agent against deployment, security, privacy, reliability, evaluation, support, and cost gates.

Deliverable

A go/no-go checklist, risk register, runbook, rollback plan, dashboard, and named owners.

What breaks

Common failure modes

  • F1Sharing a human employee credential with an agent
  • F2Deploying prompt changes without regression tests or rollback
  • F3Counting only token charges when comparing with human work

Beyond the demo

Production notes

  • Rehearse credential revocation, vendor outage, poisoned input, repeated side effect, and manual failover.
  • Review model and platform data-retention terms against the actual data classes used by the workflow.

Further reading

Sources

  1. [1]NIST AI Risk Management Framework
  2. [2]OWASP Top 10 for LLM Applications

Related Tenten resources

From capstone to production

A working demo is the beginning of the engineering problem.

Tenten helps teams scope one agentic workflow, integrate real data and permissions, define evals and handoffs, and own the path through launch and on-call.