Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/391.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Reverted the certified US dataset to Enhanced CPS (`policyengine-us-data` 1.115.5, `policyengine-us` 1.715.2). The microplex MP 2cdd45d artifact promoted in 4.14.1 loses to production eCPS on a correctly-scored target surface (full PE-native loss 0.0428 vs 0.0266; eCPS wins 2334 of 2809 targets) and is 14–49× worse on income components.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ uk = [
]
us = [
"policyengine_core==3.26.1",
"policyengine-us==1.715.3",
"policyengine-us==1.715.2",
]
dev = [
"pytest",
Expand All @@ -64,7 +64,7 @@ dev = [
"ruff>=0.9.0",
"policyengine_core==3.26.1",
"policyengine-uk==2.88.20",
"policyengine-us==1.715.3",
"policyengine-us==1.715.2",
"towncrier>=24.8.0",
"mypy>=1.11.0",
"pytest-cov>=5.0.0",
Expand Down
32 changes: 16 additions & 16 deletions src/policyengine/data/release_manifests/us.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,40 +5,40 @@
"policyengine_version": "4.14.1",
"model_package": {
"name": "policyengine-us",
"version": "1.715.3",
"sha256": "a34f305871f702d94f7a4d220bfd5312f11d83a417e793566892541871dfded3",
"wheel_url": "https://files.pythonhosted.org/packages/f4/0f/e6b594d46fffeb6e40db3a51441cec6a6e76ade2b178eab3836528dbc15c/policyengine_us-1.715.3-py3-none-any.whl"
"version": "1.715.2",
"sha256": "abf079828419762f5c4b0291a70f6e424744200f237e1ae0f06e25f10130c399",
"wheel_url": "https://files.pythonhosted.org/packages/45/a1/1d56bdbb69d7ce06bedd3892203a75ac3350a90c0b5fcea2fb50db46670f/policyengine_us-1.715.2-py3-none-any.whl"
},
"data_package": {
"name": "policyengine-us-data",
"version": "mp-ecps-2024-2cdd45d-20260605",
"version": "1.115.5",
"repo_id": "policyengine/policyengine-us-data",
"release_manifest_path": "releases/mp-ecps-2024-2cdd45d-20260605/release_manifest.json",
"release_manifest_revision": "a091769a2d5e075762c520950ca8ca7f87017225"
"release_manifest_path": "release_manifest.json",
"release_manifest_revision": "d47fb5475144260a75467d2f2e22b2d5d53d4d57"
},
"certified_data_artifact": {
"data_package": {
"name": "policyengine-us-data",
"version": "mp-ecps-2024-2cdd45d-20260605"
"version": "1.115.5"
},
"build_id": "microplex-us-2cdd45d-nodeferred-gzip1-20260605",
"build_id": "policyengine-us-data-1.115.5",
"dataset": "enhanced_cps_2024",
"uri": "hf://policyengine/policyengine-us-data/enhanced_cps_2024.h5@a091769a2d5e075762c520950ca8ca7f87017225",
"sha256": "8d2ccab299d59a3dea075781346f85ed45f74562dfe599977131e026acde93a8"
"uri": "hf://policyengine/policyengine-us-data/enhanced_cps_2024.h5@d47fb5475144260a75467d2f2e22b2d5d53d4d57",
"sha256": "0a6b961ad363a421bde99f2c8e5d8f20370bcba45fd303050537a25bdd805b14"
},
"certification": {
"compatibility_basis": "exact_build_model_version",
"data_build_id": "microplex-us-2cdd45d-nodeferred-gzip1-20260605",
"built_with_model_version": "1.715.3",
"certified_for_model_version": "1.715.3",
"compatibility_basis": "legacy_compatible_model_package",
"data_build_id": "policyengine-us-data-1.115.5",
"built_with_model_version": "1.700.0",
"certified_for_model_version": "1.715.2",
"certified_by": "policyengine-us-data release manifest",
"built_with_model_git_sha": "f7458313c86fa580fb1e43a2f18252d67cf76e4a"
"data_build_fingerprint": "sha256:b0862de383ffcbe45f4ba0aa9c6aaec286cd4c6688c6ccb33f939bc176f9a8a0"
},
"default_dataset": "enhanced_cps_2024",
"datasets": {
"enhanced_cps_2024": {
"path": "enhanced_cps_2024.h5",
"sha256": "8d2ccab299d59a3dea075781346f85ed45f74562dfe599977131e026acde93a8"
"sha256": "0a6b961ad363a421bde99f2c8e5d8f20370bcba45fd303050537a25bdd805b14"
},
"long_term_cps_2026": {
"path": "long_term/2026.h5",
Expand Down
41 changes: 19 additions & 22 deletions src/policyengine/data/release_manifests/us.trace.tro.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"schema:name": "PolicyEngine",
"schema:url": "https://policyengine.org"
},
"schema:dateCreated": "2026-06-05T15:35:21Z",
"schema:dateCreated": "2026-05-20T19:37:01.417728Z",
"schema:description": "TRACE TRO for certified runtime bundle us-4.14.1 covering the bundle manifest, the certified dataset artifact, the country model wheel, and the country data release manifest when it is available.",
"schema:name": "policyengine us certified bundle TRO",
"trov:createdWith": {
Expand Down Expand Up @@ -45,23 +45,23 @@
"trov:hasArtifact": {
"@id": "composition/1/artifact/data_release_manifest"
},
"trov:hasLocation": "https://huggingface.co/policyengine/policyengine-us-data/resolve/a091769a2d5e075762c520950ca8ca7f87017225/releases/mp-ecps-2024-2cdd45d-20260605/release_manifest.json"
"trov:hasLocation": "https://huggingface.co/policyengine/policyengine-us-data/resolve/d47fb5475144260a75467d2f2e22b2d5d53d4d57/release_manifest.json"
},
{
"@id": "arrangement/1/location/dataset",
"@type": "trov:ArtifactLocation",
"trov:hasArtifact": {
"@id": "composition/1/artifact/dataset"
},
"trov:hasLocation": "https://huggingface.co/policyengine/policyengine-us-data/resolve/a091769a2d5e075762c520950ca8ca7f87017225/enhanced_cps_2024.h5"
"trov:hasLocation": "https://huggingface.co/policyengine/policyengine-us-data/resolve/d47fb5475144260a75467d2f2e22b2d5d53d4d57/enhanced_cps_2024.h5"
},
{
"@id": "arrangement/1/location/model_wheel",
"@type": "trov:ArtifactLocation",
"trov:hasArtifact": {
"@id": "composition/1/artifact/model_wheel"
},
"trov:hasLocation": "https://files.pythonhosted.org/packages/f4/0f/e6b594d46fffeb6e40db3a51441cec6a6e76ade2b178eab3836528dbc15c/policyengine_us-1.715.3-py3-none-any.whl"
"trov:hasLocation": "https://files.pythonhosted.org/packages/45/a1/1d56bdbb69d7ce06bedd3892203a75ac3350a90c0b5fcea2fb50db46670f/policyengine_us-1.715.2-py3-none-any.whl"
}
]
}
Expand All @@ -75,54 +75,51 @@
"@type": "trov:ResearchArtifact",
"schema:name": "policyengine.py bundle manifest for us",
"trov:mimeType": "application/json",
"trov:sha256": "84b402da0146d48c072f3c96c6b1e0794b2e9875eeace2802091f56eeb84051b"
"trov:sha256": "77fc84179d7065f4ddf22c6c41eee79878dcf58923633cf3324db62e26227a55"
},
{
"@id": "composition/1/artifact/data_release_manifest",
"@type": "trov:ResearchArtifact",
"schema:name": "policyengine-us-data release manifest mp-ecps-2024-2cdd45d-20260605",
"schema:name": "policyengine-us-data release manifest 1.115.5",
"trov:mimeType": "application/json",
"trov:sha256": "4961f6ee85124b0459d9318d09e0160611eab8cca3c08fedbc8481898e4abdfe"
"trov:sha256": "577fbf704da44f63d0432dc3e80f3686eb3a32020d13ca6b7b6cf7eb60b4742c"
},
{
"@id": "composition/1/artifact/dataset",
"@type": "trov:ResearchArtifact",
"schema:name": "enhanced_cps_2024",
"trov:mimeType": "application/x-hdf5",
"trov:sha256": "8d2ccab299d59a3dea075781346f85ed45f74562dfe599977131e026acde93a8"
"trov:sha256": "0a6b961ad363a421bde99f2c8e5d8f20370bcba45fd303050537a25bdd805b14"
},
{
"@id": "composition/1/artifact/model_wheel",
"@type": "trov:ResearchArtifact",
"schema:name": "policyengine-us==1.715.3 wheel",
"schema:name": "policyengine-us==1.715.2 wheel",
"trov:mimeType": "application/zip",
"trov:sha256": "a34f305871f702d94f7a4d220bfd5312f11d83a417e793566892541871dfded3"
"trov:sha256": "abf079828419762f5c4b0291a70f6e424744200f237e1ae0f06e25f10130c399"
}
],
"trov:hasFingerprint": {
"@id": "composition/1/fingerprint",
"@type": "trov:CompositionFingerprint",
"trov:sha256": "49ae35b8fca9eaebae4c615f2ff1d5bfa0f4582f33ec4f81564e367ccc4ddcbf"
"trov:sha256": "07462bed5d208e1bcac594aff0437c496549cc98d378706df91776d9bc4869ea"
}
},
"trov:hasPerformance": {
"@id": "trp/1",
"@type": "trov:TransparentResearchPerformance",
"pe:builtWithModelGitSha": "f7458313c86fa580fb1e43a2f18252d67cf76e4a",
"pe:builtWithModelVersion": "1.715.3",
"pe:builtWithModelVersion": "1.700.0",
"pe:certifiedBy": "policyengine-us-data release manifest",
"pe:certifiedForModelVersion": "1.715.3",
"pe:ciGitRef": "refs/heads/main",
"pe:ciGitSha": "73ebe7b876c5a3631443b0cd0cf8989b63ad8370",
"pe:ciRunUrl": "https://github.com/PolicyEngine/policyengine.py/actions/runs/27026377517",
"pe:compatibilityBasis": "exact_build_model_version",
"pe:dataBuildId": "microplex-us-2cdd45d-nodeferred-gzip1-20260605",
"pe:emittedIn": "github-actions",
"rdfs:comment": "Certification of build microplex-us-2cdd45d-nodeferred-gzip1-20260605 for policyengine-us 1.715.3.",
"pe:certifiedForModelVersion": "1.715.2",
"pe:compatibilityBasis": "legacy_compatible_model_package",
"pe:dataBuildFingerprint": "sha256:b0862de383ffcbe45f4ba0aa9c6aaec286cd4c6688c6ccb33f939bc176f9a8a0",
"pe:dataBuildId": "policyengine-us-data-1.115.5",
"pe:emittedIn": "local",
"rdfs:comment": "Certification of build policyengine-us-data-1.115.5 for policyengine-us 1.715.2.",
"trov:accessedArrangement": {
"@id": "arrangement/1"
},
"trov:startedAtTime": "2026-06-05T15:35:21Z",
"trov:startedAtTime": "2026-05-20T19:37:01.417728Z",
"trov:wasConductedBy": {
"@id": "trs"
}
Expand Down
6 changes: 3 additions & 3 deletions tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,12 @@ def test_has_release_manifest_metadata(self):
assert us_latest.release_manifest is not None
assert us_latest.release_manifest.country_id == "us"
assert us_latest.model_package.name == "policyengine-us"
assert us_latest.model_package.version == "1.715.3"
assert us_latest.model_package.version == "1.715.2"
assert us_latest.data_package.name == "policyengine-us-data"
assert us_latest.data_package.version == "mp-ecps-2024-2cdd45d-20260605"
assert us_latest.data_package.version == "1.115.5"
assert (
us_latest.default_dataset_uri
== "hf://policyengine/policyengine-us-data/enhanced_cps_2024.h5@a091769a2d5e075762c520950ca8ca7f87017225"
== "hf://policyengine/policyengine-us-data/enhanced_cps_2024.h5@d47fb5475144260a75467d2f2e22b2d5d53d4d57"
)

def test_has_hundreds_of_parameters(self):
Expand Down
31 changes: 17 additions & 14 deletions tests/test_release_manifests.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,11 @@
PYPROJECT.read_text(),
re.MULTILINE,
).group(1)
US_MODEL_VERSION = "1.715.3"
US_BUILT_WITH_MODEL_VERSION = "1.715.3"
US_BUILT_WITH_MODEL_GIT_SHA = "f7458313c86fa580fb1e43a2f18252d67cf76e4a"
US_DATA_RELEASE_VERSION = "mp-ecps-2024-2cdd45d-20260605"
US_DATA_BUILD_ID = "microplex-us-2cdd45d-nodeferred-gzip1-20260605"
US_DATA_RELEASE_PATH = "releases/mp-ecps-2024-2cdd45d-20260605/release_manifest.json"
US_DATA_RELEASE_REVISION = "a091769a2d5e075762c520950ca8ca7f87017225"
US_MODEL_VERSION = "1.715.2"
US_BUILT_WITH_MODEL_VERSION = "1.700.0"
US_DATA_RELEASE_VERSION = "1.115.5"
US_DATA_RELEASE_PATH = "release_manifest.json"
US_DATA_RELEASE_REVISION = "d47fb5475144260a75467d2f2e22b2d5d53d4d57"
US_CERTIFICATION_SOURCE = "policyengine-us-data release manifest"
US_DEFAULT_DATASET_URI = (
"hf://policyengine/policyengine-us-data/"
Expand Down Expand Up @@ -102,18 +100,23 @@ def test__given_us_manifest__then_has_pinned_model_and_data_packages(self):
manifest.data_package.release_manifest_revision == US_DATA_RELEASE_REVISION
)
assert manifest.certified_data_artifact is not None
assert manifest.certified_data_artifact.build_id == US_DATA_BUILD_ID
assert (
manifest.certified_data_artifact.build_id
== f"policyengine-us-data-{US_DATA_RELEASE_VERSION}"
)
assert manifest.certified_data_artifact.dataset == "enhanced_cps_2024"
assert manifest.certification is not None
assert manifest.certification.data_build_id == US_DATA_BUILD_ID
assert manifest.certification.compatibility_basis == "exact_build_model_version"
assert (
manifest.certification.built_with_model_version
== US_BUILT_WITH_MODEL_VERSION
manifest.certification.data_build_id
== f"policyengine-us-data-{US_DATA_RELEASE_VERSION}"
)
assert (
manifest.certification.built_with_model_git_sha
== US_BUILT_WITH_MODEL_GIT_SHA
manifest.certification.compatibility_basis
== "legacy_compatible_model_package"
)
assert (
manifest.certification.built_with_model_version
== US_BUILT_WITH_MODEL_VERSION
)
assert manifest.certification.certified_for_model_version == US_MODEL_VERSION

Expand Down
12 changes: 6 additions & 6 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading