Meridian Compatibility Inventory
This project currently targets google-meridian[schema]==1.5.3. The local
reference checkout used for compatibility review is:
/home/user/Documents/GITHUB/tandpds/meridian
The 0.4.0 release-candidate environment also constrains
protobuf>=5.28.0,<7. Meridian 1.5.3 serialises boolean TensorFlow
Probability distribution parameters through an int proto path. Protobuf 7
rejects that path, while the constrained protobuf==6.33.6 line preserves the
validated Meridian schema save/load smoke route with deprecation warnings.
Reviewed Reference Files
meridian/version.pymeridian/data/load.pymeridian/model/spec.pymeridian/model/context.pymeridian/model/model.pymeridian/model/posterior_sampler.py
Required Symbols And Contracts
meridian.version.__version__is1.5.3.protobufremains below 7 for Meridian schema serialisation.meridian.data.load.CoordToColumnsdefines the CSV coordinate mapping surface.meridian.data.load.CsvDataLoaderis the CSV input loader used bymeridian-tools.meridian.model.spec.ModelSpecaccepts wrapper-authoredkwargs, includingholdout_idand calibration/scaling arrays.ModelContext.holdout_idvalidates national holdout masks as(n_times,)and geo holdout masks as(n_geos, n_times).Meridian.posterior_sampler_callablereturns a posterior sampler with the private reconstruction seams required by the log-likelihood adapter.PosteriorMCMCSampler._get_joint_dist_unpinnedexists.PosteriorMCMCSampler._prepare_latents_for_reconstructionexists.PosteriorMCMCSampler._reconstruct_posteriorsexists.
Upgrade Checklist
Before changing the pinned Meridian dependency:
- Compare the reviewed files above against the new Meridian version.
- Confirm the private posterior sampler seam methods still exist and preserve compatible behavior.
- Run
python scripts/verify_release.py. - Run
MERIDIAN_TOOLS_ENABLE_REAL_FIT=1 python -m pytest -q -m real_fit. - Recheck the
protobufcompatibility bound if Meridian schema serialisation changes upstream. - Update this inventory and release notes with any compatibility changes.