CUSP Versioning and Exports¶
Goal¶
Make every official CUSP data release:
- citable
- identifiable with an immutable version DOI
- reproducible
- easy to find as the current
latest - easy to recover later as an archived historical snapshot
Release Model¶
CUSP dataset versions are independent of the Python package version. A data release records the accepted observations and their source bibliography; it does not imply a software release.
The canonical bundle contains the observation-level dataset, the bibliography for included sources, and a release record with checksums. Aggregation and environmental feature sampling remain supported derived workflows, but their outputs are not canonical release artifacts.
Zenodo is the preservation and DOI service for official dataset releases. CUSP v1.3 is published in the Zenodo version chain with DOI 10.5281/zenodo.23984191 and belongs to the CUSP dataset concept record. GitHub provides the development repository and exact release mirrors. ARDAC may serve and visualize a release, and should identify the CUSP version and version-specific Zenodo DOI being served. See the Zenodo release archive for the deposit and versioning workflow.
Version Format¶
Dataset releases use vX.Y.
Examples:
v1.0v1.1v2.0
This is intentionally simpler than a vX.Y.Z scheme.
Version-Bump Policy¶
The canonical 12-column observation contract is permanent beginning with
v1.1. A version bump does not authorize adding, removing, renaming, or
reordering canonical columns, changing their logical types or meanings, or
changing the observation-ID algorithm. If CUSP eventually needs an
incompatible table, it will be published as a separately named product while
cusp_vX.Y.csv retains this contract.
Major bump¶
Use a major bump for a substantial change to the dataset or release model that still preserves the canonical observation contract.
Examples:
- a separately named official product is introduced
- the official bundle gains a substantial new product family
- release policy changes substantially without altering
cusp_vX.Y.csv
Minor bump¶
Use a minor bump when official data content or official exported products change meaningfully without breaking the public contract.
Examples:
- a new source is added to the canonical release
- an existing source is removed or deferred from the official release
- source-processing fixes change rows in
cusp_vX.Y.csv - release citation coverage changes because the included source set changed
Official Export Layout¶
Use a real export tree inside the repo workspace:
exports/
latest/
cusp_v1.3.csv
cusp_sources_v1.3.bib
RELEASE_INFO.md
archived/
v1.0/
...
v1.1/
cusp_v1.1.csv
cusp_sources_v1.1.bib
RELEASE_INFO.md
v1.2/
cusp_v1.2.csv
cusp_sources_v1.2.bib
RELEASE_INFO.md
v1.3/
cusp_v1.3.csv
cusp_sources_v1.3.bib
RELEASE_INFO.md
Notes:
- the export bundle is intentionally flat
- aggregation outputs are not part of the official versioned export bundle
Official Exported Files¶
The core exported filenames are:
cusp_vX.Y.csvcusp_sources_vX.Y.bibRELEASE_INFO.md
cusp_vX.Y.csv¶
This is the canonical public CUSP dataset:
- all accepted processed sources
- integrated into the CUSP release schema
- deduplicated
- QA/QC checked
- validated against the frozen v1.1 schema contract
In repository rebuilds, this file is exported from the working observation
table produced by python -m cusp.build.
Historical v1.0 Feature File¶
The original v1.0 repository bundle included cusp_features_v1.0.csv, an
observation-level Google Earth Engine feature table. The retroactive v1.0
archive preserves that file as part of the historical snapshot.
It is not part of the canonical release contract. Beginning with v1.1, CUSP
releases omit feature tables. Users can generate one from a chosen observation
release with python -m cusp.features; the result is a derived product keyed
by cusp_obs_id.
cusp_sources_vX.Y.bib¶
This is the master bibliography file for the specific sources included in the release.
It is a filtered subset of the repo’s master data/cusp_sources.bib, not a
copy of every possible source ever considered.
RELEASE_INFO.md¶
This is the human-readable release record for the bundle.
It should include:
- dataset version
- code version
- git commit
- release date / generation time
- row count
- source count
- date range
- exported artifact list
- checksums
- a short “changes in this release” section
Citation Model¶
The public citation model is now intentionally simple:
- cite the version-specific CUSP DOI for the exact release used
- export one BibTeX file:
cusp_sources_vX.Y.bib - use source keys in the data table as BibTeX entry keys
- provide a helper command to extract only the needed entries from any filtered CUSP table
Supported helper:
python -m cusp.citations \
--input exports/latest/cusp_v1.3.csv \
--master-bib exports/latest/cusp_sources_v1.3.bib \
--output runs/examples/cusp_v1.3_references.bib
This works with tables that contain either:
sourceaggregated_sources
Derived Workflows¶
Aggregation and feature sampling remain reproducible workflows rather than official versioned release artifacts.
That means:
python -m cusp.aggregateremains availableaggregated_30m.csvremains useful and documentedpython -m cusp.featurescan produce observation- or aggregation-keyed environmental tables- aggregation outputs do not need to be rebuilt and archived for every CUSP dataset version unless the team later promotes them back into the official release bundle
Recommended Release Workflow¶
- Rebuild the canonical dataset with
python -m cusp.build. - Validate processing metadata and the canonical observation table. These checks enforce the frozen schema, controlled vocabularies, row semantics, and deterministic observation IDs.
- Decide the next dataset version.
- Run the scripted release gate, including strict docs validation, with
python -m cusp.release_gate --version 1.3 --skip-feature-export --skip-gee-smoke. - Package the official bundle with
python -m cusp.export --version 1.3and no--features-inputargument, updating the version for the release being prepared. Official exports also refresh the generated release tracker inREADME.mdfromexports/latest/cusp_vX.Y.csv. - Review
RELEASE_INFO.md, file hashes, and row/source counts. - Follow the Zenodo release workflow to create a new-version draft, reserve its DOI, and finalize the release record.
- Rerun the release checks, commit the archived bundle, refresh
exports/latest/, and tag the data version. - Upload and publish the exact bundle on Zenodo after verifying its checksums.
- Publish a GitHub Release containing files byte-identical to the Zenodo record.
Versions v1.0 through v1.2 are archived in the Zenodo version chain. CUSP v1.3 continues that existing release family, with matching GitHub release files as mirrors.
The release gate writes test exports and aggregation outputs under
runs/release_gate/. Those files validate the workflow but are not official
release artifacts.
The README tracker can also be refreshed or checked directly:
python -m cusp.readme_tracker
python -m cusp.readme_tracker --check
Current Release Sequence¶
The existing v1.0 archive is published retroactively as the historical initial
release. It predates the canonical quality_flags column. The corrected and
expanded v1.1 observation build establishes the permanent 12-column contract;
future releases are complete snapshots that retain it.