---
title: An agent will be allowed to issue refunds and change customer account settings. How do you make it safe enough to ship?
url: https://gurkanozkan.ai/learn/questions/applied-llm-agt-07/
markdown: https://gurkanozkan.ai/learn/questions/applied-llm-agt-07.md
kind: question
role: Applied LLM
stage: Technical
difficulty: Medium
json: https://gurkanozkan.ai/api/learn/questions/applied-llm-agt-07.json
robots: noindex
---

# An agent will be allowed to issue refunds and change customer account settings. How do you make it safe enough to ship?

Applied LLM · Technical · Medium

Theme reported publicly: [Cohere](https://builtin.com/job/forward-deployed-engineer-agentic-platform-uk-europe/9328104)

## Answer

*Model answer, written in a candidate's voice*

### In short

- Least privilege: scoped, per-customer credentials, refund caps, allow-listed settings, enforced by a deterministic policy layer outside the model
- Progressive autonomy: shadow mode, human approval, then sampled QA, gated by measured accuracy and drift
- Safety mechanics: idempotency keys, audit trails, reversibility, rate limits, kill switch
- Injection resistance: customer text is untrusted data, never authority; prompts cannot escalate privileges
- Pre-launch: stateful simulation with adversarial cases, then staged rollout and monitoring

### In full

I would treat the agent as a powerful but untrusted operator: it gets scoped, per-customer credentials and only the actions it needs, with refund amount caps and an allow-list of account settings, while a deterministic policy layer outside the model validates every proposed action before execution. Rollout would be progressive—shadow mode first, then human approval for consequential changes, then sampled QA—with promotion based on measured accuracy, error rates, and drift rather than vibes. Every refund or setting change would carry an idempotency key, be logged with before/after state, be reversible where possible, and be bounded by rate limits and a kill switch. Customer text would be treated strictly as untrusted data, never as authority, so prompts cannot widen scope, bypass caps, or approve themselves. Before launch I would run a stateful simulation with realistic histories, adversarial inputs, and edge cases, then ship behind staged rollout and monitoring with rollback criteria.

*Checked against sources by an independent AI reviewer.*

## What a strong answer covers

- Least privilege: scoped credentials, amount caps, allow-lists; a deterministic policy layer outside the model enforces rules
- Progressive autonomy: shadow mode → human approval → sampled QA, driven by measured accuracy
- Idempotency keys, audit trails, reversibility, rate limits, kill switch
- Customer text cannot escalate privileges (injection)
- Pre-launch evaluation in a stateful simulated environment

## Common mistakes

- Business rules enforced only through prompt instructions
- no audit log

## Topic guides

- [Agents and tool use](https://gurkanozkan.ai/learn/topics/agents.md)
- [AI safety, guardrails and alignment](https://gurkanozkan.ai/learn/topics/safety.md)
- [ML and LLMs in financial services: fraud, risk and regulated assistants](https://gurkanozkan.ai/learn/topics/fintech.md)
---

*Study material compiled with AI: drafted by a local model (Inkling 2 Mini) from public sources, then checked against those sources by independent AI reviewers (Claude) in November 2026. Not reviewed line by line by a person.*
