Est.

Regression-Gated Health Checks That Surface Tool Call Reliability Trends Before Incidents Compound

Per-tool baselines catch silent failures that HTTP status codes miss.

· 8 min read
Cover illustration for “Regression-Gated Health Checks That Surface Tool Call Reliability Trends Before Incidents Compound”
Regression Testing · November 20, 2026 · 8 min read · 1,830 words

Silent tool failure detection in production multi-agent pipelines means checking a tool’s result against its schema, intended state change, and outcome contract as well as its HTTP status. Regression-gated health checks then compare those per-tool signals with baselines drawn from traces. They identify worsening reliability in per-tool signals before corrupted intermediate results compound across a workflow, including when the pipeline returns wrong answers without errors.

Why binary health checks fail to catch tool call degradation in production agents

Request rate, latency, and error rate describe service behavior, but they do not establish whether an agent chose the right tool, supplied valid arguments, or preserved a correct intermediate state. A binary health check collapses those distinctions into one result. An agent can therefore loop, accumulate cost, and corrupt downstream state without producing an HTTP error.

Panthi & Abdelfattah (2026) document a production incident in which a cached HTTP error page arrived in the expected format. The agent consumed it as content and produced a confident fabricated analysis. The protocol-level result concealed the defect in the returned content. Kalappurackal Mansoor et al. (2026) describe a different gap in non-atomic tool calls, where timeouts after dispatch, delayed visibility, and partial updates separate the response channel from the effect channel.

These failures expose a weakness in the health criterion itself. Adding more pass/fail probes does not resolve it if each probe still treats a successful response as evidence of a correct outcome. Regression-gated checks must replace that definition of agent health with one grounded in the validity of the call and its effects.

How tool call failures cascade when no trend signal exists

A wrong argument early in a workflow can produce plausible but semantically wrong data, which later steps accept and use. Each dependent action then extends the original defect. Without a signal that identifies this pattern at the tool level, the workflow can continue while its outputs become less reliable.

Repeating a request that produces a structurally broken response reproduces the payload and adds cost. The non-atomic failure study shows that agents without postcondition checks and idempotency keys can take the same action twice and report task completion when the task is not complete.

Mehan (2026) audits 21 safely induced failures across ten MCP servers and finds that typed fields usually expose failure but provide no specific cause, executable repair, or replay constraint. The client lacks a machine-readable basis for deciding whether to change an argument, authenticate, wait, switch tools, or stop. Retrying a malformed request wastes a call, while replaying a partially committed operation may do damage.

Mulian et al. (2026) identify recurrent planner misalignments and schema violations as separate systemic weaknesses in IBM CUGA. These faults can corrupt the outputs that depend on them while the system seems to work normally. Aggregate task completion and error metrics reveal the eventual consequences, but they do not identify the first deteriorating tool interaction.

What regression thresholds measure that error-rate thresholds cannot

An error-rate threshold asks whether a metric exceeds a fixed value. A regression threshold asks whether a tool’s reliability is moving away from its recent baseline. The distinction is the reference point. A tool can remain within an acceptable absolute range while its schema compliance declines persistently or its retries rise.

The relevant signals include schema compliance, argument validity, postcondition verification, and retry rates for each tool. Their direction and persistence expose deterioration that an aggregate error-rate threshold can miss. A fixed threshold remains insensitive until the metric crosses its boundary.

This comparison requires a health endpoint with structured JSON and per-subsystem status. The fleet-level outcome these checks protect is task completion rate, which measures the fraction of initiated tasks reaching a successful terminal state. That outcome also counts failures in which the agent loops, reaches context window exhaustion, or gives useless responses, even when HTTP requests succeed.

Which signals to track per tool and how production traces supply them

The minimum useful evidence is the action, arguments, response, and resulting state of each tool call. Production traces connect these parts within the workflow. To capture that evidence, the detection layer should emit OpenTelemetry spans for each invocation with the action, arguments, raw response, and postcondition state. Outcome contract evaluations belong with those records so the gate can compare protocol success with substantive correctness.

Schema compliance measures whether the response matches the promised contract, including field types, required keys, valid JSON, and complete payloads. Argument validity examines the other side of the boundary. It measures whether the agent’s inputs conform to the tool’s input schema. Together, these signals distinguish a malformed request from a response that breaks the contract the agent expected.

Postcondition verification checks whether the state after the action matches its intended effect. This closes the gap left by the response channel. Retry rate adds context, especially when traces show whether repeated arguments are identical or modified. Identical arguments can indicate repetition of a structural mismatch, while changed arguments can indicate adaptive recovery.

Silent failure rate addresses calls that pass schema checks but violate an outcome contract, such as a negative inventory value or a price outside a plausible range. Panthi & Abdelfattah describe contracts mined from task-disjoint traces or derived from public schemas. Nominal executions establish valid properties against which later results can be tested. Deterministic schema, argument, and state checks should run on every trace so that regression comparisons have the large amount of evidence they need.

How regression threshold logic differs for schema drift, non-atomic failures, and silent quality degradation

