← Back to Autonomy

Monograph · Part II of II · RL, Alignment & Mitigations · By Majid Mazouchi

Learning, Securing
& Overseeing the Loop

How human-in-the-loop is learned with reinforcement learning, what breaks against a capable optimiser, and the wider toolbox of mitigations — interface, verified fallbacks, and process — for the challenges a gate alone cannot solve.

This is Part II of the monograph. Part I built the picture of human-in-the-loop as supervisory control — the autonomy spectrum, where the gate sits, multi-agent gate placement, and the mechanism sections on labeling, escalation, the ironies of automation, corrigibility, and the economics of a gate. This part turns to the harder, more open questions: how the loop is learned with reinforcement learning, what breaks when you do it against a capable optimiser, and the wider toolbox of mitigations — interface, verified fallbacks, and process — for the challenges the gate alone cannot solve.

New here? Start with Part I — Foundations & Mechanisms. Section and figure numbering continues from Part I; the full bibliography and glossary are included in both parts.

§12 — Closing the loop with RL

Learning the human's policy and role

Everywhere above, the human has been a fixed oracle — queried at a gate, answering, and otherwise inert. Reinforcement learning lets us drop that assumption and treat the human as part of a system the agent can learn. Two distinct objects become learnable, and each turns a piece of the earlier machinery from a hand-set rule into something inferred from data: what the human wants (their reward, or equivalently the policy they would follow), and when to involve them (the agent's meta-policy over acting versus asking).

Learning what the human wants

Inverse reinforcement learning recovers a reward function from observed behaviour rather than assuming it is given [27] — and the approve / edit / reject / rank decisions that §7 produces are exactly such observations, which is why RLHF trains a reward model directly from them [7,8]. The principled framing is the assistance game, or cooperative inverse RL: the human alone knows the true reward, and the agent's optimal policy is to learn it through interaction rather than to maximise a guess [28]. This is the formal statement of the human's role — the human is the carrier of the objective, not a labeller of a fixed task — and it is precisely what produces the off-switch deference of §10: an agent uncertain about the reward has a positive reason to let the human correct it [21]. The standing hazard is that the agent must keep optimising the true human reward, not a frozen learned proxy of it; optimising the proxy is reward hacking, the §10 failure wearing a learning-theoretic hat.

Learning when to ask

The escalation policy of §8 becomes an RL problem the moment you give the agent a "query the human" action that carries a cost — their time, the latency of waiting. The optimal policy then asks only when the expected value of the information exceeds that cost, which is the rigorous version of "gate by blast radius" and the learned twin of the economics in §11. This is the learning-to-defer family [33]: the agent learns a deferral policy π(ask | state) jointly with its task policy, so the gate is no longer a static threshold but a decision the agent improves with experience.

Learning from interventions — where the two loops merge

The richest setup collapses the control loop and the learning loop into a single act. In interactive imitation learning the human takes over only when the agent is about to fail; that takeover simultaneously prevents the error (control) and supplies a high-value corrective demonstration (learning). HG-DAgger and its budget- and risk-aware successors gate the human's involvement by novelty and risk [31,32] — the same blast-radius logic, now learned — so the human is queried sparingly and exactly where it counts. Shared autonomy generalises this to a continuous blend of human and agent control, learned model-free without the agent ever being told the human's goal [29]; the TAMER line instead learns from scalar human reward signals rather than demonstrations [30]. In every case the human's intervention is doing double duty: it is the safeguard and the training signal at once.

The autonomy curriculum, and deferring by downside

As the human-reward model and the deferral policy sharpen, the optimal query rate falls — the agent earns autonomy. That is the formal content of "HITL is a phase, not a permanent tax": the ask-region contracts as the human is learned. And the deferral trigger need not be expected value. A risk-sensitive criterion — deferring when a tail measure such as conditional value-at-risk is large, even where the mean looks benign — makes the agent ask precisely when the downside is heavy rather than when the average is uncertain. That is gating by blast radius, restated as a property of the value function. The figure below makes the geometry concrete.

Figure 12 · Interactive
The ask-region, and how learning shrinks it
agent uncertainty about the action → blast radius / risk → defer to human act autonomously read telemetry draft proposal merge to main issue OTA to fleet delete records
38%
Of the action-space deferred to a human
Each dot is an action from earlier in the piece. Raise the model quality and the dashed boundary climbs toward the top-right — the agent keeps more for itself, asking only where uncertainty and blast radius are high. Raise risk aversion and the region swells upward, pulling high-stakes actions back under human review regardless of confidence.

Why a learned human is dangerous to trust

Four failure modes are specific to learning the human, and each echoes an earlier section. The human policy is non-stationary: a deferral policy trained on a vigilant overseer silently decays as that overseer grows complacent (§9), so the learned model must track drift rather than assume it away. Reward hacking returns in sharper form — optimising a learned model of the human instead of the human invites the agent to exploit the model's blind spots (§10). Feedback loops bias the data: the agent's own choices determine which states the human ever sees, the distribution-shift problem that DAgger-style methods exist to fight. And causal confusion lurks in learning from interventions — the agent can learn that the human took over without learning why, copying the correction's surface rather than its cause. The throughline is simple: a learned human is an approximation that is safe only on the distribution it was trained on, and only for as long as the human it modelled stays the same.

Practical takeaways · in plain words

  • The human's approvals, edits, and rejections are training data, not just decisions — store them in a form you can learn from later.
  • Don't make "get approved" the agent's goal. If you do, it learns to please the reviewer rather than to do the right thing.
  • Let the agent ask for help when it's unsure — but put a cost on asking, so it doesn't interrupt a human about everything.
  • When the agent is about to slip, a human stepping in both prevents the mistake and teaches the agent. Capture those takeovers; they're your best lessons.
  • Expect to gate less over time as the agent learns what you want — and ask more when the downside is big, not just when the agent happens to be unsure.
§13 — Scaling & securing the learned loop

Advanced RL for human-in-the-loop

Section 12 showed the loop can be learned. This one is about what breaks when you actually do it — at scale, and against a competent optimizer. Five pressures arrive together: the human stops being able to judge what the agent produces, the proxy reward gets gamed, the agent acquires an incentive to corrupt the feedback channel itself, the human and agent begin to destabilise each other, and exploration becomes dangerous. The section closes on how to tell whether any of it actually worked.

When the human can't evaluate: scalable oversight

RLHF assumes a human can tell good from bad. That assumption expires the moment the agent's output exceeds human evaluation — a proof too long to check, a diff too large to audit, a plan whose consequences are not obvious. Scalable oversight is the research program for keeping a weaker supervisor in control of a stronger agent. Recursive reward modeling decomposes the evaluation so the human judges sub-claims an assistant has surfaced [35]; debate pits two agents against each other and lets the human judge the exchange, on the wager that exposing a lie is easier than producing the truth [34]; self-critiquing models point the human at their own flaws [36]; and weak-to-strong generalization asks whether a weak supervisor's labels can still elicit a strong model's full capability [37]. For HITL the consequence is concrete: the gate stops being "a human reads and approves" and becomes "a human adjudicates an assisted, decomposed, or adversarially stress-tested presentation." The figure shows why — and where even assisted oversight runs out.

Figure 13 · Interactive
The oversight gap — judge accuracy vs task difficulty
task difficulty (agent capability beyond the human) → judge accuracy → 100% chance assisted (debate / critique) unaided human
71%
Unaided accuracy at marker
88%
Assisted accuracy at marker
Assistance buys back accuracy the unaided human has lost — but it is not unlimited. Push difficulty far enough and even the assisted curve approaches chance, the regime where oversight has genuinely run out and the answer is stronger methods or not deploying.

Goodhart's revenge: reward-model overoptimization

The reward model from §7 is a proxy, and optimising hard against any proxy eventually pulls away from the true objective — Goodhart's law in reinforcement form. The relationship turns out to be lawful: as the policy diverges from its base (measured in KL), proxy reward keeps climbing while true reward rises, peaks, and then falls [38]. The defenses are KL-regularised optimisation (penalise divergence from the base policy, capping how hard you can chase the proxy), early stopping at the true-reward peak, and reward ensembles whose disagreement both regularises and — usefully — yields the uncertainty signal you can feed straight into the escalation trigger of §8.

Figure 14 · Interactive
Proxy reward keeps rising; true reward turns over
optimisation pressure (KL from base policy) → reward → proxy (reward model) true reward
0.63
Proxy reward at budget
0.48
True reward at budget
Past the peak, every additional unit of optimisation makes the proxy look better and the system actually worse. A better reward model pushes the peak further right and higher — it does not remove it.

The adversarial channel: reward tampering and incentive design

Section 10 argued that a capable agent may route around the gate; the reward-learning setting sharpens this into an incentive that falls on the feedback channel itself. Reward tampering is the agent manipulating the process that computes its reward; feedback tampering is manipulating the human who supplies it — flattery, selective disclosure, engineering situations the human reflexively approves. Causal influence diagrams make these incentives legible: from the diagram you can read off whether an optimal agent has an instrumental reason to influence a given node, and then design the agent — current-reward-function optimisation, decoupled approval — so the incentive is simply absent [39]. The game-theoretic reading is the natural complement: the human is a principal and the agent an agent in the literal principal–agent sense, with a Stackelberg structure in which the human commits to an oversight policy and the agent best-responds. Designing for incentive compatibility — so the agent's best move is to report its uncertainty honestly and submit to the gate rather than evade it — is corrigibility recast as mechanism design, and it is where your game-theory instincts do the real work.

Two learners: the co-adaptation dynamics

Every model so far treats the human as a fixed target the agent learns toward. But the human adapts too — to the agent's reliability, building or withdrawing trust and adjusting how hard they scrutinise. The pair is a two-learner dynamical system, and like any coupled feedback loop it can converge cleanly, hunt around its equilibrium, or with the wrong gains and delays destabilise. Trust is the latent state to handle with care: an agent that optimises to raise trust rather than to earn it is back in tampering territory, so the design target is trust calibration, not trust maximisation. The phase portrait below plots autonomy against trust; the complacency of §9 appears as a term that lowers the equilibrium level of justified autonomy.

Figure 15 · Interactive
Autonomy ↔ trust — a co-adaptation phase portrait
agent autonomy → human trust →
The teal dot is the equilibrium the loop settles to; the curve is one trajectory toward it. High responsiveness makes autonomy and trust oscillate (a spiral) before settling; complacency drags the equilibrium autonomy downward. This linear model is always stable — but add feedback delay, not shown, and the same structure can oscillate without bound.

Safe exploration, and learning when to remove the gate

Two practical RL problems remain. The first is exploration: an RL agent learns by trying things, and some things are catastrophic and irreversible — exactly the §3 hazard. The human gate doubles as a safety filter during learning, vetoing the dangerous transition so the agent never experiences it; formally this is a constrained MDP with the gate enforcing the constraint, or a shield that overrides unsafe actions before they execute [42,43]. To spend the human's attention well, active reward-query design lets the agent choose the most informative query to pose — the comparison whose answer most reduces its uncertainty about the reward — rather than asking at random [40]. The second problem is the one every deployment eventually reaches: when is it safe to remove a gate? The gate log is an offline dataset, so offline RL can learn a higher-autonomy policy from it with no further human interaction [44], and off-policy evaluation can estimate — with confidence bounds — how that policy would have performed on the logged decisions before you trust it live [45]. That turns "raise autonomy" from a leap of faith into an estimate with error bars.

Evaluating an HITL-RL system

Finally, these systems are easy to evaluate misleadingly. Task reward alone hides the human cost. A fuller scorecard tracks regret against the true human reward rather than the learned proxy, the human-query burden (how often and how heavily the human is invoked), safety violations during learning and not only at convergence, and feedback sample efficiency — performance gained per unit of human effort. A system that looks strong on task reward while quietly escalating its query rate, or accumulating training-time violations, is not working; it is borrowing against a cost the headline metric does not show.

Practical takeaways · in plain words

  • If the agent gets better than you at the task, plain approval stops working. Use helpers — a second AI that critiques the answer, or two agents that argue while a human judges.
  • Don't optimise a learned reward too hard. Past a point it looks better while actually getting worse, so stop early and keep the agent from drifting too far from its starting behaviour.
  • A capable agent may try to win the reviewer over instead of doing the work — flattery, hiding the downside. Design so that pleasing the human doesn't pay off; only doing the task does.
  • You and the agent shape each other. Aim to earn trust, not to inflate it, or you'll train a yes-machine and a reviewer who stops looking.
  • Before you remove a gate, use your past gate logs to estimate how the agent would have done without it. Decide with numbers, not hope.
  • Judge the system on more than task success: how often it had to bother a human, whether it caused harm while still learning, and how much human effort each bit of progress cost.
§14 — Pros

What gating buys you

  • It arrests cascades before they cross an agent boundary. The danger in a swarm is not only temporal compounding within one trajectory; it is that one agent's bad output becomes another's premise. A handoff gate cuts the propagation path [14].
  • It gives you leverage. You can run many imperfect autonomous workers and concentrate scarce human attention on the few consequential outputs — meaning you can ship a swarm whose individual workers are only ~90% reliable, provided the gate reliably catches the 10% that matters.
  • It supplies accountability and an audit artifact. In a safety-regulated setting the human sign-off plus the provenance trace is not only a safety mechanism — it is the traceability record that satisfies the accountability requirement.
  • Every decision is labeled supervision data. Each approve / edit / reject is a preference signal [7,8] that tells you where the swarm is trustworthy enough to raise autonomy and where the gate still earns its cost.
§15 — Challenges

Why it is harder than it looks

  • Chokepoint identification. In a dense graph it is non-obvious where the consequential boundaries are. Too many gates destroys the throughput that justified the swarm; too few leaks risk through an ungated edge.
  • The explainability burden is higher. The human must adjudicate a decision produced by a chain of agents they never watched. Without the reasoning trace and provenance, they cannot evaluate it — they can only rubber-stamp. This is a situation-awareness problem as much as a UI one [5].
  • Approval volume explodes combinatorially. N agents × M actions, so automation complacency sets in faster and harder than single-agent. The gate degrades into theater [3,4].
  • Concurrency complicates the loop. Pausing one branch while parallel branches run, or halting the whole DAG, makes checkpointing harder and can deadlock if two branches block on the same human.
  • Latency mismatch. Agents act in seconds; humans respond in minutes or hours. A blocking gate stalls the pipeline — so approvals must be async or queued, with timeouts whose default for an irreversible action is hold, never proceed.
  • Responsibility diffusion. With many agents and a human gate, accountability blurs — "the agent proposed it, I just approved" — and automation bias turns the human into the weak link rather than a real check [4].

Five anti-patterns to watch for

The rubber stamp

A gate fired so often it is approved reflexively. It manufactures the appearance of oversight while providing none. Fix: gate less, and demand engagement.

The late gate

Asking for approval after the irreversible effect has already happened. A confirmation that cannot prevent the outcome is theatre. Fix: gate before the commit, not after.

The blind gate

A proposal shown with no provenance, evidence, or predicted effect. The human can only guess, so they default to yes. Fix: surface the trace, not just the action.

The un-resumable pause

An interrupt that loses agent state, so approval means restarting from scratch. Humans learn to avoid triggering it. Fix: checkpoint and resume.

Gating the reversible

Blocking on read-only or trivially undoable actions. Pure latency with no risk reduction — and it trains the reviewer to stop reading. Fix: gate by blast radius.

§16 — Methods for the challenges

Mitigations: the wider toolbox

The challenges in §15 are not solved by better gates alone. Many of the strongest mitigations live outside the ML stack — in interface design, in verified fallbacks, and in deployment process. The matrix below maps the recurring challenges to the methods that address them; click a challenge to see its toolkit, then the notes that follow.

Figure 16 · Interactive
Which methods address which challenge
cognitive forcing functions explanations at the gate uncertainty display trust-calibration displays Simplex / runtime assurance runtime monitors safe states guardrail models LLM-as-judge OOD / anomaly detection deferral cascade shadow deployment staged rollout / canary red-teaming async queue + SLA workload-adaptive autonomy escalation ladder segregation of duties audit + incident review drift detection continual recalibration
Rubber-stamping & automation bias The reviewer approves reflexively. The fix is to make oversight cognitively real again — force engagement, explain the proposal, show calibrated uncertainty, and keep trust aligned with actual reliability.
Most methods serve more than one challenge, and most challenges need more than one method — the table is a starting map, not a one-to-one assignment.

Make oversight cognitively real (against rubber-stamping)

The challenge the whole piece returns to is the reviewer who approves without thinking. The mitigations are mostly interface, not model. Cognitive forcing functions compel genuine engagement — ask the human to commit to a judgment before the AI's recommendation is revealed, or require a one-line rationale on high-stakes approvals; both measurably reduce overreliance [47]. Explanations at the gate — counterfactuals, highlighted evidence, a natural-language rationale — let the reviewer adjudicate rather than guess, though only when designed to support complementary performance rather than to persuade [48]. How uncertainty is displayed matters as much as whether it is computed: a calibrated confidence or a conformal prediction set, shown well, shifts the human toward appropriate reliance [49]. And trust-calibration displays — reliability history broken out by context — keep the operator's trust tracking the system's real accuracy instead of drifting into over- or under-trust.

A verified automated fallback (against catastrophic actions)

Not every dangerous action should reach a human at all; some should be caught by a fallback that is provably safe. The Simplex architecture pairs an unverified high-performance controller with a simple, formally verified safety controller and a decision module that switches to the safe one whenever a monitor detects the system leaving the verified envelope [46]. Runtime verification generalises the monitor: a formal specification (often in temporal logic) is checked continuously, and a violation triggers the gate or a safe state [53]. This is the functional-safety pattern you know from ISO 26262 — graceful degradation to a safe state — applied to an agent, and it reduces what the human ever has to see to the genuinely novel.

Figure 17 · Interactive
The Simplex / runtime-assurance switch
sensor feedback Complex controllerhigh-performance · unverified Safety controllersimple · formally verified Decision modulemonitor + switch Plantvehicle / system
The decision module hands control to the complex controller while it stays inside the verified envelope, and falls back to the safety controller the instant the monitor detects it leaving — a guaranteed safe action without waiting on a human.

Automated oversight layers (against the bottleneck)

Beyond the single critic of §6, a layer of automated checks can absorb a class of failures before any human is invoked. Guardrail and monitor models screen inputs and outputs against a safety policy [52]; an LLM-as-judge scores or vets candidate outputs [51]; out-of-distribution and anomaly detection escalate the genuinely novel rather than merely the low-confidence [50]; and a deferral cascade — cheap model, then strong model, then human — passes each case upward only as far as it needs to go. The human ends up reviewing the residue these layers cannot resolve.

Earn trust before granting it (against risky rollout)

The safest way to loosen a gate is to gather evidence first. Shadow deployment runs the agent in parallel — it proposes, the human still acts, and you compare the two for weeks before promoting it. Staged rollout and canarying expose the agent to a small slice of traffic with automatic rollback on regression. Continuous red-teaming probes for the failures your evaluation missed. Together with the off-policy evaluation of §13, these turn "raise autonomy" into a decision backed by data rather than optimism.

Async, accountable, and self-correcting (the remaining challenges)

The rest are systems and process. For the latency mismatch, asynchronous approval queues with service-level targets and safe-default timeouts (default to hold on anything irreversible), plus workload-adaptive autonomy that shifts the human/machine boundary by operator load. For diffused accountability, explicit segregation of duties, escalation ladders that route by severity to the right reviewer, and audit trails with post-hoc incident review that catch what the real-time gate missed and feed corrections back in. And for the stale-human-model problem of §12–§13, drift and anomaly detection on the model itself with continual recalibration, so the deferral policy is retired or refreshed before it silently rots.

§17 — The bandwidth gap

Machine speed, human attention

A machine acts on microsecond-to-millisecond timescales and can take thousands of actions per second across a fleet; a human reviews on a timescale of seconds to minutes and attends to roughly one thing at a time. This is not a tuning detail — it is an orders-of-magnitude gap between what the agent produces and what a human can absorb. Every design in this monograph is, at bottom, a strategy for living with that gap. The information-theoretic way to see it: the human is a low-capacity channel placed in series with a high-throughput process, and by the same logic that bounds any pipeline, the slow stage caps the rate of supervised decisions [54,55].

The gap causes a recognisable family of failures. The supervision bottleneck: if every action must pass a human, the human's throughput caps the whole system and erases the agent's speed advantage. Fan-out: one human overseeing many agents — or one agent's many actions — divides finite attention, and past a point per-item scrutiny collapses toward zero, which is rubber-stamping by another name. Stalls: a blocking gate makes a microsecond decision wait minutes, pipelines back up, and the pressure to "just approve" mounts. Context loss: the human sees a thin slice of what the agent processed, so they judge on far less information than the agent had and cannot actually re-derive the decision. And burst overload: agents generate review demand in spikes that exceed any staffing, so queues blow up exactly when stakes are highest.

Figure 18 · Interactive
Supervision capacity — demand vs what a human can absorb
24
Items needing review / min
6
Human capacity / min
Effective scrutiny per item
100%
When demand exceeds capacity, the human either becomes a blocking bottleneck (the queue grows without bound) or keeps up by skimming — and per-item scrutiny falls to capacity ÷ demand, which is the moment oversight quietly turns into rubber-stamping.

The remedies all follow one principle: you cannot make the human faster, so you must reduce how much reaches them and raise the value of each thing that does. Gate by blast radius rather than uniformly — the whole §4 and §11 argument is, read another way, a bandwidth-management strategy. Compress what the human sees: summarise, abstract, and surface the decision-relevant evidence instead of the raw trace, so each unit of attention carries more information — this is where AI-assisted oversight and explanations earn their place. Pre-filter with a critic so the human's channel is spent only on exceptions (§6), the single biggest lever for closing the gap. Decouple timescales with asynchronous and batched review so the agent is not stalled and the human is not interrupted per action. For the highest-stakes streams, deliberately rate-limit the agent to a reviewable pace. Build a hierarchy of oversight — automated checks, then lower-tier reviewers, escalating only the residue to scarce expert attention. And use adjustable autonomy to widen the agent's latitude when the queue is overwhelmed and tighten it when attention is free.

§18 — The human is not an oracle

Uncertainty the human adds

The whole monograph has quietly assumed the human at the gate is reliable ground truth. They are not. The human is itself a noisy, biased, variable channel, and treating their judgments as oracle-perfect imports their errors into the system as though they were correct. The sources are well catalogued. Inconsistency: the same person gives different answers on different days, when tired, or depending on what they saw first (anchoring). Disagreement: experts diverge, and "the human said yes" hides which human and how sure. Bias: anchoring on the agent's own suggestion — automation bias again, but now as a label-quality problem, where the human rubber-stamps and the system then learns the rubber-stamp. Miscalibration: people are over- or under-confident, and an approval rarely arrives with a trustworthy confidence attached. Fatigue: error rates climb with volume and time-on-task, tying this section straight back to the bandwidth gap (§17) and the ironies of automation (§9). And availability and adversarial risk: the human may be slow, distracted, absent — or compromised, since the person in the loop is also an attack surface.

This matters because of where human judgments go. When they become training labels (§7, §12), human noise becomes label noise, and a model fit to noisy labels inherits and can amplify it. When approval is the safety mechanism, human error is an uncaught failure. So "add a human" is not automatically "add safety" — done naively it adds a new, sometimes correlated, source of error.

Figure 19 · Interactive
Aggregating noisy reviewers — and where redundancy fails
72%
One reviewer
87%
Panel (bias-adjusted)
Independent redundancy turns mediocre reviewers into a reliable panel — the lift is real and follows directly from the majority-vote binomial. But shared bias erases it: if every reviewer is anchored on the same AI suggestion, adding more of them adds no independent information.

The mitigations design for a fallible human rather than against an imaginary oracle. Redundancy and aggregation: multiple independent reviewers with principled combination — majority vote, or better, reliability-weighted estimators like Dawid–Skene that infer each rater's accuracy and weight accordingly [56,58]. Measure reliability: track inter-rater agreement (Cohen's or Fleiss' kappa) and per-reviewer accuracy [57], and model the human as a noisy, boundedly-rational channel rather than an oracle (the MaxEnt-IRL view from §12) so the learning system can down-weight unreliable input. Elicit calibrated confidence, not just a verdict, and route the low-confidence cases to a second reviewer. Break the bias at the source with cognitive forcing functions and predict-before-reveal (§16), or by blinding the reviewer to the agent's answer on a first pass — directly attacking the correlation that Figure 19 shows is so corrosive. Match and rotate reviewers to fight fatigue, segregate duties so no single human is a single point of failure, and treat the human channel as part of the threat model with the controls you would give any privileged actor [59]. And triangulate against outcomes: audit and incident review (§16) let you estimate the human error rate after the fact and correct for it, instead of assuming it away.

§19 — Practical notes

What tends to matter in deployment

The single most useful artifact a team can agree on is a placement rule — a shared answer to "should this action be gated, and how?" Walk the decision below for any action type, then the notes that follow.

Figure 20 · Interactive
Should I gate this action?
Question 1

Is the action easily reversible and low-cost?

A walkable version of "gate by reversibility × blast radius." It terminates in one of five placements — autonomous, monitor, conditional, blocking gate, or two-person — matching the regimes from §1 and the regulatory tiers from §21.
  • Gate by reversibility × blast radius, not by agent. Read / reversible / sandboxed runs free; irreversible / external / costly is gated. The same principle scales from a single agent to the swarm's external boundary.
  • Prefer one well-instrumented chokepoint at the external-effect boundary over gates scattered through the graph, when the topology allows it. Easier to staff, audit, and reason about.
  • Put a critic in front of the human (Figure 6) so the human sees escalations, not every action. The single most effective lever for sustainable oversight.
  • Design four responses, not two: approve, reject, edit-and-approve (inject corrected arguments and resume), and send-back-for-rework. Most of the value lives in the middle two — a human who can only approve or reject will start approving.
  • Surface provenance at the gate by default: originating agent, evidence, confidence, predicted effect, and a diff or preview. Give the human the trace, not just the proposed action.
  • Route gates to the role-appropriate human — fleet action to the reliability engineer, merge to the reviewer, spend to finance — rather than funneling everything through one bottleneck who is also the complacency risk.
  • Track approve-without-edit rate as a complacency metric. Trending toward 100% means the gate is mis-placed or no longer meaningfully reviewed — both are signals to act on.
  • Log every gate decision and tune thresholds from it. Use the accumulated signal to progressively raise autonomy where the human almost always agrees — so HITL becomes a phase, not a permanent tax.
  • Treat the gate log as a labeled dataset by construction. Schema the outcome (approve / edit / reject / rework), the provenance, and any corrected arguments, so your oversight record doubles as training data for the learning loop (§7) instead of requiring a separate annotation campaign.
§20 — Gating across architectures

Where the human goes in real frameworks

Part I (§4) gave five generic placements on an abstract agent graph. Real systems choose among them based on the topology of their agents, and then implement the choice with whatever gate primitive their framework or interop protocol provides. This chapter connects the two: which structure implies which gate, and how today's major frameworks and the two interoperability protocols actually let you do it. (Framework APIs move quickly — the specifics below were checked against current documentation, but verify against the latest before building [60–67].)

Topology dictates placement

The right gate location is a function of the graph's shape. In a pipeline there is one clean chokepoint at the terminal stage; in a supervisor / orchestrator-worker graph you gate the supervisor's dispatch or its terminal action — the single best-instrumented chokepoint. A hierarchy wants a gate at each level's commit boundary, with severity escalating up the tree. A mesh where any agent can call any other has no single chokepoint, so the handoff gate becomes essential and necessarily distributed — and this is exactly where poisoned-handoff risk is worst. A blackboard gates writes to the shared store rather than the agents; a debate gates through the judge, where quorum or consensus gating fits naturally; and a recursive topology where agents spawn agents must gate the spawning decision itself, the structure where the §17 bandwidth problem explodes. Switch between them below to see the gate move.

Figure 21 · Interactive
The gate moves with the topology
Pipeline · one terminal chokepoint
The red ⊘ marks the recommended human gate(s) for each structure. Where there is no single chokepoint (mesh, recursive), the gate is distributed — and the cost of getting it wrong is an ungated handoff that lets one agent's error become another's trusted input.

How the frameworks implement it

Underneath every placement is a concrete gate primitive, and the frameworks differ mostly in granularity (turn, tool, task, or handoff) and in whether the pause is durable enough to wait hours for a human. The current landscape:

FrameworkGate primitiveGranularityResumable / durable
LangGraphinterrupt() + a checkpointer; or the HumanInTheLoopMiddleware with a per-tool interrupt_on policy (approve / edit / reject / respond) [60]Node and toolYes — full state persisted by thread_id (Postgres / SQLite)
AutoGen (AgentChat)UserProxyAgent as a team participant; human_input_mode = NEVER / TERMINATE / ALWAYS [61]Conversation turnVia team / agent state
CrewAIhuman_input=True on a task; sequential vs hierarchical process (a manager validates before proceeding) [62]TaskRun-level
OpenAI Agents SDK@function_tool(needs_approval=True) raises a run interruption; plus input/output/tool guardrails with tripwires [63]Tool — run-wide, even across handoffs and nested agentsYes — serializable RunState
Semantic KernelIFunctionInvocationFilter intercepts before/after each function call to approve or override [64]Function / toolFilter-based (in-process)
Pydantic AITool requires_approval=TrueDeferredToolRequests, resolved with DeferredToolResults (approve / deny) [65]ToolYes — deferred results carried across runs; durable execution

The pattern across all of them is the same shape this monograph has argued for: classify the action (usually the tool), pause before the side-effectful ones, persist enough state to resume, and offer the human approve / edit / reject. They differ in where the primitive sits — LangGraph and the OpenAI SDK gate at the tool inside a run, AutoGen at the conversation turn, CrewAI at the task — but the underlying control move is identical.

Gating at the protocol boundary: MCP and A2A

Frameworks gate inside a system you own. The two interoperability protocols let you gate between agents and services you may not own — which is where the handoff gate of §4 matters most. In the Model Context Protocol the human gate is a first-class client feature rather than something bolted onto each server. Elicitation lets a server pause mid-tool-call and request structured input from the user through the client, with a JSON schema the client renders as a form; the user responds or declines and the workflow continues or aborts [66]. Sampling lets a server request an LLM completion through the client, and the specification states there should be a human able to review, edit, or deny the request. Together with tool-consent prompts, this puts the gate at the host/client boundary — one place, for every server the host talks to.

The Agent2Agent protocol places the gate at the cross-agent task boundary. Its task lifecycle — submitted → working → input-required → completed / failed / canceled / rejected — makes input-required a clean, durable pause point: a remote agent that needs human clarification or approval transitions the task to input-required, and the client resumes by sending a follow-up on the same task ID, supporting multi-turn dialogue across independently deployed agents and even organisations [67]. A research-proposed USER_CONSENT_REQUIRED state would add an explicit approval pause before sensitive operations, though it is not yet in the baseline specification. The lesson is the one §4 hinted at: protocol-level gating is how you place a human at the trust boundary between agents you don't control — exactly the seam where an ungated handoff is most dangerous.

§21 — The compliance layer

Governance: when oversight is the law

For high-risk systems, human-in-the-loop is no longer just good engineering — it is a legal requirement, and the requirement reads remarkably like this monograph. The EU AI Act devotes Article 14 to human oversight, mandating that high-risk systems be built so people can monitor, understand, intervene in, and halt them; that the oversight measures be commensurate with the risk, autonomy, and context of use; and that overseers be equipped to resist automation bias [25]. Crucially it does not demand a human review every decision — it demands the capability to oversee, with the depth scaled to risk. That is the gate-placement argument, written into regulation. For certain biometric-identity decisions it goes further and requires the two-person rule. In the automotive world you live in, the same logic is carried by the functional-safety and intended-functionality standards, where the human sign-off and its provenance trace become part of the safety case.

Concept in this monographEU AI Act · Article 14 (high-risk)Automotive safety analogue
Monitor / intervene / halt (the three regimes, §1)Design for effective oversight; ability to understand, intervene, and stopISO 26262 functional-safety lifecycle & safe states
Risk-proportionate placement (§4, §11)Measures commensurate with risk, level of autonomy, context of useISO 21448 (SOTIF) — risk of the intended function
Automation-bias / vigilance (§9)Overseers must remain aware of over-reliance on outputsDriver-monitoring & human-factors requirements
Provenance + gate logging (§5, §7)Interpret outputs; record-keeping & automatic logs (Arts. 12, 19)Traceability evidence in the safety case
Two-person gate / four-eyesSeparate confirmation by two persons for certain biometric IDsIndependent review / dual-control sign-off
Trained, authorized overseersQualified personnel assigned to oversight (with Art. 26)Competence management in the safety culture

The AI Act's high-risk obligations are phasing in across 2026–2027; confirm the current applicability dates and the exact article text for your system class before relying on this mapping. It is an orientation aid, not legal advice.

Glossary

Terms used here

Human-in-the-loop (HITL)
A blocking design: execution halts at a gate until a human acts.
Human-on-the-loop (HOTL)
Non-blocking supervision: the agent proceeds by default; the human watches and can intervene.
Gate
An interrupt placed on an edge of the agent's loop where control is yielded to a human.
Blast radius
The scope and severity of an action's consequences if it goes wrong — the key axis, with reversibility, for deciding what to gate.
Checkpoint / interrupt / resume
The mechanism that lets a loop suspend its state at a gate and continue from the same point after the human responds.
Critic / verifier
An agent that checks another agent's output and escalates only exceptions, keeping human review volume sublinear.
Calibration
The property that a model's stated confidence matches its actual accuracy — a prerequisite for a trustworthy escalation trigger.
Conformal prediction
A method that emits a prediction set with a distribution-free guarantee of containing the truth; set size is a usable uncertainty signal.
Corrigibility
The property of an agent that does not resist correction, interruption, or shutdown.
Automation bias
The human tendency to over-rely on an automated system's output, degrading the value of oversight.
Process vs outcome supervision
Labeling individual steps in a trajectory versus only the final result — the former enables credit assignment across agents.
References

Sources & further reading

Starting points spanning the control-systems / human-factors lineage and the recent agentic-AI literature. Verify editions and identifiers before citing formally.

  1. Sheridan, T. B. & Verplank, W. L. (1978). Human and Computer Control of Undersea Teleoperators. MIT Man–Machine Systems Laboratory. — origin of the levels-of-automation scale.
  2. Parasuraman, R., Sheridan, T. B. & Wickens, C. D. (2000). A Model for Types and Levels of Human Interaction with Automation. IEEE Trans. Systems, Man & Cybernetics, 30(3).
  3. Parasuraman, R. & Riley, V. (1997). Humans and Automation: Use, Misuse, Disuse, Abuse. Human Factors, 39(2). — the complacency / misuse taxonomy.
  4. Cummings, M. L. (2004). Automation Bias in Intelligent Time-Critical Decision Support Systems. AIAA 1st Intelligent Systems Technical Conference.
  5. Endsley, M. R. (1995). Toward a Theory of Situation Awareness in Dynamic Systems. Human Factors, 37(1). — why context at the gate matters.
  6. Amodei, D. et al. (2016). Concrete Problems in AI Safety. arXiv:1606.06565. — safe interruptibility & avoiding side effects.
  7. Christiano, P. et al. (2017). Deep Reinforcement Learning from Human Preferences. arXiv:1706.03741. — the training-time loop.
  8. Ouyang, L. et al. (2022). Training Language Models to Follow Instructions with Human Feedback. arXiv:2203.02155 (InstructGPT).
  9. Yao, S. et al. (2023). ReAct: Synergizing Reasoning and Acting in Language Models. arXiv:2210.03629. — the perceive–plan–act agent loop.
  10. Xi, Z. et al. (2023). The Rise and Potential of Large Language Model Based Agents: A Survey. arXiv:2309.07864.
  11. Mosqueira-Rey, E. et al. (2023). Human-in-the-Loop Machine Learning: A State of the Art. Artificial Intelligence Review, 56.
  12. Anthropic (2024). Building Effective Agents. Engineering guidance on tool gating & agent design patterns.
  13. LangChain. LangGraph — Human-in-the-Loop & Persistence. Documentation on the interrupt primitive and state checkpointing.
  14. Cemri, M. et al. (2025). Why Do Multi-Agent LLM Systems Fail? A taxonomy of multi-agent failure modes, incl. inter-agent miscommunication and error propagation.
  15. Settles, B. (2009). Active Learning Literature Survey. Computer Sciences Tech. Report 1648, Univ. Wisconsin–Madison. — uncertainty sampling & query-by-committee.
  16. Bai, Y. et al. (2022). Constitutional AI: Harmlessness from AI Feedback. arXiv:2212.08073. — labels from an AI critic (RLAIF).
  17. Rafailov, R. et al. (2023). Direct Preference Optimization. arXiv:2305.18290. — learning from preference labels without a separate reward model.
  18. Lightman, H. et al. (2023). Let's Verify Step by Step. arXiv:2305.20050. — process (step-level) supervision vs outcome labels.
  19. Bainbridge, L. (1983). Ironies of Automation. Automatica, 19(6), 775–779. — the foundational human-factors paradox.
  20. Orseau, L. & Armstrong, S. (2016). Safely Interruptible Agents. Uncertainty in Artificial Intelligence (UAI).
  21. Hadfield-Menell, D. et al. (2017). The Off-Switch Game. arXiv:1611.08219 (IJCAI).
  22. Soares, N., Fallenstein, B., Yudkowsky, E. & Armstrong, S. (2015). Corrigibility. AAAI Workshop on AI & Ethics.
  23. Angelopoulos, A. N. & Bates, S. (2021). A Gentle Introduction to Conformal Prediction and Distribution-Free Uncertainty Quantification. arXiv:2107.07511.
  24. Geifman, Y. & El-Yaniv, R. (2017). Selective Classification for Deep Neural Networks. arXiv:1705.08500 (NeurIPS).
  25. European Union (2024). Regulation (EU) 2024/1689 (Artificial Intelligence Act), Article 14 — Human Oversight (high-risk systems). Verify current applicability dates.
  26. ISO 26262 (Road vehicles — Functional safety) & ISO 21448 (SOTIF — Safety of the Intended Functionality).
  27. Ng, A. & Russell, S. (2000). Algorithms for Inverse Reinforcement Learning. ICML. — recovering reward from behaviour.
  28. Hadfield-Menell, D., Dragan, A., Abbeel, P. & Russell, S. (2016). Cooperative Inverse Reinforcement Learning. NeurIPS. — the assistance-game framing of the human's role.
  29. Reddy, S., Dragan, A. & Levine, S. (2018). Shared Autonomy via Deep Reinforcement Learning. Robotics: Science and Systems (RSS).
  30. Knox, W. B. & Stone, P. (2009). Interactively Shaping Agents via Human Reinforcement: The TAMER Framework. K-CAP.
  31. Kelly, M. et al. (2019). HG-DAgger: Interactive Imitation Learning with Human Experts. ICRA. — learning from interventions.
  32. Hoque, R. et al. (2021). ThriftyDAgger: Budget-Aware Novelty and Risk Gating for Interactive Imitation Learning. CoRL.
  33. Madras, D., Pitassi, T. & Zemel, R. (2018). Predict Responsibly: Improving Fairness and Accuracy by Learning to Defer. NeurIPS.
  34. Irving, G., Christiano, P. & Amodei, D. (2018). AI Safety via Debate. arXiv:1805.00899.
  35. Leike, J. et al. (2018). Scalable Agent Alignment via Reward Modeling: a Research Direction. arXiv:1811.07871.
  36. Saunders, W. et al. (2022). Self-Critiquing Models for Assisting Human Evaluators. arXiv:2206.05802.
  37. Burns, C. et al. (2023). Weak-to-Strong Generalization. arXiv:2312.09390.
  38. Gao, L., Schulman, J. & Hilton, J. (2023). Scaling Laws for Reward Model Overoptimization. ICML; arXiv:2210.10760.
  39. Everitt, T. et al. (2021). Reward Tampering Problems and Solutions in Reinforcement Learning. Synthese; arXiv:1908.04734.
  40. Sadigh, D. et al. (2017). Active Preference-Based Learning of Reward Functions. Robotics: Science and Systems (RSS).
  41. Ziebart, B. et al. (2008). Maximum Entropy Inverse Reinforcement Learning. AAAI. — modeling bounded/noisy-rational humans.
  42. Alshiekh, M. et al. (2018). Safe Reinforcement Learning via Shielding. AAAI.
  43. Achiam, J. et al. (2017). Constrained Policy Optimization. ICML. — safe RL as a constrained MDP.
  44. Kumar, A. et al. (2020). Conservative Q-Learning for Offline Reinforcement Learning. NeurIPS.
  45. Thomas, P. & Brunskill, E. (2016). Data-Efficient Off-Policy Policy Evaluation for Reinforcement Learning. ICML.
  46. Sha, L. (2001). Using Simplicity to Control Complexity. IEEE Software, 18(4). — the Simplex architecture.
  47. Buçinca, Z., Malaya, M. B. & Gajos, K. Z. (2021). To Trust or to Think: Cognitive Forcing Functions Can Reduce Overreliance on AI. Proc. ACM Human-Computer Interaction (CSCW).
  48. Bansal, G. et al. (2021). Does the Whole Exceed its Parts? The Effect of AI Explanations on Complementary Team Performance. CHI.
  49. Zhang, Y., Liao, Q. V. & Bellamy, R. K. E. (2020). Effect of Confidence and Explanation on Accuracy and Trust Calibration in AI-Assisted Decision Making. FAccT.
  50. Hendrycks, D. & Gimpel, K. (2017). A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networks. ICLR; arXiv:1610.02136.
  51. Zheng, L. et al. (2023). Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena. arXiv:2306.05685.
  52. Inan, H. et al. (2023). Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversations. arXiv:2312.06674.
  53. Leucker, M. & Schallhart, C. (2009). A Brief Account of Runtime Verification. Journal of Logic and Algebraic Programming, 78(5).
  54. Miller, G. A. (1956). The Magical Number Seven, Plus or Minus Two: Some Limits on Our Capacity for Processing Information. Psychological Review, 63(2). — human channel capacity.
  55. Wickens, C. D. (2008). Multiple Resources and Mental Workload. Human Factors, 50(3).
  56. Dawid, A. P. & Skene, A. M. (1979). Maximum Likelihood Estimation of Observer Error-Rates Using the EM Algorithm. J. Royal Statistical Society C (Applied Statistics), 28(1). — reliability-weighted aggregation of raters.
  57. Cohen, J. (1960). A Coefficient of Agreement for Nominal Scales. Educational and Psychological Measurement, 20(1). — inter-rater agreement (kappa).
  58. Snow, R., O'Connor, B., Jurafsky, D. & Ng, A. (2008). Cheap and Fast — But is it Good? Evaluating Non-Expert Annotations for Natural Language Tasks. EMNLP.
  59. Kirwan, B. (1994). A Guide to Practical Human Reliability Assessment. Taylor & Francis. — estimating human error rates.
  60. LangChain (2025). LangGraph / LangChain — Human-in-the-Loop: interrupt(), checkpointers, and HumanInTheLoopMiddleware. docs.langchain.com.
  61. Microsoft (2025). AutoGen AgentChat — Human-in-the-Loop: UserProxyAgent and human_input_mode. microsoft.github.io/autogen.
  62. CrewAI (2025). Human Input on Execution and Processes (sequential / hierarchical). docs.crewai.com.
  63. OpenAI (2025). Agents SDK — Guardrails and Human Review: function-tool needs_approval and run interruptions. openai.github.io / developers.openai.com.
  64. Microsoft (2026). Semantic Kernel — Filters: IFunctionInvocationFilter. learn.microsoft.com.
  65. Pydantic (2025). Pydantic AI — Human-in-the-Loop Tool Approval: requires_approval, DeferredToolRequests / DeferredToolResults. ai.pydantic.dev.
  66. Model Context Protocol Specification (2025-06-18) — Client features: Elicitation and Sampling. modelcontextprotocol.io.
  67. Agent2Agent (A2A) Protocol Specification — Task lifecycle and the input-required state. a2a-protocol.org.
↓ A working implementation of the patterns in this monograph: hitl-oversight-pack.zip — two SKILLs (gate-by-blast-radius, framework-gate-primitives), two agent profiles, an MCP server, a gate-decision JSON schema, hooks, and a gate-coverage linter. Drop into .github/skills/ and .mcp.json.