﻿# W&B reference artifacts: tracked metadata does not transfer ownership of external object retention

Use Weights & Biases reference artifacts with explicit external versioning, retrieval credentials and retention, separating tracked metadata from uploaded file copies.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-wandb-reference-artifact-external-retention/
Language: en

## Identify where the file bytes actually live

A team tracks a large dataset as a W&B artifact reference and later removes the source bucket, believing artifact versioning created an independent copy. The [external-file guide](https://docs.coreweave.com/products/wandb/artifacts/track-external-files) distinguishes reference metadata from uploaded artifact files. Establish the owner of the bytes before choosing a retention policy. A versioned tracking record can remain visible after the external storage it describes is no longer available to the training or evaluation worker.

## Inspect the reference scheme and identity evidence

The [Artifact API](https://docs.coreweave.com/products/wandb/ref/python/experiments/artifact) defines scheme-specific reference metadata and checksumming behavior. Do not assume every URI scheme provides the same evidence of object contents. An object-store reference, an HTTP response and an arbitrary URI can have different identity information. Record what the chosen scheme actually preserves so an artifact digest is not misrepresented as a complete independent archive of every external byte.

## Preserve the intended external revision

The [S3 versioning guide](https://docs.aws.amazon.com/AmazonS3/latest/userguide/manage-versioning-examples.html) describes retaining multiple object versions in a bucket. Coordinate the source's versioning policy with the reference workflow when objects can be overwritten. A tracked version identifier is useful only while that version remains retained and retrievable. Versioning configuration does not make every historical object immortal, and lifecycle expiration or deliberate removal can still invalidate the artifact's ability to retrieve its original content later.

## Validate credentials and partial-retrieval policy

The worker retrieving a reference needs access to the underlying storage path. A tracking-service account does not automatically grant every worker that access. Test from the intended execution environment and handle missing references according to an explicit completeness policy. Permitting partial retrieval can be useful for inspection, but it should not silently turn an incomplete dataset into a supposedly reproducible training input or a model artifact missing required files.

## Test retrieval after a controlled source change

Record a reference to a small versioned fixture, change the current source object and confirm the intended historical content is retrieved. Then test an unavailable-reference case without claiming successful completeness. The guides on [dataset removal lineage](/journal/data-guide-dataset-removal-lineage-tombstone/) and [container artifact verification](/journal/artifact-signature-verification/) provide related context. Reliable reference tracking links metadata to retained external content and an authorized retrieval path. It explains responsibility for those dependencies rather than transferring that responsibility merely by creating an artifact record.
