jcardena.com Blog Human-in-the-loop: AI systems people can actually trust
145 posts
EN ES

Human-in-the-loop: AI systems people can actually trust

AI

Explore why human-in-the-loop (HITL) is a critical, permanent architectural pattern for enterprise AI, not a temporary fix. Learn to build trustworthy systems.

Human-in-the-loop: AI systems people can actually trust

The pager going off at 3am has a certain kind of honesty. A deterministic process, something I meticulously coded, hit a state its logic couldn't handle. It was frustrating, but it was understandable. Today, the failure modes are quieter. A generative system doesn't crash; it just produces a plausible but dangerously wrong answer that silently poisons a downstream process. This new fear is why I've become obsessed with building systems that know when to ask for help.

The Fallacy of "Lights-Out" AI

There is a persistent fantasy in our field of the fully autonomous, "lights-out" AI system. Some argue it's an inevitability—that human-in-the-loop is just a temporary crutch until the models get better. But after 25 years building systems that have to run without drama, I believe that view fundamentally misunderstands enterprise risk. For any process with real financial, legal, or reputational gravity, chasing full automation isn't just ambitious; it's reckless.

The core tension is between a probabilistic model and the deterministic needs of a business. An LLM gives you a statistically likely answer, not a logically guaranteed one. In the enterprise, that's rarely good enough. We don't need a system that's right most of the time. We need a system that handles the vast majority of cases correctly, and for the small fraction of critical exceptions, reliably flags them for human review instead of failing silently. This is the permanent role of a Human-in-the-Loop (HITL) architecture. It’s a design choice for durability.

AI GeneratesProposalConfidence ScoreCheckRoute to HumanReviewRoute to AutomatedAction
The Basic Triage Loop

Architecting a Cooperative Loop

A poorly designed HITL system is worse than none at all. I once saw a system where operators faced a wall of low-confidence AI suggestions. They quickly became fatigued and started blindly clicking "approve," creating the illusion of oversight without any of the benefit. A robust HITL architecture isn't just a UI; it's a set of deliberate patterns that make human intervention effective.

The most crucial pattern is the closed feedback loop. A human’s correction cannot be a one-time fix. It must be captured as high-quality training data. As Andrej Karpathy described with Tesla's Autopilot, this turns the review process into a powerful "Data Engine" for continuous improvement. Each human intervention should make the next one less likely. This isn't a bug; it is the core feature that allows the system to master the messy edge cases of a specific business domain.

The Economics and Failure Modes of the Loop

The immediate objection to HITL is cost. Human time is the most expensive resource. But this view optimizes for a single transaction while ignoring the catastrophic cost of a major failure. An AI that incorrectly approves a multi-million-dollar payment creates a cost that can dwarf years of operational savings. HITL is an insurance policy against unpredictable, unbounded loss.

Furthermore, avoiding this work creates its own problems. A foundational paper from Google, "Hidden Technical Debt in Machine Learning Systems," warned us years ago about the long-term costs of undeclared dependencies and feedback loops. An open-loop HITL system is a classic source of this debt. Without structured feedback, the model's performance decays as the world changes, forcing more and more human intervention until the system collapses under the weight of review fatigue. The initial high rate of human review is not a cost center; it is a capital investment in the system's long-term health and autonomy.

The Ultimate Deterministic Guardrail

This brings us back to the central theme of modern architecture: composing agentic systems with deterministic automation. An LLM-based agent is brilliant at exploring a problem space and generating potential solutions. It's terrible at understanding hard constraints and non-negotiable business rules.

A human-in-the-loop checkpoint is the ultimate deterministic guardrail. You can let an agent draft ten versions of a contract, but a human lawyer must give the final, binding approval. You can let an AI suggest a server configuration, but an experienced engineer must press the "deploy" button. The human acts as a state transition function, applying complex, context-aware logic that can't be safely encoded in software. This gives us the best of both worlds: the generative power of AI, governed by the accountable judgment of an expert.

INGESTION & SOURCESStreaming EventsApplication APIsBatch Data LoadsAGENTIC & DETERMINISTIC PROCESSINGLLM Agent CoreConfidence ScoringDeterministicRules EngineVector StorageHUMAN REVIEW & FEEDBACKReview Queue UIExplainabilityContextCorrection &AnnotationFeedback DataCaptureSERVING & LEARNINGAudited APIsModel Fine-TuningAutomatedMonitoring
Architecture for a Cooperative AI System

What This Means in Practice

Moving past the hype of total automation requires the craftsmanship of building cooperative, trustworthy systems. For those of us on the ground, the work is clear.

  • Architect for intervention. Don't bolt on a review screen as an afterthought. Design HITL as a core component, with explicit APIs for routing, review, and feedback.
  • Close the feedback loop. Ensure every human correction is captured as structured data. An open loop is a wasted opportunity and a source of technical debt.
  • Empower the human reviewer. The review interface is a critical tool for explainability. It must provide the context needed to make an informed judgment, not just a button to click.
  • Start with the human in charge. For any new, high-stakes AI process, begin with the human doing the task, assisted by the AI. Increase the AI's autonomy only as it demonstrably earns your trust on your data.

The goal isn't to build AI that replaces people. It's to build systems that combine the speed of machines with the judgment of humans. That's an architecture I'd be willing to trust at 3am.

JC
Juan Cardena
Enterprise Architect, Data & AI

Enterprise architect with 25 years across web, software, data, and AI. MIT CDAO ’25. Writing on agentic AI in production.