policyengine 6.17.2__tar.gz → 6.18.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {policyengine-6.17.2 → policyengine-6.18.0}/CHANGELOG.md +7 -0
- {policyengine-6.17.2/src/policyengine.egg-info → policyengine-6.18.0}/PKG-INFO +1 -1
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/receipts.md +4 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/pyproject.toml +1 -1
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/data/bundle/manifest.json +10 -10
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/data/bundle/uk.trace.tro.jsonld +5 -5
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/data/bundle/us.trace.tro.jsonld +5 -5
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/data/schemas/execution_receipt.v1.schema.json +3 -1
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/provenance/__init__.py +3 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/provenance/receipt.py +156 -0
- {policyengine-6.17.2 → policyengine-6.18.0/src/policyengine.egg-info}/PKG-INFO +1 -1
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine.egg-info/SOURCES.txt +1 -0
- policyengine-6.18.0/tests/test_phased_scenario_receipt.py +256 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/uv.lock +1 -1
- {policyengine-6.17.2 → policyengine-6.18.0}/.claude/policyengine-guide.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/.claude/quick-reference.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/.github/CONTRIBUTING.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/.github/bump_version.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/.github/capture-version.sh +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/.github/changelog_template.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/.github/check-agent-notes.sh +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/.github/check-changelog.sh +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/.github/copilot-instructions.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/.github/dispatch-policyengine-release.sh +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/.github/fetch_version.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/.github/get-changelog-diff.sh +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/.github/has-functional-changes.sh +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/.github/is-version-number-acceptable.sh +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/.github/publish-git-tag.sh +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/.github/qualification-ledger.sh +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/.github/wait-for-pypi.sh +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/.github/workflows/certify-uk-release.yaml +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/.github/workflows/draft-pdf.yml +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/.github/workflows/pr_agent_notes.yaml +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/.github/workflows/pr_code_changes.yaml +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/.github/workflows/pr_docs_changes.yaml +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/.github/workflows/push.yaml +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/.gitignore +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/.python-version +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/AGENTS.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/CITATION.cff +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/CLAUDE.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/CODE_OF_CONDUCT.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/CONTRIBUTING.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/LICENSE +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/Makefile +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/README.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/architecture.png +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/architecture.svg +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/changelog.d/.gitkeep +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/.gitignore +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/_generator/README.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/_generator/build_reference.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/_quarto.yml +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/bundles.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/countries.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/data-publishing-design.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/decile-impact-spec.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/dev.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/disclosure.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/engineering/runbooks/acs-local-wic-replacement.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/engineering/runbooks/build-m-us-populace-certification.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/engineering/runbooks/canonical-spm-development.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/engineering/runbooks/uk-qualification.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/engineering/runbooks/us-legacy-spm-sources.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/engineering/skills/README.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/engineering/skills/data-certification.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/engineering/skills/github-prs.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/engineering/skills/repository-guidance.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/examples.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/getting-started.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/households.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/impact-analysis.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/index.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/methodology/index.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/methodology/model-architecture.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/methodology/uk-capital-gains-responses.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/methodology/us-health-costs.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/microsim.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/outputs.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/programs/index.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/programs/us-chip.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/reference/index.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/reforms.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/regions.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/release-bundles.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/run-records.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/trace-case-study.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/docs/visualisation.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/examples/belgium_axiom_pilot.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/examples/employment_income_variation_uk.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/examples/employment_income_variation_us.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/examples/household_impact_example.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/examples/income_bands_uk.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/examples/income_distribution_us.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/examples/paper_repro_uk.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/examples/policy_change_uk.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/examples/speedtest_us_simulation.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/examples/uk_geography_disclosure.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/examples/us_budgetary_impact.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/paper-preview.html +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/paper.bib +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/paper.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/scripts/audit_regional_input_surface.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/scripts/bundle.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/scripts/certify_data_release.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/scripts/check_data_staleness.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/scripts/check_native_spm_loading.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/scripts/check_release_credentials.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/scripts/check_uk_candidate.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/scripts/check_uk_uc_floor.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/scripts/export_bundle_release_assets.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/scripts/generate_bundle_artifacts.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/scripts/generate_receipt_schemas.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/scripts/generate_trace_tros.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/scripts/prepare_package_bundle_update.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/scripts/release_consumers.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/scripts/release_lock.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/scripts/spm_bundle.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/setup.cfg +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/bundle.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/cli.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/core/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/core/cache.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/core/dataset.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/core/dynamic.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/core/entity.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/core/output.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/core/parameter.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/core/parameter_node.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/core/parameter_value.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/core/policy.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/core/region.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/core/run_record.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/core/scoping_strategy.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/core/simulation.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/core/spm.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/core/tax_benefit_model.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/core/tax_benefit_model_version.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/core/variable.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/countries/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/countries/uk/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/countries/uk/regions.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/countries/us/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/countries/us/data/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/countries/us/data/districts.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/countries/us/data/places.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/countries/us/data/states.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/countries/us/regions.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/data/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/data/qualification/replay_policy.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/data/qualification/uk.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/data/qualification/uk_budget_critical_inputs.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/data/qualification/uk_replay_exceptions.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/data/qualification/uk_review_bounds.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/data/qualification/uk_uc_floor.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/data/schemas/trace_tro.schema.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/data/schemas/vendor/policyengine-scorecard/README.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/data/schemas/vendor/policyengine-scorecard/qualification_request.v1.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/data/schemas/vendor/policyengine-scorecard/replay_receipt.v1.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/data/schemas/vendor/policyengine-scorecard/replay_status.v1.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/data/uk_geography/SOURCES.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/data/uk_geography/constituencies_2024.csv +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/data/uk_geography/local_authorities_2023.csv +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/data/uk_geography_assets.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/derivations/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/derivations/narrate.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/derivations/trace.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/disclosure/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/disclosure/__main__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/disclosure/areas.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/disclosure/estimate.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/disclosure/noise.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/disclosure/release.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/disclosure/schema.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/disclosure/support.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/disclosure/validate.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/graph/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/graph/extractor.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/graph/graph.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/outputs/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/outputs/aggregate.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/outputs/change_aggregate.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/outputs/cliff_impact.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/outputs/congressional_district_impact.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/outputs/constituency_impact.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/outputs/decile_analysis.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/outputs/decile_grouping.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/outputs/decile_impact.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/outputs/extra_variables.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/outputs/inequality.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/outputs/intra_decile_impact.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/outputs/labor_supply_response.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/outputs/local_authority_impact.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/outputs/poverty.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/outputs/program_statistics.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/outputs/uk_geography_assets.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/outputs/uk_geography_disclosure.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/outputs/uk_geography_impact.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/provenance/bundle_validation.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/provenance/bytecode.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/provenance/canonical.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/provenance/certification.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/provenance/dataset_materialization.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/provenance/loaded.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/provenance/manifest.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/provenance/pyproject_pins.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/provenance/qualification.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/provenance/qualification_ledger.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/provenance/regional_input_surface.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/provenance/replay_probe.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/provenance/spm_configuration.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/provenance/trace.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/provenance/uk_candidate.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/provenance/uk_qualification.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/provenance/uk_uc_floor.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/provenance/verify.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/provenance/wheels.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/provenance/zenodo.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/results/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/results/schema.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/results/trace_tro.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/results/tracking.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/tax_benefit_models/be/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/tax_benefit_models/be/datasets.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/tax_benefit_models/be/model.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/tax_benefit_models/common/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/tax_benefit_models/common/axes.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/tax_benefit_models/common/extra_variables.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/tax_benefit_models/common/household.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/tax_benefit_models/common/model_version.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/tax_benefit_models/common/reform.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/tax_benefit_models/common/result.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/tax_benefit_models/uk/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/tax_benefit_models/uk/analysis.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/tax_benefit_models/uk/budget_reform_contract.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/tax_benefit_models/uk/budget_reform_population.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/tax_benefit_models/uk/capital_gains_responses.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/tax_benefit_models/uk/datasets.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/tax_benefit_models/uk/household.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/tax_benefit_models/uk/model.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/tax_benefit_models/us/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/tax_benefit_models/us/analysis.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/tax_benefit_models/us/datasets.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/tax_benefit_models/us/household.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/tax_benefit_models/us/legacy_inputs.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/tax_benefit_models/us/legacy_spm/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/tax_benefit_models/us/legacy_spm/declarations.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/tax_benefit_models/us/legacy_spm/independence.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/tax_benefit_models/us/legacy_spm/model_adapter.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/tax_benefit_models/us/legacy_spm/record.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/tax_benefit_models/us/legacy_spm/registry.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/tax_benefit_models/us/legacy_spm/runs.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/tax_benefit_models/us/legacy_spm/universe.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/tax_benefit_models/us/model.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/tax_benefit_models/us/spm.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/utils/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/utils/dates.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/utils/design.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/utils/entity_utils.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/utils/errors.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/utils/hashing.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/utils/household_validation.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/utils/parameter_labels.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/utils/parametric_reforms.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/utils/plotting.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine.egg-info/dependency_links.txt +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine.egg-info/entry_points.txt +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine.egg-info/requires.txt +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine.egg-info/top_level.txt +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/conftest.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/country_model_fixtures.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/filtering_fixtures.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/household_calculator_snapshots/uk_couple_two_kids.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/household_calculator_snapshots/uk_model_surface.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/household_calculator_snapshots/uk_single_adult_employment_income.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/household_calculator_snapshots/uk_single_adult_no_income.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/household_calculator_snapshots/uk_single_parent_one_child.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/household_calculator_snapshots/us_married_two_kids_high_income.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/household_calculator_snapshots/us_model_surface.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/household_calculator_snapshots/us_single_adult_employment_income.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/household_calculator_snapshots/us_single_adult_no_income.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/household_calculator_snapshots/us_single_parent_one_child.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/local_manifest/main_485dc2330_certification.py.txt +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/parameter_labels_fixtures.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/parametric_reforms_fixtures.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/poverty_by_demographics_fixtures.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/region_fixtures.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/release_tros/README.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/release_tros/country-models.lock.toml +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/release_tros/manifest.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/release_tros/us-release_manifest.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/release_tros/us.trace.tro.jsonld +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/replay_exceptions/README.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/replay_exceptions/main_policy_metadata.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/replay_exceptions/main_replay_policy.py.txt +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/replay_exceptions/replay_receipt_uk2.134.7_failed.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/replay_exceptions/uk2.134.7_budget_inputs.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/replay_exceptions/uk2.134.7_budget_inputs.result.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/replay_exceptions/uk2.134.7_qualification_receipt.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/spm_development.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/uk_contract/README.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/uk_contract/evaluate_case_rows.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/uk_contract/full_released_uk_2.135.0.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/uk_contract/pinned_uk_2.125.1_defects.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/uk_contract/population_pass_max_examples_0.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/uk_metrics/README.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/uk_metrics/budget_metrics_report.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/uk_metrics/standard_reforms.yaml +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/uk_qualification/microcosm_routed_bundle.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/uk_qualification/uk_data_line_bundle.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/uk_replay/DIGESTS.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/uk_replay/README.md +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/uk_replay/qualification_request_golden.jcs +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/uk_replay/qualification_request_golden.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/uk_replay/receipt_6.4.1_attempt1/REPLAY_RECEIPT.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/uk_replay/receipt_6.4.1_attempt1/REQUEST.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/uk_replay/receipt_6.5.0/REPLAY_RECEIPT.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/uk_replay/receipt_6.5.0/REQUEST.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/uk_replay/receipt_6.5.0/STATUS.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/uk_replay/replay_receipt_golden.jcs +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/uk_replay/replay_receipt_golden.json +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/us_reform_fixtures.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/fixtures/variable_label_fixtures.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/qualification_fixtures.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/receipt_modifiers.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/receipt_unbindable_modifiers.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_aggregate.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_be_axiom_pilot.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_budgetary_impact.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_bump_version.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_bundle.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_bundle_metadata.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_cache.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_canonical_json.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_certify_data_release.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_change_aggregate.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_check_agent_notes.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_ci_runner_variables.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_cliff_impact.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_cliff_impact_analysis.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_congressional_district_impact.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_constituency_impact.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_dataset_materialization.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_dataset_persistence.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_dataset_runtime.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_dataset_source.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_decile_grouping.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_derivations.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_dict_reforms_on_simulation.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_disclosure_areas.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_disclosure_estimate.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_disclosure_noise.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_disclosure_release.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_disclosure_schema.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_disclosure_support.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_disclosure_validate.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_entity_mapping.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_entity_utils.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_entity_utils_characterization.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_errors.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_execution_receipt.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_extra_variables.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_filtering.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_generate_trace_tros.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_graph/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_graph/conftest.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_graph/test_extractor.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_household_calculator_snapshot.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_household_impact.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_inequality.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_intra_decile_impact.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_labor_supply_response.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_local_authority_impact.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_local_data_manifest.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_local_manifest_receipt.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_local_manifest_tro_pins.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_manifest_version_mismatch.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_measure_regional_inputs.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_model_entities.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_models.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_pandas3_compatibility.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_parameter_labels.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_parameter_metadata.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_parameter_nodes.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_parameter_values.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_parametric_reforms.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_poverty.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_poverty_by_demographics.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_poverty_run.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_preservation_mirror.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_program_statistics.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_pyproject_pins.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_qualification_contracts.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_qualification_ledger_concurrency.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_qualification_ledger_script.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_qualified_pair_certification.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_region.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_region_group_strategy.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_regional_input_evidence.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_release_build_folders.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_release_credentials.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_release_lock.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_release_manifests.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_release_tro_generation.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_replay_exception_coherence_round3.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_replay_exception_finalize_review.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_replay_exception_hardening_round3.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_replay_exception_lineage.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_replay_exception_lineage_round3.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_replay_exception_policy_review.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_replay_exception_probe.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_replay_exception_probe_round3.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_replay_exceptions.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_results.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_run_record.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_scoping_strategy.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_simulation_ensure_errors.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_small_follow_ups.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_spm_bundle_bootstrap.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_spm_bundle_tooling.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_spm_decile.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_spm_development_authentication.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_spm_household.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_spm_model.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_spm_selection.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_spm_selection_schema.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_trace_tro.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_trace_tro_verify.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_uk_analysis.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_uk_area_lists.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_uk_budget_reform_contract.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_uk_candidate_gates.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_uk_candidate_metric_baselines.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_uk_cgt_default.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_uk_cgt_response_records.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_uk_cgt_responses.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_uk_dated_reforms.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_uk_geography_assets.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_uk_geography_disclosure.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_uk_modifier_cache.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_uk_nation_model_agreement.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_uk_program_statistics.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_uk_qualification_pipeline.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_uk_qualification_replay_inputs.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_uk_qualification_workflow.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_uk_regions.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_uk_uc_floor.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_uk_year_file_data_year.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_us_household_groups.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_us_legacy_inputs.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_us_legacy_inputs_integration.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_us_legacy_spm.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_us_legacy_spm_integration.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_us_legacy_spm_model_contract.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_us_long_term_datasets.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_us_microsim_structural_reforms.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_us_native_alignment.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_us_native_hdf_weights.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_us_program_statistics.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_us_reform_application.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_us_regions.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_us_year_file_stamp.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_variable_labels.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_variable_metadata.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_wheels.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/test_zenodo_mirror.py +0 -0
- {policyengine-6.17.2 → policyengine-6.18.0}/tests/uk_contract_row_scenarios.py +0 -0
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [6.18.0] - 2026-11-12
|
|
2
|
+
|
|
3
|
+
### Added
|
|
4
|
+
|
|
5
|
+
- Bind UK Scenario execution receipts to their actual before- and after-data-load phases, preserving existing single-phase digests and refusing phase flattening through older representations.
|
|
6
|
+
|
|
7
|
+
|
|
1
8
|
## [6.17.2] - 2026-11-11
|
|
2
9
|
|
|
3
10
|
### Changed
|
|
@@ -79,6 +79,10 @@ A scenario with a module-level `simulation_modifier` needs `code_revision={"repo
|
|
|
79
79
|
|
|
80
80
|
None of these depends on where the code is checked out or which Python version runs it, so CI, a laptop and the server compute the same digest for the same code.
|
|
81
81
|
|
|
82
|
+
**Scenarios with two data-load phases.** Use `phased_scenario_reform_identity(actual_scenario, code_revision=...)` when native `Scenario` construction applies shared parameter changes before data loading and a modifier afterwards. It reads the engine's `parts_by_data_load()` result, then binds each part with the same strict modifier checks above. Genuinely single-phase inputs keep their existing `scenario/v1` identities and digests. A mixed-timing sum with no after-load modifier binds its actual before-load part with `scenario/v1`, even when its aggregate flag is false. Inputs with two effective phases use the new representation `policyengine-uk.phased_scenario/v1`, whose payload is `{"application": "before_data_load_then_after_data_load", "before": {"representation", "reform_sha256", "binding"}, "after": {"representation", "reform_sha256", "binding"}}`. Common parameters occur once in the engine's before-data-load part. The live re-check handle retains the original Scenario, so changing its phase, parameters or modifiers after binding is refused at receipt construction. Consumers need the updated representation enum before accepting the new representation; existing receipt bytes and digest rules remain unchanged.
|
|
83
|
+
|
|
84
|
+
The old `scenario_reform_identity` refuses mixed phases and effective-phase/aggregate-flag mismatches instead of assigning the aggregate flag to every part. `composed_reform_identity` v1 refuses phased members because its contract overrides member timing. Bind the actual combined Scenario through the phased API instead. Dated reform objects are outside both Scenario representations: bind an original reform dictionary as its dictionary representation rather than silently omitting it. Closures and computed modifier chains remain unsupported.
|
|
85
|
+
|
|
82
86
|
Build the receipt after the run. An identity returned by `scenario_reform_identity` keeps a private handle to the same scenario and code revision. Both receipt builders recompute `reform` and `baseline` identities with handles, and refuse if recomputing is refused or an identity member differs. The handle is excluded from equality, serialization, schemas and digests. A serialized identity loaded back has no handle and is not re-checked; its producer must ensure it describes the run. These checks take snapshots at identity time and receipt build time, so they cannot describe later changes.
|
|
83
87
|
|
|
84
88
|
**The modifier's module.** A digest can only name what the module's source fixes, so the module holding a bound modifier must have a shape whose state that source determines. At module level it may hold only:
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"bundle_version": "6.
|
|
2
|
+
"bundle_version": "6.18.0",
|
|
3
3
|
"citation": {
|
|
4
4
|
"publisher": "PolicyEngine",
|
|
5
|
-
"title": "PolicyEngine bundle 6.
|
|
5
|
+
"title": "PolicyEngine bundle 6.18.0",
|
|
6
6
|
"type": "software-bundle",
|
|
7
|
-
"version": "6.
|
|
7
|
+
"version": "6.18.0"
|
|
8
8
|
},
|
|
9
9
|
"countries": {
|
|
10
10
|
"uk": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"data_releases": {
|
|
18
18
|
"uk": {
|
|
19
19
|
"build_id": "microcosm-uk-2024-25-national-20261107T020434Z-eeb6093e",
|
|
20
|
-
"bundle_id": "uk-6.
|
|
20
|
+
"bundle_id": "uk-6.18.0",
|
|
21
21
|
"certification": {
|
|
22
22
|
"built_with_model_version": "2.174.1",
|
|
23
23
|
"certified_by": "policyengine.py bundle certification",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"version": "2.174.1",
|
|
112
112
|
"wheel_url": "https://files.pythonhosted.org/packages/35/ed/5ea303be2fd38da4e5f9b9a3fd012a5f9454fd5ef66a1df26c3267fb57a8/policyengine_uk-2.174.1-py3-none-any.whl"
|
|
113
113
|
},
|
|
114
|
-
"policyengine_version": "6.
|
|
114
|
+
"policyengine_version": "6.18.0",
|
|
115
115
|
"region_datasets": {
|
|
116
116
|
"constituency": {
|
|
117
117
|
"path_template": "microcosm_uk_2024_25_dense.h5"
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
},
|
|
135
135
|
"us": {
|
|
136
136
|
"build_id": "populace-us-2024-spm-20260915",
|
|
137
|
-
"bundle_id": "us-6.
|
|
137
|
+
"bundle_id": "us-6.18.0",
|
|
138
138
|
"certification": {
|
|
139
139
|
"built_with_model_version": "2.2.1",
|
|
140
140
|
"certified_by": "policyengine.py bundle certification",
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
"version": "2.2.1",
|
|
240
240
|
"wheel_url": "https://files.pythonhosted.org/packages/5e/09/86ac3968d2a18e28fce3ba1186fc21728e9f299b96a806d6f204f1e0aaed/policyengine_us-2.2.1-py3-none-any.whl"
|
|
241
241
|
},
|
|
242
|
-
"policyengine_version": "6.
|
|
242
|
+
"policyengine_version": "6.18.0",
|
|
243
243
|
"region_datasets": {
|
|
244
244
|
"congressional_district": {
|
|
245
245
|
"path_template": "populace_us_2024_acs_local.h5"
|
|
@@ -349,10 +349,10 @@
|
|
|
349
349
|
"packages": {
|
|
350
350
|
"policyengine": {
|
|
351
351
|
"import_name": "policyengine",
|
|
352
|
-
"install_requirement": "policyengine==6.
|
|
352
|
+
"install_requirement": "policyengine==6.18.0",
|
|
353
353
|
"name": "policyengine",
|
|
354
354
|
"role": "bundle_carrier",
|
|
355
|
-
"version": "6.
|
|
355
|
+
"version": "6.18.0"
|
|
356
356
|
},
|
|
357
357
|
"policyengine-core": {
|
|
358
358
|
"import_name": "policyengine_core",
|
|
@@ -388,6 +388,6 @@
|
|
|
388
388
|
"wheel_url": "https://files.pythonhosted.org/packages/19/a0/c484f69a0ebf88a9b9fd0ac28176f8df66550f46714f1b0c5ec0b360824e/spm_calculator-1.0.0-py3-none-any.whl"
|
|
389
389
|
}
|
|
390
390
|
},
|
|
391
|
-
"policyengine_version": "6.
|
|
391
|
+
"policyengine_version": "6.18.0",
|
|
392
392
|
"schema_version": 2
|
|
393
393
|
}
|
{policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/data/bundle/uk.trace.tro.jsonld
RENAMED
|
@@ -18,18 +18,18 @@
|
|
|
18
18
|
"schema:url": "https://policyengine.org"
|
|
19
19
|
},
|
|
20
20
|
"schema:dateCreated": "2026-11-07T03:22:40.126887+00:00",
|
|
21
|
-
"schema:description": "TRACE TRO for certified runtime bundle uk-6.
|
|
21
|
+
"schema:description": "TRACE TRO for certified runtime bundle uk-6.18.0 covering the bundle manifest, the certified dataset artifact, the country model wheel, and the country data release manifest when it is available.",
|
|
22
22
|
"schema:name": "policyengine uk certified bundle TRO",
|
|
23
23
|
"trov:createdWith": {
|
|
24
24
|
"@type": "schema:SoftwareApplication",
|
|
25
25
|
"schema:name": "policyengine",
|
|
26
|
-
"schema:softwareVersion": "6.
|
|
26
|
+
"schema:softwareVersion": "6.18.0"
|
|
27
27
|
},
|
|
28
28
|
"trov:hasArrangement": [
|
|
29
29
|
{
|
|
30
30
|
"@id": "arrangement/1",
|
|
31
31
|
"@type": "trov:ArtifactArrangement",
|
|
32
|
-
"rdfs:comment": "Certified arrangement for bundle uk-6.
|
|
32
|
+
"rdfs:comment": "Certified arrangement for bundle uk-6.18.0.",
|
|
33
33
|
"trov:hasArtifactLocation": [
|
|
34
34
|
{
|
|
35
35
|
"@id": "arrangement/1/location/bundle_manifest",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"@type": "trov:ResearchArtifact",
|
|
76
76
|
"schema:name": "policyengine.py bundle manifest for uk",
|
|
77
77
|
"trov:mimeType": "application/json",
|
|
78
|
-
"trov:sha256": "
|
|
78
|
+
"trov:sha256": "91e2ce6a1045132481701651434238cd0b74011fffd8514a0b324b9cbe5fe49a"
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
"@id": "composition/1/artifact/data_release_manifest",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"trov:hasFingerprint": {
|
|
103
103
|
"@id": "composition/1/fingerprint",
|
|
104
104
|
"@type": "trov:CompositionFingerprint",
|
|
105
|
-
"trov:sha256": "
|
|
105
|
+
"trov:sha256": "9baabcb4d938aa47c8d75446e50cff2a85779c92e394b489f4a15e2bde3bc542"
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
108
|
"trov:hasPerformance": {
|
{policyengine-6.17.2 → policyengine-6.18.0}/src/policyengine/data/bundle/us.trace.tro.jsonld
RENAMED
|
@@ -17,18 +17,18 @@
|
|
|
17
17
|
"schema:name": "PolicyEngine",
|
|
18
18
|
"schema:url": "https://policyengine.org"
|
|
19
19
|
},
|
|
20
|
-
"schema:description": "TRACE TRO for certified runtime bundle us-6.
|
|
20
|
+
"schema:description": "TRACE TRO for certified runtime bundle us-6.18.0 covering the bundle manifest, the certified dataset artifact, the country model wheel, and the country data release manifest when it is available.",
|
|
21
21
|
"schema:name": "policyengine us certified bundle TRO",
|
|
22
22
|
"trov:createdWith": {
|
|
23
23
|
"@type": "schema:SoftwareApplication",
|
|
24
24
|
"schema:name": "policyengine",
|
|
25
|
-
"schema:softwareVersion": "6.
|
|
25
|
+
"schema:softwareVersion": "6.18.0"
|
|
26
26
|
},
|
|
27
27
|
"trov:hasArrangement": [
|
|
28
28
|
{
|
|
29
29
|
"@id": "arrangement/1",
|
|
30
30
|
"@type": "trov:ArtifactArrangement",
|
|
31
|
-
"rdfs:comment": "Certified arrangement for bundle us-6.
|
|
31
|
+
"rdfs:comment": "Certified arrangement for bundle us-6.18.0.",
|
|
32
32
|
"trov:hasArtifactLocation": [
|
|
33
33
|
{
|
|
34
34
|
"@id": "arrangement/1/location/bundle_manifest",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"@type": "trov:ResearchArtifact",
|
|
75
75
|
"schema:name": "policyengine.py bundle manifest for us",
|
|
76
76
|
"trov:mimeType": "application/json",
|
|
77
|
-
"trov:sha256": "
|
|
77
|
+
"trov:sha256": "91e2ce6a1045132481701651434238cd0b74011fffd8514a0b324b9cbe5fe49a"
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
80
|
"@id": "composition/1/artifact/data_release_manifest",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"trov:hasFingerprint": {
|
|
102
102
|
"@id": "composition/1/fingerprint",
|
|
103
103
|
"@type": "trov:CompositionFingerprint",
|
|
104
|
-
"trov:sha256": "
|
|
104
|
+
"trov:sha256": "a9a1b777d4c2d17eb10b8ddf22c1551cae1451a85bb447ad1a3a73f9559b454d"
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
107
|
"trov:hasPerformance": {
|
|
@@ -439,7 +439,8 @@
|
|
|
439
439
|
"policyengine-uk.reform_dict/v1",
|
|
440
440
|
"policyengine-sim-api.policy/v1",
|
|
441
441
|
"policyengine-uk.scenario/v1",
|
|
442
|
-
"policyengine-uk.scenario_composition/v1"
|
|
442
|
+
"policyengine-uk.scenario_composition/v1",
|
|
443
|
+
"policyengine-uk.phased_scenario/v1"
|
|
443
444
|
],
|
|
444
445
|
"type": "string"
|
|
445
446
|
},
|
|
@@ -831,6 +832,7 @@
|
|
|
831
832
|
"execution_identity_sha256": "{schema_version, country_id, wrapper, model, core, data, certification_status, certificate?, regional_certification?} where certificate keeps only bundle_version, country_id, certificate_sha256, compatibility_basis, certified_for_model_version, certified_for_core_version, certified_dataset_sha256 and certified_by",
|
|
832
833
|
"outputs_sha256": "the canonical output payload the receipt binds",
|
|
833
834
|
"receipt_sha256": "the whole receipt without runtime and without reform.name and baseline.name",
|
|
835
|
+
"reform.phased_scenario_sha256": "For policyengine-uk.phased_scenario/v1, RFC 8785 over {representation, payload}, with payload {application: before_data_load_then_after_data_load, before: {representation, reform_sha256, binding}, after: {representation, reform_sha256, binding}}; each phase binds the native Scenario.parts_by_data_load() result through scenario/v1. Common parameter changes occur once, in the before phase. A scenario_composition/v1 cannot contain this representation.",
|
|
834
836
|
"reform.reform_sha256": "RFC 8785 over {representation, payload} where payload is the reform exactly as given in that representation, nulls kept (a null in a reform can mean something, unlike an absent receipt field); for policyengine-uk.scenario_composition/v1 the payload is {applied_before_data_load, application: parameter_changes_then_modifiers, members: [{representation, reform_sha256, binding}, ...]} with members in application order; an infinite number in a payload is the object {\"$nonfinite\": \"Infinity\"} or {\"$nonfinite\": \"-Infinity\"}, and a payload may not use the key $nonfinite itself",
|
|
835
837
|
"regional_certification.record_sha256": "the bundle manifest's data_releases.<country_id>.regional_certification record, its evidence included"
|
|
836
838
|
},
|
|
@@ -102,6 +102,9 @@ from .receipt import (
|
|
|
102
102
|
from .receipt import (
|
|
103
103
|
composed_reform_identity as composed_reform_identity,
|
|
104
104
|
)
|
|
105
|
+
from .receipt import (
|
|
106
|
+
phased_scenario_reform_identity as phased_scenario_reform_identity,
|
|
107
|
+
)
|
|
105
108
|
from .receipt import (
|
|
106
109
|
reform_identity as reform_identity,
|
|
107
110
|
)
|
|
@@ -161,6 +161,7 @@ __all__ = [
|
|
|
161
161
|
"content_sha256",
|
|
162
162
|
"fiscal_year_label",
|
|
163
163
|
"installed_package_identity",
|
|
164
|
+
"phased_scenario_reform_identity",
|
|
164
165
|
"reform_identity",
|
|
165
166
|
"regional_certification_identity",
|
|
166
167
|
"scenario_reform_identity",
|
|
@@ -205,6 +206,8 @@ ReformRepresentation = Literal[
|
|
|
205
206
|
# Several reforms applied in one policyengine-uk ``Scenario``, in a stated
|
|
206
207
|
# order: see composed_reform_identity().
|
|
207
208
|
"policyengine-uk.scenario_composition/v1",
|
|
209
|
+
# A native Scenario whose before/after-data-load parts keep their phases.
|
|
210
|
+
"policyengine-uk.phased_scenario/v1",
|
|
208
211
|
]
|
|
209
212
|
|
|
210
213
|
#: Representation of a composition of member reforms.
|
|
@@ -212,6 +215,11 @@ COMPOSITION_REPRESENTATION: Literal["policyengine-uk.scenario_composition/v1"] =
|
|
|
212
215
|
"policyengine-uk.scenario_composition/v1"
|
|
213
216
|
)
|
|
214
217
|
|
|
218
|
+
PHASED_SCENARIO_REPRESENTATION: Literal["policyengine-uk.phased_scenario/v1"] = (
|
|
219
|
+
"policyengine-uk.phased_scenario/v1"
|
|
220
|
+
)
|
|
221
|
+
PHASED_SCENARIO_APPLICATION = "before_data_load_then_after_data_load"
|
|
222
|
+
|
|
215
223
|
#: v1 rules that JSON Schema cannot express. Published in the schema file.
|
|
216
224
|
CROSS_FIELD_RULES: tuple[str, ...] = (
|
|
217
225
|
"years is sorted ascending with no duplicates, and each year is written as an integer (2027, not 2027.0).",
|
|
@@ -239,6 +247,7 @@ DIGEST_RULES: dict[str, str] = {
|
|
|
239
247
|
"regional_certification.record_sha256": "the bundle manifest's data_releases.<country_id>.regional_certification record, its evidence included",
|
|
240
248
|
"reform.reform_sha256": 'RFC 8785 over {representation, payload} where payload is the reform exactly as given in that representation, nulls kept (a null in a reform can mean something, unlike an absent receipt field); for policyengine-uk.scenario_composition/v1 the payload is {applied_before_data_load, application: parameter_changes_then_modifiers, members: [{representation, reform_sha256, binding}, ...]} with members in application order; an infinite number in a payload is the object {"$nonfinite": "Infinity"} or {"$nonfinite": "-Infinity"}, and a payload may not use the key $nonfinite itself',
|
|
241
249
|
"outputs_sha256": "the canonical output payload the receipt binds",
|
|
250
|
+
"reform.phased_scenario_sha256": "For policyengine-uk.phased_scenario/v1, RFC 8785 over {representation, payload}, with payload {application: before_data_load_then_after_data_load, before: {representation, reform_sha256, binding}, after: {representation, reform_sha256, binding}}; each phase binds the native Scenario.parts_by_data_load() result through scenario/v1. Common parameter changes occur once, in the before phase. A scenario_composition/v1 cannot contain this representation.",
|
|
242
251
|
}
|
|
243
252
|
|
|
244
253
|
HashEvidence = Literal["installed_record_verified", "installer_archive_hash"]
|
|
@@ -975,6 +984,10 @@ def reform_identity(
|
|
|
975
984
|
raise ReceiptError("Bind a Scenario with scenario_reform_identity().")
|
|
976
985
|
if representation == COMPOSITION_REPRESENTATION:
|
|
977
986
|
raise ReceiptError("Bind a composition with composed_reform_identity().")
|
|
987
|
+
if representation == PHASED_SCENARIO_REPRESENTATION:
|
|
988
|
+
raise ReceiptError(
|
|
989
|
+
"Bind a phased Scenario with phased_scenario_reform_identity()."
|
|
990
|
+
)
|
|
978
991
|
digest = _payload_sha256({"representation": representation, "payload": payload})
|
|
979
992
|
return ReformIdentity(
|
|
980
993
|
kind="reform", representation=representation, reform_sha256=digest, name=name
|
|
@@ -3177,6 +3190,28 @@ def _modifier_identity(
|
|
|
3177
3190
|
}
|
|
3178
3191
|
|
|
3179
3192
|
|
|
3193
|
+
def _scenario_data_load_parts(scenario: Any) -> Optional[tuple[Any, Any]]:
|
|
3194
|
+
"""The engine's phase split, when this Scenario version exposes it.
|
|
3195
|
+
|
|
3196
|
+
Dated reform objects have no supported receipt representation here.
|
|
3197
|
+
Refuse them rather than dropping semantics from a parameter payload.
|
|
3198
|
+
"""
|
|
3199
|
+
if getattr(scenario, "dated_reforms", None):
|
|
3200
|
+
raise ReceiptError(
|
|
3201
|
+
"Scenario.dated_reforms cannot be bound as a parameter Scenario; "
|
|
3202
|
+
"bind the reform dictionary with reform_identity() instead."
|
|
3203
|
+
)
|
|
3204
|
+
split = getattr(scenario, "parts_by_data_load", None)
|
|
3205
|
+
if split is None:
|
|
3206
|
+
return None
|
|
3207
|
+
if not callable(split):
|
|
3208
|
+
raise ReceiptError("Scenario.parts_by_data_load must be callable.")
|
|
3209
|
+
parts = split()
|
|
3210
|
+
if not isinstance(parts, tuple) or len(parts) != 2:
|
|
3211
|
+
raise ReceiptError("Scenario.parts_by_data_load must return two phase parts.")
|
|
3212
|
+
return parts
|
|
3213
|
+
|
|
3214
|
+
|
|
3180
3215
|
def scenario_reform_identity(
|
|
3181
3216
|
scenario: Any,
|
|
3182
3217
|
*,
|
|
@@ -3216,6 +3251,21 @@ def scenario_reform_identity(
|
|
|
3216
3251
|
raise ReceiptError("Scenario.parameter_changes must be a mapping or None.")
|
|
3217
3252
|
if modifier is not None and not callable(modifier):
|
|
3218
3253
|
raise ReceiptError("Scenario.simulation_modifier must be callable or None.")
|
|
3254
|
+
parts = _scenario_data_load_parts(scenario)
|
|
3255
|
+
if parts is not None and all(part is not None for part in parts):
|
|
3256
|
+
raise ReceiptError(
|
|
3257
|
+
"A Scenario with before- and after-data-load phases cannot use "
|
|
3258
|
+
"scenario/v1; bind it with phased_scenario_reform_identity()."
|
|
3259
|
+
)
|
|
3260
|
+
if parts is not None:
|
|
3261
|
+
effective = parts[0] if parts[0] is not None else parts[1]
|
|
3262
|
+
if effective is not None and (
|
|
3263
|
+
effective.applied_before_data_load != applied_before_data_load
|
|
3264
|
+
):
|
|
3265
|
+
raise ReceiptError(
|
|
3266
|
+
"A Scenario's effective data-load phase differs from its aggregate "
|
|
3267
|
+
"flag; bind it with phased_scenario_reform_identity()."
|
|
3268
|
+
)
|
|
3219
3269
|
|
|
3220
3270
|
def checked(identity: ReformIdentity) -> ReformIdentity:
|
|
3221
3271
|
revision = dict(code_revision) if code_revision is not None else None
|
|
@@ -3266,6 +3316,106 @@ def scenario_reform_identity(
|
|
|
3266
3316
|
)
|
|
3267
3317
|
|
|
3268
3318
|
|
|
3319
|
+
def phased_scenario_reform_identity(
|
|
3320
|
+
scenario: Any,
|
|
3321
|
+
*,
|
|
3322
|
+
code_revision: Optional[Mapping[str, str]] = None,
|
|
3323
|
+
name: Optional[str] = None,
|
|
3324
|
+
) -> ReformIdentity:
|
|
3325
|
+
"""Bind a native UK Scenario without flattening its data-load phases.
|
|
3326
|
+
|
|
3327
|
+
A single-phase Scenario keeps its existing ``scenario/v1`` digest.
|
|
3328
|
+
A mixed-phase Scenario uses ``policyengine-uk.phased_scenario/v1``:
|
|
3329
|
+
``{application: before_data_load_then_after_data_load, before: identity,
|
|
3330
|
+
after: identity}``. Each phase identity contains only representation,
|
|
3331
|
+
digest and binding. The engine's ``parts_by_data_load()`` determines
|
|
3332
|
+
which parameter changes and modifier run in each phase; common
|
|
3333
|
+
parameters appear once in its before-data-load part.
|
|
3334
|
+
|
|
3335
|
+
Modifiers satisfy the same module, source, defaults and revision
|
|
3336
|
+
checks as :func:`scenario_reform_identity`. This API does not accept
|
|
3337
|
+
closures, flatten modifier chains, or invent a phase from aggregate
|
|
3338
|
+
flags. The identity's live handle rechecks the original Scenario,
|
|
3339
|
+
including later edits that change its phase split.
|
|
3340
|
+
"""
|
|
3341
|
+
try:
|
|
3342
|
+
from policyengine_uk.utils.scenario import Scenario
|
|
3343
|
+
except ImportError as exc:
|
|
3344
|
+
raise ReceiptError(
|
|
3345
|
+
"phased_scenario_reform_identity requires policyengine-uk."
|
|
3346
|
+
) from exc
|
|
3347
|
+
if not isinstance(scenario, Scenario):
|
|
3348
|
+
raise ReceiptError(
|
|
3349
|
+
"phased_scenario_reform_identity requires a native policyengine-uk Scenario."
|
|
3350
|
+
)
|
|
3351
|
+
|
|
3352
|
+
def checked(identity: ReformIdentity) -> ReformIdentity:
|
|
3353
|
+
revision = dict(code_revision) if code_revision is not None else None
|
|
3354
|
+
object.__setattr__(
|
|
3355
|
+
identity,
|
|
3356
|
+
"_recompute_identity",
|
|
3357
|
+
lambda: phased_scenario_reform_identity(
|
|
3358
|
+
scenario, code_revision=revision, name=name
|
|
3359
|
+
),
|
|
3360
|
+
)
|
|
3361
|
+
return identity
|
|
3362
|
+
|
|
3363
|
+
parts = _scenario_data_load_parts(scenario)
|
|
3364
|
+
if parts is None:
|
|
3365
|
+
return checked(
|
|
3366
|
+
scenario_reform_identity(scenario, code_revision=code_revision, name=name)
|
|
3367
|
+
)
|
|
3368
|
+
if any(part is None for part in parts):
|
|
3369
|
+
effective = parts[0] if parts[0] is not None else parts[1]
|
|
3370
|
+
if not isinstance(effective, Scenario):
|
|
3371
|
+
raise ReceiptError("Scenario's effective phase must be a native Scenario.")
|
|
3372
|
+
# A mixed-timing sum can have no after-load modifier. The engine
|
|
3373
|
+
# then applies its parameters only before loading even though the
|
|
3374
|
+
# aggregate flag is False. Bind that actual part, retaining a
|
|
3375
|
+
# recheck handle to the original sum rather than its detached copy.
|
|
3376
|
+
return checked(
|
|
3377
|
+
scenario_reform_identity(effective, code_revision=code_revision, name=name)
|
|
3378
|
+
)
|
|
3379
|
+
before, after = parts
|
|
3380
|
+
if not isinstance(before, Scenario) or not isinstance(after, Scenario):
|
|
3381
|
+
raise ReceiptError("Scenario phase parts must be native Scenarios.")
|
|
3382
|
+
if before.applied_before_data_load is not True or (
|
|
3383
|
+
after.applied_before_data_load is not False
|
|
3384
|
+
):
|
|
3385
|
+
raise ReceiptError("Scenario phase parts have inconsistent data-load timing.")
|
|
3386
|
+
phase_identities = [
|
|
3387
|
+
scenario_reform_identity(part, code_revision=code_revision)
|
|
3388
|
+
for part in (before, after)
|
|
3389
|
+
]
|
|
3390
|
+
if any(identity.kind != "reform" for identity in phase_identities):
|
|
3391
|
+
raise ReceiptError("A mixed-phase Scenario must have two nonempty phase parts.")
|
|
3392
|
+
payload = {
|
|
3393
|
+
"application": PHASED_SCENARIO_APPLICATION,
|
|
3394
|
+
**{
|
|
3395
|
+
phase: {
|
|
3396
|
+
"representation": identity.representation,
|
|
3397
|
+
"reform_sha256": identity.reform_sha256,
|
|
3398
|
+
"binding": identity.binding,
|
|
3399
|
+
}
|
|
3400
|
+
for phase, identity in zip(("before", "after"), phase_identities)
|
|
3401
|
+
},
|
|
3402
|
+
}
|
|
3403
|
+
identity = ReformIdentity(
|
|
3404
|
+
kind="reform",
|
|
3405
|
+
representation=PHASED_SCENARIO_REPRESENTATION,
|
|
3406
|
+
reform_sha256=_payload_sha256(
|
|
3407
|
+
{"representation": PHASED_SCENARIO_REPRESENTATION, "payload": payload}
|
|
3408
|
+
),
|
|
3409
|
+
binding=(
|
|
3410
|
+
"code_revision"
|
|
3411
|
+
if any(phase.binding == "code_revision" for phase in phase_identities)
|
|
3412
|
+
else "content"
|
|
3413
|
+
),
|
|
3414
|
+
name=name,
|
|
3415
|
+
)
|
|
3416
|
+
return checked(identity)
|
|
3417
|
+
|
|
3418
|
+
|
|
3269
3419
|
#: The order a ``policyengine-uk.scenario_composition/v1`` run applies its
|
|
3270
3420
|
#: members in. It is part of the payload, so the digest states it.
|
|
3271
3421
|
COMPOSITION_APPLICATION = "parameter_changes_then_modifiers"
|
|
@@ -3374,6 +3524,12 @@ def composed_reform_identity(
|
|
|
3374
3524
|
) from exc
|
|
3375
3525
|
if member.kind == "current_law":
|
|
3376
3526
|
continue
|
|
3527
|
+
if member.representation == PHASED_SCENARIO_REPRESENTATION:
|
|
3528
|
+
raise ReceiptError(
|
|
3529
|
+
f"Member {index} is a phased Scenario; scenario_composition/v1 "
|
|
3530
|
+
"cannot flatten or override its data-load timing. Bind the "
|
|
3531
|
+
"actual combined Scenario with phased_scenario_reform_identity()."
|
|
3532
|
+
)
|
|
3377
3533
|
bound.append(
|
|
3378
3534
|
{
|
|
3379
3535
|
"representation": member.representation,
|
|
@@ -328,6 +328,7 @@ tests/test_parameter_metadata.py
|
|
|
328
328
|
tests/test_parameter_nodes.py
|
|
329
329
|
tests/test_parameter_values.py
|
|
330
330
|
tests/test_parametric_reforms.py
|
|
331
|
+
tests/test_phased_scenario_receipt.py
|
|
331
332
|
tests/test_poverty.py
|
|
332
333
|
tests/test_poverty_by_demographics.py
|
|
333
334
|
tests/test_poverty_run.py
|