Schema drift calls for a slope-based comparison. A widening field type or a required key becoming optional in practice can drive argument validity or response compliance downward over days. The gate should compare those rates across a rolling trace window and fire when they keep getting worse. A single invalid response is evidence for classification, but not by itself evidence of a continuing trend.

Non-atomic failures require a shorter view of change. Timeouts after dispatch, delayed visibility, and partial updates can cluster within a session. The gate should watch for step-function increases in retries and postcondition failures relative to the tool’s rolling baseline. Waiting for a daily aggregate would leave room for duplicate actions and incorrect completion claims to accumulate.

Silent quality degradation needs a contract-based reference instead. The response may remain complete and well-formed while its content violates an expected property. The gate should compare outcome contract violation rates with the baseline from task-disjoint traces. Its coverage is limited by the properties those contracts express.

That limitation makes contract maintenance part of detection. The outcome monitor study reports that detection outside the mined vocabulary falls to 46% on a suite transcribed from a published incident taxonomy. New tool behaviors therefore require contracts to be re-mined. Each tool needs its own baseline and failure-class comparison window, with structured status distinguishing a sustained schema decline from a session-level postcondition jump.

Using AgentFixer's validation toolchain as a model for structuring the detection layer

Mulian et al.’s AgentFixer shows how to build this detection layer. When used with CUGA, the framework brings together fifteen failure-detection tools and two root-cause analysis modules for prompt analysis, input validation, and output validation. Its analysis detected issues in a substantial majority of LLM calls across all tested models. This was diagnostic coverage, with task-failure causation for individual flagged calls unproven by that measure.

Prompt analysis examines contradictions, coverage gaps, and edge-case handling, which can expose brittle dependencies behind repeated schema problems. Input validation checks schema and format before execution. Output validation checks for factual consistency, syntactic correctness, and reasoning-action alignment, showing how to check results and the effects an action was meant to have.

The diagnostic findings included planner misalignments, schema violations, and brittle prompt dependencies. IBM used those findings to refine prompting and coding strategies without retraining the underlying models. Mid-sized models achieved notable accuracy gains and substantially narrowed the gap with frontier models. The intervention targeted the harness rather than assuming that model capability was the only source of failure.

For regression gating, the architectural lesson is a two-tier validation layer. AgentFixer integrates lightweight rule-based checks with LLM-as-a-judge assessments. Deterministic checks can run on every trace, while judge assessments should focus on flagged traces that need a closer look. This division gives the baseline broad coverage without making every tool invocation depend on an expensive semantic assessment.

How trace evidence drives the check logic: from captured failure to regression gate condition

The derivation begins with the evidence already captured per invocation. Each trace needs the action, arguments, raw response, postcondition state, and any outcome contract evaluation. Deterministic checks then classify the call by its observed failure class, including schema mismatch, non-atomic failure, silent contract violation, or a clean result. Classification turns an unstructured incident into evidence a health check can compare.

The next step establishes the reference behavior for each tool. Recent clean traces supply the rolling baseline for its reliability metrics. Contracts mined from nominal, task-disjoint executions provide the expected properties for silent failure checks. The comparison thus rests on observed behavior and explicit outcome requirements.

The gate condition combines a metric, a direction, and a comparison window. Schema compliance uses a sustained downward trend, while postcondition failures use a session-level increase and silent degradation uses a rising contract violation rate. A structured result should identify the tool and the affected failure class. It can also distinguish a changing signal from stable ones, giving engineers attribution.

Before changing a threshold, engineers should replay historical traces against the proposed condition to establish whether it would have caught the failure without firing on clean traces. This checks both detection and discrimination. It also makes engineers check that the comparison window fits the failure before they use a threshold that looks plausible in production.

Connecting regression-gated health checks to the broader harness improvement loop

A firing gate produces an alert. Its operational value depends on whether the triggering traces lead to a reviewable fix. Those records show the argument patterns, response shapes, and state discrepancies needed to find which layer is affected. A schema regression, for example, points engineers toward the tool schema or the prompt that generates arguments before they assume the cause lies in model capability.

The lesson from CUGA is to use diagnostic attribution to choose the intervention. A change may belong in prompting, a tool schema, or workflow logic, depending on the evidence. Before release, the proposed fix should be replayed against the historical traces that triggered the gate. That validation checks whether the fix resolves the original failure without causing another regression.

The same traces should then enter the golden eval dataset. They represent production failures the system must continue to catch. Adding them after each incident makes the regression history part of future evaluation. The detection layer itself also needs maintenance as tool behavior evolves, including refreshed baselines and outcome contracts.

Prompts, tool schemas, workflow conditions, and eval gates become reviewable engineering artifacts backed by production evidence. Gate maintenance belongs on the same cadence as code review.

Sources

  1. Verified Tool Calls Improve LLM Agent Reliability Under Non-Atomic Failures
  2. Outcome Monitors: Recovery Affordances for Silent Tool Failures
  3. Can MCP Clients Decide What to Do After Failure? A Result-Only Actionability Audit
  4. AgentFixer: From Failure Detection to Fix Recommendations in

More in Regression Testing