policyengine 6.17.2__tar.gz → 6.19.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.19.0}/CHANGELOG.md +19 -0
- {policyengine-6.17.2/src/policyengine.egg-info → policyengine-6.19.0}/PKG-INFO +1 -1
- policyengine-6.19.0/docs/ordered-scenarios.md +40 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/receipts.md +7 -1
- policyengine-6.19.0/examples/ordered_scenario.py +36 -0
- policyengine-6.19.0/examples/ordered_scenario_modifiers.py +9 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/pyproject.toml +1 -1
- policyengine-6.19.0/scripts/generate_ordered_scenario_vectors.py +118 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/scripts/generate_receipt_schemas.py +2 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/data/bundle/manifest.json +10 -10
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/data/bundle/uk.trace.tro.jsonld +5 -5
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/data/bundle/us.trace.tro.jsonld +5 -5
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/data/schemas/execution_receipt.v1.schema.json +29 -1
- policyengine-6.19.0/src/policyengine/data/schemas/ordered_scenario_plan.v1.schema.json +369 -0
- policyengine-6.19.0/src/policyengine/data/schemas/ordered_scenario_plan.v1.vectors.json +1313 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/provenance/__init__.py +27 -0
- policyengine-6.19.0/src/policyengine/provenance/ordered_scenario.py +702 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/provenance/receipt.py +186 -0
- policyengine-6.19.0/src/policyengine/tax_benefit_models/us/managed_scope.py +134 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/tax_benefit_models/us/model.py +62 -2
- {policyengine-6.17.2 → policyengine-6.19.0/src/policyengine.egg-info}/PKG-INFO +1 -1
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine.egg-info/SOURCES.txt +13 -0
- policyengine-6.19.0/tests/ordered_receipt_modifiers.py +28 -0
- policyengine-6.19.0/tests/test_ordered_scenario_receipt.py +548 -0
- policyengine-6.19.0/tests/test_phased_scenario_receipt.py +256 -0
- policyengine-6.19.0/tests/test_us_managed_scope.py +348 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_us_native_alignment.py +60 -2
- policyengine-6.19.0/tests/test_us_population_context.py +132 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/uv.lock +1 -1
- {policyengine-6.17.2 → policyengine-6.19.0}/.claude/policyengine-guide.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/.claude/quick-reference.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/.github/CONTRIBUTING.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/.github/bump_version.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/.github/capture-version.sh +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/.github/changelog_template.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/.github/check-agent-notes.sh +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/.github/check-changelog.sh +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/.github/copilot-instructions.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/.github/dispatch-policyengine-release.sh +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/.github/fetch_version.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/.github/get-changelog-diff.sh +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/.github/has-functional-changes.sh +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/.github/is-version-number-acceptable.sh +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/.github/publish-git-tag.sh +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/.github/qualification-ledger.sh +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/.github/wait-for-pypi.sh +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/.github/workflows/certify-uk-release.yaml +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/.github/workflows/draft-pdf.yml +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/.github/workflows/pr_agent_notes.yaml +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/.github/workflows/pr_code_changes.yaml +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/.github/workflows/pr_docs_changes.yaml +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/.github/workflows/push.yaml +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/.gitignore +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/.python-version +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/AGENTS.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/CITATION.cff +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/CLAUDE.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/CODE_OF_CONDUCT.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/CONTRIBUTING.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/LICENSE +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/Makefile +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/README.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/architecture.png +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/architecture.svg +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/changelog.d/.gitkeep +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/.gitignore +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/_generator/README.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/_generator/build_reference.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/_quarto.yml +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/bundles.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/countries.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/data-publishing-design.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/decile-impact-spec.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/dev.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/disclosure.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/engineering/runbooks/acs-local-wic-replacement.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/engineering/runbooks/build-m-us-populace-certification.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/engineering/runbooks/canonical-spm-development.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/engineering/runbooks/uk-qualification.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/engineering/runbooks/us-legacy-spm-sources.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/engineering/skills/README.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/engineering/skills/data-certification.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/engineering/skills/github-prs.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/engineering/skills/repository-guidance.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/examples.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/getting-started.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/households.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/impact-analysis.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/index.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/methodology/index.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/methodology/model-architecture.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/methodology/uk-capital-gains-responses.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/methodology/us-health-costs.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/microsim.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/outputs.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/programs/index.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/programs/us-chip.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/reference/index.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/reforms.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/regions.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/release-bundles.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/run-records.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/trace-case-study.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/docs/visualisation.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/examples/belgium_axiom_pilot.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/examples/employment_income_variation_uk.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/examples/employment_income_variation_us.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/examples/household_impact_example.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/examples/income_bands_uk.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/examples/income_distribution_us.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/examples/paper_repro_uk.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/examples/policy_change_uk.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/examples/speedtest_us_simulation.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/examples/uk_geography_disclosure.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/examples/us_budgetary_impact.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/paper-preview.html +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/paper.bib +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/paper.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/scripts/audit_regional_input_surface.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/scripts/bundle.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/scripts/certify_data_release.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/scripts/check_data_staleness.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/scripts/check_native_spm_loading.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/scripts/check_release_credentials.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/scripts/check_uk_candidate.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/scripts/check_uk_uc_floor.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/scripts/export_bundle_release_assets.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/scripts/generate_bundle_artifacts.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/scripts/generate_trace_tros.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/scripts/prepare_package_bundle_update.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/scripts/release_consumers.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/scripts/release_lock.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/scripts/spm_bundle.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/setup.cfg +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/bundle.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/cli.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/core/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/core/cache.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/core/dataset.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/core/dynamic.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/core/entity.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/core/output.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/core/parameter.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/core/parameter_node.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/core/parameter_value.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/core/policy.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/core/region.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/core/run_record.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/core/scoping_strategy.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/core/simulation.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/core/spm.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/core/tax_benefit_model.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/core/tax_benefit_model_version.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/core/variable.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/countries/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/countries/uk/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/countries/uk/regions.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/countries/us/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/countries/us/data/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/countries/us/data/districts.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/countries/us/data/places.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/countries/us/data/states.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/countries/us/regions.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/data/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/data/qualification/replay_policy.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/data/qualification/uk.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/data/qualification/uk_budget_critical_inputs.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/data/qualification/uk_replay_exceptions.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/data/qualification/uk_review_bounds.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/data/qualification/uk_uc_floor.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/data/schemas/trace_tro.schema.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/data/schemas/vendor/policyengine-scorecard/README.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/data/schemas/vendor/policyengine-scorecard/qualification_request.v1.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/data/schemas/vendor/policyengine-scorecard/replay_receipt.v1.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/data/schemas/vendor/policyengine-scorecard/replay_status.v1.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/data/uk_geography/SOURCES.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/data/uk_geography/constituencies_2024.csv +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/data/uk_geography/local_authorities_2023.csv +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/data/uk_geography_assets.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/derivations/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/derivations/narrate.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/derivations/trace.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/disclosure/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/disclosure/__main__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/disclosure/areas.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/disclosure/estimate.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/disclosure/noise.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/disclosure/release.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/disclosure/schema.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/disclosure/support.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/disclosure/validate.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/graph/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/graph/extractor.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/graph/graph.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/outputs/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/outputs/aggregate.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/outputs/change_aggregate.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/outputs/cliff_impact.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/outputs/congressional_district_impact.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/outputs/constituency_impact.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/outputs/decile_analysis.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/outputs/decile_grouping.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/outputs/decile_impact.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/outputs/extra_variables.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/outputs/inequality.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/outputs/intra_decile_impact.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/outputs/labor_supply_response.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/outputs/local_authority_impact.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/outputs/poverty.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/outputs/program_statistics.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/outputs/uk_geography_assets.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/outputs/uk_geography_disclosure.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/outputs/uk_geography_impact.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/provenance/bundle_validation.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/provenance/bytecode.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/provenance/canonical.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/provenance/certification.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/provenance/dataset_materialization.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/provenance/loaded.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/provenance/manifest.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/provenance/pyproject_pins.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/provenance/qualification.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/provenance/qualification_ledger.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/provenance/regional_input_surface.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/provenance/replay_probe.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/provenance/spm_configuration.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/provenance/trace.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/provenance/uk_candidate.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/provenance/uk_qualification.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/provenance/uk_uc_floor.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/provenance/verify.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/provenance/wheels.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/provenance/zenodo.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/results/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/results/schema.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/results/trace_tro.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/results/tracking.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/tax_benefit_models/be/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/tax_benefit_models/be/datasets.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/tax_benefit_models/be/model.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/tax_benefit_models/common/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/tax_benefit_models/common/axes.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/tax_benefit_models/common/extra_variables.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/tax_benefit_models/common/household.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/tax_benefit_models/common/model_version.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/tax_benefit_models/common/reform.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/tax_benefit_models/common/result.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/tax_benefit_models/uk/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/tax_benefit_models/uk/analysis.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/tax_benefit_models/uk/budget_reform_contract.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/tax_benefit_models/uk/budget_reform_population.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/tax_benefit_models/uk/capital_gains_responses.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/tax_benefit_models/uk/datasets.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/tax_benefit_models/uk/household.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/tax_benefit_models/uk/model.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/tax_benefit_models/us/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/tax_benefit_models/us/analysis.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/tax_benefit_models/us/datasets.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/tax_benefit_models/us/household.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/tax_benefit_models/us/legacy_inputs.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/tax_benefit_models/us/legacy_spm/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/tax_benefit_models/us/legacy_spm/declarations.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/tax_benefit_models/us/legacy_spm/independence.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/tax_benefit_models/us/legacy_spm/model_adapter.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/tax_benefit_models/us/legacy_spm/record.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/tax_benefit_models/us/legacy_spm/registry.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/tax_benefit_models/us/legacy_spm/runs.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/tax_benefit_models/us/legacy_spm/universe.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/tax_benefit_models/us/spm.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/utils/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/utils/dates.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/utils/design.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/utils/entity_utils.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/utils/errors.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/utils/hashing.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/utils/household_validation.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/utils/parameter_labels.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/utils/parametric_reforms.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine/utils/plotting.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine.egg-info/dependency_links.txt +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine.egg-info/entry_points.txt +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine.egg-info/requires.txt +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/src/policyengine.egg-info/top_level.txt +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/conftest.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/country_model_fixtures.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/filtering_fixtures.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/household_calculator_snapshots/uk_couple_two_kids.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/household_calculator_snapshots/uk_model_surface.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/household_calculator_snapshots/uk_single_adult_employment_income.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/household_calculator_snapshots/uk_single_adult_no_income.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/household_calculator_snapshots/uk_single_parent_one_child.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/household_calculator_snapshots/us_married_two_kids_high_income.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/household_calculator_snapshots/us_model_surface.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/household_calculator_snapshots/us_single_adult_employment_income.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/household_calculator_snapshots/us_single_adult_no_income.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/household_calculator_snapshots/us_single_parent_one_child.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/local_manifest/main_485dc2330_certification.py.txt +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/parameter_labels_fixtures.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/parametric_reforms_fixtures.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/poverty_by_demographics_fixtures.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/region_fixtures.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/release_tros/README.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/release_tros/country-models.lock.toml +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/release_tros/manifest.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/release_tros/us-release_manifest.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/release_tros/us.trace.tro.jsonld +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/replay_exceptions/README.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/replay_exceptions/main_policy_metadata.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/replay_exceptions/main_replay_policy.py.txt +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/replay_exceptions/replay_receipt_uk2.134.7_failed.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/replay_exceptions/uk2.134.7_budget_inputs.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/replay_exceptions/uk2.134.7_budget_inputs.result.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/replay_exceptions/uk2.134.7_qualification_receipt.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/spm_development.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/uk_contract/README.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/uk_contract/evaluate_case_rows.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/uk_contract/full_released_uk_2.135.0.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/uk_contract/pinned_uk_2.125.1_defects.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/uk_contract/population_pass_max_examples_0.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/uk_metrics/README.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/uk_metrics/budget_metrics_report.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/uk_metrics/standard_reforms.yaml +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/uk_qualification/microcosm_routed_bundle.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/uk_qualification/uk_data_line_bundle.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/uk_replay/DIGESTS.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/uk_replay/README.md +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/uk_replay/qualification_request_golden.jcs +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/uk_replay/qualification_request_golden.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/uk_replay/receipt_6.4.1_attempt1/REPLAY_RECEIPT.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/uk_replay/receipt_6.4.1_attempt1/REQUEST.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/uk_replay/receipt_6.5.0/REPLAY_RECEIPT.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/uk_replay/receipt_6.5.0/REQUEST.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/uk_replay/receipt_6.5.0/STATUS.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/uk_replay/replay_receipt_golden.jcs +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/uk_replay/replay_receipt_golden.json +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/us_reform_fixtures.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/fixtures/variable_label_fixtures.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/qualification_fixtures.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/receipt_modifiers.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/receipt_unbindable_modifiers.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_aggregate.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_be_axiom_pilot.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_budgetary_impact.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_bump_version.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_bundle.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_bundle_metadata.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_cache.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_canonical_json.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_certify_data_release.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_change_aggregate.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_check_agent_notes.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_ci_runner_variables.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_cliff_impact.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_cliff_impact_analysis.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_congressional_district_impact.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_constituency_impact.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_dataset_materialization.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_dataset_persistence.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_dataset_runtime.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_dataset_source.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_decile_grouping.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_derivations.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_dict_reforms_on_simulation.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_disclosure_areas.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_disclosure_estimate.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_disclosure_noise.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_disclosure_release.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_disclosure_schema.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_disclosure_support.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_disclosure_validate.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_entity_mapping.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_entity_utils.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_entity_utils_characterization.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_errors.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_execution_receipt.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_extra_variables.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_filtering.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_generate_trace_tros.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_graph/__init__.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_graph/conftest.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_graph/test_extractor.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_household_calculator_snapshot.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_household_impact.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_inequality.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_intra_decile_impact.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_labor_supply_response.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_local_authority_impact.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_local_data_manifest.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_local_manifest_receipt.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_local_manifest_tro_pins.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_manifest_version_mismatch.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_measure_regional_inputs.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_model_entities.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_models.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_pandas3_compatibility.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_parameter_labels.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_parameter_metadata.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_parameter_nodes.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_parameter_values.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_parametric_reforms.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_poverty.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_poverty_by_demographics.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_poverty_run.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_preservation_mirror.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_program_statistics.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_pyproject_pins.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_qualification_contracts.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_qualification_ledger_concurrency.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_qualification_ledger_script.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_qualified_pair_certification.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_region.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_region_group_strategy.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_regional_input_evidence.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_release_build_folders.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_release_credentials.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_release_lock.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_release_manifests.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_release_tro_generation.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_replay_exception_coherence_round3.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_replay_exception_finalize_review.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_replay_exception_hardening_round3.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_replay_exception_lineage.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_replay_exception_lineage_round3.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_replay_exception_policy_review.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_replay_exception_probe.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_replay_exception_probe_round3.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_replay_exceptions.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_results.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_run_record.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_scoping_strategy.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_simulation_ensure_errors.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_small_follow_ups.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_spm_bundle_bootstrap.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_spm_bundle_tooling.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_spm_decile.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_spm_development_authentication.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_spm_household.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_spm_model.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_spm_selection.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_spm_selection_schema.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_trace_tro.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_trace_tro_verify.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_uk_analysis.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_uk_area_lists.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_uk_budget_reform_contract.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_uk_candidate_gates.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_uk_candidate_metric_baselines.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_uk_cgt_default.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_uk_cgt_response_records.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_uk_cgt_responses.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_uk_dated_reforms.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_uk_geography_assets.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_uk_geography_disclosure.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_uk_modifier_cache.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_uk_nation_model_agreement.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_uk_program_statistics.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_uk_qualification_pipeline.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_uk_qualification_replay_inputs.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_uk_qualification_workflow.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_uk_regions.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_uk_uc_floor.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_uk_year_file_data_year.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_us_household_groups.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_us_legacy_inputs.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_us_legacy_inputs_integration.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_us_legacy_spm.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_us_legacy_spm_integration.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_us_legacy_spm_model_contract.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_us_long_term_datasets.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_us_microsim_structural_reforms.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_us_native_hdf_weights.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_us_program_statistics.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_us_reform_application.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_us_regions.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_us_year_file_stamp.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_variable_labels.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_variable_metadata.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_wheels.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/test_zenodo_mirror.py +0 -0
- {policyengine-6.17.2 → policyengine-6.19.0}/tests/uk_contract_row_scenarios.py +0 -0
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
## [6.19.0] - 2026-11-13
|
|
2
|
+
|
|
3
|
+
### Added
|
|
4
|
+
|
|
5
|
+
- Added ordered UK Scenario plans that preserve modifier order and data-load phases, bind trusted callable sources, and support offline identity verification and worker rebinding.
|
|
6
|
+
- Add optional household row filtering to US managed microsimulations while retaining every native projected year and the source dataset provenance.
|
|
7
|
+
|
|
8
|
+
### Fixed
|
|
9
|
+
|
|
10
|
+
- Preserve population-mode Medicaid, county and SPM behavior and live identifier inputs when US simulations are built from entity tables, including their baseline arms.
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## [6.18.0] - 2026-11-12
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
|
|
17
|
+
- 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.
|
|
18
|
+
|
|
19
|
+
|
|
1
20
|
## [6.17.2] - 2026-11-11
|
|
2
21
|
|
|
3
22
|
### Changed
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Ordered UK scenarios
|
|
2
|
+
|
|
3
|
+
Use `build_ordered_scenario` to preserve several module-level modifiers before and after data loading. Pass actual callables from trusted job code, with a full repository and commit claim for each occurrence. The builder returns `BoundOrderedScenario`, which exposes a native UK `Scenario`, an immutable execution plan and a live receipt identity.
|
|
4
|
+
|
|
5
|
+
```python
|
|
6
|
+
from policyengine.provenance import build_ordered_scenario
|
|
7
|
+
|
|
8
|
+
bound = build_ordered_scenario(
|
|
9
|
+
complete_parameter_changes,
|
|
10
|
+
before_modifiers=[
|
|
11
|
+
(first_modifier, first_revision),
|
|
12
|
+
(second_modifier, second_revision),
|
|
13
|
+
],
|
|
14
|
+
after_modifiers=[(third_modifier, third_revision)],
|
|
15
|
+
)
|
|
16
|
+
simulation = NativeUKSimulation(situation=situation, scenario=bound.scenario)
|
|
17
|
+
reform_identity = bound.identity
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Each revision uses `{"repository": "owner/repository", "git_sha": "<full commit SHA>"}`. The caller supplies the functions, revision claims and `NativeUKSimulation` from its trusted application. See [the runnable example](../examples/ordered_scenario.py) for a synthetic phase demonstration.
|
|
21
|
+
|
|
22
|
+
## Execution and identity
|
|
23
|
+
|
|
24
|
+
The adapter applies the complete parameter map once before loading data. It then calls every before-load modifier in order, lets the native simulation build its data, and calls every after-load modifier in order. Repeated occurrences execute repeatedly. Resolve a shared policy reference and each member's raw changes into the complete map before calling the builder; keep the application's existing member-conflict checks.
|
|
25
|
+
|
|
26
|
+
`BoundOrderedScenario.plan` stores the application order, adapter source digest, complete before-load parameters and ordered leaf proofs for both phases. Each proof records the callable's module, qualified name, source digest, module-source digest, typed module defaults and code revision. The after-load phase accepts no parameter map. The adapter and receipt identity check the same plan, and `recheck()` refuses changes to original parameters, leaf lists, revisions, defaults, loaded code or native phase fields.
|
|
27
|
+
|
|
28
|
+
Plans with modifiers use `policyengine-uk.phased_scenario_composition/v1`. Their digests cover `{"representation": ..., "payload": plan}` with RFC 8785 canonicalization and nulls retained. Parameter-only plans keep the existing before-load `scenario/v1` identity; an empty plan keeps `current_law`. Existing Scenario, phased Scenario and legacy composition digests retain their meaning. Legacy composition cannot flatten an ordered plan's phases.
|
|
29
|
+
|
|
30
|
+
## Offline verification and workers
|
|
31
|
+
|
|
32
|
+
`ordered_scenario_reform_identity(plan)` validates the closed plan and recomputes its official identity from data. It never imports, fetches or executes a module or qualified name from the payload. A source proof remains a producer's claim; applications must check approvals and provenance separately.
|
|
33
|
+
|
|
34
|
+
Workers call `bind_ordered_scenario_plan(plan, before_modifiers=..., after_modifiers=...)` with their actual trusted job callables. The binder checks each current source/default/revision proof against the complete carried plan before exposing the native scenario. Trusted `BoundOrderedScenario` objects also support pickle transport and rebind on load. Never unpickle untrusted input. JSON round-trips carry plan data; callers must rebind trusted functions before execution.
|
|
35
|
+
|
|
36
|
+
Receipt builders recheck live identities after execution. Keep the bound object that supplied `scenario`, and pass its live `identity` to the receipt builder. Loading an identity from JSON carries no live execution handle.
|
|
37
|
+
|
|
38
|
+
The [plan schema](../src/policyengine/data/schemas/ordered_scenario_plan.v1.schema.json) and [API-generated vectors](../src/policyengine/data/schemas/ordered_scenario_plan.v1.vectors.json) support offline implementations. Apply the schema's semantic rules as well as structural validation: preserve ordered typed dictionaries and repetitions, require canonical float hex values, and enforce the existing strict JSON numeric domain. Only the exact reserved `{"$nonfinite": "Infinity"}` and `{"$nonfinite": "-Infinity"}` objects encode infinite parameter values.
|
|
39
|
+
|
|
40
|
+
The API rejects arbitrary closures, dynamic modifier chains, methods, partials and dated reform objects. It does not inspect arbitrary closure cells, prove Python write sets, approve jobs or certify data. Callers retain source-based structural consistency checks and data limits.
|
|
@@ -79,6 +79,12 @@ 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
|
+
|
|
86
|
+
For several modifiers in either phase, use the [ordered Scenario API](ordered-scenarios.md). It binds actual trusted callable leaves, preserves their order and repetitions, and provides an offline plan recomposer.
|
|
87
|
+
|
|
82
88
|
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
89
|
|
|
84
90
|
**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:
|
|
@@ -186,7 +192,7 @@ The pre-promotion replay interface with policyengine-scorecard follows a differe
|
|
|
186
192
|
| `reform.reform_sha256` | `{"representation": ..., "payload": ...}`, with the payload exactly as given, nulls kept (strict JSON conversion with infinities as `{"$nonfinite": "Infinity"}` or `"-Infinity"`, then RFC 8785, with no null removal). For a composition the payload is `{"applied_before_data_load": ..., "application": "parameter_changes_then_modifiers", "members": [{"representation", "reform_sha256", "binding"}, ...]}`, with members in application order. |
|
|
187
193
|
| `outputs_sha256` | The output payload. |
|
|
188
194
|
|
|
189
|
-
Reform digests are never normalized across representations. The same keys can legitimately mean different things in different representations: for example, a bare year in a policyengine-uk country dictionary changes that one year only. So each digest is tied to the representation that was submitted.
|
|
195
|
+
Reform digests are never normalized across representations. The same keys can legitimately mean different things in different representations: for example, a bare year in a policyengine-uk country dictionary changes that one year only. So each digest is tied to the representation that was submitted. Receipts support `policyengine.parameter_values/v1`, `policyengine.reform_dict/v1`, `policyengine-uk.reform_dict/v1`, `policyengine-uk.scenario/v1`, `policyengine-uk.scenario_composition/v1`, `policyengine-uk.phased_scenario/v1`, `policyengine-uk.phased_scenario_composition/v1` and `policyengine-sim-api.policy/v1`.
|
|
190
196
|
|
|
191
197
|
## Rules JSON Schema cannot express
|
|
192
198
|
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"""Demonstrate ordered phases with synthetic state and no household data.
|
|
2
|
+
|
|
3
|
+
Run from a checkout containing these example functions. Supply that actual
|
|
4
|
+
checkout's repository and full commit SHA; the API records the caller's claim.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
import argparse
|
|
8
|
+
from types import SimpleNamespace
|
|
9
|
+
|
|
10
|
+
from ordered_scenario_modifiers import add_one, double
|
|
11
|
+
|
|
12
|
+
from policyengine.provenance import build_ordered_scenario
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def main():
|
|
16
|
+
parser = argparse.ArgumentParser(description=__doc__)
|
|
17
|
+
parser.add_argument("--repository", required=True)
|
|
18
|
+
parser.add_argument("--git-sha", required=True)
|
|
19
|
+
args = parser.parse_args()
|
|
20
|
+
revision = {"repository": args.repository, "git_sha": args.git_sha}
|
|
21
|
+
bound = build_ordered_scenario(
|
|
22
|
+
before_modifiers=[(add_one, revision), (double, revision)],
|
|
23
|
+
after_modifiers=[(double, revision), (add_one, revision)],
|
|
24
|
+
)
|
|
25
|
+
before, after = bound.scenario.parts_by_data_load()
|
|
26
|
+
state = SimpleNamespace(value=1)
|
|
27
|
+
before.simulation_modifier(state)
|
|
28
|
+
assert state.value == 4
|
|
29
|
+
# A native simulation constructs its data between these two calls.
|
|
30
|
+
after.simulation_modifier(state)
|
|
31
|
+
assert state.value == 9
|
|
32
|
+
print(bound.identity.model_dump_json(indent=2))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
if __name__ == "__main__":
|
|
36
|
+
main()
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"""Generate data-only verifier vectors from the actual ordered-plan producer.
|
|
2
|
+
|
|
3
|
+
The modifiers and revision below are synthetic test fixtures. These vectors
|
|
4
|
+
assert canonicalization behavior, not approval or certification of a job.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
|
|
9
|
+
import argparse
|
|
10
|
+
import copy
|
|
11
|
+
import json
|
|
12
|
+
import os
|
|
13
|
+
import sys
|
|
14
|
+
from pathlib import Path
|
|
15
|
+
|
|
16
|
+
ROOT = Path(__file__).resolve().parents[1]
|
|
17
|
+
os.environ.setdefault("POLICYENGINE_SKIP_COUNTRY_IMPORTS", "1")
|
|
18
|
+
sys.path.insert(0, str(ROOT / "src"))
|
|
19
|
+
sys.path.insert(0, str(ROOT))
|
|
20
|
+
|
|
21
|
+
from policyengine.provenance.ordered_scenario import ( # noqa: E402
|
|
22
|
+
build_ordered_scenario,
|
|
23
|
+
)
|
|
24
|
+
from tests import ordered_receipt_modifiers as modifiers # noqa: E402
|
|
25
|
+
|
|
26
|
+
PATH = ROOT / "src/policyengine/data/schemas/ordered_scenario_plan.v1.vectors.json"
|
|
27
|
+
REVISION = {"repository": "PolicyEngine/test", "git_sha": "a" * 40}
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def build_vectors():
|
|
31
|
+
def leaves(*functions):
|
|
32
|
+
return [(function, dict(REVISION)) for function in functions]
|
|
33
|
+
|
|
34
|
+
cases = [
|
|
35
|
+
("empty", build_ordered_scenario()),
|
|
36
|
+
("parameter_only", build_ordered_scenario({"gov.example.rate": {"2027": 0.2}})),
|
|
37
|
+
(
|
|
38
|
+
"parameter_infinity",
|
|
39
|
+
build_ordered_scenario({"gov.example.cap": {"2027": float("inf")}}),
|
|
40
|
+
),
|
|
41
|
+
(
|
|
42
|
+
"two_each_phase",
|
|
43
|
+
build_ordered_scenario(
|
|
44
|
+
{"gov.example.rate": {"2027": 0.2}},
|
|
45
|
+
before_modifiers=leaves(modifiers.add_one, modifiers.double),
|
|
46
|
+
after_modifiers=leaves(modifiers.double, modifiers.add_one),
|
|
47
|
+
),
|
|
48
|
+
),
|
|
49
|
+
(
|
|
50
|
+
"reverse_before",
|
|
51
|
+
build_ordered_scenario(
|
|
52
|
+
before_modifiers=leaves(modifiers.double, modifiers.add_one)
|
|
53
|
+
),
|
|
54
|
+
),
|
|
55
|
+
(
|
|
56
|
+
"repeated_leaf",
|
|
57
|
+
build_ordered_scenario(
|
|
58
|
+
after_modifiers=leaves(modifiers.add_one, modifiers.add_one)
|
|
59
|
+
),
|
|
60
|
+
),
|
|
61
|
+
(
|
|
62
|
+
"typed_defaults",
|
|
63
|
+
build_ordered_scenario(before_modifiers=leaves(modifiers.add_default)),
|
|
64
|
+
),
|
|
65
|
+
]
|
|
66
|
+
valid = [
|
|
67
|
+
{
|
|
68
|
+
"id": name,
|
|
69
|
+
"plan": bound.plan.model_dump(mode="json"),
|
|
70
|
+
"identity": bound.identity.model_dump(mode="json"),
|
|
71
|
+
}
|
|
72
|
+
for name, bound in cases
|
|
73
|
+
]
|
|
74
|
+
base = valid[3]["plan"]
|
|
75
|
+
invalid = []
|
|
76
|
+
for name in (
|
|
77
|
+
"unknown_field",
|
|
78
|
+
"unknown_application",
|
|
79
|
+
"after_parameters",
|
|
80
|
+
"unknown_leaf_field",
|
|
81
|
+
"unknown_default_type",
|
|
82
|
+
):
|
|
83
|
+
plan = copy.deepcopy(base)
|
|
84
|
+
if name == "unknown_field":
|
|
85
|
+
plan["invented"] = True
|
|
86
|
+
elif name == "unknown_application":
|
|
87
|
+
plan["application"] = "after_then_before"
|
|
88
|
+
elif name == "after_parameters":
|
|
89
|
+
plan["after"]["parameter_changes"] = {"gov.example.rate": 1}
|
|
90
|
+
elif name == "unknown_leaf_field":
|
|
91
|
+
plan["before"]["modifier_leaves"][0]["claimed_leaf_count"] = 1
|
|
92
|
+
else:
|
|
93
|
+
plan["before"]["modifier_leaves"][0]["module_defaults"] = {
|
|
94
|
+
"x": {"type": "object"}
|
|
95
|
+
}
|
|
96
|
+
invalid.append({"id": name, "plan": plan})
|
|
97
|
+
return {
|
|
98
|
+
"schema_version": 1,
|
|
99
|
+
"purpose": "Synthetic canonicalization vectors; no job approval or certification.",
|
|
100
|
+
"valid": valid,
|
|
101
|
+
"invalid": invalid,
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
def main():
|
|
106
|
+
parser = argparse.ArgumentParser(description=__doc__)
|
|
107
|
+
parser.add_argument("--check", action="store_true")
|
|
108
|
+
args = parser.parse_args()
|
|
109
|
+
content = json.dumps(build_vectors(), indent=2, sort_keys=True) + "\n"
|
|
110
|
+
if args.check:
|
|
111
|
+
if not PATH.exists() or PATH.read_text() != content:
|
|
112
|
+
raise SystemExit("Ordered Scenario vectors are stale.")
|
|
113
|
+
else:
|
|
114
|
+
PATH.write_text(content)
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
if __name__ == "__main__":
|
|
118
|
+
main()
|
|
@@ -24,10 +24,12 @@ SCHEMA_DIR = REPO_ROOT / "src" / "policyengine" / "data" / "schemas"
|
|
|
24
24
|
os.environ.setdefault("POLICYENGINE_SKIP_COUNTRY_IMPORTS", "1")
|
|
25
25
|
sys.path.insert(0, str(REPO_ROOT / "src"))
|
|
26
26
|
|
|
27
|
+
from policyengine.provenance.ordered_scenario import OrderedScenarioPlan # noqa: E402
|
|
27
28
|
from policyengine.provenance.receipt import ExecutionReceipt # noqa: E402
|
|
28
29
|
|
|
29
30
|
SCHEMAS = {
|
|
30
31
|
"execution_receipt.v1.schema.json": ExecutionReceipt.json_schema,
|
|
32
|
+
"ordered_scenario_plan.v1.schema.json": OrderedScenarioPlan.json_schema,
|
|
31
33
|
}
|
|
32
34
|
|
|
33
35
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"bundle_version": "6.
|
|
2
|
+
"bundle_version": "6.19.0",
|
|
3
3
|
"citation": {
|
|
4
4
|
"publisher": "PolicyEngine",
|
|
5
|
-
"title": "PolicyEngine bundle 6.
|
|
5
|
+
"title": "PolicyEngine bundle 6.19.0",
|
|
6
6
|
"type": "software-bundle",
|
|
7
|
-
"version": "6.
|
|
7
|
+
"version": "6.19.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.19.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.19.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.19.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.19.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.19.0",
|
|
353
353
|
"name": "policyengine",
|
|
354
354
|
"role": "bundle_carrier",
|
|
355
|
-
"version": "6.
|
|
355
|
+
"version": "6.19.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.19.0",
|
|
392
392
|
"schema_version": 2
|
|
393
393
|
}
|
{policyengine-6.17.2 → policyengine-6.19.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.19.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.19.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.19.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": "a9ad20c449972af2acd20c327ef545f215403156b90d44880d849b354580e185"
|
|
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": "f86bc5374ac29b252c5dd717e3d9c369b43d6822e43b75d7d89d723eb60f5289"
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
108
|
"trov:hasPerformance": {
|
{policyengine-6.17.2 → policyengine-6.19.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.19.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.19.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.19.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": "a9ad20c449972af2acd20c327ef545f215403156b90d44880d849b354580e185"
|
|
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": "076c3aa9ddf89a967b15928c9fca7997be14277094a3e5b202ed30ce3388747d"
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
107
|
"trov:hasPerformance": {
|
|
@@ -382,6 +382,30 @@
|
|
|
382
382
|
},
|
|
383
383
|
"ReformIdentity": {
|
|
384
384
|
"additionalProperties": false,
|
|
385
|
+
"allOf": [
|
|
386
|
+
{
|
|
387
|
+
"if": {
|
|
388
|
+
"properties": {
|
|
389
|
+
"representation": {
|
|
390
|
+
"const": "policyengine-uk.phased_scenario_composition/v1"
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
"required": [
|
|
394
|
+
"representation"
|
|
395
|
+
]
|
|
396
|
+
},
|
|
397
|
+
"then": {
|
|
398
|
+
"properties": {
|
|
399
|
+
"binding": {
|
|
400
|
+
"const": "code_revision"
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
"required": [
|
|
404
|
+
"binding"
|
|
405
|
+
]
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
],
|
|
385
409
|
"description": "A reform or baseline, bound by the digest of its canonical form.",
|
|
386
410
|
"properties": {
|
|
387
411
|
"binding": {
|
|
@@ -439,7 +463,9 @@
|
|
|
439
463
|
"policyengine-uk.reform_dict/v1",
|
|
440
464
|
"policyengine-sim-api.policy/v1",
|
|
441
465
|
"policyengine-uk.scenario/v1",
|
|
442
|
-
"policyengine-uk.scenario_composition/v1"
|
|
466
|
+
"policyengine-uk.scenario_composition/v1",
|
|
467
|
+
"policyengine-uk.phased_scenario/v1",
|
|
468
|
+
"policyengine-uk.phased_scenario_composition/v1"
|
|
443
469
|
],
|
|
444
470
|
"type": "string"
|
|
445
471
|
},
|
|
@@ -831,6 +857,8 @@
|
|
|
831
857
|
"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
858
|
"outputs_sha256": "the canonical output payload the receipt binds",
|
|
833
859
|
"receipt_sha256": "the whole receipt without runtime and without reform.name and baseline.name",
|
|
860
|
+
"reform.ordered_scenario_sha256": "For policyengine-uk.phased_scenario_composition/v1, RFC 8785 over {representation, payload: OrderedScenarioPlan}; retain nulls and every ordered modifier occurrence, including repetitions. Parameters occur only before data load; leaf proofs carry actual source/module/default/revision identities and the plan binds the adapter source. Binding is code_revision. Use ordered_scenario_reform_identity for data-only recomposition. Parameter-only ordered plans retain the existing before-load scenario/v1 identity.",
|
|
861
|
+
"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
862
|
"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
863
|
"regional_certification.record_sha256": "the bundle manifest's data_releases.<country_id>.regional_certification record, its evidence included"
|
|
836
864
|
},
|