LearnQuestion bank

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

Applied LLMTechnicalMedium

Theme reported publicly: Cohere

Answer it yourself first, out loud or on paper, then compare.

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