﻿# Metaflow resume: edited successful steps can still contribute their old artifacts

Distinguish debugging a failed Metaflow step from rerunning an entire changed experiment, including reused successful artifacts, parameters and configs.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-metaflow-resume-successful-step-code-provenance/
Language: en

## A repaired evaluator with old preprocessing

A model workflow fails while calculating a final metric. During debugging, an engineer fixes the evaluator and also corrects text normalization in an earlier successful step. Resuming from the failure completes successfully, but its inputs may still be the old normalized documents. The apparent successful fix therefore answers a narrower question than a fresh full run.

State that question explicitly: does the repaired evaluator handle the previously produced input? That is useful evidence. It is different from showing that the complete revised workflow produces the intended new dataset and metric.

## Successful steps are reuse candidates

The [debugging guide](https://docs.metaflow.org/metaflow/debugging) explains that resume reuses successful results based on flow and step names, even when the code of a successful step changes. It also describes choosing an earlier resume point when upstream work must be executed again.

Do not interpret a changed source file as an automatic cache invalidation declaration. Identify the earliest affected step and examine which downstream inputs must be recomputed. A dependency expressed in developer intent is not necessarily inferred from every source edit by the resume mechanism.

## Original parameters remain part of the run

The guide also distinguishes resumed parameter and config values from current local edits: original run values are reused. A modified config file beside the script is therefore not proof that a resumed task receives that file's new settings.

The [FlowSpec reference](https://docs.metaflow.org/api/flowspec) describes parameters as flow artifacts available through execution. Keep their resolved values with the debugging record, including any model or dataset revision they name. [Configuration schema discipline](/journal/data-guide-frictionless-table-schema/) helps identify intended changes before they are confused with runtime behavior.

## Inspect origin and recomputed artifacts

The [Client API guide](https://docs.metaflow.org/metaflow/client) supports inspecting run and task results. Use concrete task identities to explain which artifacts came from previous success and which were newly computed. A new overall run identifier does not mean every artifact was generated by the latest source code.

For this normalization fix, inspect a recognizable corrected document before evaluating the new metric. Then establish the model and tokenizer relationship through an [artifact release manifest](/journal/tokenizer-artifact-release-manifest/) rather than assuming all participating components changed together.

## Separate debugging closure from release validation

A resumed success can close the local evaluator bug while a full revised run remains necessary to validate upstream changes. Record both outcomes separately so a later reviewer can understand the scope of each result.

This practice avoids treating reused artifacts as suspicious by default. Reuse is valuable when deliberate; the problem is an unexplained mixture of old and new computation presented as a fresh end-to-end experiment.
