Skip to content

Populate marketplace plan benchmark ratio#199

Merged
MaxGhenis merged 1 commit into
mainfrom
codex/marketplace-plan-ratio-20260603
Jun 3, 2026
Merged

Populate marketplace plan benchmark ratio#199
MaxGhenis merged 1 commit into
mainfrom
codex/marketplace-plan-ratio-20260603

Conversation

@MaxGhenis
Copy link
Copy Markdown
Contributor

Summary

  • derive selected_marketplace_plan_benchmark_ratio from reported Marketplace premiums plus PE-computed aca_ptc and slcsp, clipped to the eCPS-style ratio range
  • aggregate reported premiums to tax units and materialize aca_ptc/slcsp as intermediates before export
  • add export-lineage coverage for the selected-plan benchmark ratio without exporting or persisting slcsp

Tests

  • uv run --python 3.13 --extra dev --extra policyengine python -m pytest -q tests/policyengine/test_us.py tests/pipelines/test_us.py tests/pipelines/test_export_lineage_manifest.py tests/pipelines/test_mp300k_artifact_gates.py -k 'marketplace_plan_benchmark_ratio or marketplace_plan_ratio or defaults_absent_export_inputs or derives_tax_input_columns or export_lineage_manifest or export_lineage_gate_rejects'
  • uv run --python 3.13 --extra dev --extra policyengine ruff check src/microplex_us/policyengine/us.py src/microplex_us/pipelines/us.py src/microplex_us/pipelines/export_lineage_manifest.py tests/policyengine/test_us.py tests/pipelines/test_us.py tests/pipelines/test_export_lineage_manifest.py tests/pipelines/test_mp300k_artifact_gates.py
  • uv run --python 3.13 --extra dev --extra policyengine ruff format --check src/microplex_us/policyengine/us.py src/microplex_us/pipelines/us.py src/microplex_us/pipelines/export_lineage_manifest.py tests/policyengine/test_us.py tests/pipelines/test_us.py tests/pipelines/test_export_lineage_manifest.py tests/pipelines/test_mp300k_artifact_gates.py

Note: this branch was published through the GitHub Git data API after HTTPS git push repeatedly returned HTTP 408, then verified by matching remote blob SHAs for all touched files.

@MaxGhenis MaxGhenis force-pushed the codex/marketplace-plan-ratio-20260603 branch from a26526a to b51ee00 Compare June 3, 2026 18:54
@MaxGhenis MaxGhenis merged commit 97fd7f9 into main Jun 3, 2026
5 checks passed
@MaxGhenis MaxGhenis deleted the codex/marketplace-plan-ratio-20260603 branch June 3, 2026 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant