CSE Roadmap

Common tier · about 4 hours · 4 parts

Part 2 of 4 · 11 min read

Definitions

Covers: Definitions; Flow; Results; Design rules; Interview questions, with the follow-ups; Common mistakes; What the example does not do.

Definitions

Intent, confidence

  • Intent: the kind of request (refund, cancel, address change, status, billing, other).
  • Confidence: the classifier's score for its intent; only useful if calibrated.

Precondition

  • Precondition: a rule a tool checks itself before acting, such as "the order has not shipped".

Handoff packet

  • Handoff packet: what a human receives on escalation: the ticket, context, reason, steps tried and a suggestion.

Autonomy slider

  • Autonomy slider: a setting from fully manual, through assisted, to fully autonomous.

Blast radius

  • Blast radius: how many systems, users or records one action can affect.

Calibration

  • Calibration: the match between stated confidence and how often the answer is right.

Flow

AAAWgmp1bWIAAAAeanVtZGMycGEAEQAQgAAAqgA4m3EDYzJwYQAAABZcanVtYgAAAEdqdW1kYzJtYQARABCAAACqADibcQN1cm46YzJwYTozNDI5NzQ1Ny1lM2NiLTQyZTYtYTBlZS0zZGUyYWRmODdjMzAAAAADl2p1bWIAAAApanVtZGMyYXMAEQAQgAAAqgA4m3EDYzJwYS5hc3NlcnRpb25zAAAAALxqdW1iAAAARGp1bWRjYm9yABEAEIAAAKoAOJtxE2MycGEuaW5ncmVkaWVudC52MwAAAAAYYzJzaJok6S0OB4Htn3TDHpdz3T4AAABwY2JvcqNpZGM6Zm9ybWF0bWltYWdlL3N2Zyt4bWxqaW5zdGFuY2VJRHgseG1wOmlpZDpkNTE2ODhjYS00YzQ4LTRjMDUtYjY2MS0wMDA5ZTRkNDFkZWRscmVsYXRpb25zaGlwaHBhcmVudE9mAAAB4mp1bWIAAABBanVtZGNib3IAEQAQgAAAqgA4m3ETYzJwYS5hY3Rpb25zLnYyAAAAABhjMnNonP4Jn1BMqPA6P2yVJKis/QAAAZljYm9yomdhY3Rpb25zgqJmYWN0aW9ua2MycGEub3BlbmVkanBhcmFtZXRlcnOha2luZ3JlZGllbnRzgaJjdXJseC1zZWxmI2p1bWJmPWMycGEuYXNzZXJ0aW9ucy9jMn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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPZYQFw9z95Rx72HSACz6TpWriUI2n1UH3CJoXHyS8mWUtRrPk1zbbi891ui1Rwf3jsOB345MolMOxn48tbcrUKTGJM=A support agent: the model reads and drafts; code decides what may happen and what a human must seeTicketfree-form text,customer, order idTriageintent + confidence(model)Policyrules in code:confidence, limits,legal wordsToolspreconditions insidethe tool, idempotentReplyconfirmation oran honest 'cannot'Escalate to a humanpacket: summary, order, what was tried, suggestionThe tool refuses what the rules forbid (not shipped, in window, not refunded, your order only), whatever the model asks for.Escalate on low confidence, large amounts, legal or fraud language, billing disputes and anything outside the scoped intents.Tenant and customer come from the session, never from model arguments (Level 11 module 7); refunds carry an idempotency key.Operations agents: read-only runs; changes need approval; destructive commands are blocked; blast radius and write-rate caps.Start narrow: a few intents, assist mode first, then raise autonomy where measured error is low and mistakes are reversible.
Triage, policy, tools with preconditions, reply or escalate.

Results

