Claude Skill

agent-production-operations

Operate an evaluated agent with tools and authority in production through a runtime control plane covering versioning, staged rollout, fallback, cost and latency budgets, tool health, human escalation, disablement, and trace-to-eval feedback. Do not use for building agents, desig

LLM Mart · 0 points · 12 views 0 listing impressions 0 install-command copies
Download magnus919-agent-skills-agent-production-operations-ade3385.zip · 43 KB

Install

skills CLI npx skills add https://github.com/magnus919/agent-skills/tree/main/agent-production-operations
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install magnus919-agent-skills@llmmart
Git git clone https://github.com/magnus919/agent-skills.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole magnus919/agent-skills collection as a plugin from our marketplace. Git is the plain clone.

README

agent-production-operations — runtime control plane for AI agents

Take an evaluated agent from "passes tests" to "safe in production" with versioning, staged rollout, fallback, cost and latency monitoring, escalation, and disablement — all feeding back into better evaluations.

Why Install This Skill

You have an AI agent that passes your evaluation suite. The evals are solid, the observability is in place, and the agent looks ready. But between "passes evals" and "safe at scale" there is an operational gap no single specialist skill fills: how do you version the model, prompt, and tools together? How do you roll out gradually instead of flipping a switch? What happens when the model regresses, a tool goes down, the cost budget blows up, or the agent tries something it shouldn't?

This bundle gives you a runtime control plane purpose-built for AI agents. It does not replace your release pipeline, your SRE practices, your security reviews, or your eval framework — it sits between them, coordinating the decisions that are specific to operating an agent with tools and authority in production. It distinguishes read-only agents from side-effect-capable agents and customer-facing agents from internal ones, because a search bot and a support bot that can modify accounts have fundamentally different operational risk profiles.

After installing this skill, your agent can answer: what authority do I have, what happens when I'm uncertain, when do I escalate to a human, how do I fall back safely, and when should I be disabled entirely. Your team can answer: how do production incidents feed back into better evaluations, and how do eval results gate the next release.

For agents with consequential tools, it also addresses protected supervision: who can change controls, how to verify they are active, and when work must stop.

For agents that sleep between events, define wake-up admission, backlog limits, current permission checks and pending-effect reconciliation. Stopping a worker alone cannot disable a subscription that can wake it again.

What You Get

Path What it provides
SKILL.md Umbrella entry point — runtime control plane routing table, concrete authority/escalation/fallback/disablement parameters, and specialist-skill orchestration
README.md This file — human-facing overview
AGENTS.md Agent loading and nested-skill discovery notes
references/discovery-brief.md Bounded discovery brief defining boundaries with agent-evals, release, SRE, security, and platform skills
references/agent-production-contract.md Production contract template — capability, authority, uncertainty, escalation, and side-effect contracts with production-readiness and incident-learning inputs
references/runtime-control-plan.md Versioning (model, prompt, tool, policy, evaluator), four-stage rollout plan, and fallback paths with concrete triggers
references/tool-authority-health.md Health record schema for tracking tool availability, tool failure, authority usage, authority breaches, cost, and latency over time
references/trace-to-eval-feedback.md Production-to-evaluation feedback loop — how traces and incidents become eval cases and gate releases
evals/evals.json Integrated eval cases covering read-only agents, side-effect agents, model regression, tool outages, cost breaches, and human escalation
references/service-conditions.md Decide whether batching, streaming, caching and fallback remain within the tested operating envelope
templates/service-condition-record.md Record task quality, latency, total cost, partial outcomes and recovery ownership together
manifest.yaml Machine-readable bundle manifest (schema v1): purpose, audience, stages, included skills, prerequisites, outputs, handoffs, conflicts, and eval suite

Quick Start

  1. Start with an agent that has passed evaluation (use agent-evals-and-observability).

  2. Define the agent's production contract using references/agent-production-contract.md. Fill in capability, authority, uncertainty, escalation, and side-effect fields.

  3. Consume the most recent production-readiness review outcome for the agent's host service from production-readiness and any open incident-learning records from incident-learning. Record both in the contract.

  4. Plan versioning, staged rollout, and fallback using references/runtime-control-plan.md.

  5. Begin Stage 1 rollout (shadow/dry-run). Record tool and authority health in references/tool-authority-health.md.

  6. Advance through stages as exit criteria are met. At each stage boundary, review the health record for authority breaches, tool degradation, cost trends, and latency patterns.

  7. When escalation or fallback triggers fire, follow the concrete procedures in SKILL.md.

  8. Feed production traces and incidents back into evaluation cases using references/trace-to-eval-feedback.md.

Triggers

Load this bundle when:

  • You are operating an agent that has passed evaluation and is being promoted to production.
  • You need to define a staged rollout with progressive authority expansion.
  • You need versioning across model, prompt, tools, policy, and evaluator.
  • You need fallback, escalation, and disablement procedures for an agent.
  • You need a production-to-evaluation feedback loop.
  • You see terms like "agent authority," "tool health," "agent cost budget," "agent latency SLO," or "agent disablement."

Do NOT load this bundle for:

  • Building an agent from scratch — use your agent framework skill.
  • Designing evaluations or observability — use agent-evals-and-observability.
  • General release engineering — use release-engineering.
  • General SRE or incident response — use site-reliability-engineering.
  • General security engineering — use secure-software-engineering.
  • Platform infrastructure — use platform-engineering.

