Skip to content

SOI Table 1.4 income-source + Table 2.1 mortgage-total measures (populace#299 Build H)#84

Merged
MaxGhenis merged 2 commits into
mainfrom
build-h-soi-income-targets
Jul 8, 2026
Merged

SOI Table 1.4 income-source + Table 2.1 mortgage-total measures (populace#299 Build H)#84
MaxGhenis merged 2 commits into
mainfrom
build-h-soi-income-targets

Conversation

@MaxGhenis

Copy link
Copy Markdown
Contributor

SOI Table 1.4 estate/other-income/capital-gain-distribution and Table 2.1 home-mortgage-interest-total source measures for populace#299 Build H. Values verified against the committed raw workbooks (23in14ar.xls, 23in21id.xls); build-suite valid.

🤖 Generated with Claude Code

MaxGhenis and others added 2 commits July 7, 2026 09:57
…e 2.1 home-mortgage-interest-total measures (populace#299 Build H)

Table 1.4 (23in14ar.xls, sha b6c1f87fbb55): estate/trust net income (BY) + net loss (CA),
other income net income (CO) + net loss (CQ), capital-gain distributions reported on Form 1040 (AK),
each returns+amount with 3-year column_by_year (2021 shifted -12 cols).
Table 2.1 (23in21id.xls, sha df6cf04ed3b7): home mortgage interest deduction Total (CW/CX) =
11,644,348 returns / $171,364,787,000 TY2023 (= financial-institutions CZ + individuals DB).
build-suite valid=true; consumer-fact values verified against source workbooks.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This branch adds 10 SOI Table 1.4 measures (capital-gain distributions,
estate/trust net income+loss, other-income net income+loss) and 2 Table 2.1
measures (total home-mortgage-interest returns + amount). They emit net-new
facts that all pass validate_source_rows/cells and validate_facts; only the
hardcoded fixture counts were left stale when the measures were authored, so
pytest failed on the literals (no source/measure logic is wrong).

Counts derived from the measure structure and cross-checked against a full
build_bundle(2023) / build_source_suite run:
- Table 1.4: 340 -> 540 facts = 10 measures x 20 income-range brackets.
- Table 2.1: 37 -> 39 facts = 2 national measures.
- Bundle total: 38971 -> 39173 (+202 = 200 + 2), all TY2023 national tax-unit
  SOI facts, so by_source irs_soi 33535 -> 33737, by_period tax_year:2023
  28187 -> 28389, by_geography country:0100000US 1861 -> 2063, by_entity
  tax_unit 33541 -> 33743.
- Suite soi-table-1-4: fact/consumer_fact/source_record 340 -> 540,
  constraint_count 612 -> 972 (1.8x facts), concept_alignment_count 2 -> 7
  (the 5 new broad_match amount measures); source_cell_count (8109) and
  covered_cell_count (2460) unchanged (region geometry is unchanged).

Only test expectations change. Full suite: 563 passed, 1 skipped.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@MaxGhenis
MaxGhenis force-pushed the build-h-soi-income-targets branch from 086e2b2 to b03863f Compare July 8, 2026 18:14
@MaxGhenis
MaxGhenis marked this pull request as ready for review July 8, 2026 19:03
@MaxGhenis
MaxGhenis merged commit e63c3aa into main Jul 8, 2026
2 checks passed
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