The First Step in Harness Operations: Response Labeling

The First Step in Harness Operations: Response Labeling

최원석 2026.08.02
TL;DR
An agent dashboard's "success rate" becomes distorted in two directions the moment system signals, such as whether an error occurred, are copied straight into the metric: normal responses that merely look like failures get counted as failures, and responses that left users unsatisfied get counted as successes.
The first step toward a fix is response labeling: judging every response as a success or a fallback and recording the verdict, with the judgment rules written into code at design time so that labeling runs on every response at no additional runtime cost.
The value of labels does not end with aggregation. Failed conversations become evaluation sets, user feedback feeds search rankings, operational reports drive routing improvements, and accumulated labels become the foundation for calibrating agent trustworthiness.

The Trap of a 99% Success Rate: How Agent Metrics Get Distorted

Enterprise adoption of AI agents has moved past the validation stage and into diffusion. Operational maturity, however, does not yet appear to have caught up with the pace of adoption. According to a survey of 1,340 teams by LangChain, 89% had adopted observability tooling to trace what their agents do, but only 37.3% ran online evaluation that continuously assesses response quality in production. In other words, most teams watch what their agents did, while fewer than half systematically judge how well they did it.
This gap is not merely a matter of maturity. Gartner predicts that over 40% of agentic AI projects will be canceled by the end of 2027, citing unclear business value and uncontrolled risk. Proving value and controlling risk both start from measuring how well an agent actually works. What separates the agents that survive from those that disappear is not model performance alone, but a system for measuring and improving quality in operation. The industry calls the software layer that wraps an LLM and manages tool execution, memory, guardrails, and more so that it can act as an agent an Agent Harness. This article is about the operational-quality part of that harness: the cycle of observing an agent's responses in production, judging success and failure, and feeding the results back as inputs to improvement.

What the Success Rate Doesn't Show

Before we get to the starting point of the harness, there is one thing to address first: the "success rate" number that so many operations dashboards display. Suppose the dashboard of an internal work agent shows a 99% success rate. If that number is produced by copying signals left in the system, such as whether an error occurred or whether the requested task was completed, straight into success and failure, it can diverge from reality in two different directions.
One direction is responses that look like failures but are not. A case Langcode encountered while building and operating an internal work-agent hub for a major Korean telecommunications company illustrates this. When an agent asked to book a meeting room answers that no meeting rooms are available, the execution ended without completing the requested task, so error-based counting tends to place it on the failure side. From a business perspective, however, this is a normal response that delivered an accurate fact. The other direction is responses counted as successes that were not successes for the user. In the conversational AI of a major Korean retailer, responses that presented options and asked users to clarify their intent kept appearing, even for questions that were ambiguous by system standards but had, for the vast majority of users, one practically settled answer. Asking back was itself a deliberately designed behavior for narrowing ambiguous questions, and the responses behaved exactly as designed. But what users wanted was the answer, not options, and this mismatch surfaced not through any metric but through accumulating negative feedback. At both sites, there was a gap between the dashboard numbers and the reality of the work.

The Unit of Measurement

So where does this gap come from? What the two cases share is that the raw material of the success rate was the system signal itself, not a judgment. The technical records of whether an error was left behind were piling up faithfully, but those signals were simply taken as success or failure; nowhere in between was there a judgment of whether this response properly answered the user's request. Fixing the success rate therefore starts not with the aggregation method but with the unit beneath it: judging each individual response as a success or a failure and recording the verdict, instead of transcribing signals as they are. This insight looks at response labeling, the first step of agent operations, through the cases Langcode has actually built and operated at these two sites.

Putting a Name Tag on Every Response: Observation Starts with Labeling

The first step toward closing the gap is response labeling. Labeling means recording, for every response an agent produces, a structured value for what kind of outcome the response was. It helps to distinguish logs from labels here. A log is a chronological record of what the agent did; a label is the verdict attached on top of that record. Whether it was a success, and if a failure, what type of failure, is what the label holds. The idea itself is not new. Back in the chatbot era, the substitute response sent when a user's question could not be answered was called a fallback, and the fallback rate was a standard metric of chatbot quality.

Where Standards and Tools Are Heading

In the agent era, this idea is becoming a shared premise of standards and tools. OpenTelemetry's semantic conventions for generative AI, the de facto standard for observability data, are coming to define recording an error type (error.type) when an agent execution ends in an error, and OpenAI defines trace grading as "assigning structured scores or labels to an agent's trace." Reference taxonomy research on what to track across agent operations is emerging as well. The direction seems clear. The center of gravity is shifting from observation, which watches how far the agent got, to labeling, which judges how it ended.

Two Sites, One Design

The two sites Langcode has operated arrived at the same conclusion. In the telecom case, every response the agent hub produces receives a Success or Fallback label. Fallback here carries a broader meaning than in the chatbot era: it covers every outcome where the request was not completed normally. Fallbacks are then subdivided and recorded under some thirty error codes, such as AI call errors, response parsing failures, and external system integration errors. On top of these labels, per-agent selection counts, success rates, and response times are aggregated into operational reports. What is interesting is that unlike many standards and tools, which treat success implicitly as the absence of errors, the hub gives success an explicit name tag as well. Only when success exists as an explicit value can outcomes that look like failures but should be recorded as successes, as we will see below, be handled as rules.
The retail case arrived at the same design independently. Every answer from the conversational AI receives one of six labels: three kinds of success by response path, and three kinds of fallback by cause. On top of that, the entire process behind each response, including the grounds and confidence of intent classification, search results, and processing time, is preserved as an audit record. That two systems which started from different domains and requirements landed on the same structure of labeling every response and subdividing failures by type suggests this is not a matter of project taste but a common requirement of agent operations.

Labeling Everything

Notably, both sites label every single response. In industry, in-production quality evaluation typically relies on sampling, evaluating only a subset of responses, because judging whether an answer satisfied the user's intent requires another LLM call, and that cost and latency accumulate per response. Labels like success and fallback are different. Which path produced the answer, and what type of error occurred if any, are facts already settled while the response is being produced; labeling simply writes down information the system already knows. The judgment rules for what counts as success and what counts as fallback are baked into code at design time, and at runtime the rules are merely applied. That is why labeling adds no per-response judgment cost and can be applied to every response without exception. Spend the expensive judgments sparingly, but never miss a single cheap name tag. That is the principle the two sites share. This leaves one natural question: who decides the criteria for those name tags, what to count as success and what to count as failure? The two distortions we saw earlier arise exactly at this point.

Failures That Aren't, Successes That Aren't: Defining Failure Is Domain Knowledge

Having the structure to attach name tags is only the beginning. The harder problem is deciding the criteria: what to count as success and what to count as failure. At first glance, an equation of "error means failure, no error means success" seems sufficient, but it breaks in production in two directions.

Normal Responses That Look Like Failures

The first is the case that looks like a failure but is not. In the telecom case, the agent hub produces responses that end without delivering the requested result: answering that no meeting rooms are available after a booking request, or asking the user to clarify because no suitable agent could be found. Seen purely from the system's perspective, these are outcomes that would easily be counted as failures. But answering that nothing is available when no meeting room matches the conditions is the system doing its job correctly, not a malfunction. So the hub carries in its code an explicit list of outcome types to record as successes rather than failures.
The judgment that separates a normal business outcome from a system malfunction cannot be made by technology alone. That "no meeting rooms available" can be the correct answer is something only someone who knows the work can decide. It is the territory of domain knowledge.

System Criteria and User Criteria

The second is the case that was counted as a success but was not a success for the user. The retail case's conversational AI was designed to treat short queries like "inspection" or "returns" as ambiguous by system standards and, instead of answering directly, present options and ask for the user's intent. It was deliberate behavior meant to narrow ambiguous questions, and by the standard of system labels it was an unproblematic success. The problem was that what users expected for these queries was the answer itself, not a list of options. The mismatch surfaced not through labels but through accumulating negative feedback. The criterion of success had stopped at whether the system behaved as designed, while whether the user got what they wanted was a separate layer altogether. There is an interesting contrast here. In the telecom case, a clarifying response was normal behavior to be recorded as a success, while in the retail case there were times the same clarifying behavior turned out to be a problem. The same behavior receives opposite verdicts depending on domain and context. It is one more scene showing why the definition of failure is domain knowledge.
What deserves attention is what happened after the discovery. The retail team froze the problematic queries into a golden set, a collection of representative cases that serves as the baseline for repeated verification. Whenever the system is improved, the same questions are asked again to verify that it now answers directly instead of asking back. A definition of failure surfaced this way remains as a test rather than a document, preventing the same mistake from recurring.

Definitions Refined in Operation

The lesson from both cases is the same. The definition of failure is not completed when the label schema is designed; it is refined in operation, absorbing domain knowledge along the way. Academia's approach is no different. A study analyzing why multi-agent systems fail could only discuss the structural patterns of failure after hand-labeling more than 1,600 execution traces with 14 failure modes. Treating failure as a classification system is a precondition of analysis. So do these carefully attached and refined name tags end at making dashboard numbers accurate? At both sites, the answer was no. The real value of the name tags comes next.

Failure Data Is Never Thrown Away: The Loop That Runs Itself and the Loop That People Run

The real value of name tags lies not in aggregation but in reuse. A turn with a fallback label is primary data on when, and in front of which questions, the system breaks down; not letting it drain away, but returning it as input to improvement, is the main business of harness operations. Industry guidance points the same way. Anthropic's guide to agent evals recommends converting user-reported failures into test cases, and observability tools like LangSmith offer adding production runs to evaluation datasets as a first-class workflow.

From Failure Data to Evaluation Sets

