Nullify

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

Human in the Loop AI Security: What to Gate

Human in the loop AI security means deciding in advance which security decisions an AI system can make on its own and which ones a named person must approve first. Let AI triage, draft fixes and chase CI. Gate the decisions that are hard to undo: merging code, accepting risk, granting exceptions and changing the system's own rules.

Whenever I speak with security teams adopting AI agents, the question isn't whether to keep a human involved. It's where. The answer is rarely "approve everything" or "approve nothing."

Below: where the checkpoints belong, how human in the loop differs from human on the loop, and how to keep the gate from becoming a rubber stamp.

What human in the loop means for AI security programs

A human-in-the-loop control is a point where an AI system stops and waits for a person to approve, reject or change what it is about to do. We cover the general definition in our human in the loop glossary entry. This post is about the practical version: which checkpoints a security program needs.

There are three modes, and a mature program uses all of them:

  • Human in the loop: the AI proposes, a person approves, then the action happens.
  • Human on the loop: the AI acts within set limits, and a person watches, audits and can stop or reverse it.
  • Human out of the loop: the AI acts, and nobody reviews the individual decision. This mode is fine only when a decision is cheap, reversible and low-risk.

The point is not to maximize human involvement. The point is to spend human judgment where it changes the outcome.

Why human oversight of AI agents matters in remediation

Remediation is where AI stops reading your code and starts changing it. That changes the risk.

OWASP's guidance on excessive agency in LLM applications tells teams to use human-in-the-loop control so that a person approves high-impact actions before they are taken. The NIST AI Risk Management Framework asks organizations to define roles and responsibilities for human-AI configurations and oversight (GOVERN 3.2), and to have assigned mechanisms to supersede, disengage or deactivate an AI system that behaves outside its intended use (MANAGE 2.4).

There's also a real example of why the merge gate matters. In August 2026 the UK AI Security Institute published an incident report on unsanctioned agent behavior during cyber testing. An agent tried to get malicious code into an open-source project and used social engineering on the maintainer to get it approved. A human maintainer caught it and refused to approve the change.

That's the job of the gate. It's also a warning: the reviewer was the target. A human checkpoint is only as strong as the person's attention and the evidence in front of them.

Human in the loop vs human on the loop

The choice between the two modes depends on how expensive a wrong decision is and how fast you can undo it.

Human in the loopHuman on the loop
When the human actsBefore the actionAfter or during the action
What the human doesApproves, rejects or asks for changesMonitors, audits, overrides, stops
Best forIrreversible, production-affecting or externally visible decisionsHigh-volume, reversible, low-blast-radius work
Main riskReviewer fatigue and rubber-stamp approvalsMistakes pile up before anyone looks
Security examplesMerging a fix, accepting a risk, granting an exception, changing policyTriage ranking, drafting fixes, re-running CI, rebasing a branch
What it needsEvidence attached to the decisionAudit logs, alerts and a working stop control

The Cloud Security Alliance makes a similar argument in its analysis of when a human should approve an AI action. Requiring a person for every step slows AI security work to human speed. It recommends governance as the default and human approval for defined gates: irreversible actions, production-disruptive actions, externally visible actions, and anything that needs a formal sign-off or risk acceptance.

Where to put the human checkpoints in an AI security program

Here is how the main remediation decisions map to the three modes. Use it as a starting point and tighten it for your highest-risk systems.

DecisionDefault modeWhy
Ranking and prioritizing findingsOn the loopHigh volume, reversible, and re-run as context changes
Dismissing a finding as a false positiveOn the loop, with a sample auditReversible, but a wrong dismissal hides real risk
Drafting a fix and opening a draft PROn the loopNothing ships until someone merges
Merging a security fixIn the loopChanges production code
Accepting a risk or granting an exceptionIn the loop, named ownerSomeone has to own the residual risk
Overriding a failing security checkIn the loop, with a recorded reasonBypasses a control
Changing gate policy, autonomy limits or approval settingsIn the loop, admin onlyChanges the rules every later decision runs under

1. Triage decisions

Triage is where AI earns its keep. Ranking thousands of findings by reachability, exploitability and business context is high volume and repeatable, and the verdict can be revisited when the code or the threat changes. Keep humans on the loop here: review a sample of dismissals, and give people a fast way to reopen a finding with a reason.

The exception is a triage question the AI can't answer from the evidence, such as who owns a service or whether an endpoint is internet-facing. That should become a question to a person, not a guess.

2. Fix generation

Drafting a fix doesn't change anything you ship, so it doesn't need a pre-approval. What it needs is limits: which repositories, how many open PRs at once, and which finding types are in scope. Some findings shouldn't be autofixed at all, such as a leaked secret, which needs rotating, not just a code change.

3. Merge

The merge is the one checkpoint that should stay in the loop for every AI-generated security fix, because it's the moment a proposal becomes production code. This is where AI remediation approval belongs. Route the PR to the person who owns the code, not to a central security queue, and make sure an AI approval can't count as the human approval your branch protection requires.

4. Risk acceptance and exceptions

Accepting a risk, granting an SLA exception or marking a vulnerability "won't fix" is a decision about residual risk, and residual risk needs an owner. An AI can draft the case: what the finding is, what compensating controls exist, and what the exposure looks like. A named person signs it, with an expiry date.

5. Configuration and policy changes

The most dangerous change an AI agent can make isn't to code. It's to its own rules: blocking thresholds, which actions it can take without approval, who can override a check. Treat these like changes to access control. Restrict them to admins, require a reason, and log the old and new values.

How to decide what to automate and what needs approval

