Scrivio Interview library
LeadershipPrincipal6 min read · updated 12 November 2026

Product leaders want AI agents that can take actions in customer accounts (refunds, plan changes) on their own. As the senior technical leader, how do you decide how much autonomy to allow?

I would decide autonomy per action, not per agent: classify actions by impact and reversibility, start with read-only and easily reversible ones, and require human approval for high-impact actions with an audit trail of what the agent proposed and why. Limits such as amount caps, rate limits and authorisation are enforced in the normal services, not only in prompts. Before any action runs autonomously, the agent runs in shadow mode so we can measure its error rate against human decisions, and one team is named as owner of the agent's behaviour and its incident response.

Why this question is asked

Agents that issue refunds and change plans on their own are attractive because support costs are large and customers hate waiting. They are risky because a model's mistakes are unlike a person's: it can be confidently wrong, it can be steered by text a customer writes, and it can repeat the same mistake thousands of times in an hour. Interviewers ask senior leaders this question to see whether they can say yes to the business in a controlled way rather than either blocking it or trusting it blindly. In this answer, we will classify actions, define the levels of autonomy, put hard limits in services, measure in shadow mode, set accountability, and walk through an example of moving refunds from approval to autonomy.

1Classifying Actions by Impact and Reversibility

Autonomy is not one decision for the whole agent. Looking up an order, changing a delivery address before shipping, issuing a 5 euro refund, issuing a 500 euro refund and closing an account have completely different consequences. Two questions sort them: how much harm does a wrong action do, in money, customer trust or legal exposure, and can it be undone easily and completely?

Read-only actions are the safest, as long as the agent only reads what the customer may see. Reversible, low-impact actions, such as pausing a subscription or applying a small goodwill credit, are next. Irreversible or high-impact actions, such as large refunds, plan downgrades that delete data, or account closures, are at the top. This classification is done with product, finance, legal and support leaders, because they own the consequences.

Autonomy by action class
ActionImpactReversible?Starting level
Look up order or planLowNot applicableAutonomous
Resend invoice, update addressLowYesAutonomous with audit
Refund under 20 EURLow to mediumPartlyShadow, then autonomous
Plan changeMediumYes, within 30 daysHuman approval
Refund over 20 EURMedium to highNoHuman approval
Close account, delete dataHighNoHuman only
Each action starts at a level and moves only on measured evidence.

2Levels of Autonomy

For each action we choose one of four levels. Human only: the agent can suggest, but a person performs the action in the normal tool. Human approval: the agent prepares a complete proposal, the action, the amount, and its reasoning with the evidence it used, and a support agent approves or rejects it with one click. Autonomous with audit: the agent acts within hard limits, and a sample of actions is reviewed afterwards. Fully autonomous: only for read-only actions.

The approval level is valuable on its own. If a support agent can handle a refund case in 30 seconds by reviewing a well-prepared proposal instead of 6 minutes of investigation, we get most of the efficiency without the risk. Every proposal and decision, including rejections, is recorded, and this record becomes the data that tells us when an action can move up a level.

3Limits Enforced in Services, Not Prompts

A prompt that says never refund more than 20 euros is an instruction the model usually follows, and a customer's message can talk it out of. So every limit lives in the services the agent calls. The refund API checks the amount cap for agent-initiated refunds, the number of refunds per customer per month, the agent's total refund volume per hour, and the customer's eligibility, exactly as it would for a junior employee with limited authority. The agent acts with an identity that has only the permissions we granted it.

The hourly volume limit deserves emphasis. A human makes a mistake once; an agent with a bad prompt change can make it on every conversation. A circuit breaker that stops agent refunds when volume or rejection rates exceed normal levels, and pages the owning team, turns a potential disaster into a short incident.

Java
// In the refund service, not in the agent
RefundResult refund(Actor actor, String orderId, BigDecimal amount, String reason) {
if (actor.isAgent()) {
if (amount.compareTo(new BigDecimal("20.00")) > 0) return RefundResult.needsApproval();
if (agentLimits.refundsThisHour() >= 200) return RefundResult.paused("hourly cap"); // breaker
if (refunds.countForCustomer(orderId, Period.ofDays(30)) >= 2) return RefundResult.needsApproval();
}
authorisation.require(actor, "refund:create", orderId);
audit.record(actor, "REFUND", orderId, amount, reason); // reason = agent's stated rationale
return payments.refund(orderId, amount);
}

