| name | evals-ops-and-guardrails |
| description | Establishes reliability, safety, and release readiness for LLM-driven agents. Use for eval suites, adversarial testing, observability, budgets, policy gates, prompt-injection defenses, and rollout controls. |
| argument-hint | [system or feature] |
| allowed-tools | Read Write Edit Bash Grep Glob |
Treat reliability as part of the product, not as cleanup after implementation.
This skill defines how an agent system earns the right to ship.
Use this skill when
- the task involves evals, safety, observability, release, or hardening
- the user asks whether an agent is production ready
- the system needs measurable gates instead of confidence-based claims
- prompt injection, tool misuse, or cost/risk control must be addressed
Minimum production controls
Every meaningful agent system should have:
- strict tool schemas
- time, step, and cost budgets
- bounded retries and timeouts
- idempotency for side effects
- approval gates for risky actions
- structured receipts and trace logs
- replay capability
- golden, adversarial, and regression evals
Eval design procedure
1. Define the capability surface
List:
- representative user tasks
- allowed tools and actions
- key constraints and policies
- expected outputs or side effects
2. Build golden-path evals
Golden evals should cover the product's core promises.
For each eval, specify:
- input prompt or scenario
- starting context
- allowed tools
- expected task outcome
- success criteria
- max cost or latency if relevant
3. Build adversarial evals
At minimum include:
- prompt injection trying to override policy
- malicious or misleading retrieval content
- tool misuse with wrong or over-broad arguments
- exfiltration attempts targeting secrets or tenant data
- hallucinated claims with no supporting evidence
- approval bypass attempts
- runaway loop or budget exhaustion scenarios
4. Build regression evals
Keep a stable suite that runs on:
- prompt changes
- tool schema changes
- runtime logic changes
- model changes
- memory or retrieval changes
5. Define metrics and thresholds
Minimum metrics:
- task success rate
- tool selection accuracy
- argument validity rate
- policy adherence rate
- approval compliance rate
- failure recovery rate
- cost per successful task
- p95 latency
Do not ship on averages alone if tail behavior matters.
Observability specification
For each run and step, log:
- run id and tenant scope
- state transitions
- tool calls with validated and redacted args
- tool results with structured outputs
- retries and error classification
- approval requests and decisions
- token, latency, and cost estimates if available
- final disposition: success, graceful failure, blocked by policy, canceled
Traces must support:
- replay
- incident debugging
- eval triage
- user-facing receipt generation
Safety and governance rules
Guard against:
- prompt injection changing objectives or policy
- data leakage across users or tenants
- tool dispatch outside permission scope
- irreversible changes without approval
- hidden cost escalation
Require explicit policy boundaries for:
- network access
- filesystem or data access
- external communications
- deletion or mutation actions
- spending money
Rollout and release
Prefer staged release:
- local or sandbox validation
- internal dogfood
- small canary
- controlled expansion
- full release
Every stage should define:
- gating metrics
- rollback triggers
- incident owner
Output contract
Return:
- Capability surface
- Golden-path eval plan
- Adversarial eval plan
- Regression strategy
- Metrics and thresholds
- Logging and tracing spec
- Release gates
- Rollback criteria
Anti-patterns
Avoid:
- only evaluating final text quality
- no adversarial coverage
- relying on manual spot checks as the primary release gate
- logging too little to explain incidents
- calling a system production-ready because a demo worked
Done criteria
This skill is done only when:
- core product promises are covered by evals
- known threat classes have explicit tests
- release blocking thresholds are defined
- traces are sufficient for replay and incident analysis