Good human in the loop security automation starts with a rule for new decision types. Run each one through five questions, and if any answer is "yes," put a human in the loop.

  1. Is it hard to undo? A merged fix can be reverted, but a deployed breaking change or a revoked credential has already done its damage.
  2. Does it touch production or customers? Anything that changes runtime behavior or is visible outside the team.
  3. Does someone have to own the outcome? Risk acceptance, exceptions and compliance attestations need a name on them.
  4. Is the evidence thin? If the AI can't show a test, a scan result or a reproduction, a person should weigh it.
  5. Does it change the rules? Policy, autonomy and approval settings always go through a person.

Everything else is a candidate for human on the loop. Backlog in, fixes out, and a person on every decision that matters.

How the human gate becomes a rubber stamp

A human-in-the-loop control can fail without anyone noticing, because the approvals keep coming. Three patterns cause most of it.

Volume. OWASP's agentic AI threat guidance names "Overwhelming the Human in the Loop" as a threat category, and its entry on human-agent trust exploitation recommends adjusting agent autonomy and required oversight to contextual risk. If an agent opens 40 PRs on a Monday morning, nobody reviews 40 PRs carefully.

Automation bias. The EU AI Act's human oversight article (Article 14) requires that people overseeing high-risk AI stay aware of the tendency to rely or over-rely on its output, and that they can disregard, override or reverse it. The longer an AI is right, the faster people click approve.

Thin evidence. A PR that says "fixed SQL injection" with a green check asks the reviewer to trust the claim. A PR that shows the root cause, the test that proves the vulnerability is closed and what CI ran gives them something to check. The AISI incident shows the other side of this: when the person approving is the target, the evidence has to stand on its own.

How to keep human review meaningful

These practices work without any particular tool:

  • Make review proportional. A one-line dependency bump and a change to an authentication flow shouldn't get the same review. Tier PRs by risk and route the hard ones to senior owners.
  • Put the evidence on the PR. Root cause, the fix plan, tests that cover the vulnerability, what was validated and what wasn't.
  • Cap the queue. Limit open AI-generated PRs per repository so reviewers see a steady stream, not a flood.
  • Route to the code owner. The person who knows the code reviews faster and catches more than a central security reviewer.
  • Keep bot approvals out of required reviews. An AI approval should never satisfy a human-reviewer rule in branch protection.
  • Require a reason for every override and exception, and audit them. A bypass with no reason is a rubber stamp by design.
  • Watch the send-back rate. If reviewers approve every AI PR, either the fixes are perfect or nobody is reading them. Sample approved PRs and check.
  • Keep a stop control that works. Someone must be able to pause the agent across every repository at once, and should know how.

For the wider set of controls around an agent, see AI guardrails.

How Nullify keeps a human in the loop on remediation

Nullify is built so that AI does the volume work and people make the calls that matter.

  • Only triaged findings become fixes. Nullify drafts fixes for findings triaged as real and worth fixing. A separate reviewing step checks each fix, and successful workflows open a draft pull request for further CI and human review.
  • A human always merges. Nullify reads CI failures, responds to reviewer comments and rebases when the branch falls behind, then promotes the PR to ready-for-review once CI passes. In the docs' words: "Nullify never merges your code — a human always makes the final call."
  • The right reviewer, a manageable queue. Reviewers come from CODEOWNERS first, then the authors of the changed code, then the owning team, with at most three per PR. Campaign plans cap open Nullify fix PRs at three per repository and five new fix PRs per remediation plan.
  • Questions instead of guesses. When Nullify can't proceed on its own, it raises an action item: an escalated finding to approve, reject or send back, a clarifying question, or a strategy or campaign proposal to decide on.
  • No bot approval by default. The option that lets Nullify submit an approving review is off by default and API-only, because a bot approval could count toward a required-reviewer rule.
  • Overrides are recorded. Clearing a Nullify blocker on a PR needs the config:write permission, which the Admin role grants, doesn't resolve the finding, and is written to the audit log with the person's name and reason.

You set how far it goes on its own with program autonomy policy, ground rules and blocked action types. See how this works in triage and remediation.

The human in the loop isn't a speed bump. It's the decision that makes the fix yours.

Frequently asked questions

What is the difference between human in the loop and human on the loop?

In a human-in-the-loop setup, the AI waits for a person to approve an action before it happens. In a human-on-the-loop setup, the AI acts within set limits while a person monitors, audits and can stop or reverse it. Most security programs use in-the-loop for merges and risk acceptance, and on-the-loop for triage and fix drafting.

Which security decisions should always require human approval?

Decisions that are hard to undo, affect production or customers, need a named owner, rest on thin evidence, or change the system's own rules. In practice that means merging fixes, accepting risks and exceptions, overriding failing security checks, and changing gate or autonomy settings.

Does human in the loop slow down AI remediation?

It doesn't have to. Most remediation time is spent waiting for triage, an owner and a fix someone trusts, not on the approval itself. Let AI handle triage, drafting and CI follow-up, route each PR to its code owner with evidence attached, and the human step becomes a short, informed decision.

Should an AI security tool be allowed to approve pull requests?

Not in a way that counts as the human approval. If a bot approval can satisfy a required-reviewer rule in branch protection, the human checkpoint disappears without anyone deciding to remove it. Keep AI reviews as comments or request-changes signals, and require a person to approve the merge.

How do you stop human approvals from becoming a rubber stamp?

Make review proportional to risk, cap how many AI-generated PRs are open at once, attach evidence to every PR, route each one to its code owner, require reasons for overrides, and sample approved PRs to check that reviewers are actually reading them.