Skip to content

Interview question · Guardrails, Identity & Policy

Draw the line between what the model proposes and what the system executes.

Write it as a table for one real agent: every field of every action, and who decides it. The model proposes intent and content; identity, permissions, limits, recipients and the decision to execute come from the system.

mediumEssentialNewUpdated Nov 2026

TL;DR: The model proposes: which action, and the content that only language can supply (a message's wording, a search query, a summary). The system decides everything that confers authority: whose account, which records are reachable, amounts within policy, recipients, whether approval is needed, and whether the action runs at all. Make the line concrete by listing every field of every tool for a real agent and marking its source: model, session, system of record, policy or person. Anything authority-bearing that comes from the model is a defect.

How to approach it

Pick an agent (a support agent with refund, email and order tools) and draw the line field by field, then show how the dispatcher enforces it and how you would audit that it holds.

A strong answer

Field by field, for a support agent.

ActionFieldSource
refunds_createcustomerSession
order_idModel proposes; system checks it belongs to the customer
amountModel proposes; policy checks against order and limit
approvalPolicy decides; a person grants
email_sendrecipientSession (the customer's verified address); no free-form addresses
bodyModel
orders_searchqueryModel
scopeSession (this customer's orders only)
anywhether it runsDispatcher after validation, policy and approval

The dispatcher enforces the table.

SOURCES = {"refunds_create": {"customer": "session", "order_id": "model",
                              "amount": "model"},
           "email_send": {"recipient": "session", "body": "model"}}

def build_call(tool, model_args, session):
    args = {}
    for field, source in SOURCES[tool].items():
        if source == "session":
            if field in model_args:
                return None, f"{field} comes from the session, not the model"
            args[field] = session[field if field != "recipient" else "email"]
        else:
            args[field] = model_args[field]
    return args, "built"

session = {"customer": "c_7", "email": "[email protected]"}
ok = build_call("email_send", {"body": "Your refund is on its way."}, session)
bad = build_call("email_send", {"recipient": "[email protected]", "body": "..."},
                 session)
print(ok[0]["recipient"])  # => [email protected]
print(bad[1])  # => recipient comes from the session, not the model

A model that tries to choose a recipient is refused; the recipient comes from the session. Validation, policy and approval then run on the built call.

Audit that the line holds. For every tool, a test that supplies authority-bearing fields from the model and expects refusal. In production, log the source of each field; any model-sourced authority field is an incident.

What interviewers probe next

"Some tasks need the model to choose a recipient, like emailing a supplier." Then the recipient comes from an allowlist (the supplier directory), and new recipients need approval. The model chooses among options the system provides.

"Isn't the order id authority-bearing?" The model proposes it because it comes from the conversation; the system checks ownership. Proposals are fine; trusting them is not.

"Where does the system prompt fit?" It guides what the model proposes. It is on the model's side of the line.

What if?

What if · interview follow-ups

Hold your answer as the constraints change

Your support agent's dispatcher builds calls from a field-source table.

  1. Start here

    What if a new tool is added without a row in the table?

How it's scored

Weak: "The model decides; we tell it to be careful."

Hire: Separates proposals from execution with validation and authorization in the harness.

Strong Hire: Draws the line field by field for a real agent, marks each field's source, enforces it in the dispatcher with refusal of model-supplied authority fields, handles recipients and amounts through allowlists and policy, defaults to refusing unmapped tools, and audits with tests and field-source logs.

Common mistakes

  • Treating validation as enough without saying where each field comes from.
  • Free-form recipients chosen by the model.
  • Silently correcting model values instead of refusing with a reason.
  • New tools that bypass the table.
You just read a free answer. Every topic opens its first 5 answers to anyone. Sign in and the count per topic goes to 6, and the site remembers where you stopped in each one.Google sign-in · free · no payment details
HOW DID IT GO?
0
READING SIGNED OUT

Signing in raises your free answers from 5 to 6 per topic, adds an applied lesson in every topic and easy practice tests, and the site starts remembering you: mastery per topic, bookmarks, and a next-focus recommendation. Free, no card.

Sign in free
UP NEXT ON YOUR JOURNEY
DISCUSSION · 0

Nobody has commented. Post a correction or another way to answer.