Canonical: https://www.startearly.ai/case-files/mastra/provider-failure-output-processors/
Updated: 2026-11-14

# Mastra Output Processor Regression Case File | Early

## A provider failure skipped every configured final processor.

Regression Case File

Mastra 1.56.0 skipped the final output-processor pass after an unrecovered provider error. Three releases were affected before 1.59.0 restored the behavior.

## Release

**Baseline:** 1.55.0

**Baseline Date:** 2026-07-31

**Introduced:** 1.56.0

**Introduced Date:** 2026-08-06

**Last Affected:** 1.58.0

**Restored:** 1.59.0

**Restored Date:** 2026-08-16

**Affected Release Count:** 3

### Public report

Reported by: User. Recorded report delay: 133 hours.

Recorded fix delay: 247 hours.

## Regression

The provider error was already visible.

The final handling silently disappeared.

Configured terminal processing could be skipped after provider failure.

**Changed:** A fix for orphaned input persistence placed a failed-status guard around the shared runOutputProcessors call. That stopped every configured final processor, not only MessageHistory. The later fix restored the shared pass for failed streams and moved the input-only persistence rule into MessageHistory.

**Relationship:** Provider error → failed stream → shared output-processor pass → configured terminal behavior

The persistence rule guarded a shared lifecycle stage instead of the processor that owned persistence.

## Replay

The September 2 historical replay analyzed a bounded 30-commit segment within the Mastra 1.55.0 to 1.56.0 release window.

The run returned 14 findings: **10 Expected** and **4 Regression**. Independent review confirmed one Regression as the target defect, rejected two as false positives, and left one unresolved. The confirmed-defect count is therefore one, not the raw Regression-label count.

“Expected” means behavior Early classified as expected, not the number of bugs it expected to find. “Regression” identifies behavior classified as a defect relative to the baseline. These labels describe this run; the counts are not recall or accuracy measurements. The verification evidence below establishes which defects were corroborated.

**Finding Title:** Output processors skipped when status failed/canceled

**Finding Summary:** Early identified the broad guard in the exact changed file and classified the target as Regression. Published packages produced processor counts of 1, 0, and 1 across versions 1.55.0, 1.56.0, and 1.59.0. The complete output also contained two false-positive Regression rows and one unresolved candidate excluded from confirmed counts.

The actual Early finding from the September 2 targeted historical replay.

### Supporting evidence

The finding includes a concrete procedure for reproducing and validating the skipped processor behavior.

The investigation prompt gives an engineer the repository context and verification instructions needed to assess the finding.

### Public Report

[Public issue #21292](https://github.com/mastra-ai/mastra/issues/21292)

### Introducing Change

[Introducing PR #19716](https://github.com/mastra-ai/mastra/pull/19716)

### Upstream fix

[Upstream fix PR #21370](https://github.com/mastra-ai/mastra/pull/21370)

**Disclosure:** Independent targeted historical replay. Not affiliated with Mastra.

[Technical article](https://www.startearly.ai/post/mastra-output-processors-regression-release-replay/)

## Source and next step

[Read the canonical page and its evidence](https://www.startearly.ai/case-files/mastra/provider-failure-output-processors/).
