Skip to content

Stabilize eCPS comparison diagnostics#110

Merged
MaxGhenis merged 1 commit into
mainfrom
codex/legacy-contract-entity-inference-20260530
May 30, 2026
Merged

Stabilize eCPS comparison diagnostics#110
MaxGhenis merged 1 commit into
mainfrom
codex/legacy-contract-entity-inference-20260530

Conversation

@MaxGhenis
Copy link
Copy Markdown
Contributor

Summary

  • use the legacy eCPS contract entity map before length-based inference when loading PolicyEngine datasets
  • let target diagnostics fall back per target to scaled values when PE-native scaling is zero
  • add regressions for equal household/SPM lengths and zero-scaling diagnostics

Tests

  • uv run --extra dev --extra policyengine pytest tests/policyengine/test_comparison.py -k "legacy_contract_entities or round_trips_written_dataset"
  • uv run --extra dev --extra policyengine pytest tests/pipelines/test_ecps_replacement_comparison.py -k "zero_scaling or target_diagnostics_sidecar or satisfies_gate_contract"
  • uv run --extra dev ruff check src/microplex_us/policyengine/us.py src/microplex_us/pipelines/ecps_replacement_comparison.py tests/policyengine/test_comparison.py tests/pipelines/test_ecps_replacement_comparison.py
  • git diff --check

@MaxGhenis MaxGhenis merged commit 99828db into main May 30, 2026
4 checks passed
@MaxGhenis MaxGhenis deleted the codex/legacy-contract-entity-inference-20260530 branch May 30, 2026 02:11
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