4Measuring in Shadow Mode First

Before an action becomes autonomous, the agent runs in shadow mode: for every real case, it decides what it would do and records it, while humans keep making the actual decisions. After a few weeks, we compare. For small refunds we might look at 5,000 cases and find that the agent agreed with the human in 94 percent, was more generous in 4 percent and stricter in 2 percent. We then review the disagreements: some are agent errors, some reveal inconsistent human decisions, and some show missing data.

We agree the acceptance threshold in advance with the business owner, for example an error rate below 2 percent with no error above the cap, and only then switch that action to autonomous with audit for a share of traffic. The same comparison keeps running on a sample after launch, because model updates and prompt changes can shift behaviour.

Step throughMoving one action towards autonomy
  1. Classify impact and reversibilitywith product, finance, legal
  2. Shadow modeagent decides, humans act
  3. Error rate under agreed threshold?
    YesHuman approval with prepared proposalsNoImprove agent, stay in shadow
  4. Approval data confirms quality?
    YesAutonomous within service limitsNoKeep human approval
  5. Monitor and sample auditsbreaker on volume or errors

5 steps in order. Play them, or step through them one at a time.

5Accountability and Incident Response

When the agent does something wrong, someone must own it. I would name one team as owner of the agent's behaviour: its prompts, tools, model choices and limits, with on-call and the authority to switch actions off. The business owner of each action, such as the head of support for refunds, owns the policy and the thresholds. Agent incidents, such as a wave of wrong refunds or a prompt injection that worked, are handled like any production incident, with a quick kill switch per action, customer remediation, and a blameless review that changes limits, tests or the design. The audit trail, what the agent saw, proposed, did and why, is what makes that review possible.

6Follow-up questions

What would you tell product leaders who want full autonomy from day one?

That we can deliver most of the value quickly through human approval of prepared proposals, and move each action to autonomy as soon as the shadow data supports it. This gives them a date for the first benefit and a clear, evidence-based path, instead of a single risky launch.

How do you handle customers trying to manipulate the agent?

By assuming they will. Limits and eligibility are enforced in services, the agent acts only on the authenticated customer's account, and unusual patterns, such as repeated refund requests, route to humans. Manipulation can then at most produce a request that the service refuses.

Does a better model mean we can skip shadow mode?

No. A new model changes behaviour in ways we cannot predict from benchmarks, so every model or significant prompt change goes back through a shorter shadow comparison before it acts autonomously.

7Conclusion

In this answer, we decided autonomy per action by classifying impact and reversibility, and started with read-only and easily reversible actions. High-impact actions required human approval of a prepared proposal with a full audit trail, limits such as amount caps, rate limits and authorisation were enforced in the normal services, shadow mode measured error rates before any action ran on its own, and one team owned the agent's behaviour, its kill switches and its incident response.

What to say in the interviewAbout 90 seconds aloud

Open with

I would make autonomy a decision per action, not for the agent as a whole. With product, finance, legal and support, I classify each action by impact and reversibility.

Then, if they want more

Read-only lookups and easily reversible, low-impact changes can start autonomous with audit; large refunds or plan changes start with human approval; account closure stays human only. Human approval is already a big win if the agent prepares a complete proposal with the amount, the evidence and its reasoning, and every proposal and decision is recorded.

Then I make sure limits live in the services, not the prompt: the refund service enforces an amount cap for agent actions, a per-customer frequency limit, an hourly volume cap that works as a circuit breaker, and normal authorisation, because a prompt can be talked out of a rule and a service cannot.

Before any action becomes autonomous, the agent runs in shadow mode, deciding alongside humans, and we compare a few thousand cases against a threshold agreed in advance with the business owner. Only then do we switch it on for a share of traffic, with sampling audits continuing.

Finally, one team owns the agent's prompts, tools, models and limits, with on-call and a kill switch per action, and agent mistakes are handled as incidents with a review.

About this answer

Last updated
12 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Official documentation
Spring AI reference
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "Product leaders want AI agents that can take actions in customer accounts (refunds, plan...": https://scrivio-interview-library.netlify.app/spring-boot/spring-ai/db46d9e0cc/