AI · 17 min read ·
Shipping an agent: the human-in-the-loop
Autonomous demos look great. In operations the real question is: who pays for a wrong answer, and who can stop it?
LLM agent demos often end on “look, it did it alone.” Operations are not that moment. Wrong classification, wrong email, wrong access: who pays, and who can stop it?
Human-in-the-loop is not a weakness. It is the default spine for production. The agent proposes, a human approves, the system applies, logs keep score. Approval thresholds scale with risk. Low-risk labelling may auto-pass. Outbound comms or permission changes always need a human.
I built the same pattern into Inforlary Label and support-triage work. Models are fast; one wrong automatic customer reply costs more than three months of correct ones. Even when approval rate is low in month one, I keep replies as drafts.
Production checklist
Tool scope in writing: which APIs may the agent touch, which never? An open “general purpose tools” list asks for write access to production by week two.
PII filter: which fields are masked on input and output? Raw identity in the log becomes a “the model saw it” fight later.
Cost cap: daily token or call ceiling; stop when exceeded. An agent stuck in a loop announces itself on the invoice.
Undo: after a bad approval, one-click rollback or a ticket? Without rollback, nobody presses approve and the system dies in practice.
Eval set: good and bad examples; weekly regression. “The model feels better” is not a production decision without a set.
Support triage example
An agent that classifies inbound tickets stays autonomous on classification. Customer-facing replies land as drafts. An operator approves or edits in seconds. Edits feed the eval set. If the same error class shrinks in month two, we talk about thresholds. Without measurement I do not lower them.
When I loosen
If 95% of approvals pass unchanged and error cost is low, I lower the threshold. I apply it to one channel or one intent class first; I do not open the whole product at once. If undo is missing, I do not loosen.
Observation
Teams sometimes call human approval slow. What is slow is unclear ownership. When who approves is clear, the queue clears in minutes. When it is not, everyone says “I’ll look” and drafts pile up.
Shipping an agent is not a model choice. It is responsibility design. The bridge from demo to operational trust is the human-in-the-loop. Opening autonomy before that bridge exists confuses speed with risk.