Policy (1,000 tickets, assumed inputs) Automated Wrong mutating actions Refunded wrongly Wrong replies Total cost
Assist only 0% 0 $0 0 $4,020
Autonomous, tool checks only 86% 24 $1,003 62 $2,129
Guarded (threshold 0.8, $50 cap) 33% 3 $0 7 $2,750
Guarded threshold Automated Wrong actions Total cost
0.5 57% 12 $2,047
0.6 55% 8 $2,015
0.7 54% 4 $1,990
0.8 33% 3 $2,750
0.9 17% 0 $3,356
Classifier accuracy Autonomous cost (wrong actions) Guarded 0.8 cost (wrong actions)
95% $1,385 (10) $2,654 (2)
88% $2,129 (24) $2,750 (3)
75% $4,157 (55) $2,981 (10)
Operations command Tier Decision
get pods -n payments, logs api-7f, describe node n3 read-only run
restart service api, update config set timeout=30 mutating needs approval
scale deployment api --replicas 40 (12 targets) mutating, large blast radius needs approval
rm -rf /var/lib/data, DROP TABLE users, git push -f origin main, kubectl delete pod ... --force destructive blocked
AAAWgmp1bWIAAAAeanVtZGMycGEAEQAQgAAAqgA4m3EDYzJwYQAAABZcanVtYgAAAEdqdW1kYzJtYQARABCAAACqADibcQN1cm46YzJwYToxYzdiODhhZS1jNDlkLTQ1YmMtOWI0OS00ZmIyZWVhNmIxMzUAAAADl2p1bWIAAAApanVtZGMyYXMAEQAQgAAAqgA4m3EDYzJwYS5hc3NlcnRpb25zAAAAALxqdW1iAAAARGp1bWRjYm9yABEAEIAAAKoAOJtxE2MycGEuaW5ncmVkaWVudC52MwAAAAAYYzJzaBMSO5BXxiV9AuXC/O43dBkAAABwY2JvcqNpZGM6Zm9ybWF0bWltYWdlL3N2Zyt4bWxqaW5zdGFuY2VJRHgseG1wOmlpZDpmNjM0Y2JkYS1kZWVkLTQ4ODYtODU2Ny1kNzY3NzAxZmZkZjRscmVsYXRpb25zaGlwaHBhcmVudE9mAAAB4mp1bWIAAABBanVtZGNib3IAEQAQgAAAqg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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPZYQI5BNCFfm258vEPtaGc18irL370nhkF9L+C8Pagp4LN9/ug+4qfhExfiNZzLPDxnmFmAfc6pYSNUZQsKHu7i+BU=1,000 simulated tickets (assumed mix, 88% classifier accuracy, assumed costs): autonomy, mistakes and costShare handled without a human, mutating mistakes, total costassist only (human does all)0% automated0 wrong actions ($0 refunded wrongly)cost $4020autonomous, tool checks only86% automated24 wrong actions ($1003 refunded wrongly)cost $2129guarded, threshold 0.8, $50 auto-refund cap33% automated3 wrong actions ($0 refunded wrongly)cost $2750Confidence threshold sweep (guarded)threshold 0.557% automated, 12 wrong, cost $2047threshold 0.655% automated, 8 wrong, cost $2015threshold 0.754% automated, 4 wrong, cost $1990threshold 0.833% automated, 3 wrong, cost $2750threshold 0.917% automated, 0 wrong, cost $3356Assumed: $0.02 per ticket model cost, $4 per human escalation, $15 per wrong action, $3 per wrong reply. Cost-optimal threshold shifts with these.The cliff between 0.7 and 0.8 comes from my assumed confidence distribution; a real model's calibration must be measured.
Autonomy, mistakes and cost under three policies and a threshold sweep.
  1. There is no universally right autonomy level; it follows classifier accuracy and the cost of a wrong action.
  2. A moderate threshold plus tool preconditions was cheapest here and cut wrong actions sixfold compared with full autonomy.
  3. Cost totals depend on my assumed penalties; replace them with your real cost of a wrong refund, a human minute and an unhappy customer.

Design rules

  • Scope to a few intents with written rules; route everything else to people.
  • Keep policy in code, not in the prompt; the model only proposes.
  • Put preconditions in the tools and make state changes idempotent.
  • Derive customer and tenant from the session, never from the model's arguments.
  • Escalate early and well: thresholds, limits, language triggers, a handoff packet, and an SLA clock.
  • Start in assist mode, collect real error rates, then raise autonomy one intent at a time.
  • Measure calibration before trusting confidence thresholds.
  • Risk-tier operations commands; unknown means approval; destructive means blocked.
  • Cap blast radius and write rate; pair with a kill switch (Level 11 module 11).
  • Review samples weekly of both automated and escalated tickets.

