﻿# CVAT predefined file ordering: keep the manifest beside the archive

Use CVAT dataset manifests to preserve intended source ordering and understand their placement and media-access role when creating annotation tasks.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-cvat-manifest-predefined-file-order/
Language: en

## Establish what the manifest represents

A directory listing, an uploaded archive and an annotation task can expose the same images in different orders. The [CVAT manifest guide](https://docs.cvat.ai/docs/dataset_management/dataset_manifest/) describes a JSONL artifact containing information about input media. It is used for cases such as caching, cloud sources and predefined ordering. Keep that role separate from annotation labels and from a full copy of the underlying media files when designing a reproducible import.

## Preserve the intended source sequence

With predefined ordering selected, CVAT uses an available manifest to order source files. Without one, it uses the supplied file-list order. That distinction matters when an external table or review instruction refers to positions in a sequence. Prefer explicit source identities when joining labels, but also retain the actual ordering rule. A familiar filename order in a local file manager is not evidence that a remote import used the same sequence.

## Place archive manifests correctly

For image archives using predefined ordering, the documentation requires a manifest next to the archive in the input list rather than inside the archive. It also rejects multiple manifest files in that input list. Rehearse the exact packaging of a representative import before preparing a large transfer. A valid manifest hidden within an otherwise correct archive can still fail the consumer's placement contract even though a human can find and read it after unpacking.

## Retain access to the described media

A manifest is metadata, so media retrieval still depends on the selected source. The [cloud-storage guide](https://docs.cvat.ai/docs/workspace/attach-cloud-storage/) explains source attachment, while the [task guide](https://docs.cvat.ai/docs/workspace/tasks-page/) describes task input parameters. Preserve the source revision and object paths with the import record. A later replacement at an unchanged path can make the same manifest describe a different practical input unless content identity is controlled elsewhere.

## Check the created task against source identity

Inspect the first, last and exceptional filenames in the resulting task, then join annotations using stable source identifiers rather than a guessed row position. The guides on [sample-key integrity](/journal/data-guide-webdataset-sample-key-shards/) and [content-hash boundaries](/journal/data-guide-exact-hash-normalization-boundary/) provide related principles. A successful task creation establishes that CVAT accepted the input package; sequence checks and recoverable media identity establish whether it represents the dataset the import procedure intended to create.
