﻿# CrewAI evaluation separates failed runs from runs with no trace

Test failed traced and untraced runs alongside clean runs with missing traces; execution status and evaluation verdict describe different parts of the workflow.

Author: Retrivium team
Updated: 2026-11-15
Canonical URL: https://retrivium.ai/journal/week46-agent-crewai-eval-failed-run-classification/
Language: en

CrewAI 1.15.38, published on November 8 at 19:39:30 UTC, adds a run_failed outcome when a run started for evaluation exits with an error. Available traced failures can still be graded. An evaluation dashboard should distinguish execution failure, missing evidence and a negative quality verdict rather than compressing them into one unsuccessful score.

## Use a matrix of run and evidence states

Build synthetic cases for failed execution with a trace, failed execution without a trace and normal execution that leaves no trace. Capture CLI outcome, stop reason and available diagnostics separately. A missing trace is not proof the task failed, and a trace is not proof it succeeded. The release makes one classification more explicit; the application still needs to preserve both axes when reporting evaluation coverage.

## Grading failure is still useful evidence

For the traced failing case, verify that grading can complete while the original run remains failed. The report may explain the failure without turning it into a successful task. Check the final process code and stored run status after the verdict. A parent scheduler should not automatically publish partial artifacts merely because an evaluator produced a valid report about them.

## Cancellation needs a separate category

Include a user interruption and a clean zero-code exit as controls. The PR keeps their existing paths rather than relabeling every nonstandard stop as run_failed. Use bounded synthetic execution so interruption timing is controlled. This prevents evaluation coverage reports from mixing cancelled work with application defects, a distinction that matters when teams compare failure rates before and after adopting the new CLI behavior.

## Aggregate only comparable outcomes

Report execution success, trace availability and quality acceptance with their own denominators. An apparent change in evaluation success can result from better classification rather than worse agents. Keep diagnostic log tails synthetic and avoid placing raw errors into categorical telemetry fields. A useful adoption result shows each fixture reaches its intended category and that the parent handles a failed run honestly even when its evaluation remains informative.

## Sources

- [CrewAI 1.15.38 release notes](https://github.com/crewAIInc/crewAI/releases/tag/1.15.38)
- [CrewAI implementation and review #9227](https://github.com/crewAIInc/crewAI/pull/9227)

## Related reading

- [Flyte 2 traces: a successful helper checkpoint is different from a failed external attempt](/journal/fg2-flyte-two-trace-success-checkpoint-replay-boundary/)
- [Retrying generation POSTs: idempotency must be explicit](/journal/provider-post-retry-idempotency-ledger/)