Requirements

  • An agent that has passed evaluation (observability and eval infrastructure must exist — see agent-evals-and-observability).
  • A designated escalation channel (human operator or team).
  • A cost budget and attribution mechanism for the agent.
  • Production-readiness review process in place (see production-readiness).
  • Incident-learning process in place (see incident-learning).
  • No additional API keys, services, or runtime dependencies beyond what the agent already requires.

Skill manifest

agent-production-operations

A runtime control plane for taking an evaluated agent with tools and authority into controlled production operation. This bundle bridges the gap between passing evaluations and safe production use: it defines how an agent is versioned, rolled out, monitored, constrained, escalated, and disabled — and how production evidence feeds back into evaluation and release decisions.

The bundle does not build agents, design evaluations, run release pipelines, or own infrastructure. It composes those concerns from existing specialist skills and owns only the runtime control decisions between them.

Teams across harnesses

Use multi-agent-coordination for team design and collective failure diagnosis. This bundle owns operational response after evaluation. For a shared-practice incident, identify affected sources, derivatives, retrieval caches, queued work and active consumers; contain only affected paths within current authority. Preserve unrelated work and independently protected controls. An agent acknowledging a correction does not prove adoption.

Route source repair and fresh-session challenges to the owning harness. Record known exposure and missing lineage; no observed recurrence without exposure is inconclusive. Recovery must prevent stale memory, backups or extraction jobs from reintroducing the practice. Keep source/content compromise distinct from benign mistaken conventions, and escalate unknown effects through the incident owner.

When to load this

Load this bundle when you are operating an agent that:

  • Has passed evaluation and is cleared for production consideration.
  • Has tools with side effects and delegated authority that must be gated.
  • Needs a staged rollout with progressive authority expansion.
  • Must be monitored for cost, latency, tool health, and authority usage in production.
  • Requires a defined fallback, escalation, and disablement path.
  • Should feed production traces and incidents back into evaluation cases and release-gate updates.

When not to use

Do not load this bundle for:

  • Building or designing an agent from scratch — route to the appropriate framework skill (LangGraph, CrewAI, AutoGen, etc.).
  • Designing agent evaluations or observability — route to agent-evals-and-observability.
  • General release engineering (CI/CD pipelines, artifact promotion) — route to release-engineering.
  • General site reliability engineering (incident response, SLO definition, error budgets) — route to site-reliability-engineering.
  • General security engineering (threat modeling, vulnerability assessment) — route to secure-software-engineering.
  • General platform infrastructure (compute, networking, storage) — route to platform-engineering.
  • Performing a production-readiness review — route to production-readiness; this bundle consumes readiness outcomes, it does not produce them.
  • Conducting an incident postmortem — route to incident-learning; this bundle consumes incident records as escalation and feedback inputs.

Autonomy is not assumed uniform

This bundle explicitly does not assume all agents share the same autonomy, user population, or side-effect profile. Agent profiles are distinguished by capability class and side-effect surface:

Profile Example Authority Escalation trigger Fallback
Read-only Internal search agent Query-only; no mutation, no user-data access Uncertainty above threshold; result quality degradation Return cached/static results
Side-effect-capable, internal CI triage bot Issue/PR comments, label management, branch creation Tool failure > 5% in window; authority breach attempt Disable tool, escalate to human
Side-effect-capable, customer-facing Support agent with account access Read PII, suggest actions, no mutation without confirmation Any PII access without explicit consent; cost breach > 10% of budget Degrade to read-only, escalate immediately

Every control-plan decision (authority, escalation, fallback, disablement) in this bundle is parameterized by the agent's autonomy profile. A read-only agent and a side-effect-capable agent operating on customer data receive different thresholds and different escalation paths.

Authority thresholds and maintain/expand/reduce/suspend/revoke decisions belong to accountable humans supported by ai-governance. Operational evidence and readiness are inputs, never permission grants. Applicable policy ceilings, current grant expiry/revocation, and external enforcement constrain every execution.

Mandatory control integrity

Before consequential execution or resumption, load control-integrity operations and produce a pre-execution receipt. Verify protected controls against current independent evidence and the governance registry. Missing, degraded, redirected, or suppressed mandatory controls are control-integrity incidents: hold consequential work, contain or terminate under the incident plan, and escalate through an independently protected path. Do not wait for repeated breaches or normal health thresholds. A task instruction cannot authorize weakening its supervision. Recovery must preserve revocation and independent monitoring.

Runtime control plane routing

The bundle composes the following specialist skills. Load them when their domain is the active concern; the bundle owns the cross-domain coordination.

Concern Specialist skill When to load What the bundle adds
Agent evaluation and observability agent-evals-and-observability Designing evals, instrumenting observability, detecting regression Trace-to-eval feedback loop; eval-case generation from production incidents
Release engineering release-engineering Release pipeline design, artifact promotion, CI/CD Agent-specific staged rollout with authority gating; rollback triggers tied to agent health
Site reliability engineering site-reliability-engineering Incident response, SLO/SLI definition, error budgets Agent-specific latency/cost budgets; tool-health SLOs; escalation handoff to incident command
Security engineering secure-software-engineering Threat modeling, trust-boundary validation, secure design Agent authority contracts with side-effect boundaries; disablement security (revoke, not just stop)
Platform engineering platform-engineering Compute, networking, storage, service infrastructure Agent sandboxing requirements; tool-execution isolation preferences
Production readiness production-readiness Readiness reviews, go/no-go/defer/exception decisions Consumed as input: readiness outcomes gate agent authority expansion
Incident learning incident-learning Post-incident analysis, verified closure, follow-up work Consumed as input: incident records feed escalation thresholds and eval-case generation