The retail case turned this reuse into a pipeline. Turns with fallback labels or negative feedback are extracted from the production database to build evaluation sets, and the labels themselves serve as the extraction condition. Because labeling is exhaustive, every failed conversation of the last month is one query away. The collected questions are replayed against the improved version of the system, in a development environment separated from production, so real users are never affected. If the golden set we saw earlier is a standing verification set that pins down failures once they are discovered, this evaluation set is drawn fresh from production data each time. The same replay-and-grading pipeline digests both.
Multi-turn conversations that include clarifying questions are tricky to replay automatically, so an LLM stands in for the user. A simulator that knows the original intent of the question picks the matching option among the choices the system presents, carrying the conversation through to the final answer. Grading is likewise automated with an LLM-as-a-Judge, that is, another LLM ruling on whether the answer is correct, with only low-confidence verdicts routed to human review. LLM judges show high agreement with human evaluation while their own biases are also well documented, so this is a compromise that hands neither everything to the machine nor everything to people. The graded results are compiled into side-by-side reports of accuracy, response time, and cost before and after the improvement. Once a person starts it, everything from extraction to grading is run by machines: a half-automated loop.

The Loop That Runs Itself

There is an even more automated path. In the retail case, users' positive and negative ratings on answers feed directly into search ranking. Documents that earn positive ratings rise in priority for similar future questions, and documents flagged for factual errors sink. Reflecting only factual-error flags rather than all negative ratings is a deliberate filter that keeps subjective complaints from riding into the ranking and destabilizing search quality. And instead of a simple average, the ranking uses the Wilson score confidence interval, a statistical safeguard that keeps documents with few ratings from being swayed by a handful of extreme ones. Feedback flows straight into the quality of the next answer with no human in the middle: a loop that runs itself.

The Loop That People Run

In the telecom case, people run the loop. Per-agent success rates and failed responses are compiled into reports, and when operators refine the agent registry's descriptions, tags, and examples based on those results, the edits are reflected directly in the next routing decision. That registry is exactly what the router consults when choosing which agent to hand each question to. It is not automated feedback, but failure data leads to improvement and the effect of the improvement is measured again through labels; the structure of measurement and improvement chaining into a cycle is the same.
Automatic versus manual is less a question of superiority than of domain characteristics and of where automation is possible. What matters is that the cycle is never severed in the middle. Only when labels produce improvements, and the effects of improvements are measured again as labels, do measurement and improvement avoid ending as one-off events. Once this cycle takes root, failure is no longer a cost to be written off but an accumulating asset. And when that asset has accumulated enough, what more can the harness do?

From Observation to Trust Calibration: What the Harness Does Next

When enough labels accumulate, attention shifts from individual responses to the agents themselves. Which agents fail often on which types of questions, and how long and how costly their responses are, begin to show, and the accumulated labels become, beyond verdicts on individual responses, a track record for each agent. And a track record is what you need to answer the next question: how much can this agent be trusted with this work?

Stated Confidence and Actual Success Rates

The problem is the basis of that trust. You can ask an LLM how confident it is, but the tendency of a model's stated confidence to diverge from its actual accuracy has been confirmed repeatedly across studies. This is also why the retail case did not take the judge's confidence at face value, using it only as a caution signal that calls in a person when it runs low. Calibrating a model's confidence to its actual success rate is a long-standing problem in deep learning, and in agent operations it becomes a problem of delegation. Scoring trust from observed track records rather than self-stated confidence, and letting trust move as the record changes, is the harness's next job. It is a job that only becomes possible once response labeling, the first step, is in place.

From Handcraft to a General-Purpose Layer

Langcode is carrying out R&D to generalize this cycle, built by hand at each of the two sites, of labeling every response, refining the definition of failure to fit the domain, and returning failure data to improvement, into a general-purpose operations layer bound to no particular project. The story of this layer, which observes agent behavior to quantify and calibrate trust, is one we plan to continue in future insights.

Closing

This insight has looked at response labeling, the first step of agent operations, through the two directions in which success-rate metrics get distorted and the two production cases that have been correcting them. Companies adopting agents are multiplying fast, but as Gartner forecasts, a considerable share will disappear without proving their value. If what separates those that remain from those that vanish is not model performance alone, the difference may well begin with small, diligent operational habits, like putting a name tag on every response.

References

LangChain, State of Agent Engineering: https://www.langchain.com/state-of-agent-engineering
OpenTelemetry, GenAI Semantic Conventions: https://github.com/open-telemetry/semantic-conventions-genai
Dong et al., "A Taxonomy of AgentOps for Enabling Observability of Foundation Model based Agents": https://arxiv.org/abs/2411.05285
Cemri et al., "Why Do Multi-Agent LLM Systems Fail?": https://arxiv.org/abs/2503.13657
Anthropic, "Demystifying evals for AI agents": https://www.anthropic.com/engineering/demystifying-evals-for-ai-agents
LangChain, "Production Logging Automations in LangSmith": https://www.langchain.com/blog/langsmith-production-logging-automations
Zheng et al., "Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena": https://arxiv.org/abs/2306.05685
Evan Miller, "How Not To Sort By Average Rating": https://www.evanmiller.org/how-not-to-sort-by-average-rating.html
Xiong et al., "Can LLMs Express Their Uncertainty?": https://arxiv.org/abs/2306.13063
Guo et al., "On Calibration of Modern Neural Networks": https://arxiv.org/abs/1706.04599

Subscribe to Newsletter (TX Insight)

Langcode publishes a newsletter every month on the third Wednesday of the month (TX Insight).
To stay up to date with Langcode news and the latest IT trends and insights, click the Subscribe button below.