Skip to content
Forward Deployed

Forward Deployed
System Design Practice

Tool-Using Agent with Safety Controls

By Sourav Banerjee · Last updated 13 Oct 2026 · Report an issue

Read the worked design: Tool-Using Agent with Safety Controls

PracticeAdvanced4 min read
For
Engineers preparing for Forward Deployed, solutions or applied-AI engineering interviews
Assumes
  • Two or three Discovery Foundations scenarios completed
  • Comfort with retrieval, agents, queues and multi-tenant cloud architecture
Objectives
  • Find the one constraint that makes the scenario dangerous before designing
  • Defend an architecture, evaluation plan and rollout under follow-up questions
How to use it
Allow about an hour. Work the discovery sections properly — they decide the design — then compare each section with the model answer and score yourself honestly.

Condensed from the sources credited on the How It Works page

0/36
Not saving
01

Interview prompt

As the FDE (Forward Deployed Engineer) on this engagement, your job is to design and ship a Tool-Using Agent with Safety Controls. The agent reads email, looks things up in internal systems, edits CRM (customer relationship management) records and pays out refunds. None of that power may go unchecked. The model suggests an action; something else makes the call.

02

Clarify the customer problem

  • Which actions can be undone, and at what amount does money need a stricter path?
  • Whose identity does the agent use: the user's, a service account's, or delegated rights?
  • What has to be true before an action can run with no approval?
  • If the agent gets one wrong, how is it reversed, and by whom?
  • What record must we keep so audits and disputes can be settled?
03

Users and workflows

UserWorkflowCurrent painAI assist opportunityHuman approval needed?
Business user
Approver
Security owner
Tool / data owner
04

Requirements

Functional

Non-functional

  • Latency target
  • Availability target
  • Cost budget
  • Security/privacy constraints
  • Audit/compliance requirement
05

Data and integration map

Data sourceFormatOwnerFreshnessPermission modelRisk
06

Proposed architecture

Start from a rendered diagram and shape it to fit this case. Cover each part below:

  • Planner and proposals
  • Tool registry
  • Policy decision point
  • Credential broker
  • Approval service
  • Idempotent execution
07

Evaluation plan

MetricGood thresholdBad thresholdTest datasetOwner
Unsafe action count0Anything above zeroReview of the audit trailTrust and safety
Duplicate effects0Even a single caseLogs from the idempotency layerReliability
Policy denial rateHolds near its baselineJumps suddenlyLogs from the policy enginePlatform
Human override rateLow and droppingClimbingEdits made in the review UIOperations
08

Failure modes

  • An injected prompt asks for a tool the agent is not authorised to use
  • The tool call works, but its response never comes back
  • An approval goes out of date before the action runs
  • The agent keeps retrying one action in a loop
  • The credential broker is down
  • A proposed refund goes over the limit set for the task
09

Rollout plan

  1. Begin with read-only triage and draft replies.
  2. Show that a few narrow writes can be undone.
  3. Turn on writes only where rollback is proven.
  4. Leave every money movement with a person.
  5. Attack the prompt with a red team.
  6. Release to a canary, then grant more autonomy.
10

Weak vs strong answer

Weak: "I'd hook the agent up to email and the CRM and let it pay refunds."

Strong: "The model may only suggest one bounded action at a time. A typed schema checks it. A deterministic policy engine then permits or rejects it. If permitted, a broker issues a scoped credential that expires quickly, and an idempotent gateway makes sure the effect happens exactly once. Anything a tool returns is untrusted data, never instructions."

11

Candidate scorecard

Evaluation
The closer

Final 2-minute spoken answer

Rehearse this out loud before you look at it. Summarising the whole design in two minutes is its own skill, and it is usually the last thing you are asked for.

Where next

Read the worked design
Tool-Using Agent with Safety Controls
Revise the concepts