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
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Certify the Microcosm UK pair built on policyengine-uk 2.151.0 (microcosm `67ee2ddf3`): the national cut `microcosm-uk-2024-25-national-20261025T091414Z-a6299504` (`microcosm_uk_2024_25`) and, for constituency and local-authority regions, the local-area cut `microcosm-uk-2024-25-dense-20261026T105309Z-c9df4b86` (`microcosm_uk_2024_25_dense`), both built from one spine. The UK model pin moves from policyengine-uk 2.132.6 to 2.151.0 (policyengine-core stays 3.33.3), so UK results change with both the model and the data. From policyengine-uk 2.134.0 a capital gains tax reform scales realised gains by a retention-rate elasticity of 1 by default (`gov.simulation.capital_gains_responses.elasticity`); set it to 0 for a static costing. With a Hugging Face token set, importing policyengine with any policyengine-uk other than 2.151.0 raises.
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ graph = [
models = [
"policyengine-core==3.33.3",
"policyengine-us==2.2.1",
"policyengine-uk==2.132.6",
"policyengine-uk==2.151.0",
"spm-calculator==1.0.0",
]
uk = [
"policyengine-core==3.33.3",
"policyengine-uk==2.132.6",
"policyengine-uk==2.151.0",
]
us = [
"policyengine-core==3.33.3",
Expand All @@ -72,7 +72,7 @@ dev = [
"rfc8785>=0.1.4",
"policyengine-core==3.33.3",
"policyengine-us==2.2.1",
"policyengine-uk==2.132.6",
"policyengine-uk==2.151.0",
"spm-calculator==1.0.0",
]

Expand Down
74 changes: 37 additions & 37 deletions src/policyengine/data/bundle/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,31 @@
},
"data_releases": {
"uk": {
"build_id": "microcosm-uk-2024-25-national-20261019T083323Z-6cba5d71",
"build_id": "microcosm-uk-2024-25-national-20261025T091414Z-a6299504",
"bundle_id": "uk-6.11.0",
"certification": {
"built_with_model_version": "2.132.6",
"built_with_model_version": "2.151.0",
"certified_by": "policyengine.py bundle certification",
"certified_for_model_version": "2.132.6",
"certified_for_model_version": "2.151.0",
"compatibility_basis": "built_with_model_package",
"core_binding": "bundle_pin",
"data_build_id": "microcosm-uk-2024-25-national-20261019T083323Z-6cba5d71"
"data_build_id": "microcosm-uk-2024-25-national-20261025T091414Z-a6299504"
},
"certified_data_artifact": {
"build_id": "microcosm-uk-2024-25-national-20261019T083323Z-6cba5d71",
"build_id": "microcosm-uk-2024-25-national-20261025T091414Z-a6299504",
"data_package": {
"name": "microcosm-data",
"version": "0.1.0"
},
"dataset": "microcosm_uk_2024_25",
"sha256": "810ba980005a8b907cb51464279fa5e0125464b7af9a4871b7f6744c30951ece",
"uri": "hf://policyengine/populace-uk-private/microcosm_uk_2024_25.h5@microcosm-uk-2024-25-national-20261019T083323Z-6cba5d71"
"sha256": "b96a8cd625b645a409c063b1de5158532708a2f0d3c3897a794a8fb0bbd5064e",
"uri": "hf://policyengine/populace-uk-private/microcosm_uk_2024_25.h5@microcosm-uk-2024-25-national-20261025T091414Z-a6299504"
},
"country_id": "uk",
"data_package": {
"name": "microcosm-data",
"release_manifest_path": "releases/microcosm-uk-2024-25-national/release_manifest.json",
"release_manifest_revision": "microcosm-uk-2024-25-national-20261019T083323Z-6cba5d71",
"release_manifest_revision": "microcosm-uk-2024-25-national-20261025T091414Z-a6299504",
"repo_id": "policyengine/populace-uk-private",
"repo_type": "dataset",
"version": "0.1.0"
Expand All @@ -50,66 +50,66 @@
"calibration_diagnostics": {
"path": "releases/microcosm-uk-2024-25-national/calibration_diagnostics.json",
"repo_id": "policyengine/populace-uk-private",
"revision": "microcosm-uk-2024-25-national-20261019T083323Z-6cba5d71",
"sha256": "34978e2bfde3f2641769c9c3a8f60455c59ecae5a50524b359d74388d7edc888"
"revision": "microcosm-uk-2024-25-national-20261025T091414Z-a6299504",
"sha256": "e61a60a1a8d57204be15600b2f98dbc864123589d48ede8414ebe43139d7c09b"
},
"microcosm_uk_2024_25": {
"path": "microcosm_uk_2024_25.h5",
"repo_id": "policyengine/populace-uk-private",
"revision": "microcosm-uk-2024-25-national-20261019T083323Z-6cba5d71",
"sha256": "810ba980005a8b907cb51464279fa5e0125464b7af9a4871b7f6744c30951ece"
"revision": "microcosm-uk-2024-25-national-20261025T091414Z-a6299504",
"sha256": "b96a8cd625b645a409c063b1de5158532708a2f0d3c3897a794a8fb0bbd5064e"
},
"microcosm_uk_2024_25_calibration": {
"path": "microcosm_uk_2024_25_calibration.npz",
"repo_id": "policyengine/populace-uk-private",
"revision": "microcosm-uk-2024-25-national-20261019T083323Z-6cba5d71",
"sha256": "104a8253bf1aebc91147c9bbb40e2603d1025317ba8c6b991383d5e4d91852c2"
"revision": "microcosm-uk-2024-25-national-20261025T091414Z-a6299504",
"sha256": "96756884d719fa969c2fbdf548f4e56b8311c0c3765c66b1bf9bc8fe862f718f"
},
"microcosm_uk_2024_25_dense": {
"path": "microcosm_uk_2024_25_dense.h5",
"repo_id": "policyengine/populace-uk-private",
"repo_type": "dataset",
"revision": "microcosm-uk-2024-25-dense-20261019T000432Z-ee5c2dbe",
"sha256": "8e10e130d0260e0b52e2e29902f0502ebdff76a14a3e57d2c876bf4cd8db5872"
"revision": "microcosm-uk-2024-25-dense-20261026T105309Z-c9df4b86",
"sha256": "cb3712f25b76109ad27b7b0cdf5dee78c55d3b7f55ce7bf207ef1a191da2ae9a"
},
"release_certification": {
"path": "releases/microcosm-uk-2024-25-national/release_certification.json",
"repo_id": "policyengine/populace-uk-private",
"revision": "microcosm-uk-2024-25-national-20261019T083323Z-6cba5d71",
"sha256": "6a68cc93595fc5a7ad451d75a902523c25659de27014f50431dd5e19af5bd959"
"revision": "microcosm-uk-2024-25-national-20261025T091414Z-a6299504",
"sha256": "fc657f7ec9a759d15d4ad683ab92d5324f37844667d9d54b6d0648108419cf59"
},
"release_cut_gates": {
"path": "releases/microcosm-uk-2024-25-national/release_cut_gates.json",
"repo_id": "policyengine/populace-uk-private",
"revision": "microcosm-uk-2024-25-national-20261019T083323Z-6cba5d71",
"sha256": "c91c1364d9c3be98493039d4e1dd8c2256881a434c1f124dd2ed0701bfaf7751"
"revision": "microcosm-uk-2024-25-national-20261025T091414Z-a6299504",
"sha256": "54312402dc3152ab46208f89c86e5d8bf0dce13dfc723171f5a2c08a826217cd"
},
"score_vs_enhanced_frs": {
"path": "releases/microcosm-uk-2024-25-national/score_vs_enhanced_frs.json",
"repo_id": "policyengine/populace-uk-private",
"revision": "microcosm-uk-2024-25-national-20261019T083323Z-6cba5d71",
"sha256": "ba8a675f36e7c836bf5521e5933e21bb689442734b7340e05cabd3e0cc55323d"
"revision": "microcosm-uk-2024-25-national-20261025T091414Z-a6299504",
"sha256": "9e80102acf02a09a70ba3f45d7e6da2d33178476840388d640105f36ee353bd2"
},
"spine_gates": {
"path": "releases/microcosm-uk-2024-25-national/spine_gates.json",
"repo_id": "policyengine/populace-uk-private",
"revision": "microcosm-uk-2024-25-national-20261019T083323Z-6cba5d71",
"sha256": "6dbba976dd1304c07da531382cecb11c9cb69512de0ee65126b71f032a0f37d6"
"revision": "microcosm-uk-2024-25-national-20261025T091414Z-a6299504",
"sha256": "6856e437f4fa12a07ffe346a8f070b56d9a05c8dbece3eb277c293e75a0e582b"
},
"terminal_gates": {
"path": "releases/microcosm-uk-2024-25-national/terminal_gates.json",
"repo_id": "policyengine/populace-uk-private",
"revision": "microcosm-uk-2024-25-national-20261019T083323Z-6cba5d71",
"sha256": "e29439d5ce0ea098d32579284ac06f26f086feba2fb8d12d1e88ac9a54840808"
"revision": "microcosm-uk-2024-25-national-20261025T091414Z-a6299504",
"sha256": "cffa3db6734604c4fb7176bb81def41d313a8df26a2a2f675a970a6e9899a644"
}
},
"default_dataset": "microcosm_uk_2024_25",
"default_dataset_uri": "hf://policyengine/populace-uk-private/microcosm_uk_2024_25.h5@microcosm-uk-2024-25-national-20261019T083323Z-6cba5d71",
"default_dataset_uri": "hf://policyengine/populace-uk-private/microcosm_uk_2024_25.h5@microcosm-uk-2024-25-national-20261025T091414Z-a6299504",
"model_package": {
"name": "policyengine-uk",
"sha256": "cc54025f2a3bc54be4f8d024d1e6f11ed29fed75ca513b214f2d2963c5bf4354",
"version": "2.132.6",
"wheel_url": "https://files.pythonhosted.org/packages/11/f2/c003cd7a95cb499737a5b8af0d619ba4e759c8bc7e55a2bb5c7efa46abd1/policyengine_uk-2.132.6-py3-none-any.whl"
"sha256": "5722f55aca3eb88e1a228e95e1a57e3bd70a4d530a5a000991565ebd8955ce35",
"version": "2.151.0",
"wheel_url": "https://files.pythonhosted.org/packages/42/15/610c6825ed934d4338a42707b8c021e5627738e68224b6672df94770295c/policyengine_uk-2.151.0-py3-none-any.whl"
},
"policyengine_version": "6.11.0",
"region_datasets": {
Expand All @@ -124,12 +124,12 @@
}
},
"regional_release_kind": "local_area",
"regional_release_manifest_uri": "https://huggingface.co/datasets/policyengine/populace-uk-private/resolve/microcosm-uk-2024-25-dense-20261019T000432Z-ee5c2dbe/releases/microcosm-uk-2024-25-dense/release_manifest.json",
"regional_source_manifest_uri": "hf://dataset/policyengine/populace-uk-private@microcosm-uk-2024-25-dense-20261019T000432Z-ee5c2dbe/releases/microcosm-uk-2024-25-dense/release_manifest.json",
"release_manifest_uri": "https://huggingface.co/datasets/policyengine/populace-uk-private/resolve/microcosm-uk-2024-25-national-20261019T083323Z-6cba5d71/releases/microcosm-uk-2024-25-national/release_manifest.json",
"regional_release_manifest_uri": "https://huggingface.co/datasets/policyengine/populace-uk-private/resolve/microcosm-uk-2024-25-dense-20261026T105309Z-c9df4b86/releases/microcosm-uk-2024-25-dense/release_manifest.json",
"regional_source_manifest_uri": "hf://dataset/policyengine/populace-uk-private@microcosm-uk-2024-25-dense-20261026T105309Z-c9df4b86/releases/microcosm-uk-2024-25-dense/release_manifest.json",
"release_manifest_uri": "https://huggingface.co/datasets/policyengine/populace-uk-private/resolve/microcosm-uk-2024-25-national-20261025T091414Z-a6299504/releases/microcosm-uk-2024-25-national/release_manifest.json",
"schema_version": 1,
"source_manifest_uri": "hf://dataset/policyengine/populace-uk-private@microcosm-uk-2024-25-national-20261019T083323Z-6cba5d71/releases/microcosm-uk-2024-25-national/release_manifest.json",
"version": "microcosm-uk-2024-25-national-20261019T083323Z-6cba5d71"
"source_manifest_uri": "hf://dataset/policyengine/populace-uk-private@microcosm-uk-2024-25-national-20261025T091414Z-a6299504/releases/microcosm-uk-2024-25-national/release_manifest.json",
"version": "microcosm-uk-2024-25-national-20261025T091414Z-a6299504"
},
"us": {
"build_id": "populace-us-2024-spm-20260915",
Expand Down Expand Up @@ -363,10 +363,10 @@
"policyengine-uk": {
"country": "uk",
"import_name": "policyengine_uk",
"install_requirement": "policyengine-uk==2.132.6",
"install_requirement": "policyengine-uk==2.151.0",
"name": "policyengine-uk",
"role": "country_model",
"version": "2.132.6"
"version": "2.151.0"
},
"policyengine-us": {
"country": "us",
Expand Down
30 changes: 15 additions & 15 deletions src/policyengine/data/bundle/uk.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-10-19T10:17:15.545356+00:00",
"schema:dateCreated": "2026-10-25T10:57:31.393341+00:00",
"schema:description": "TRACE TRO for certified runtime bundle uk-6.11.0 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 uk 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/datasets/policyengine/populace-uk-private/resolve/microcosm-uk-2024-25-national-20261019T083323Z-6cba5d71/releases/microcosm-uk-2024-25-national/release_manifest.json"
"trov:hasLocation": "https://huggingface.co/datasets/policyengine/populace-uk-private/resolve/microcosm-uk-2024-25-national-20261025T091414Z-a6299504/releases/microcosm-uk-2024-25-national/release_manifest.json"
},
{
"@id": "arrangement/1/location/dataset",
"@type": "trov:ArtifactLocation",
"trov:hasArtifact": {
"@id": "composition/1/artifact/dataset"
},
"trov:hasLocation": "https://huggingface.co/datasets/policyengine/populace-uk-private/resolve/microcosm-uk-2024-25-national-20261019T083323Z-6cba5d71/microcosm_uk_2024_25.h5"
"trov:hasLocation": "https://huggingface.co/datasets/policyengine/populace-uk-private/resolve/microcosm-uk-2024-25-national-20261025T091414Z-a6299504/microcosm_uk_2024_25.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/11/f2/c003cd7a95cb499737a5b8af0d619ba4e759c8bc7e55a2bb5c7efa46abd1/policyengine_uk-2.132.6-py3-none-any.whl"
"trov:hasLocation": "https://files.pythonhosted.org/packages/42/15/610c6825ed934d4338a42707b8c021e5627738e68224b6672df94770295c/policyengine_uk-2.151.0-py3-none-any.whl"
}
]
}
Expand All @@ -75,51 +75,51 @@
"@type": "trov:ResearchArtifact",
"schema:name": "policyengine.py bundle manifest for uk",
"trov:mimeType": "application/json",
"trov:sha256": "bccf23acde631aed4665757094c04f86e60993fb9d388e7dc958b90c876e5a80"
"trov:sha256": "93556c99569af70d6a49c3c6f20e17638521d4d9e32724ab516243f2a2be7eaa"
},
{
"@id": "composition/1/artifact/data_release_manifest",
"@type": "trov:ResearchArtifact",
"schema:name": "microcosm-data release manifest 0.1.0",
"trov:mimeType": "application/json",
"trov:sha256": "49f9fa820db2e6544ff5cdceeb2d868a504843a6a1c1c06b37188621e700066f"
"trov:sha256": "1ebdbcc37535858c995e2d7434074f4ab89521e7b64f9b539a0684906f800e49"
},
{
"@id": "composition/1/artifact/dataset",
"@type": "trov:ResearchArtifact",
"schema:name": "microcosm_uk_2024_25",
"trov:mimeType": "application/x-hdf5",
"trov:sha256": "810ba980005a8b907cb51464279fa5e0125464b7af9a4871b7f6744c30951ece"
"trov:sha256": "b96a8cd625b645a409c063b1de5158532708a2f0d3c3897a794a8fb0bbd5064e"
},
{
"@id": "composition/1/artifact/model_wheel",
"@type": "trov:ResearchArtifact",
"schema:name": "policyengine-uk==2.132.6 wheel",
"schema:name": "policyengine-uk==2.151.0 wheel",
"trov:mimeType": "application/zip",
"trov:sha256": "cc54025f2a3bc54be4f8d024d1e6f11ed29fed75ca513b214f2d2963c5bf4354"
"trov:sha256": "5722f55aca3eb88e1a228e95e1a57e3bd70a4d530a5a000991565ebd8955ce35"
}
],
"trov:hasFingerprint": {
"@id": "composition/1/fingerprint",
"@type": "trov:CompositionFingerprint",
"trov:sha256": "a6de911691f376d0092d99528b8592e60e65e8766a979cd7f7ea0a12d96f1a92"
"trov:sha256": "63d795c6e09e37954c193f1d0a08b1b61ab1ccc75fd1181f830431750ae8fe4b"
}
},
"trov:hasPerformance": {
"@id": "trp/1",
"@type": "trov:TransparentResearchPerformance",
"pe:builtWithModelVersion": "2.132.6",
"pe:builtWithModelVersion": "2.151.0",
"pe:certifiedBy": "policyengine.py bundle certification",
"pe:certifiedForModelVersion": "2.132.6",
"pe:certifiedForModelVersion": "2.151.0",
"pe:compatibilityBasis": "built_with_model_package",
"pe:coreBinding": "bundle_pin",
"pe:dataBuildId": "microcosm-uk-2024-25-national-20261019T083323Z-6cba5d71",
"pe:dataBuildId": "microcosm-uk-2024-25-national-20261025T091414Z-a6299504",
"pe:emittedIn": "repository-bundle",
"rdfs:comment": "Certification of build microcosm-uk-2024-25-national-20261019T083323Z-6cba5d71 for policyengine-uk 2.132.6.",
"rdfs:comment": "Certification of build microcosm-uk-2024-25-national-20261025T091414Z-a6299504 for policyengine-uk 2.151.0.",
"trov:accessedArrangement": {
"@id": "arrangement/1"
},
"trov:startedAtTime": "2026-10-19T10:17:15.545356+00:00",
"trov:startedAtTime": "2026-10-25T10:57:31.393341+00:00",
"trov:wasConductedBy": {
"@id": "trs"
}
Expand Down
4 changes: 2 additions & 2 deletions src/policyengine/data/bundle/us.trace.tro.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"@type": "trov:ResearchArtifact",
"schema:name": "policyengine.py bundle manifest for us",
"trov:mimeType": "application/json",
"trov:sha256": "bccf23acde631aed4665757094c04f86e60993fb9d388e7dc958b90c876e5a80"
"trov:sha256": "93556c99569af70d6a49c3c6f20e17638521d4d9e32724ab516243f2a2be7eaa"
},
{
"@id": "composition/1/artifact/data_release_manifest",
Expand All @@ -101,7 +101,7 @@
"trov:hasFingerprint": {
"@id": "composition/1/fingerprint",
"@type": "trov:CompositionFingerprint",
"trov:sha256": "3c63dadd4e5c01ee40268ce3ba9ce433cf911b163adac88126ee6e8c6f4fb319"
"trov:sha256": "3c17ca543cf560848ed35f296279cb6c0d86660fa6148882baccf9d0446b4cf2"
}
},
"trov:hasPerformance": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
"household.equiv_hbai_household_net_income": 52510.29,
"household.fuel_duty": 0.0,
"household.hbai_household_net_income": 73514.4,
"household.household_benefits": 9441.78,
"household.household_benefits": 9872.8,
"household.household_count_people": 4.0,
"household.household_gross_income": 99441.78,
"household.household_gross_income": 99872.8,
"household.household_id": 0.0,
"household.household_income_decile": 10.0,
"household.household_market_income": 90000.0,
"household.household_net_income": 80438.73,
"household.household_tax": 19003.05,
"household.household_net_income": 80869.8,
"household.household_tax": 19003.0,
"household.household_wealth_decile": 10.0,
"household.household_weight": 1.0,
"household.in_poverty_ahc": 0.0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"has_income_tax": true,
"has_region_registry": true,
"model_package_name": "policyengine-uk",
"num_parameters_bucketed_100s": 32,
"num_variables_bucketed_100s": 11,
"num_parameters_bucketed_100s": 42,
"num_variables_bucketed_100s": 12,
"region_registry_country": "uk"
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"household.household_id": 0.0,
"household.household_income_decile": 10.0,
"household.household_market_income": 30000.0,
"household.household_net_income": 24939.55,
"household.household_tax": 5060.45,
"household.household_net_income": 24939.6,
"household.household_tax": 5060.4,
"household.household_wealth_decile": 10.0,
"household.household_weight": 1.0,
"household.in_poverty_ahc": 0.0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"household.household_id": 0.0,
"household.household_income_decile": 10.0,
"household.household_market_income": 0.0,
"household.household_net_income": 4918.75,
"household.household_tax": 180.04,
"household.household_net_income": 4918.8,
"household.household_tax": 180.0,
"household.household_wealth_decile": 10.0,
"household.household_weight": 1.0,
"household.in_poverty_ahc": 1.0,
Expand Down
Loading
Loading