﻿# Metaflow namespaces: latest_run depends on the current result-selection context

Understand why Metaflow notebooks resolve different latest runs under different namespaces, and preserve explicit run identities for reproducible model comparisons.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-metaflow-namespace-latest-run-selection-context/
Language: en

## Identical notebook code selects different models

Colleagues execute the same notebook expression to retrieve the latest training result. Their model predictions differ because each client's current namespace exposes a different set of runs. Neither expression necessarily failed. The word latest was evaluated within different result-selection contexts.

Record the metadata provider, namespace and resolved run identity before comparing model behavior. A source-code snippet that contains only a flow name and a relative lookup does not fully describe the artifact selected at execution time.

## Organization is the purpose of namespaces

The [result organization guide](https://docs.metaflow.org/scaling/tagging) explains user namespaces and explicit switching. It distinguishes namespace organization from security or access control. A namespace helps prevent accidental mixing of results; it should not be described as a permission boundary for underlying data.

This matters in collaborative evaluation because an intentional switch can change the candidate set. The resolved artifact should remain visible in the evaluation record rather than being hidden behind a notebook's ambient configuration.

## Latest and latest successful answer different questions

The [Client API reference](https://docs.metaflow.org/api/client) distinguishes the latest run from the latest successfully completed run. An in-progress or failed execution may be the most recent run. Choosing the appropriate property depends on whether the consumer needs a current attempt or a usable completed result.

Do not silently replace one selection rule with the other while comparing metrics. [Terminal outcome consistency](/journal/provider-terminal-request-record-consistency/) illustrates why attempted work and successfully completed work are distinct populations, even when their identifiers share the same naming pattern.

## Resolve the relative reference once

The [inspection guide](https://docs.metaflow.org/metaflow/client) describes accessing past results. For a reproducible report, resolve the intended run and retain its explicit identity with the relevant artifact references. Repeating a latest lookup later can select a newer result, including another collaborator's run after a broader namespace switch.

Also record the selected model's input contract. A stable run identifier alone does not explain tokenizer compatibility or preprocessing. An [artifact release manifest](/journal/tokenizer-artifact-release-manifest/) connects those identities without relying on the display name of a training experiment.

## Review selection as part of the experiment

Compare the resolved runs in each colleague's context and inspect their status before investigating numerical discrepancies. This often separates a selection mismatch from actual nondeterministic model behavior.

The final result should explain which run supplied the model and why it was eligible. Namespace-aware selection remains convenient for exploration, while explicit resolved identities make the exported scientific explanation stable after the notebook session ends.