Loading protocol

This SKILL.md is the discoverable umbrella entry point. Nested skills are not used in this bundle. Reference files are loaded on trigger:

Reference Loaded when
references/event-driven-operations.md Operating callbacks, subscriptions, queued wake-ups or hibernating agents
references/discovery-brief.md Reviewing the bundle's boundary decisions against specialist skills
references/agent-production-contract.md Defining capability, authority, uncertainty, escalation, and side-effect contracts for an agent
references/runtime-control-plan.md Planning versioning, staged rollout, or fallback for an agent in production
references/tool-authority-health.md Recording or reviewing tool availability, failure, and authority usage/breach state over time
references/trace-to-eval-feedback.md Connecting production traces and incidents back to evaluation cases and release gates
references/service-conditions.md Defining tested concurrency envelopes, streaming completion, cache isolation, fallback quality, or task-cost budgets

Concrete operational parameters

Authority

  • Definition: the set of actions an agent is permitted to perform, scoped by target (which resources), operation (read/write/delete), and user-context (whose data).
  • Trigger to review: any new tool registration, model update, or prompt change that expands the agent's reachable action surface.
  • Threshold: authority is binary per action class. No action may be performed that is not explicitly listed in the production contract. An attempt to perform an unauthorized action is an authority breach and triggers immediate escalation.
  • Action on breach: log the attempt, block the action, increment the authority-breach counter, and escalate. If breach count exceeds 3 in a rolling 24-hour window, disable the agent.

Escalation

  • Definition: transfer of a decision or action from the agent to a designated human operator.
  • Triggers (any one triggers escalation):
    • Authority breach (attempted unauthorized action).
    • Uncertainty above threshold: agent confidence < 0.7 on a side-effect-capable action (configurable per profile).
    • Tool failure rate > 5% in a 5-minute sliding window.
    • Cost budget breach > 10% of allocated budget in a billing period.
    • Latency p95 > 2x baseline for > 5 minutes.
    • Human-handoff keyword or explicit user escalation request.
  • Action: suspend the agent's side-effect authority, log the escalation context (trigger, state snapshot, pending actions), notify the designated escalation channel, and await human disposition (resume / reduced-authority / disable).

Fallback

  • Definition: a predetermined safe behavior when the agent, model, or a tool cannot operate at its normal capability level.
  • Triggers:
    • Model endpoint returns 5xx for > 30 seconds.
    • A critical tool is unavailable (health-check failure for > 2 minutes).
    • Cost budget exhausted (100% consumed).
    • Latency p95 > 5x baseline for > 2 minutes.
  • Actions per profile:
    • Read-only: return a static/cached response with a "results may be stale" disclaimer.
    • Side-effect-capable, internal: degrade to read-only, queue pending mutations, notify operator.
    • Side-effect-capable, customer-facing: degrade to read-only, surface a "temporarily unavailable" message to the user, escalate immediately.

Disablement

  • Definition: complete revocation of the agent's ability to act, including read-only access. Distinct from fallback (which preserves reduced capability).
  • Triggers:
    • 3 or more authority breaches in a 24-hour window.
    • Production-readiness review outcome is "no-go" or "defer" for the current agent version.
    • Incident-learning record attributes a severity-1 or severity-2 incident to agent action, and verified closure is not yet complete.
    • Human operator issues an explicit disable directive.
    • Tool compromise or credential leak detected (route through secure-software-engineering).
  • Action: revoke all credentials and tokens; remove from routing/load-balancing; record disablement reason, timestamp, and authorizing evidence; notify escalation channel; prevent automatic restart until a new production-readiness review passes.

Cost

  • Definition: the financial cost of operating the agent, attributed to a budget owner.
  • Budget: allocated per agent per billing period (e.g., $500/day for a customer-facing support agent). Budget is set at production-contract time and reviewed at each production-readiness cycle.
  • Thresholds:
    • 50% consumed: notification to budget owner.
    • 80% consumed: warning; cost-optimization review triggered.
    • 100% consumed: stop new spend; use cached/no-cost fallback or a separately authorized bounded budget. Read-only/model work still costs resources.
    • Observed settlement at 110%: disable and investigate overshoot; never treat this as permission to spend beyond 100%.
  • Measurement: per-request model cost + per-call tool cost (where applicable), attributed to the agent instance. Cost data is appended to the tool-authority-health record.

Latency

  • Definition: end-to-end response time from user request to agent response, measured at p50 and p95 over 5-minute windows.
  • Baseline: established during staged rollout observation window (phase 1 of rollout). Recorded in the agent production contract.
  • Thresholds:
    • p95 > 2x baseline for > 5 minutes: escalation trigger.
    • p95 > 5x baseline for > 2 minutes: fallback trigger.
    • p50 > 3x baseline for > 10 minutes while cost budget is > 80% consumed: disablement consideration.
  • Action: latency breaches feed the trace-to-eval feedback loop: the latency-impacted requests are sampled and reviewed for eval-case generation.

