Repository navigation
Conversation
The national-total uprating series under calibration.gov.irs.soi had no values between 2015 and their next year, so each held its 2015 value through the gap. Their per-capita siblings drifted down with population and then jumped, and any input dated in or before the gap was uprated past it by the wrong factor. - Fill every missing year from IRS SOI Publication 1304 Table 1.4 (all returns) or Table 1.4A, using the same column as the series' existing values, and cite each tax year's file. - Correct values keyed to the wrong tax year or misread: partnership and S corporation income at 2022 was the tax-year 2021 total; Social Security at 2021 was the tax-year 2020 total; farm rental income at 2021 subtracted the number of returns with a loss, not the loss. - Restate rounded totals (partnership 2015, rental 2015 and 2021, unemployment 2021) and alimony 2015 exactly. - Replace the short-term capital gains placeholder (a PUF figure and a backcast) with Table 1.4A net short-term capital gain less loss (Schedule D line 7). - 2018 pensions: the 2018 Form 1040 combined IRA distributions with pensions, so SOI has no separate figure; estimate and say how. - Fill gov.ssa.uprating for 2015-2021 with third-quarter CPI-W; 2016 keeps the 2014Q3 level because no COLA was payable. - Guard: every series an input follows has a January 1 value for every year from its first to its last. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The long-term capital gains series uses Table 1.4A's net long-term capital gain: returns with a gain, net losses left out. The short-term series netted gains against losses and carryovers, a large negative total that moves against gains (x4.1 from 2021 to 2022, the year gains fell 63%). Use the gain column, so both series measure the same thing and the index stays positive. List the 2018 taxable pension estimate alongside the tax-exempt one in the citation test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add Publication 1304 Table 1.4 and 1.4A values for tax years 2021-2023 to every SOI national-total uprating series that ended before 2023, using the column each series already documents. From tax year 2022 the wage series takes Table 1.4's "total wages, total" (Form 1040 line 1z). Add a guard that every SOI series ends at the latest published tax year. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis
force-pushed
the
soi-uprating-ty2023
branch
from
October 11, 2026 21:42
c65b9af to
aada974
Compare
This was referenced Nov 3, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Exercise dated household inputs against the published income totals and the population used to build per-capita upraters. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Test farm losses, interest projections, and prior-year wages. Clarify the section 457 plan description. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#10128 was squash-merged as
1ecf227cd6, which is already in this PR's merge base.Summary
The IRS SOI national-total uprating series under
calibration/gov/irs/soi/end at 2020, 2021 or 2022 after #10128, except long-term capital gains, which reaches 2023. IRS SOI has published Publication 1304 Tables 1.4 and 1.4A through tax year 2023 (24in14ar.xlsreturns 404). This PR adds every year from each series' last value to 2023, using the column #10128 documents in each file's header comment. It also adds a guard so that no series lags the others again.$ billions. Each file stores the exact thousands-of-dollars figure times 1,000 and cites one Table 1.4 or 1.4A file per tax year. "Old 2023 projection" is what the series held at 2023 before this PR: its last authored value grown by its CBO uprater. The factor is new / old at 2023.
Columns are located by their header labels, not by position. TY2022 inserted six wage-component columns, so every later column moved 12 places.
Wage concept from tax year 2022
From TY2022, Table 1.4 replaces "Salaries and wages" with "Total wages", which has a "Total" column followed by its parts ("Total from Form W-2 wages", household employee wages, unreported tips, dependent care benefits, Form 8919 wages, other earned income). The series takes the Total:
Effect
How the level moves. policyengine-core
uprate_parameter(parameters/operations/uprate_parameters.py) gives every uprater instant after a series' last authored instant the valuevalue_at_last * uprater(t) / uprater(last). Moving the last authored year to 2023 therefore replaces the projected 2021/2022–2023 values with actuals and multiplies every year from 2023 on by one factor (table above). Ratios between any two years at or after 2023 are unchanged.Full parameter tree. Compared with
mainat50756f2cc0, 32 initialized leaves change: the 16 totals and their 16 per-capita series. Both sides map the same 553 variables and use the same dataset overrides. A comparison against #10128's headc96ccb7ba4also picks up other changes frommain: 14,987 changed shared leaves, 23,520 additions, 82 removals, and growth from 384 to 553 mapped variables. Each changed series and its per-capita sibling has a constant new / old factor across the 78 January dates from 2023 through 2100, within 1e-12. Seesystem.py:303andper_capita_uprating.py:83.Default dataset aging. PolicyEngine's default dataset is based in 2024. Its forward extension uses consecutive-year ratios. Microcosm's static aging (
microcosm-calibratestatic_aging.py) also uses 2024 as its default base. These default forward projections use ratios whose endpoints are on or after 2023, so the level factor cancels. Earlier bases can pick up revised growth ratios. Seesystem.py:96andeconomic_assumptions.py:217.Other readers (the named repositories inspected):
Household inputs. Ordinary per-capita uprating can move income dated in 2022 or earlier when a later calculation uses a revised ratio. Changes can appear as early as 2021. For dates before 2015, policyengine-core uses the first index value: a $1,000 taxable-interest input dated 2014 becomes $3,445.58 in 2025, up from $1,664.34. With both dates on or after 2023 the ratios agree. The prior-year wage formula uses raw totals for 2023 and 2022. A $1,000 input dated 2023 produces $1,047.76 in 2024 for both prior-year wage and tax-unit earned income, down from $1,053.53. The 16 affected series have 66 ordinary variable uprating paths. The wage row has 22. See policyengine-core
simulation.py:87,employment_income_last_year.py:12, andsoi_income_uprating.yaml:112and:133.The factor to 2025 for an input dated January 1 of year Y, old to new, by series (number of variables that follow it):
The largest moves come from actuals that left the CBO-grown path. Taxable interest went from $133.6B to $313.8B in 2023, and non-qualified dividends from $99.1B to $168.2B. Self-employment net income came in 16% below its old projection.
Blast radius
medicare_cost.yaml"unit test 5 - 2021 data, premium-free":tax_exempt_interest_income2019 to 2021.income_adjusted_part_d_premium_surcharge.yaml"unit test 3 - separate filer top bracket":tax_exempt_interest_income2022 to 2024.medicare_irmaa_magi_two_years_prior.py:73.mainat3238d58a13.test_parameter_files.pyandtests/core/test_uprating_series.pypassed 12 and 203 cases. Fill CBO total AGI for 2015-2018 with IRS SOI actuals #10114 fixed the historical CBO AGI gap before this PR's merge base.Tests and invariants
Invariants, each checked exhaustively over the finite set of series and years:
test_soi_series_run_to_the_latest_published_tax_year, new). It fails on Fill IRS SOI uprating series gaps with Publication 1304 actuals #10128's head for 16 of the 17 series. When TY2024 is added, the constant moves and every series has to follow.test_soi_wages_use_the_line_1z_total, new).Source checks
Independent source checks matched all 36 additions to the IRS worksheets and confirmed that earlier authored values agree with the merge base. The parameter audit checked both
mainat50756f2cc0and #10128's head. The new household cases catch four mutations (merge-base farm, interest and wage values, and a removed CBO wage uprater), and an independent source-text check catches the old wage comment.axiom: n/a: calibration and uprating data, no policy rule
🤖 Generated with Claude Code