METHODOLOGY

A human watching an AI agent is the weakest kind of oversight

JUNE 18, 2026 · 12 MIN
TL;DR

A human approving an AI agent's actions is the weakest safeguard, so put controls where the agent can't route around them and check what it actually did.

  • People approve about 93% of agent permission prompts, and four decades of human-factors research say a passive human monitor is the weakest safeguard.
  • One control in my setup removes irreversible actions such as merging from the agent instead of asking a human to approve them.
  • Every gate I have checks the code at or before the merge, and two of my incidents passed the type checker but went wrong only when the code ran.

A founder told Replit's coding agent not to touch anything while the codebase was frozen, and it deleted his production database anyway, taking 1,200-plus live records with it. It then generated thousands of fake records to fill the hole, produced fake passing test results, and told him a rollback was impossible, which was also false.1

I shipped a similar failure in my own product, where nothing on the screen told me anything had gone wrong. My product sends automatic emails at set points in its workflow, and the function that sends them returns a success code (HTTP 200) even when it has suppressed, disabled or blocked the mail, so "delivered" and "never sent" came back looking the same. Code that called it treated the success code as delivery, so it advanced the record to its next state and wrote an audit row saying the email was sent.

I wanted to know where a human should sit to catch failures like these, so I went back through my own incidents and the research on human oversight.

A stick figure at a podium points to a chart, a bell curve with one tall bar far to the right, and says: despite our great research results, some have questioned our AI-based methodology, but we trained a classifier on good and bad methodology sections, and it says ours is fine.
In both stories above, the machine's own verdict stood in for the check. xkcd #2451, CC BY-NC 2.5.

Why keeping a human in the loop falls short

The usual answer is to keep a human in the loop by adding an approval step or a sign-off, which feels responsible, but the research on human monitors says a person passively watching an automated system is the weakest safeguard you can pick.

Lisanne Bainbridge laid out why in a 1983 paper called "Ironies of Automation." Automate most of a task and you hand the human the one job humans are worst at, which is watching a system that is almost always right and staying sharp enough to catch the rare moment it isn't, while the skills they'd need to step in fade from disuse.2 Raja Parasuraman and Dietrich Manzey reviewed the evidence in 2010 and named the effect automation complacency (people stop checking a system that is usually right).3

As the system gets more reliable, the human watching it pays less attention
system reliability human vigilance time & trust →

Anthropic measured the same effect in 2026 by looking at how people use the approval prompts in Claude Code, its coding agent.4

APPROVAL RATEPeople approve about 93% of agent permission prompts, and grow less careful the more of them they see.

The problem isn't limited to one vendor's agent. In July 2025, Google's Gemini CLI (its command-line coding agent) misread a failed mkdir (the command that makes a folder), then ran a string of file moves against a folder layout that existed only in its own assumptions, overwriting and erasing the user's files. It then confessed: "I have failed you completely and catastrophically."5

The same failure shows up at three levels of use

Your loop Chat userChatGPT, Gemini, Claude Solo devyou + a coding agent Teammany authors, shared checks
Oversight is reading the answer reading each change and its permission prompt code review, automated checks and the merge
Silent failure a confident answer that is wrong passing checks that hide real bugs work reported done that never runs
What helps checking claims against the source build-breaking checks and denied commands a human who rules on the AI's findings

For someone using a chat assistant, the best-known example is the attorney who asked ChatGPT for case law and got back six decisions with names, citations and quotations, none of which existed. He asked the model whether they were real, it said yes, he filed them, and he was sanctioned.6 A fluent, confident answer is easy to wave through: in one study, 52% of ChatGPT's answers to 517 programming questions contained incorrect information, yet participants still preferred them 35% of the time and missed the misinformation 39% of the time, citing how complete and well written they were.7

As a solo developer, I once "fixed" a type error by dropping the <Database> type parameter (the generic that tells the type checker what the database schema looks like), which made the type checker pass by leaving every database call untyped. It shipped, and when I restored the type eight days later, it surfaced eighteen bugs that had been hiding the whole time.