Interview questions, with the follow-ups

Design a customer-support agent that issues refunds.

"Scope to refund, cancel, address change and status. A model classifies intent with a confidence; deterministic policy decides: low confidence, amounts above a limit, legal or fraud language and billing disputes go to a human with a handoff packet. Tools enforce preconditions (delivered, in the window, not already refunded, the customer's own order) and take idempotency keys. I launch in assist mode, measure error rates and calibration, then automate low-risk intents first." Follow-up: "How do you set the confidence threshold?" Sweep it on real traces against a cost model of escalation versus mistakes; in my simulation the cheapest threshold was not the most conservative.

Should the agent be fully autonomous?

"It depends on accuracy and the cost of a wrong action. In my simulation at 95 percent accuracy full autonomy was cheapest; at 75 percent it was the most expensive and made 55 wrong actions. So I make autonomy a per-intent setting driven by measured error and reversibility." Follow-up: "Which actions stay human?" Irreversible or high-value ones, legal and fraud cases, and anything the agent cannot explain.

What does a good escalation look like?

"A packet with the ticket, order, reason, what the agent tried and a suggested action, routed by skill and urgency, so the customer is not asked again. I track escalation rate, time to pickup and how often the human overrides the suggestion." Follow-up: "What if escalations overwhelm the team?" Look at the top escalation reasons, fix those intents or thresholds, and add queue priorities and SLAs.

How would you design an operations agent that can restart services?

"Risk tiers: read-only runs freely, mutating actions need approval, destructive classes are blocked, unknown commands count as risky. Dry-run first, a blast-radius cap, a per-hour write limit, an audit trail and a kill switch." Follow-up: "How do you avoid approval fatigue?" Auto-approve low-blast-radius reversible actions after measured safety, and keep humans on the rest (Level 10 module 5).

Common mistakes

  • Policy only in the prompt, so one clever message overrides it.
  • Tools with no preconditions, trusting the model to check.
  • Taking customer or tenant ids as model arguments.
  • No idempotency key, so a retry refunds twice.
  • Choosing a confidence threshold by feel without measuring calibration.
  • Automating everything on day one.
  • Escalating with no context, so the human starts over.
  • Counting only automation rate, ignoring wrong actions and reopens.
  • Letting an operations agent run arbitrary shell commands.
  • No sampling of automated tickets, so silent errors persist.

What the example does not do

  • No model: triage is a simulated noisy classifier with invented calibration; real models fail differently and their confidence is often poorly calibrated.
  • Single-turn tickets: no conversation, clarifying questions, tone, language or customer history.
  • Invented mix, order states and costs: the cost-optimal policy will move with your numbers.
  • Human errors are ignored: escalated tickets are assumed handled correctly, which flatters the assist and guarded modes.
  • Wrong replies are cheap: the model of customer harm (churn, complaints) is crude.
  • Operations agent is a classifier of strings, not a real shell guard; regular expressions are easy to evade, so it needs real permissions and sandboxing underneath (Level 10 modules 2 and 3).
  • No SLA, queueing or staffing model for escalations.
  • Optional real experiment (I did not run this): replay a month of your real tickets through a real classifier in shadow mode, measure accuracy, calibration, wrong-action rate and escalation load, and recompute the cost table with your own penalties.

Check yourself

Why put the refund rule in the tool and not only in the prompt? (A tool enforces its own preconditions, so a confused model cannot talk past it. In autonomous mode the tools blocked 62 wrong attempts, which became unhelpful replies instead of wrong actions.)

For the curious More autonomy is not simply cheaper

In the 1,000-ticket simulation, autonomous with tool checks automated 86 percent but made 24 wrong mutating actions ($1,003 refunded wrongly); the guarded policy automated 33 percent with 3 wrong actions and $0 wrongly refunded. A threshold of 0.7 was the cheapest sweep point at $1,990. Mix, accuracy and costs are assumed.

What you will use daily at work

Practice What it looks like
Scope to a few intents with clear rules Send billing and unusual cases to people.
Keep policy in code Confidence threshold, refund cap, legal and fraud words.
Key refunds so a retry does nothing twice And scope the key to the customer and order.
Hand off with a full packet Ticket, order, reason, what was tried, suggestion.

Draft: confirm your real refund limits, escalation rota and what your support platform logs for audit.

What you must be able to say (one page)

  • Support agents are the most common production agent. They handle common inquiries, process refunds, update orders and escalate complex issues to humans, around the clock. The running example is a support team reading free-form emails (refund a broken mug, cancel an unshipped order, change an address), looking up the order, calling an API and typing a confirmation. Operations (IT help desk) agents manage access, troubleshoot, deploy updates, respond to incidents and escalate unresolved issues.
  • Scope narrowly. Too narrow (only cancellations) misses the high-volume requests; too broad ("automate every support inquiry") drowns in edge cases such as billing disputes, recommendations and technical troubleshooting. Pick a few intents with clear rules, and send the rest to people.

  • The model reads and drafts; code decides. Triage (intent plus confidence) comes from a model; the policy lives in code: confidence threshold, refund limits, legal and fraud language, billing disputes always to a human. Tools enforce their own preconditions (refund only if delivered, inside the 30-day window and not already refunded; cancel and address change only before shipping; an order that is not yours looks the same as one that does not exist), and refunds take an idempotency key so retries cannot pay twice (Level 11 module 1). Routing rules can also be encoded in the orchestration graph.

  • Autonomy is a dial, not a switch. The range runs from fully manual, to assisted "Ask" mode, to fully autonomous execution. In my simulation (1,000 tickets; assumed mix, 88 percent classifier accuracy and costs): assist-only automated 0 percent at $4,020 cost; autonomous with tool checks only automated 86 percent with 24 wrong mutating actions ($1,003 refunded wrongly), 62 wrong replies, cost $2,129; guarded (threshold 0.8, $50 auto-refund cap) automated 33 percent with 3 wrong actions and $0 wrongly refunded, cost $2,750.
  • Tool preconditions blocked 62 wrong attempts in autonomous mode (for example a refund requested for an order not yet shipped). They turned into wrong or unhelpful replies ("I cannot do that") instead of wrong actions, which is the better failure. Safety that lives in the tool survives a confused model.
  • The right autonomy depends on accuracy and on the cost of a mistake. Sweeping the confidence threshold: 0.5 gave 57 percent automated, 12 wrong, $2,047; 0.7 gave 54 percent, 4 wrong, $1,990 (the cheapest, and 6 times fewer wrong actions than autonomous at about the same cost); 0.9 gave 17 percent, 0 wrong, $3,356. Changing classifier accuracy: at 95 percent, autonomous was cheaper than guarded ($1,385 vs $2,654 at threshold 0.8); at 75 percent it was far worse ($4,157 vs $2,981, 55 wrong actions). The cliff between 0.7 and 0.8 is an artifact of my assumed confidence distribution; a real model's calibration must be measured, and thresholds tuned on real traces.
  • Escalation is a feature. A handoff packet gives the human the ticket, the order, the reason, what the agent already tried and a suggestion, so nobody re-asks the customer. Escalate on low confidence, large amounts, legal or fraud language, billing disputes, repeated failures and angry customers.
  • Operations agents need risk tiers. My sample classifier sorts commands into read-only (run), mutating (needs approval), forbidden (blocked: rm -rf, DROP TABLE, --force, force push), treats unknown commands as risky, caps the blast radius (targets per action) and the write rate per hour (a circuit breaker; Level 10 module 9). Dry-run first, approval for production changes, an audit trail.
  • Measure what the business cares about: resolution rate, cost per resolved ticket (Level 11 module 5), customer satisfaction, escalation quality, wrong-action rate and reopen rate; sample escalations and automated resolutions for human review weekly.
  • Honest limits: a simulated classifier, invented mix and costs, six intents. Real tickets are ambiguous, multi-turn and emotional; real calibration is worse than my uniform assumption.