Skip to content

Map Arch QBI consumer facts#23

Merged
MaxGhenis merged 1 commit into
codex/arch-target-parity-coveragefrom
codex/arch-qbi-consumer-facts
May 28, 2026
Merged

Map Arch QBI consumer facts#23
MaxGhenis merged 1 commit into
codex/arch-target-parity-coveragefrom
codex/arch-qbi-consumer-facts

Conversation

@MaxGhenis
Copy link
Copy Markdown
Contributor

Summary

  • maps Arch irs_soi.qualified_business_income_deduction consumer facts to qbi_amount
  • maps Arch irs_soi.returns_with_qualified_business_income_deduction consumer facts to qbi_claims
  • expands the state broad SOI consumer-fact regression to cover QBI amount and count records

Validation

  • uv run ruff check src/microplex_us/targets/arch.py tests/targets/test_arch_facts.py
  • uv run --extra policyengine --extra dev python -m pytest tests/targets/test_arch_facts.py::test_arch_consumer_fact_jsonl_provider_maps_state_broad_soi_concepts -q
  • uv run microplex-us-arch-target-coverage --arch-targets-db /Users/maxghenis/CosilicoAI/microplex-us/artifacts/arch_soi_qbi_coverage_20260528/arch_bundle/consumer_facts.jsonl --period 2024 --profile pe_native_broad --indent 2

Coverage note

With PolicyEngine/arch-data#20 and this mapping, PE-native broad Arch-source coverage reaches 133 / 189 cells, up from 128 / 189 after the previous SOI broad expansion.

@MaxGhenis MaxGhenis merged commit 621bfae into codex/arch-target-parity-coverage May 28, 2026
1 check passed
@MaxGhenis MaxGhenis deleted the codex/arch-qbi-consumer-facts branch May 28, 2026 02:31
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