OLDP data dumps follow a specific contract to ensure data integrity and reproducibility:
Always-accepted filter
Records for Case, Law, LawBook, and Court are guaranteed to have review_status == "accepted". Pending or declined records are excluded.
Stable ordering
Records are written in ascending primary-key order. This ensures that two consecutive dump runs on the same database state produce byte-identical files, which is critical for reproducible benchmarks and dataset versions.
Latest-only LawBooks
By default, only LawBook rows with latest=True are exported, and laws.jsonl.gz is filtered to laws whose parent book is the latest revision. This matches the public website and most downstream consumers. To include historical revisions, use the --include-lawbook-revisions flag.
Self-describing manifest
A manifest.json file is included in every dump. It contains the snapshot_date, oldp_version, applied filters, and a files object containing row_count for each exported resource. Downstream consumers should pin their processes to the snapshot_date to maintain reproducibility.