In-Loop vs On-Loop: Which Data Agent Actions Need Human Approval Before They Run?
A four-tier framework for deciding which agent actions wait for a human and which only notify afterwards
Require approval before a data agent runs any action that changes state and cannot be cheaply undone, and notify afterwards for everything that only reads or writes to an isolated staging area. The MCP specification says that for trust and safety there SHOULD always be a human in the loop with the ability to deny tool invocations. It does not say where that human sits for each action. This guide gives you that rule: four action tiers (read, stage, apply, destructive) and a decision for each.
Key Takeaways
- •In-loop means a human approves before the action runs. On-loop means the action runs and a human is notified, with the ability to intervene or revert.
- •Sort every agent action into one of four tiers: read, stage, apply, destructive. Approval requirements rise with the tier.
- •Reversibility decides the tier more than the verb does. A DROP that Snowflake Time Travel can restore is a different risk from a DELETE with no retention behind it.
- •Reads and staged writes can usually run on-loop. Applying changes to shared tables should start in-loop and graduate to on-loop only after a track record.
- •Destructive actions stay in-loop, and PII-touching actions get a stricter tier regardless of the verb.
What in-loop and on-loop mean for a data agent
We use two terms throughout this guide, and we define them narrowly because they get blurred. In-loop oversight means the agent proposes an action and stops. Nothing executes until a named human approves it. On-loop oversight means the agent executes within a pre-agreed boundary, records what it did, and a human watches the stream and can pause, intervene or revert. The difference is where the human sits relative to the write: before it or after it.
The distinction matters because the two controls fail differently. An in-loop gate fails by becoming a rubber stamp: if reviewers see forty requests a day, approval turns into a reflex. An on-loop control fails by being too late: if the action cannot be reverted, a notification is a receipt, not a safeguard. Picking the wrong one for an action is the most common design error we see, in either direction.
Governance vendors are publishing guidance on this area as agents move into production. Collibra's guide to AI agent governance covers safe deployment and operational controls for agents. The tiering below is our own working framework for data platforms, not a restatement of that guide.
Tier 1 and 2: read and stage actions
Tier 1 is read: queries, metadata lookups, lineage traversals, and questions like "What changed in the orders schema since last deploy?" or "What tables haven't been queried in 90 days?" These can run on-loop. The risk is not mutation but exposure and cost. So the controls are scope (which schemas and columns the agent may read), PII masking on results, and a query budget. The log is the oversight artifact. Snowflake, for instance, keeps ACCESS_HISTORY for 365 days, which gives you a year of who-read-what to review after the fact.
Tier 2 is stage: the agent writes, but only to somewhere isolated. Examples are a development branch, a zero-copy clone, a scratch schema, a draft pull request with a proposed dbt change, or a dry-run plan. Staged work cannot hurt a consumer because no consumer reads it. We treat stage actions as on-loop: the agent proceeds, and the human is notified that a proposal exists and is waiting for review.
The key property of the stage tier is that it moves the approval point. Instead of asking a human to approve a vague intent, you ask them to approve a concrete diff at the next tier. That makes the later in-loop gate far cheaper to review, which is the main defence against rubber-stamping. Stage first, then ask.
Tier 3: apply actions, where the real decision lives
Tier 3 is apply: promoting a staged change to a shared object. Merging a model change, running an ALTER on a production table, backfilling a partition, rotating a grant. These touch things consumers read. Our default is in-loop: the agent presents the diff, the blast radius and the rollback step, and a human approves. This is the tier where most of the approval volume should concentrate, so it is also where the review artifact has to be good.
Apply actions can graduate to on-loop, but only per domain and only on evidence. A reasonable graduation rule is: the same class of change has been approved without edits many times, the rollback has been tested, and the affected tables carry no sensitive columns. Teams that treat this as a per-domain dial rather than a platform-wide switch avoid the trap of either gating everything or gating nothing. We cover that framing in our post on the per-domain autonomy dial.
For a worked example, suppose an agent diagnoses that a null spike came from an upstream type change and proposes a cast fix in a staging model. Tier 2 lets it build and test the fix on-loop. Tier 3 asks a human to approve the merge, with the failing test, the diff and the list of downstream consumers attached. The human decides on a prepared packet, not on a prompt.
Tier 4: destructive actions always wait
Tier 4 is destructive: DROP, TRUNCATE, DELETE without a recoverable window, permission revocations that could lock out a service, and anything that removes data lineage or audit records. These stay in-loop. We would also require a second approver or a named owner of the object, because a single reviewer under time pressure is the failure mode this tier exists to prevent.
Recoverability changes the calculation, so check it rather than assume it. Snowflake's Time Travel has a default retention of 1 day, configurable up to 90 days on Enterprise Edition and above, and a dropped table inside that window can be restored. A destructive action on an object with a tested restore path is closer to an apply action. One with no retention, or one whose consumers cache results downstream, is not. The agent should state which case applies in its approval request.
Even with a restore path, we keep the gate. Restoring data does not undo the downstream effects of a table having been missing for an hour: failed jobs, stale dashboards, alerts sent to customers. Reversibility lowers the severity of a mistake. It does not make the mistake free, so it moves an action between tiers only when the cost of the interval of damage is also low.
Three questions that override the tier
The tiers are defaults. Three questions can move any action up. First, is the action reversible, and has the reversal been tested rather than assumed? Second, what is the blast radius: how many downstream tables, dashboards and models read the object? Third, does the action touch sensitive data? A read of a PII column is tier 1 by verb but should require approval or masking by policy.
- •Reversible, small blast radius, no sensitive data: eligible for on-loop.
- •Reversible but wide blast radius: in-loop until the rollback is tested end to end.
- •Irreversible, or any sensitive data involved: in-loop, with a named owner as approver.
- •Unknown on any of the three: treat as in-loop. The agent should say what it could not determine.
This is also why a blast-radius check belongs inside the agent, not in a reviewer's head. When someone asks "What's the blast radius if I drop this column?", the answer should arrive attached to the approval request. For a longer treatment of which operations to keep with people entirely, see when not to automate data operations, and for the tier idea applied to agent actions in general, see our action tiers guide.
How to keep in-loop approval from becoming a rubber stamp
A gate only works if reviewers can evaluate the request. Design the approval packet for that: the exact statement or diff, the objects affected, the downstream consumers, the rollback command, and the agent's stated confidence and unknowns. Keep the queue small by pushing everything possible down to the stage tier, so humans only see changes that survived testing. If a reviewer approves a class of request without edits every time, that is a signal to graduate it, not to keep paying the review cost.
Record every decision. Each approval, rejection and edit should be logged with who decided, when and on what evidence, so the policy itself can be audited and tuned. Our Governance Agent is built for the governance side of this work, including PII detection, access-policy generation and audit records. Whatever tooling you use, the principle is the same: the audit trail is how you find out that a tier was set wrong.
Finally, treat the tier assignment as a reviewable configuration, not tribal knowledge. Write it down per domain: which tools sit in which tier, who approves, and what evidence moves an action between tiers. Revisit it after every incident and every quarter. Tiers that never change are either perfectly calibrated or never examined, and the second is far more likely.
Frequently Asked Questions
Which data agent actions should always require human approval? Destructive actions (drops, truncates, irreversible deletes, permission changes that can lock out services) and any action touching sensitive data should wait for a human. Applying changes to shared production objects should also start in-loop and graduate only on evidence.
Can an agent run on-loop for production changes? Yes, for a specific class of change in a specific domain, once the same class has been approved repeatedly without edits, the rollback has been tested and no sensitive columns are involved. Do not extend that permission across domains by default.
Is on-loop oversight the same as logging? No. Logging records what happened. On-loop oversight adds a person who is notified, watches the stream and has a working way to pause the agent or revert the change. If you cannot revert, the control is a receipt, so the action belongs in-loop.
How do I stop approvers from clicking approve on everything? Give them a concrete diff with blast radius and a rollback step, stage the work first so only tested proposals reach them, and graduate request classes that are always approved unchanged. Review fatigue is a design problem in the packet and the queue, not a discipline problem in the reviewer.