Privacy

  • Definition: constraints on agent access to, processing of, and retention of user data (PII, usage patterns, conversation content).
  • Concrete rules:
    • An agent must not access PII without an explicit user-data-access grant in its authority contract.
    • Agent traces and conversation logs must be scrubbed of PII before entering the trace-to-eval feedback pipeline (route scrubbing design to privacy-engineering).
    • Data retention for agent traces defaults to 30 days unless a shorter period is specified in the production contract.
    • Any PII access by a read-only agent triggers immediate escalation (the read-only profile should never touch PII).
  • Privacy breach: any PII access outside the granted scope triggers escalation and a mandatory security review via secure-software-engineering.

Core workflow

  1. Contract: define the agent's capability, authority, uncertainty, escalation, and side-effect contracts using references/agent-production-contract.md. Consume production-readiness outcomes and incident-learning records as decision inputs.

  2. Version and plan: version the model, prompt, tools, policy, and evaluator; plan the staged rollout and fallback path using references/runtime-control-plan.md.

    Before changing serving behavior or expanding traffic, load service conditions and record the tested envelope in the service-condition record.

  3. Roll out: execute staged rollout with progressive authority expansion, monitoring tool health and authority usage at each stage using references/tool-authority-health.md.

  4. Monitor: track cost, latency, tool health, authority breaches, and escalation events. Apply threshold-based actions (notify, degrade, escalate, disable) per the concrete parameters above.

  5. Feed back: connect production traces and incidents to evaluation cases and release-gate updates using references/trace-to-eval-feedback.md.

  6. Learn: consume incident-learning verified-closure records and production-readiness review outcomes to update agent authority, escalation thresholds, and disablement conditions.

File map

Path Purpose
SKILL.md Umbrella entry point (this file)
README.md Human-facing overview and quick start
AGENTS.md Agent loading and discovery notes
references/discovery-brief.md Boundary analysis against specialist skills
references/agent-production-contract.md Capability, authority, uncertainty, escalation, and side-effect contracts
references/runtime-control-plan.md Versioning, staged rollout, and fallback plan
references/tool-authority-health.md Tool availability/failure and authority usage/breach record
references/trace-to-eval-feedback.md Production-to-evaluation feedback loop
references/service-conditions.md Tested capacity, streaming, cache, fallback, and cost conditions
templates/service-condition-record.md Record workload limits, acceptance thresholds, evidence, and stop conditions
evals/evals.json Integrated output-quality evaluation cases
manifest.yaml Machine-readable composition contract (schema v1): purpose, audience, stages, included skills, prerequisites, outputs, handoffs, conflicts, and eval suite; consumed by the lifecycle capability matrix
Files (agent-skills)
  • evals
    • coordination-challenges.md 964 B
      Loading…
    • evals.json 26.8 KB
      Loading…
    • protected-control-challenges.md 1.8 KB
      Loading…
  • references
    • agent-production-contract.md 6.9 KB
      Loading…
    • control-integrity.md 3.2 KB
      Loading…
    • discovery-brief.md 5.7 KB
      Loading…
    • event-driven-operations.md 4.6 KB
      Loading…
    • runtime-control-plan.md 12.2 KB
      Loading…
    • service-conditions.md 5.5 KB
      Loading…
    • tool-authority-health.md 5.5 KB
      Loading…
    • trace-to-eval-feedback.md 6.9 KB
      Loading…
  • templates
    • control-integrity-receipt.md 1.4 KB
      Loading…
    • service-condition-record.md 1.4 KB
      Loading…
  • AGENTS.md 1.1 KB
    Loading…
  • manifest.yaml 6.7 KB
    Loading…
  • README.md 6.9 KB
    # agent-production-operations — runtime control plane for AI agents
    
    Take an evaluated agent from "passes tests" to "safe in production" with
    versioning, staged rollout, fallback, cost and latency monitoring, escalation,
    and disablement — all feeding back into better evaluations.
    
    ## Why Install This Skill
    
    You have an AI agent that passes your evaluation suite. The evals are solid, the
    observability is in place, and the agent looks ready. But between "passes evals"
    and "safe at scale" there is an operational gap no single specialist skill fills:
    how do you version the model, prompt, and tools together? How do you roll out
    gradually instead of flipping a switch? What happens when the model regresses,
    a tool goes down, the cost budget blows up, or the agent tries something it
    shouldn't?
    
    This bundle gives you a runtime control plane purpose-built for AI agents. It
    does not replace your release pipeline, your SRE practices, your security
    reviews, or your eval framework — it sits between them, coordinating the
    decisions that are specific to operating an agent with tools and authority in
    production. It distinguishes read-only agents from side-effect-capable agents
    and customer-facing agents from internal ones, because a search bot and a
    support bot that can modify accounts have fundamentally different operational
    risk profiles.
    
    After installing this skill, your agent can answer: what authority do I have,
    what happens when I'm uncertain, when do I escalate to a human, how do I fall
    back safely, and when should I be disabled entirely. Your team can answer: how
    do production incidents feed back into better evaluations, and how do eval
    results gate the next release.
    
    For agents with consequential tools, it also addresses protected supervision: who
    can change controls, how to verify they are active, and when work must stop.
    
    For agents that sleep between events, define wake-up admission, backlog limits,
    current permission checks and pending-effect reconciliation. Stopping a worker
    alone cannot disable a subscription that can wake it again.
    
    ## What You Get
    
    | Path | What it provides |
    |---|---|
    | [SKILL.md](SKILL.md) | Umbrella entry point — runtime control plane routing table, concrete authority/escalation/fallback/disablement parameters, and specialist-skill orchestration |
    | [README.md](README.md) | This file — human-facing overview |
    | [AGENTS.md](AGENTS.md) | Agent loading and nested-skill discovery notes |
    | [references/discovery-brief.md](references/discovery-brief.md) | Bounded discovery brief defining boundaries with agent-evals, release, SRE, security, and platform skills |
    | [references/agent-production-contract.md](references/agent-production-contract.md) | Production contract template — capability, authority, uncertainty, escalation, and side-effect contracts with production-readiness and incident-learning inputs |
    | [references/runtime-control-plan.md](references/runtime-control-plan.md) | Versioning (model, prompt, tool, policy, evaluator), four-stage rollout plan, and fallback paths with concrete triggers |
    | [references/tool-authority-health.md](references/tool-authority-health.md) | Health record schema for tracking tool availability, tool failure, authority usage, authority breaches, cost, and latency over time |
    | [references/trace-to-eval-feedback.md](references/trace-to-eval-feedback.md) | Production-to-evaluation feedback loop — how traces and incidents become eval cases and gate releases |
    | [evals/evals.json](evals/evals.json) | Integrated eval cases covering read-only agents, side-effect agents, model regression, tool outages, cost breaches, and human escalation |
    | [references/service-conditions.md](references/service-conditions.md) | Decide whether batching, streaming, caching and fallback remain within the tested operating envelope |
    | [templates/service-condition-record.md](templates/service-condition-record.md) | Record task quality, latency, total cost, partial outcomes and recovery ownership together |
    | [manifest.yaml](manifest.yaml) | Machine-readable bundle manifest (schema v1): purpose, audience, stages, included skills, prerequisites, outputs, handoffs, conflicts, and eval suite |
    
    ## Quick Start
    
    1. Start with an agent that has passed evaluation (use
       [agent-evals-and-observability](../agent-evals-and-observability/SKILL.md)).
    
    2. Define the agent's production contract using
       [references/agent-production-contract.md](references/agent-production-contract.md).
       Fill in capability, authority, uncertainty, escalation, and side-effect fields.
    
    3. Consume the most recent production-readiness review outcome for the agent's
       host service from
       [production-readiness](../production-readiness/SKILL.md) and any open
       incident-learning records from
       [incident-learning](../incident-learning/SKILL.md). Record both in the
       contract.
    
    4. Plan versioning, staged rollout, and fallback using
       [references/runtime-control-plan.md](references/runtime-control-plan.md).
    
    5. Begin Stage 1 rollout (shadow/dry-run). Record tool and authority health in
       [references/tool-authority-health.md](references/tool-authority-health.md).
    
    6. Advance through stages as exit criteria are met. At each stage boundary,
       review the health record for authority breaches, tool degradation, cost
       trends, and latency patterns.
    
    7. When escalation or fallback triggers fire, follow the concrete procedures in
       [SKILL.md](SKILL.md).
    
    8. Feed production traces and incidents back into evaluation cases using
       [references/trace-to-eval-feedback.md](references/trace-to-eval-feedback.md).
    
    ## Triggers
    
    Load this bundle when:
    - You are operating an agent that has passed evaluation and is being promoted to production.
    - You need to define a staged rollout with progressive authority expansion.
    - You need versioning across model, prompt, tools, policy, and evaluator.
    - You need fallback, escalation, and disablement procedures for an agent.
    - You need a production-to-evaluation feedback loop.
    - You see terms like "agent authority," "tool health," "agent cost budget," "agent latency SLO," or "agent disablement."
    
    Do NOT load this bundle for:
    - Building an agent from scratch — use your agent framework skill.
    - Designing evaluations or observability — use `agent-evals-and-observability`.
    - General release engineering — use `release-engineering`.
    - General SRE or incident response — use `site-reliability-engineering`.
    - General security engineering — use `secure-software-engineering`.
    - Platform infrastructure — use `platform-engineering`.
    
    ## Requirements
    
    - An agent that has passed evaluation (observability and eval infrastructure
      must exist — see `agent-evals-and-observability`).
    - A designated escalation channel (human operator or team).
    - A cost budget and attribution mechanism for the agent.
    - Production-readiness review process in place (see `production-readiness`).
    - Incident-learning process in place (see `incident-learning`).
    - No additional API keys, services, or runtime dependencies beyond what the
      agent already requires.
    
  • SKILL.md 18.2 KB
    ---
    name: agent-production-operations
    description: >-
      Operate an evaluated agent with tools and authority in production through a
      runtime control plane covering versioning, staged rollout, fallback, cost and
      latency budgets, tool health, human escalation, disablement, and trace-to-eval
      feedback. Do not use for building agents, designing evals, or general release,
      SRE, security, or platform engineering — those methods stay with their
      specialist skills.
    license: MIT
    compatibility: Agent harness with file read/write and terminal access. No network or runtime dependency required by the bundle itself.
    metadata:
      spec-version: "1.0"
      tags: agent, production, operations, runtime, control-plane, rollout, fallback, disablement
    ---
    
    # agent-production-operations
    
    A runtime control plane for taking an evaluated agent with tools and authority
    into controlled production operation. This bundle bridges the gap between
    passing evaluations and safe production use: it defines how an agent is
    versioned, rolled out, monitored, constrained, escalated, and disabled — and
    how production evidence feeds back into evaluation and release decisions.
    
    The bundle does **not** build agents, design evaluations, run release pipelines,
    or own infrastructure. It composes those concerns from existing specialist
    skills and owns only the runtime control decisions between them.
    
    ## Teams across harnesses
    
    Use [multi-agent-coordination](../multi-agent-coordination/SKILL.md) for team design
    and collective failure diagnosis. This bundle owns operational response after
    evaluation. For a shared-practice incident, identify affected sources, derivatives,
    retrieval caches, queued work and active consumers; contain only affected paths
    within current authority. Preserve unrelated work and independently protected
    controls. An agent acknowledging a correction does not prove adoption.
    
    Route source repair and fresh-session challenges to the owning harness. Record
    known exposure and missing lineage; no observed recurrence without exposure is
    inconclusive. Recovery must prevent stale memory, backups or extraction jobs from
    reintroducing the practice. Keep source/content compromise distinct from benign
    mistaken conventions, and escalate unknown effects through the incident owner.
    
    ## When to load this
    
    Load this bundle when you are operating an agent that:
    - Has passed evaluation and is cleared for production consideration.
    - Has tools with side effects and delegated authority that must be gated.
    - Needs a staged rollout with progressive authority expansion.
    - Must be monitored for cost, latency, tool health, and authority usage in
      production.
    - Requires a defined fallback, escalation, and disablement path.
    - Should feed production traces and incidents back into evaluation cases and
      release-gate updates.
    
    ## When not to use
    
    Do **not** load this bundle for:
    - Building or designing an agent from scratch — route to the appropriate
      framework skill (LangGraph, CrewAI, AutoGen, etc.).
    - Designing agent evaluations or observability — route to
      [agent-evals-and-observability](../agent-evals-and-observability/SKILL.md).
    - General release engineering (CI/CD pipelines, artifact promotion) — route to
      [release-engineering](../release-engineering/SKILL.md).
    - General site reliability engineering (incident response, SLO definition,
      error budgets) — route to
      [site-reliability-engineering](../site-reliability-engineering/SKILL.md).
    - General security engineering (threat modeling, vulnerability assessment) —
      route to [secure-software-engineering](../secure-software-engineering/SKILL.md).
    - General platform infrastructure (compute, networking, storage) — route to
      [platform-engineering](../platform-engineering/SKILL.md).
    - Performing a production-readiness review — route to
      [production-readiness](../production-readiness/SKILL.md); this bundle
      **consumes** readiness outcomes, it does not produce them.
    - Conducting an incident postmortem — route to
      [incident-learning](../incident-learning/SKILL.md); this bundle
      **consumes** incident records as escalation and feedback inputs.
    
    ## Autonomy is not assumed uniform
    
    This bundle explicitly does **not** assume all agents share the same autonomy,
    user population, or side-effect profile. Agent profiles are distinguished by
    capability class and side-effect surface:
    
    | Profile | Example | Authority | Escalation trigger | Fallback |
    |---|---|---|---|---|
    | **Read-only** | Internal search agent | Query-only; no mutation, no user-data access | Uncertainty above threshold; result quality degradation | Return cached/static results |
    | **Side-effect-capable, internal** | CI triage bot | Issue/PR comments, label management, branch creation | Tool failure > 5% in window; authority breach attempt | Disable tool, escalate to human |
    | **Side-effect-capable, customer-facing** | Support agent with account access | Read PII, suggest actions, no mutation without confirmation | Any PII access without explicit consent; cost breach > 10% of budget | Degrade to read-only, escalate immediately |
    
    Every control-plan decision (authority, escalation, fallback, disablement) in
    this bundle is parameterized by the agent's autonomy profile. A read-only agent
    and a side-effect-capable agent operating on customer data receive different
    thresholds and different escalation paths.
    
    Authority thresholds and maintain/expand/reduce/suspend/revoke decisions belong to accountable humans supported by [ai-governance](../ai-governance/SKILL.md). Operational evidence and readiness are inputs, never permission grants. Applicable policy ceilings, current grant expiry/revocation, and external enforcement constrain every execution.
    
    ## Mandatory control integrity
    
    Before consequential execution or resumption, load
    [control-integrity operations](references/control-integrity.md) and produce
    [a pre-execution receipt](templates/control-integrity-receipt.md). Verify protected
    controls against current independent evidence and the governance registry. Missing,
    degraded, redirected, or suppressed mandatory controls are control-integrity
    incidents: hold consequential work, contain or terminate under the incident plan,
    and escalate through an independently protected path. Do not wait for repeated
    breaches or normal health thresholds. A task instruction cannot authorize weakening
    its supervision. Recovery must preserve revocation and independent monitoring.
    
    ## Runtime control plane routing
    
    The bundle composes the following specialist skills. Load them when their
    domain is the active concern; the bundle owns the cross-domain coordination.
    
    | Concern | Specialist skill | When to load | What the bundle adds |
    |---|---|---|---|
    | Agent evaluation and observability | [agent-evals-and-observability](../agent-evals-and-observability/SKILL.md) | Designing evals, instrumenting observability, detecting regression | Trace-to-eval feedback loop; eval-case generation from production incidents |
    | Release engineering | [release-engineering](../release-engineering/SKILL.md) | Release pipeline design, artifact promotion, CI/CD | Agent-specific staged rollout with authority gating; rollback triggers tied to agent health |
    | Site reliability engineering | [site-reliability-engineering](../site-reliability-engineering/SKILL.md) | Incident response, SLO/SLI definition, error budgets | Agent-specific latency/cost budgets; tool-health SLOs; escalation handoff to incident command |
    | Security engineering | [secure-software-engineering](../secure-software-engineering/SKILL.md) | Threat modeling, trust-boundary validation, secure design | Agent authority contracts with side-effect boundaries; disablement security (revoke, not just stop) |
    | Platform engineering | [platform-engineering](../platform-engineering/SKILL.md) | Compute, networking, storage, service infrastructure | Agent sandboxing requirements; tool-execution isolation preferences |
    | Production readiness | [production-readiness](../production-readiness/SKILL.md) | Readiness reviews, go/no-go/defer/exception decisions | Consumed as input: readiness outcomes gate agent authority expansion |
    | Incident learning | [incident-learning](../incident-learning/SKILL.md) | Post-incident analysis, verified closure, follow-up work | Consumed as input: incident records feed escalation thresholds and eval-case generation |
    
    ## Loading protocol
    
    This SKILL.md is the discoverable umbrella entry point. Nested skills are not
    used in this bundle. Reference files are loaded on trigger:
    
    | Reference | Loaded when |
    |---|---|
    | [references/event-driven-operations.md](references/event-driven-operations.md) | Operating callbacks, subscriptions, queued wake-ups or hibernating agents |
    | [references/discovery-brief.md](references/discovery-brief.md) | Reviewing the bundle's boundary decisions against specialist skills |
    | [references/agent-production-contract.md](references/agent-production-contract.md) | Defining capability, authority, uncertainty, escalation, and side-effect contracts for an agent |
    | [references/runtime-control-plan.md](references/runtime-control-plan.md) | Planning versioning, staged rollout, or fallback for an agent in production |
    | [references/tool-authority-health.md](references/tool-authority-health.md) | Recording or reviewing tool availability, failure, and authority usage/breach state over time |
    | [references/trace-to-eval-feedback.md](references/trace-to-eval-feedback.md) | Connecting production traces and incidents back to evaluation cases and release gates |
    | [references/service-conditions.md](references/service-conditions.md) | Defining tested concurrency envelopes, streaming completion, cache isolation, fallback quality, or task-cost budgets |
    
    ## Concrete operational parameters
    
    ### Authority
    
    - **Definition**: the set of actions an agent is permitted to perform, scoped by
      target (which resources), operation (read/write/delete), and user-context
      (whose data).
    - **Trigger to review**: any new tool registration, model update, or prompt
      change that expands the agent's reachable action surface.
    - **Threshold**: authority is binary per action class. No action may be
      performed that is not explicitly listed in the production contract. An
      attempt to perform an unauthorized action is an **authority breach** and
      triggers immediate escalation.
    - **Action on breach**: log the attempt, block the action, increment the
      authority-breach counter, and escalate. If breach count exceeds 3 in a
      rolling 24-hour window, disable the agent.
    
    ### Escalation
    
    - **Definition**: transfer of a decision or action from the agent to a
      designated human operator.
    - **Triggers** (any one triggers escalation):
      - Authority breach (attempted unauthorized action).
      - Uncertainty above threshold: agent confidence < 0.7 on a
        side-effect-capable action (configurable per profile).
      - Tool failure rate > 5% in a 5-minute sliding window.
      - Cost budget breach > 10% of allocated budget in a billing period.
      - Latency p95 > 2x baseline for > 5 minutes.
      - Human-handoff keyword or explicit user escalation request.
    - **Action**: suspend the agent's side-effect authority, log the escalation
      context (trigger, state snapshot, pending actions), notify the designated
      escalation channel, and await human disposition (resume / reduced-authority /
      disable).
    
    ### Fallback
    
    - **Definition**: a predetermined safe behavior when the agent, model, or a
      tool cannot operate at its normal capability level.
    - **Triggers**:
      - Model endpoint returns 5xx for > 30 seconds.
      - A critical tool is unavailable (health-check failure for > 2 minutes).
      - Cost budget exhausted (100% consumed).
      - Latency p95 > 5x baseline for > 2 minutes.
    - **Actions per profile**:
      - Read-only: return a static/cached response with a "results may be stale"
        disclaimer.
      - Side-effect-capable, internal: degrade to read-only, queue pending
        mutations, notify operator.
      - Side-effect-capable, customer-facing: degrade to read-only, surface a
        "temporarily unavailable" message to the user, escalate immediately.
    
    ### Disablement
    
    - **Definition**: complete revocation of the agent's ability to act, including
      read-only access. Distinct from fallback (which preserves reduced capability).
    - **Triggers**:
      - 3 or more authority breaches in a 24-hour window.
      - Production-readiness review outcome is "no-go" or "defer" for the current
        agent version.
      - Incident-learning record attributes a severity-1 or severity-2 incident to
        agent action, and verified closure is not yet complete.
      - Human operator issues an explicit disable directive.
      - Tool compromise or credential leak detected (route through
        [secure-software-engineering](../secure-software-engineering/SKILL.md)).
    - **Action**: revoke all credentials and tokens; remove from routing/load-balancing;
      record disablement reason, timestamp, and authorizing evidence; notify
      escalation channel; prevent automatic restart until a new
      production-readiness review passes.
    
    ### Cost
    
    - **Definition**: the financial cost of operating the agent, attributed to a
      budget owner.
    - **Budget**: allocated per agent per billing period (e.g., $500/day for a
      customer-facing support agent). Budget is set at production-contract time and
      reviewed at each production-readiness cycle.
    - **Thresholds**:
      - 50% consumed: notification to budget owner.
      - 80% consumed: warning; cost-optimization review triggered.
      - 100% consumed: stop new spend; use cached/no-cost fallback or a separately authorized bounded budget. Read-only/model work still costs resources.
      - Observed settlement at 110%: disable and investigate overshoot; never treat this as permission to spend beyond 100%.
    - **Measurement**: per-request model cost + per-call tool cost (where
      applicable), attributed to the agent instance. Cost data is appended to the
      tool-authority-health record.
    
    ### Latency
    
    - **Definition**: end-to-end response time from user request to agent response,
      measured at p50 and p95 over 5-minute windows.
    - **Baseline**: established during staged rollout observation window (phase 1
      of rollout). Recorded in the agent production contract.
    - **Thresholds**:
      - p95 > 2x baseline for > 5 minutes: escalation trigger.
      - p95 > 5x baseline for > 2 minutes: fallback trigger.
      - p50 > 3x baseline for > 10 minutes while cost budget is > 80% consumed:
        disablement consideration.
    - **Action**: latency breaches feed the trace-to-eval feedback loop: the
      latency-impacted requests are sampled and reviewed for eval-case generation.
    
    ### Privacy
    
    - **Definition**: constraints on agent access to, processing of, and retention
      of user data (PII, usage patterns, conversation content).
    - **Concrete rules**:
      - An agent must not access PII without an explicit user-data-access grant in
        its authority contract.
      - Agent traces and conversation logs must be scrubbed of PII before entering
        the trace-to-eval feedback pipeline (route scrubbing design to
        [privacy-engineering](../privacy-engineering/SKILL.md)).
      - Data retention for agent traces defaults to 30 days unless a shorter period
        is specified in the production contract.
      - Any PII access by a read-only agent triggers immediate escalation (the
        read-only profile should never touch PII).
    - **Privacy breach**: any PII access outside the granted scope triggers
      escalation and a mandatory security review via
      [secure-software-engineering](../secure-software-engineering/SKILL.md).
    
    ## Core workflow
    
    1. **Contract**: define the agent's capability, authority, uncertainty,
       escalation, and side-effect contracts using
       [references/agent-production-contract.md](references/agent-production-contract.md).
       Consume production-readiness outcomes and incident-learning records as
       decision inputs.
    
    2. **Version and plan**: version the model, prompt, tools, policy, and
       evaluator; plan the staged rollout and fallback path using
       [references/runtime-control-plan.md](references/runtime-control-plan.md).
    
       Before changing serving behavior or expanding traffic, load
       [service conditions](references/service-conditions.md) and record the tested
       envelope in [the service-condition record](templates/service-condition-record.md).
    
    3. **Roll out**: execute staged rollout with progressive authority expansion,
       monitoring tool health and authority usage at each stage using
       [references/tool-authority-health.md](references/tool-authority-health.md).
    
    4. **Monitor**: track cost, latency, tool health, authority breaches, and
       escalation events. Apply threshold-based actions (notify, degrade, escalate,
       disable) per the concrete parameters above.
    
    5. **Feed back**: connect production traces and incidents to evaluation cases
       and release-gate updates using
       [references/trace-to-eval-feedback.md](references/trace-to-eval-feedback.md).
    
    6. **Learn**: consume incident-learning verified-closure records and
       production-readiness review outcomes to update agent authority, escalation
       thresholds, and disablement conditions.
    
    ## File map
    
    | Path | Purpose |
    |---|---|
    | [SKILL.md](SKILL.md) | Umbrella entry point (this file) |
    | [README.md](README.md) | Human-facing overview and quick start |
    | [AGENTS.md](AGENTS.md) | Agent loading and discovery notes |
    | [references/discovery-brief.md](references/discovery-brief.md) | Boundary analysis against specialist skills |
    | [references/agent-production-contract.md](references/agent-production-contract.md) | Capability, authority, uncertainty, escalation, and side-effect contracts |
    | [references/runtime-control-plan.md](references/runtime-control-plan.md) | Versioning, staged rollout, and fallback plan |
    | [references/tool-authority-health.md](references/tool-authority-health.md) | Tool availability/failure and authority usage/breach record |
    | [references/trace-to-eval-feedback.md](references/trace-to-eval-feedback.md) | Production-to-evaluation feedback loop |
    | [references/service-conditions.md](references/service-conditions.md) | Tested capacity, streaming, cache, fallback, and cost conditions |
    | [templates/service-condition-record.md](templates/service-condition-record.md) | Record workload limits, acceptance thresholds, evidence, and stop conditions |
    | [evals/evals.json](evals/evals.json) | Integrated output-quality evaluation cases |
    | [manifest.yaml](manifest.yaml) | Machine-readable composition contract (schema v1): purpose, audience, stages, included skills, prerequisites, outputs, handoffs, conflicts, and eval suite; consumed by the lifecycle capability matrix |
    

Comments (0)

Sign in to join the conversation.

No comments yet.

Reviews (0)

No reviews yet.