
HiringsAI blog
Supervision is four duties, not a dashboard: see what the agent did, gate what it may do, stop it when it should stop, measure whether it is improving. How LangChain, the tracing tool, OpenAI and Anthropic document each duty.
An unsupervised agent is not an autonomous success story; it is an unaudited one.
An unsupervised agent is not an autonomous success story; it is an unaudited one. The documentation of four organizations converges on the same four duties. See: the tracing tool's observability documentation defines traces as the series of steps an agent takes from input to output, each step a run you can inspect, with selective tracing when you only want some invocations and anonymizers to keep sensitive data out of the traces. Gate: LangChain's human-in-the-loop middleware checks every tool call against a configurable per-tool policy and pauses execution for a human decision, which can be approve, edit, reject or respond, with conditional interrupts that only pause when a predicate on the call's arguments says so. Stop: OpenAI's practical guide names two triggers that should hand control to a person, exceeding failure thresholds and high-risk actions, and Anthropic's guide notes that agents commonly carry stopping conditions like a maximum number of iterations. Measure: OpenAI's guide prescribes evals to establish a performance baseline before optimizing, and Anthropic's closes its pattern catalog by repeating that you should measure performance and iterate. Four duties, four mechanisms, all quoted from the pages below.
Four pages were: LangChain's human-in-the-loop middleware documentation, the tracing tool's observability guide, OpenAI's practical guide to building agents, and Anthropic's building-effective-agents engineering guide. The four-duty framing is our synthesis; each mechanism is attributed to its page.
The tracing tool's observability guide defines the vocabulary: a trace is the series of steps your agent takes from input to output, and each individual step is a run.
The tracing tool's observability guide defines the vocabulary: a trace is the series of steps your agent takes from input to output, and each individual step is a run. With tracing enabled you can debug a locally running agent and monitor it through dashboards, and the guide's own pattern list for workflow tracing is pointed: follow the trace to see how data flows through each step. Two operational details matter for real supervision. Selective tracing, via a context manager, lets you trace specific invocations or parts of the agent rather than everything, so the volume stays reviewable. And anonymizers can prevent sensitive data from being logged in traces at all, which is the difference between a supervision system your security team accepts and one it bans. Supervision you cannot show to security is not supervision; it is surveillance debt.
LangChain's human-in-the-loop middleware page is the most concrete supervision mechanism in the reviewed set.
LangChain's human-in-the-loop middleware page is the most concrete supervision mechanism in the reviewed set. You add the middleware to the agent with an interrupt_on mapping: each tool name maps to True (pause with all decision types allowed), False (auto-approve), or a config naming the allowed decisions. The page's own example is instructive: write_file gets full review, execute_sql allows only approve and reject (no editing), and read_data is not gated at all. When a call matches the policy, execution pauses, the checkpointer saves the graph state, and a human decision resumes it. Four decision types are defined: approve executes the tool as proposed, edit modifies the arguments first (the page warns to edit conservatively, since big changes can make the model re-evaluate and act unexpectedly), reject skips the call and returns feedback to the agent, and respond answers an ask-user style tool directly. The page is careful about the last one: respond is for the human acting as the tool, and it must not be used to deny a side-effecting tool, because its message is treated as a successful tool result.
Two refinements keep the gate usable at volume. Conditional interrupts add a when predicate to a tool's config: the predicate receives the call request and returns True to interrupt or False to auto-approve, so you can gate on the arguments, pausing only the DELETEs and letting the SELECTs through, to borrow the page's SQL example shape. And batched versus per-call modes decide whether simultaneous paused calls arrive as one review queue in order or one interrupt each. Note what the gate is not: it is code around the tool call, not an instruction to the model to behave. A policy the model could talk its way out of is not a gate.
Supervision includes the right to stop.
Supervision includes the right to stop. OpenAI's practical guide names the two escalation triggers directly: exceeding failure thresholds, where you set limits on agent retries or actions and escalate when the agent crosses them, and high-risk actions, where anything sensitive, irreversible or high-stakes waits for human confirmation. Anthropic's guide adds the quieter stop: agents commonly include stopping conditions such as a maximum number of iterations to maintain control, and agents pause for human feedback at checkpoints or when they hit blockers. Read together, the two guides describe a run with three exits: it finishes, it asks, or it is halted by a limit you set in advance. A run with no designed exit is not autonomy; it is drift.
Both guides treat measurement as the precondition for every other decision.
Both guides treat measurement as the precondition for every other decision. OpenAI's model-selection advice is sequenced: set up evals to establish a performance baseline, meet your accuracy target with the best models available, then optimize cost and latency by swapping in smaller models where they still achieve acceptable results, an approach that also tells you where the smaller models fail. Anthropic's guide closes its entire pattern catalog with the same instruction generalized: the key to success, as with any LLM feature, is measuring performance and iterating on implementations, and complexity should be added only when it demonstrably improves outcomes. Its evaluator-optimizer pattern is the measurement loop built into the workflow itself, used when there are clear evaluation criteria and iterative refinement provides measurable value. Supervision's fourth duty is what turns the other three from precautions into a system: traces tell you what happened, gates and stops control what may happen, and evals tell you whether any of it is working.
Supervising an agent is a job with four duties, and each one has a documented mechanism rather than a hope.
Supervising an agent is a job with four duties, and each one has a documented mechanism rather than a hope. See every run as a trace, with sensitive data anonymized and volume kept reviewable. Gate the tools with a written policy, per tool and per call, with a human decision behind the dangerous ones. Design the exits: finish, ask, or halt at a limit you chose. And measure against a baseline, because the other three duties only tell you the agent behaved; the evals tell you it is good. The agents that earn more autonomy are the ones whose supervision produced the evidence for it.

Long-form guides on building, automating and AI computing.