{
  "status": "warn",
  "errors": [],
  "warnings": [
    {
      "code": "invalid_months",
      "message": "Records whose pub_month is not a month/season, a range of two, or empty.",
      "count": 221508,
      "see": "checks.structure.invalid_months"
    },
    {
      "code": "field_mismatches",
      "message": "Some sampled records disagreed with Entrez.",
      "count": 1,
      "see": "checks.field_validation.mismatches"
    },
    {
      "code": "identifier_mismatches",
      "message": "Sampled DOIs/PMCIDs differ from Entrez (may be assigned since our last update).",
      "count": 1,
      "see": "checks.field_validation.identifier_mismatches"
    }
  ],
  "generated_at": "2026-11-26T00:40:07-0500",
  "duration": "31m 52s",
  "peak_rss_gib": 8.522,
  "data_model_version": "1.0.0",
  "inputs": {
    "export_dir": "/projects/babel/runs/gaurav/pubmed2db/data/json",
    "shards": [
      "pubmed_metadata_0.ndjson.gz",
      "pubmed_metadata_1.ndjson.gz",
      "pubmed_metadata_2.ndjson.gz",
      "pubmed_metadata_3.ndjson.gz",
      "pubmed_metadata_4.ndjson.gz",
      "pubmed_metadata_5.ndjson.gz",
      "pubmed_metadata_6.ndjson.gz",
      "pubmed_metadata_7.ndjson.gz"
    ],
    "database": "available",
    "previous_report": "data/manifests/validation_report-20261109.json",
    "previous_manifest": "data/manifests/pmids-20261109.txt.gz",
    "manifest_written": "/projects/babel/runs/gaurav/pubmed2db/data/manifests/pmids-20261126.txt.gz",
    "online": true,
    "sample_size": 30,
    "drop_sample": 10,
    "seed": 0,
    "api_key_used": true,
    "abstract_threshold": 0.9,
    "entrez_low": 0.95,
    "entrez_high": 1.05
  },
  "skipped_checks": [],
  "checks_run": [
    {
      "name": "shards-found",
      "section": "structure",
      "expectation": "the export directory contains NDJSON shards",
      "status": "pass",
      "observed": "8 shard(s)",
      "code": "no_shards",
      "count": 0,
      "see": "inputs",
      "detail": {}
    },
    {
      "name": "records-present",
      "section": "structure",
      "expectation": "the export contains at least one record",
      "status": "pass",
      "observed": "41,454,204 record(s)",
      "code": "no_records",
      "count": 0,
      "see": "checks.structure",
      "detail": {}
    },
    {
      "name": "shard-readable",
      "section": "structure",
      "expectation": "every shard can be read to its end",
      "status": "pass",
      "observed": "0 unreadable shard(s)",
      "code": "unreadable_shard",
      "count": 0,
      "see": "checks.structure.unreadable_shards",
      "detail": {}
    },
    {
      "name": "json-parse",
      "section": "structure",
      "expectation": "every line parses as JSON",
      "status": "pass",
      "observed": "0 malformed line(s)",
      "code": "malformed_json",
      "count": 0,
      "see": "checks.structure.malformed",
      "detail": {}
    },
    {
      "name": "record-fields",
      "section": "structure",
      "expectation": "every record has all the required fields",
      "status": "pass",
      "observed": "0 record(s) missing a field",
      "code": "missing_fields",
      "count": 0,
      "see": "checks.structure.missing_fields",
      "detail": {}
    },
    {
      "name": "no-nulls",
      "section": "structure",
      "expectation": "absent values are \"\" and never null",
      "status": "pass",
      "observed": "0 null field value(s)",
      "code": "null_values",
      "count": 0,
      "see": "checks.structure.null_values",
      "detail": {}
    },
    {
      "name": "id-format",
      "section": "structure",
      "expectation": "every id looks like PMID:<digits>",
      "status": "pass",
      "observed": "0 invalid id(s)",
      "code": "invalid_ids",
      "count": 0,
      "see": "checks.structure.invalid_ids",
      "detail": {}
    },
    {
      "name": "pmid-unique",
      "section": "structure",
      "expectation": "no PMID is exported twice",
      "status": "pass",
      "observed": "0 duplicated PMID(s)",
      "code": "duplicate_pmids",
      "count": 0,
      "see": "checks.structure.duplicate_pmids",
      "detail": {}
    },
    {
      "name": "publication-types",
      "section": "structure",
      "expectation": "publication_types is a list of {id: MESH:D…, name}",
      "status": "pass",
      "observed": "0 invalid publication_types",
      "code": "invalid_publication_types",
      "count": 0,
      "see": "checks.structure.invalid_publication_types",
      "detail": {}
    },
    {
      "name": "no-extra-fields",
      "section": "structure",
      "expectation": "no record carries an unexpected field",
      "status": "pass",
      "observed": "0 record(s) with extra fields",
      "code": "extra_fields",
      "count": 0,
      "see": "checks.structure.extra_fields",
      "detail": {}
    },
    {
      "name": "month-format",
      "section": "structure",
      "expectation": "pub_month is a month, season, range of those, or \"\"",
      "status": "warn",
      "observed": "221,508 invalid pub_month value(s)",
      "code": "invalid_months",
      "count": 221508,
      "see": "checks.structure.invalid_months",
      "detail": {}
    },
    {
      "name": "publication-type-names",
      "section": "structure",
      "expectation": "every publication type has a name",
      "status": "pass",
      "observed": "0 record(s) with an unnamed type",
      "code": "publication_type_names_missing",
      "count": 0,
      "see": "checks.structure.unnamed_publication_types",
      "detail": {}
    },
    {
      "name": "export-metadata",
      "section": "structure",
      "expectation": "metadata.json matches the shards",
      "status": "pass",
      "observed": "8 file(s) and 41,454,204 record(s) as listed",
      "code": "export_metadata_mismatch",
      "count": 0,
      "see": "checks_run",
      "detail": {
        "problems": []
      }
    },
    {
      "name": "vs-entrez",
      "section": "coverage",
      "expectation": "within [95%, 105%] of the live PubMed total",
      "status": "pass",
      "observed": "41,454,204 of 41,495,413 (99.901%)",
      "code": "coverage_out_of_band",
      "count": 1,
      "see": "checks.coverage",
      "detail": {}
    },
    {
      "name": "vs-database",
      "section": "coverage",
      "expectation": "matches the database's latest_article count",
      "status": "pass",
      "observed": "exact match (41,454,204)",
      "code": null,
      "count": 0,
      "see": null,
      "detail": {}
    },
    {
      "name": "vs-previous",
      "section": "coverage",
      "expectation": "coverage within 10% of the previous report's",
      "status": "pass",
      "observed": "99.901% then, 99.901% now",
      "code": "coverage_drift",
      "count": 1,
      "see": "checks.coverage.previous",
      "detail": {}
    },
    {
      "name": "sample-fetched",
      "section": "field accuracy",
      "expectation": "PubMed still serves every sampled record",
      "status": "pass",
      "observed": "240 of 240 sampled record(s) returned",
      "code": "sampled_pmid_absent",
      "count": 0,
      "see": "checks.field_validation.missing_from_api",
      "detail": {}
    },
    {
      "name": "core-fields",
      "section": "field accuracy",
      "expectation": "<20% of compared fields differ from Entrez",
      "status": "warn",
      "observed": "1 of 1,604 comparison(s) differ (0.06%)",
      "code": "field_mismatches",
      "count": 1,
      "see": "checks.field_validation.mismatches",
      "detail": {
        "by_field": {
          "issue": 1
        },
        "by_kind": {
          "values_differ": 0,
          "low_similarity": 0,
          "entrez_blank": 0,
          "exported_blank": 1
        },
        "examples": {
          "exported_blank": {
            "pmid": 25887218,
            "field": "issue",
            "exported": "",
            "entrez": "1"
          }
        }
      }
    },
    {
      "name": "abstract",
      "section": "field accuracy",
      "expectation": "abstracts at least 90% similar to Entrez",
      "status": "pass",
      "observed": "min 1.000, mean 1.000 over 164 record(s)",
      "code": null,
      "count": 0,
      "see": null,
      "detail": {}
    },
    {
      "name": "journal-soft",
      "section": "field accuracy",
      "expectation": "journal name/abbrev match Entrez (advisory)",
      "status": "pass",
      "observed": "0 of 240 record(s) differ",
      "code": "journal_mismatches",
      "count": 0,
      "see": "checks.field_validation.journal_mismatches",
      "detail": {}
    },
    {
      "name": "pub-date-soft",
      "section": "field accuracy",
      "expectation": "pub_date matches Entrez (advisory)",
      "status": "pass",
      "observed": "0 of 240 record(s) differ",
      "code": "pub_date_mismatches",
      "count": 0,
      "see": "checks.field_validation.pub_date_mismatches",
      "detail": {}
    },
    {
      "name": "publication-types-soft",
      "section": "field accuracy",
      "expectation": "publication types match Entrez (advisory)",
      "status": "pass",
      "observed": "0 of 240 record(s) differ",
      "code": "publication_type_mismatches",
      "count": 0,
      "see": "checks.field_validation.publication_type_mismatches",
      "detail": {}
    },
    {
      "name": "identifiers-soft",
      "section": "field accuracy",
      "expectation": "DOIs and PMCIDs match Entrez (advisory)",
      "status": "warn",
      "observed": "1 of 240 record(s) differ",
      "code": "identifier_mismatches",
      "count": 1,
      "see": "checks.field_validation.identifier_mismatches",
      "detail": {}
    },
    {
      "name": "deleted-gone",
      "section": "deletions",
      "expectation": "PubMed no longer serves those PMIDs either",
      "status": "pass",
      "observed": "10 of 10 confirmed gone",
      "code": "deleted_pmid_still_live",
      "count": 0,
      "see": "checks.deletions.still_live",
      "detail": {}
    },
    {
      "name": "deleted-absent",
      "section": "deletions",
      "expectation": "DB-deleted PMIDs are absent from the export",
      "status": "pass",
      "observed": "0 of 10 sampled still in the export",
      "code": "deleted_pmid_exported",
      "count": 0,
      "see": "checks.deletions.present_in_export",
      "detail": {}
    },
    {
      "name": "pmid-set-diff",
      "section": "drops since previous",
      "expectation": "no PMID vanished without a recorded deletion",
      "status": "pass",
      "observed": "98 dropped (98 explained by a recorded deletion, 0 no longer served by PubMed), 83,282 added",
      "code": null,
      "count": 0,
      "see": null,
      "detail": {}
    }
  ],
  "checks": {
    "structure": {
      "records_total": 41454204,
      "records_by_shard": {
        "pubmed_metadata_0.ndjson.gz": 5484537,
        "pubmed_metadata_1.ndjson.gz": 5160960,
        "pubmed_metadata_2.ndjson.gz": 4915200,
        "pubmed_metadata_3.ndjson.gz": 5155134,
        "pubmed_metadata_4.ndjson.gz": 5375620,
        "pubmed_metadata_5.ndjson.gz": 5085958,
        "pubmed_metadata_6.ndjson.gz": 5210759,
        "pubmed_metadata_7.ndjson.gz": 5066036
      },
      "malformed": [],
      "missing_fields": {},
      "extra_fields": {},
      "null_values": [],
      "invalid_ids": [],
      "invalid_months": [
        {
          "shard": "pubmed_metadata_0.ndjson.gz",
          "line": 1,
          "pub_month": "Jul 17-23"
        },
        {
          "shard": "pubmed_metadata_0.ndjson.gz",
          "line": 49,
          "pub_month": "Aug 14-20"
        },
        {
          "shard": "pubmed_metadata_0.ndjson.gz",
          "line": 367,
          "pub_month": "Oct 9-15"
        },
        {
          "shard": "pubmed_metadata_0.ndjson.gz",
          "line": 370,
          "pub_month": "Sep 25-Oct 1"
        },
        {
          "shard": "pubmed_metadata_0.ndjson.gz",
          "line": 536,
          "pub_month": "Jun 4-10"
        },
        {
          "shard": "pubmed_metadata_0.ndjson.gz",
          "line": 537,
          "pub_month": "Jun 4-10"
        },
        {
          "shard": "pubmed_metadata_0.ndjson.gz",
          "line": 539,
          "pub_month": "Jun 4-10"
        },
        {
          "shard": "pubmed_metadata_0.ndjson.gz",
          "line": 540,
          "pub_month": "Jun 4-10"
        },
        {
          "shard": "pubmed_metadata_0.ndjson.gz",
          "line": 541,
          "pub_month": "Jun 4-10"
        },
        {
          "shard": "pubmed_metadata_0.ndjson.gz",
          "line": 542,
          "pub_month": "Jun 4-10"
        },
        {
          "shard": "pubmed_metadata_0.ndjson.gz",
          "line": 543,
          "pub_month": "Jun 4-10"
        },
        {
          "shard": "pubmed_metadata_0.ndjson.gz",
          "line": 544,
          "pub_month": "Jun 4-10"
        },
        {
          "shard": "pubmed_metadata_0.ndjson.gz",
          "line": 545,
          "pub_month": "Jun 4-10"
        },
        {
          "shard": "pubmed_metadata_0.ndjson.gz",
          "line": 546,
          "pub_month": "Jun 4-10"
        },
        {
          "shard": "pubmed_metadata_0.ndjson.gz",
          "line": 547,
          "pub_month": "Jun 4-10"
        },
        {
          "shard": "pubmed_metadata_0.ndjson.gz",
          "line": 548,
          "pub_month": "Jun 18-24"
        },
        {
          "shard": "pubmed_metadata_0.ndjson.gz",
          "line": 549,
          "pub_month": "Jun 4-10"
        },
        {
          "shard": "pubmed_metadata_0.ndjson.gz",
          "line": 550,
          "pub_month": "Jun 4-10"
        },
        {
          "shard": "pubmed_metadata_0.ndjson.gz",
          "line": 551,
          "pub_month": "Jun 4-10"
        },
        {
          "shard": "pubmed_metadata_0.ndjson.gz",
          "line": 552,
          "pub_month": "Jun 4-10"
        }
      ],
      "unreadable_shards": [],
      "duplicate_pmids": [],
      "invalid_publication_types": [],
      "unnamed_publication_types": [],
      "identifier_coverage": {
        "doi": {
          "records": 32527989,
          "pct": 78.47
        },
        "PMC": {
          "records": 11754084,
          "pct": 28.35
        }
      }
    },
    "coverage": {
      "exported_count": 41454204,
      "entrez_total": 41495413,
      "pct_of_entrez": 0.9990069022809822,
      "db_latest_count": 41454204,
      "pct_of_db": 1.0,
      "previous": {
        "exported_count": 41371020,
        "pct_of_entrez": 0.9990067649708231
      }
    },
    "field_validation": {
      "sampled": 240,
      "checked": 240,
      "core_comparisons": 1604,
      "core_mismatches": 1,
      "core_mismatch_rate": 0.0006,
      "mismatches": [
        {
          "pmid": 25887218,
          "field": "issue",
          "exported": "",
          "entrez": "1"
        }
      ],
      "mismatches_by_field": {
        "issue": 1
      },
      "mismatches_by_kind": {
        "values_differ": 0,
        "low_similarity": 0,
        "entrez_blank": 0,
        "exported_blank": 1
      },
      "journal_mismatches": [],
      "pub_date_mismatches": [],
      "publication_type_mismatches": [],
      "identifier_mismatches": [
        {
          "pmid": 36178818,
          "field": "identifiers",
          "exported": [
            "PMID:36178818",
            "PMC:wst_2022_275",
            "doi:10.2166/wst.2022.275"
          ],
          "entrez": [
            "PMID:36178818",
            "doi:10.2166/wst.2022.275"
          ]
        }
      ],
      "missing_from_api": [],
      "abstract_similarity": {
        "min": 1.0,
        "mean": 1.0
      }
    },
    "deletions": {
      "source": "database",
      "candidates_checked": 10,
      "present_in_export": [],
      "confirmed_deleted": [
        42050320,
        42983023,
        42159388,
        27494086,
        41709853,
        42487182,
        42397239,
        42090182,
        43006660,
        41826176
      ],
      "still_live": [],
      "unknown": []
    },
    "drops_since_previous": {
      "previous_manifest": "data/manifests/pmids-20261109.txt.gz",
      "previous_count": 41371020,
      "current_count": 41454204,
      "dropped": 98,
      "added": 83282,
      "explained_by_deletion": [
        23956008,
        24713482,
        25626974,
        25711642,
        25711643,
        29046076,
        29393766,
        32234723,
        32718935,
        32768604,
        33109604,
        33203695,
        33414247,
        33547206,
        35196135,
        35394354,
        35394358,
        35481692,
        35781104,
        36049890
      ],
      "explained_by_deletion_count": 98,
      "retired_upstream": [],
      "retired_upstream_count": 0,
      "pubmed_confirmation": null,
      "pubmed_asked_count": 0,
      "database_rebuilt_since": false,
      "load_gaps": [],
      "load_gaps_count": 0,
      "unexplained": [],
      "unexplained_count": 0,
      "added_examples": [
        36419762,
        40441892,
        42999968,
        42999969,
        42999970,
        42999971,
        42999972,
        42999973,
        42999974,
        42999975,
        42999976,
        42999977,
        42999978,
        42999979,
        42999980,
        42999981,
        42999982,
        42999983,
        42999984,
        42999985
      ]
    }
  }
}
