Manifest Metadata guidelines
Guidance for creating and checking the machine-readable inventory of a research package: paths, origin, release status, sharing conditions, media types, sizes, and checksums.
How to use this guideline
Use this page as the human-readable version of the MATSCI-NASU author guideline. The technical source and current package version are maintained in DataverseUA. Metadata should record only information supported by actual files, settings, logs, results, documentation, or researcher decisions; do not invent values for formal completeness.
Author Guidelines: MATSCI-NASU Manifest Profile v1.0
1. Purpose
manifest.json is an inventory of the files in the
package. For every file it records the relative path, media type,
origin, release status, sharing conditions, size and SHA-256 checksum.
The manifest does not replace dataset.json,
workflow.json or provenance.json, and it does
not duplicate their metadata.
The manifest.json file itself is not included in its own
files list.
The structure of the file is defined by
manifest_schema.json; a complete example is given in
manifest.examples.json.
2. Main Fields
manifestVersion— version of the manifest profile, the string"1.0".description— a brief description of the package._note— an optional service note.checksumAlgorithm— must besha256.totals.numberOfFiles— the number of entries infiles.totals.sizeBytes— the sum ofsizeBytesover all entries.totals.filesPerStage— the number of files grouped by the first path segment; files without a directory are counted under the key(root).totals.filesPerOrigin— the number of files per valueprimaryandderived.totals.filesPerReleaseStatus— the number of files per valuefinal,sampleandpending.vocabularies— explanations of the values of the three controlled vocabularies:origin,releaseStatusandshareability.files— the list of files in the package, sorted bypath.
Each entry in files contains path,
mediaType, origin, releaseStatus,
shareability, sizeBytes, checksum
and an optional description.
3. File Paths
Use relative POSIX paths from the package root, for example
dft/dft.json or md/input/3C_relaxed.xyz. Do
not use absolute paths, backslashes (\), empty segments
such as folder//file, or .. segments. Do not
add a trailing / to a path. Paths must be unique within the
manifest.
4. Three Independent Properties of a File
Each file is described by three properties that answer different questions and are set independently of one another:
| Field | Question | Values |
|---|---|---|
origin |
Where does the file come from? | primary, derived |
releaseStatus |
Is this a final file? | final, sample, pending |
shareability |
Under which terms may it be shared? | open, open-large,
conditional |
Any combination of values is allowed. For example, a placeholder for
a property plot that has not yet been computed has
origin: derived and releaseStatus: pending; a
one-frame excerpt of an MD trajectory has origin: primary,
releaseStatus: sample and
shareability: open-large.
5. Origin
primary— a primary file: written by the author, obtained from an external source, or produced directly by a simulation code.derived— a derived file: obtained by processing, transforming or computing from other files of this package.
Rule of thumb: a file is derived if it
can be reproduced by re-running a script of the package on other files
of the package. All other files are primary.
| primary | derived |
|---|---|
| CIF structures, configurations, input templates | pw.x inputs generated by a script from templates |
raw output of simulation codes (.pwo, MD logs) |
the assembled training set (dataset.extxyz) |
| the trained model checkpoint, MD trajectories | the train / val / test split |
| scripts, READMEs, metadata files | the model compiled for MD, computed properties |
| pseudopotentials from the upstream library | plots built from tables of the package; generated vocabularies and model cards |
If the script that produced a file is not part of the package, the
file is treated as primary, and its origin is explained in
provenance.json.
6. Release Status
final— a final file that may be used as a result or as input data.sample— a sample for inspection, not a result. The file name contains.sample., for example3C_T300_npt.sample.traj.pending— a placeholder for a file not yet produced. The file name contains.pending., for exampleelastic_constants.pending.csv.
The value of releaseStatus is determined
only by the marker in the file name:
.sample. means sample, .pending.
means pending, no marker means final. The
schema checks this correspondence in both directions. The marker in the
name is needed because a file is often seen outside the package, and
then the marker is the only safeguard against mistaking a sample for a
production result.
A file name may not contain both markers.
Before final publication of the package,
totals.filesPerReleaseStatus.pending must be 0 unless the
package is deliberately published as incomplete. In that case state it
in the notes field of dataset.json: which
stages were not executed or not completed, and in which directories the
.pending. placeholders are. The manifest itself has no
separate field for this.
7. Sharing Conditions
open— open access;open-large— open access to a large file that may be hosted separately;conditional— sharing under third-party terms, such as pseudopotentials from the upstream library.
Assign the value in accordance with the access policy for the file.
Do not infer permission to share from origin or
releaseStatus.
8. Media Type
mediaType is the MIME type of the file in the form
type/subtype in lower case, for example
text/plain, application/json,
application/yaml, chemical/x-cif. The field
corresponds to contentType in Dataverse and
encodingFormat in RO-Crate / schema.org, which makes it
easier to deposit the package in a repository.
- Text formats of simulation codes without a registered type of their
own (
.in,.pwo,.UPF, logs) are labelledtext/plain. - Binary formats without a registered type (
.traj,.ckpt,.nequip.pt2) are labelledapplication/octet-stream. - Do not rely on the type reported by the operating system or the
storage service: for example,
CITATION.cffis YAML (application/yaml), notapplication/octet-stream.
9. Size and Checksum
sizeBytes is the actual size of the particular file in
bytes. checksum has the format sha256:
followed by 64 lowercase hexadecimal characters. Do not invent a size or
checksum: both must be computed from the actual file.
The JSON Schema validates the format of the checksum but does not recompute it from the file content. The actual size and SHA-256 must be verified programmatically.
10. Programmatic Checks of the Manifest
In addition to validating manifest.json against
manifest_schema.json, the validator must verify that:
totals.numberOfFilesequals the number of elements infiles.totals.sizeBytesequals the sum of the file sizes.totals.filesPerStagecorresponds to the actual paths; files in the root directory belong to(root).totals.filesPerOriginandtotals.filesPerReleaseStatuscorrespond to the values infiles.- All paths are unique, sorted, and correspond to files actually present in the package.
- The package contains no files missing from the manifest. Files
excluded on purpose are not counted as missing: service files
(
.git,__pycache__,.DS_Store,*.pyc,.ipynb_checkpoints) and the paths listed inexcludeof the rules filemanifest.rules.json. - The
releaseStatusof each entry matches the marker in the file name. - The
sizeBytesof each entry matches the actual file size. - The recomputed SHA-256 checksum matches
checksum. manifest.jsonitself is not included infiles.
All of these checks are performed by
build_manifest.py verify.
11. Consistency with Other Files of the Package
The other metadata files refer to files of the package by relative
path and sometimes repeat their checksums. Every such reference must
point to an entry of files, and every repeated checksum
must equal the checksum of that entry. These checks span
several files, so they are performed not by
build_manifest.py but by the package validator;
nevertheless the author must keep them in mind when the files of the
package change.
Paths that must be listed in files:
| File | Fields |
|---|---|
dataset.json |
workflow.workflowFile,
workflow.provenanceFile |
material.json |
polytypesStudied[].cellUsed.file |
dft.json |
pseudopotentials[].file, when it is a path in the
package rather than a library file name |
mlip.json |
modelArtifacts.path,
modelArtifacts.sourceCheckpointPath,
trainingSetup.trainingLogPath,
trainingDataset.splitManifestPath,
hyperparameterSelection.tuningLogPath |
hp_tuning.json |
trials[].checkpointPath |
workflow.json |
layers.concrete[].inputs, outputs,
package, metadata, readme |
provenance.json |
entities[].path, humanReadable |
In workflow.json, inputs,
outputs and package may name a directory. A
directory has no entry of its own in files; it is valid if
at least one path in files begins with it followed by
/.
Checksums that must equal checksum of the same
file:
mlip.jsonmodelArtifacts.checksumSHA256;dft.jsonpseudopotentials[].checksum;provenance.jsonentities[].hash, when it is notnull.
Summary in dataset.json:
fileSummary.numberOfFilesequalstotals.numberOfFiles(the manifest itself is not counted in either);fileSummary.sizeistotals.sizeBytesexpressed in decimal units (1 KB = 1000 B, 1 MB = 10⁶ B), rounded; for example, 59 323 736 B is recorded as 59.3 MB;fileSummary.fileFormatslists the lower-case last extension of every file infilesthat has one, without the dot (.nequip.pt2→pt2,.in.template→template,.UPF→upf).
12. Recommended Workflow
The manifest is not filled in by hand. It is generated by the
build_manifest.py script from the files on disk and the
rules file manifest.rules.json.
- Make sure that placeholders and samples carry
.pending.or.sample.in their names, and that there are no empty directories. - Write
manifest.rules.json: for groups of files selected by a path pattern, setorigin,shareabilityand a description. Put specific rules above general ones. - Run
build_manifest.py build PACKAGE --strict. The script computes the size, SHA-256, media type andtotals, and stops if any file is left withoutoriginorshareability. - Run
build_manifest.py verify PACKAGE --schema manifest_schema.json. - Bring
dataset.jsonfileSummaryand the checksums repeated in other files into agreement with the manifest (section 11). - After any change to the files of the package, regenerate the
manifest;
build --checkshows whether it is up to date. In a package with an MLIP stage, generate the finalMODEL_CARD.mdbefore the manifest, so that the manifest records its actual size and checksum.
The script and the rules file are described in detail in
README_build_manifest.md.
Basic principle: the manifest must accurately describe the actual content of the package. Do not invent missing files, sizes, media types, origins or checksums.
Source and current version
Canonical source file: Manifest_Authors_Guidelines_v1_0.md
The current Markdown source, JSON Schema, example record, and related technical materials
are maintained with the MATSCI-NASU research package in DataverseUA.
Suggested slug:
manifest-metadata-guidelines