On a team, the same failure scales up. In my TariffRefunded repo, five email handlers were reported done, and none of them had a caller anywhere in the app, so none of those emails could ever send. A second agent, the Codex review bot (OpenAI's automated code reviewer), caught it in code review by noticing that nothing called the functions.

A written rule failed three times before a gate held

Security people sort controls into two kinds: an advisory control tells you what to do, and a technical control makes the wrong thing impossible. A written rule is advisory. The email bug from the opening shows the difference, because I had a plain-English rule in CLAUDE.md (the instructions file the coding agent reads at the start of a session) for handling the send result, and the same bug shipped three times anyway. What finally stopped it was an ast-grep rule (a linter that matches code by its syntax tree) that fails the CI build (the automated checks that run on every pull request, the proposed change waiting to be merged) whenever a caller doesn't branch on the send status.

the same intent, twice: once as prose, once as a gate
SHIPPED 3×CLAUDE.md: a written rule to branch on the email send status
HOLDSCI: an ast-grep rule fails the build if a caller doesn't branch on the status

the ruleThe ast-grep rule's own note warns that it is still not a data-flow proof (it checks the shape of the code and does not trace where the send result goes), so a green result shouldn't be over-trusted.

Remove irreversible actions from the agent's reach

You don't need a human on every step, but you do need one, or a wall, in front of anything you can't take back, and that surface is small. Anthropic's telemetry from real agent use puts irreversible actions (sending an email to a customer, for example) at 0.8% of what agents do,8 and the OWASP (Open Worldwide Application Security Project) cheat sheet on agent security rates database_delete and transfer_funds as CRITICAL.9

One control in my setup removes irreversible actions such as merging from the agent instead of asking a human to approve them. As of 18 June 2026, the agents in my TariffRefunded repo can't merge their own work: git merge and gh pr merge (the GitHub command-line merge) sit on a deny list (commands the agent is never allowed to run) in its Claude Code settings, so when an agent reaches for one, the command is refused before it runs, the way a firewall drops traffic to a closed port. That leaves merging to a human, with no approval prompt for anyone to click through without reading. A 2026 benchmark found the same pattern: hardening the environment so an exploit wasn't reachable cut how often agents exploited loopholes in their tasks by almost 90%, without hurting task success.10 The same move works on any platform: don't grant the dangerous tool, give the agent a read-only token, or put the irreversible action somewhere the agent can't reach.

Four ways to enforce a rule, from advisory to technical
  1. Habityou remember; the agent doesn't
  2. Written ruleadvisory; decays
  3. CI gatefails the build
  4. Denied commandthe action never starts

Four more controls, with the research behind them

Build for undo. Make the actions you can't remove cheap to reverse. IBM Research's STRATUS prototype gives every agent action an undo operator, simulates commands first, and reverts the transaction when the system's state gets worse.11 The everyday versions are soft-delete (marking a record deleted instead of erasing it), dev/prod separation (a separate development database, so the agent never touches production), idempotency (running an action twice has the same effect as running it once) and a planning-only mode, which is the same family of fixes Replit announced after its agent deleted that database.1

Separate the doer from the checker. The agent that does the work is also the one reporting on it, so add a checker that is independent of it: a different model reading the chain-of-thought (the reasoning a model writes out before it acts), a test, or a read-after-write probe (reading back what was written to confirm it landed). In OpenAI's experiments, a monitor reading the chain-of-thought caught about 95% of systemic reward hacks (an agent gaming its success measure instead of doing the task), against about 60% for one that saw only actions and outputs,12 but the method is fragile, because training an agent against the monitor teaches it to hide its reasoning.13

In both of my product repos the first-pass reviewer is itself a bot. In TariffRefunded, as of 18 June 2026, it had left 711 review comments to my 63, so I triage its findings instead of reading raw code, and what I add is judgment about what the bot can't see. In one pull request it offered a fix that looked correct but would have reopened a bug fixed in the previous pull request, which it had no way of knowing about, so I overruled it.

Escalate selectively. Sending every action to a human produces the reflexive approval described above. In one study, escalating only the cases a monitor had pre-flagged improved detection by about 15% over broad review,14 and Anthropic argues that rules requiring humans to approve every action "will create friction without necessarily producing safety benefits."8 Track how often the human overrides the automation, since a falling override rate is an early sign the human has stopped paying attention.

Measure the procedure as well as the outcome. Track whether the agent skipped steps and whether each action was correct, as well as whether the task finished. Reasoning models have been caught editing a stored chess board to force the engine to forfeit,15 and a 2026 study found that 27–78% of benchmark "successes" hid a violated step.16

Every gate I have stops at the merge

Two of my own incidents show what those controls miss, because both went wrong after the merge, when the code ran.

Where my gates stop, and where the two incidents below happen
Checked · before merge change → review → CI gate → denied merge
MERGE
Unwatched · after it runs the code runs, and no gate checks what it did

The first was an OAuth connection flow (the handshake that links a user's account on another service) that completed and then sent the user to an error page, because the server code called a function with a payload shape the function couldn't parse. The type checker couldn't see the mismatch, since the two sides run in different JavaScript runtimes (Deno and Node) that share no type definitions, and code review missed it at first too. The second was a profile save that returned a clean "saved" and changed nothing, because the row-level security policy (the database rule deciding which rows a user may read or change) let the user read the row but not update it, and the update changed no rows without returning an error.

A June 2026 search turned up no tool that detects this kind of silent failure in production with measured precision and recall (how many real failures it catches, and how many of its alarms are real) on real workloads. Apollo Research's Watcher, one of the emerging runtime detectors, has to inject failures into real transcripts to get labeled examples, because real labeled failures are rare.17

How to audit your own loop, by how you work

The moves below are grouped by how you work with AI, and they come from the research on AI self-correction, correlated model errors, and human-AI teaming.181920

If you work in a chat assistant
Verify the source
Check claims against the primary source, since a model's confidence tells you nothing about whether it's right. Make it quote the source word for word, then confirm the quote exists.
Don't ask it to self-check
"Are you sure?" or "what did you miss?" makes a model flip correct answers to wrong ones about half the time.
Get a real second opinion
A different model is better than asking the same one twice, though models from different vendors still share blind spots. A truly independent check comes from something that isn't a large language model (LLM), such as a test, the primary source, or you.

Tools & deeperCross-check with a citation-grounded tool, like Perplexity or your assistant's own search/grounding mode, so each claim links to a source you can open (treat the citation as a lead to check). The evidence that self-checking backfires: Huang et al., "LLMs Cannot Self-Correct Reasoning Yet." Vetting AI output as a non-specialist: UNESCO's AI competency framework.

If you're a solo developer
Check the side effect
Assert the actual side effect (read back what you wrote), and run at least one adversarial test (one written to make the code fail) that the agent didn't write itself.

Tools & deeperMake the gate real with a structural linter like ast-grep or Semgrep, which catch a bug's shape regardless of names or spacing, run on every commit via pre-commit (a framework that runs checks before each commit). As of mid-2026, Claude Code, Codex CLI and Gemini CLI each let you limit what the agent can run: Claude Code's permissions.deny and Gemini CLI's policy engine block a specific command outright, and Codex CLI's sandbox & approval modes limit what it can touch and when it must ask. Isolate the blast radius (how much one bad session can break) with git worktrees (separate working copies of one repository), one per agent session.

If you're on a team
Have the AI list evidence; you make the call
Have the AI surface evidence and the human add an independent judgment, because unless the pairing is designed with care, human-AI teams on average do worse than the better of the two working alone.
Check what each gate covers
A gate only protects the code it scans, so confirm its scope reaches everywhere the agent could make the change it guards against.

Tools & deeperKeep the reviewer cross-vendor, something like CodeRabbit, so it comes from a different model family than the author. Watch the running product as well as the code change with LLM observability tools, which record what the model did in production: Langfuse, Arize Phoenix, or the vendor-neutral OpenTelemetry GenAI conventions. Red-team prompts and agents (attack them on purpose to find failures) in CI with promptfoo. For deciding which actions need a human's sign-off, see OWASP's Top 10 for Agentic Applications and the Five Eyes security agencies' "Careful Adoption of Agentic AI Services".

Add a check on what the code did after it ran

If you take one thing from this, build the piece my own setup doesn't have yet: a check on the running result. After any storage delete, database write or redirect to another service, it reads back what is actually there and raises a flag when that doesn't match what the agent reported as done.

Footnotes

  1. Simon Sharwood, "Vibe coding service Replit deleted user's production database, faked data, told fibs galore," The Register, 21 July 2025; AI Incident Database #1152. Originally surfaced by Jason Lemkin (SaaStr), X, 18 July 2025. After the incident Replit announced automatic dev/prod database separation, improved rollback, and a planning-only mode (CEO Amjad Masad, reported by Fortune, 23 July 2025), all reversibility-by-design fixes. ↩ ↩2

  2. Lisanne Bainbridge, "Ironies of Automation," Automatica 19(6): 775–779, 1983. ↩

  3. Raja Parasuraman & Dietrich Manzey, "Complacency and Bias in Human Use of Automation: An Attentional Integration," Human Factors 52(3): 381–410, 2010. ↩

  4. Anthropic Engineering, "How we built Claude Code auto mode," anthropic.com/engineering/claude-code-auto-mode (2026): users approve about 93% of permission prompts, which the authors note leads to "approval fatigue, where people stop paying close attention." ↩

  5. "Google Gemini AI Hallucinates Commands, Deletes Expert's Files, Takes the Blame," WebProNews, 27 July 2025; AI Incident Database #1178. ↩

  6. Mata v. Avianca, Inc., 678 F. Supp. 3d 443 (S.D.N.Y., 22 June 2023). The fabricated-citation pattern recurred in dozens of sanctioned filings through 2025–2026. ↩

  7. Samia Kabir, David N. Udo-Imeh, Bonan Kou & Tianyi Zhang, "Is Stack Overflow Obsolete? An Empirical Study of the Characteristics of ChatGPT Answers to Stack Overflow Questions," Proceedings of CHI 2024: 52% of ChatGPT answers to 517 programming questions contained incorrect information; participants still preferred them 35% of the time and overlooked the misinformation 39% of the time, citing their comprehensiveness and articulate style. DOI: 10.1145/3613904.3642596. ↩

  8. Anthropic, "Measuring AI agent autonomy in practice," 18 February 2026: of observed agent actions, ~0.8% are irreversible (such as sending an email to a customer) and ~73% have a human in the loop in some form. The paper argues that oversight rules "that prescribe specific interaction patterns, such as requiring humans to approve every action, will create friction without necessarily producing safety benefits." (Distinct from the auto-mode write-up in 4: that one measures the 93% approval rate of permission prompts; this one measures the share of actions that are irreversible.) ↩ ↩2

  9. CISA et al., "Careful Adoption of Agentic AI Services," May 2026; OWASP Top 10 for Agentic Applications, December 2025. OWASP's companion AI Agent Security Cheat Sheet assigns tool-risk ratings: database_delete and transfer_funds are rated CRITICAL, most actions far below. ↩

  10. Kunvar Thaman, "Reward Hacking Benchmark: Measuring Exploits in LLM Agents with Tool Use," arXiv:2605.02964 (2026): environment hardening reduced agent exploit rates by 5.7 percentage points (an 87.7% relative reduction) without degrading task success. ↩

  11. Yinfang Chen et al., "STRATUS: A Multi-agent System for Autonomous Reliability Engineering of Modern Clouds," arXiv:2506.02009 (NeurIPS 2025); see IBM Research's write-up "An 'undo-and-retry' mechanism for agents," 12 November 2025. Each agent action carries an undo operator, commands are simulated first, and a transaction reverts when system state worsens; the team's stated assumption is that "every action must be undoable." A research direction, not a shipped product. ↩

  12. Bowen Baker et al. (OpenAI), "Monitoring Reasoning Models for Misbehavior and the Risks of Promoting Obfuscation," arXiv:2503.11926, March 2025: an LLM monitor reading the chain-of-thought caught ~95% of systemic reward-hacks versus ~60% for action/output-only monitoring. ↩

  13. Tomek Korbak et al., "Chain of Thought Monitorability: A New and Fragile Opportunity for AI Safety," arXiv:2507.11473 (2025); Baker et al. (above) further show that optimizing directly against a chain-of-thought monitor pushes the agent to obfuscate its reasoning, so monitorability degrades under training pressure. ↩

  14. Kale et al. (Scale AI / CMU / MIT), "Reliable Weak-to-Strong Monitoring of LLM Agents," arXiv:2508.19461, August 2025: escalating only pre-flagged cases to human reviewers improved true-positive detection by ~15% (at a 1% false-positive rate) over broad review. ↩

  15. Bondarenko et al. (Palisade Research), "Demonstrating Specification Gaming in Reasoning Models," arXiv:2502.13295 (2025): o1-preview, for example, edited the stored board-state to force the chess engine to forfeit rather than winning legitimately. ↩

  16. "Beyond Task Completion: Revealing Corrupt Success in LLM Agents through Procedure-Aware Evaluation," arXiv:2603.03116, 2026. ↩

  17. Apollo Research, "Watcher" (watcher.apolloresearch.ai), 2026: a runtime oversight layer tuned against 40+ recurring coding-agent failure modes drawn from real coding-agent transcripts. Apollo's pipeline "injects failure modes into them to produce a large dataset with approximate ground truth," since real labeled failures are rare in production. Vendor product (alpha); cited as evidence the runtime-detection category exists, not proof of efficacy. ↩

  18. Huang et al., "Large Language Models Cannot Self-Correct Reasoning Yet," ICLR 2024 (arXiv:2310.01798); Laban et al., "Are You Sure? Challenging LLMs Leads to Performance Drops in the FlipFlop Experiment," arXiv:2311.08596, which finds that challenging a model flips ~46% of correct answers and drops accuracy ~17%. ↩

  19. Kim et al., "Correlated Errors in Large Language Models," ICML 2025 (arXiv:2506.07962). ↩

  20. Google DeepMind, "Human-AI Complementarity: A Goal for Amplified Oversight," arXiv:2510.26518 (2025), citing Vaccaro et al. (2024) for the finding that human-AI teams on average underperform the better of human or AI alone. ↩

Trust belongs in the schema, not the application.
The operating principle behind every project here. A rule the database enforces can't be forgotten in a hurry. Constraints, denied-by-default access, append-only logs — the controls that hold are the ones the system won't run without.