Skip to content

SSI parameter projection under 42 U.S.C. 1382f(a) (SSI1) - #615

Draft
MaxGhenis wants to merge 2 commits into
masterfrom
ir/ssi1-20261106
Draft

MaxGhenis wants to merge 2 commits into
masterfrom
ir/ssi1-20261106

Conversation

@MaxGhenis

@MaxGhenis MaxGhenis commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

SSI1 projects SSI's federal parameters under 42 U.S.C. 1382f(a) and returns them as overrides for SSI0's pinned SSI interface. It computes no eligibility, countable income or benefit.

What it adds

populace_dynamics.income_resources.ssi.parameters:

  • Cost-of-living step. The module keeps each amount's exact annual value. For each December increase, it restores the prior rounding loss under 1382f(a)(1), raises the restored amount under (a)(2), and floors the result to a multiple of $12. On the CPI basis it applies the stated percentage; on the wage basis, the larger of the wage and CPI percentages.
  • Seeds and paths. The caller names the last realized year, 2026 or 2027, and every later December's percentage and basis. The module reads each seed's unrounded amount from SSA's captured determination table, and it refuses by name when a wage-basis step lacks its CPI percentage or the path skips a year.
  • Fixed amounts. The statute sets the resource limits and two annual income exclusions in nominal dollars: $2,000 and $3,000 in 1382(a)(3), and $240 and $780 in 1382a(b)(2)(A) and (b)(4)(C). The module holds them fixed on every path.
  • State supplements. The module freezes, at the last realized year, the federally administered supplement charts that D4 captured from POMS SI 01415. Each result keeps the charts' missing cells, flags and date alternatives, and carries the label STATE_SUPPLEMENTS_FROZEN_AT_LAST_REALIZED_YEAR. D4 has no 2027 chart, so the module refuses a 2027 request rather than reusing 2026's.
  • SSI0 overrides. ssi0_overrides returns SSI0's seven certified OVERRIDABLE_PARAMETERS on SSI0's own scale: monthly dollars for the benefit rates and income exclusions, stock dollars for the resource limits, and one-half for the earned-income share. The essential-person amount and the supplements have no certified override, so they stay out.

parameter_evidence checks each capture's size and SHA-256 before parsing it, reads SSA's published amounts, COLA series and seeds, and compares SSA's published amounts with PolicyEngine-US's. scripts/ssi1_rulespec_differential.py runs rulespec-us's 1382f(a) module, copied unchanged, through the Axiom engine on invented step inputs, and checks each result against SSI1's own step. CI reads the recorded result and needs no Axiom install.

Evidence

  • Starting from July 1983's amounts, the module reproduces SSA's published January monthly amount for individuals and couples in every year from 1984 through 2027. Before 1984, SSA used July effective months and a $1.20 rounding increment, so the replay starts from July 1983.
  • From SSA's 2026 unrounded amounts, one step reproduces SSA's 2027 unrounded amounts to the cent for individuals, couples and essential persons. Over the long replay, the module's 2027 unrounded amount falls $0.02 short of SSA's for individuals and $0.01 short for couples, while every monthly amount matches. SSA's captured tables give unrounded amounts only for 2026 and 2027, and the tests keep this gap as a stated limit.
  • SSA's published amounts match PolicyEngine-US's in all 104 overlapping values. Before 1984, SSA dates each increase in July and PolicyEngine-US labels it January; each comparison row records both dates.
  • The Axiom engine passes all 251 generated cases and fails a control case with a wrong expected amount. That engine build (ffd82132) predates the engine rulespec-us pins, so the agreement doesn't certify rulespec-us's encoding.
  • data/external/snapshots/income_resources_ssi1_v1/capture_manifest.txt records each capture's URL, retrieval time, size and SHA-256. We took the three SSA pages from late-October Internet Archive captures, because ssa.gov refused plain requests.

Invariants

Examples, Hypothesis properties and replays of the captured sources check these invariants:

  • the module rounds every annual amount down to a multiple of $12, and each monthly amount equals the rounded annual amount divided by 12, in whole dollars;
  • each rounded amount sits at or below its unrounded amount, by less than $12;
  • the unrounded result equals the seed times the compound product of the steps, a prior rounding loss never reduces a later unrounded amount, and a zero percentage changes neither amount;
  • raising any step's percentage never lowers a later amount;
  • the fixed amounts never follow a COLA, and frozen supplements keep identical cells in every projected year;
  • identical arguments give identical results, the module refuses every invalid input by name, and no required argument falls back to a default.

Tests

The PR adds 209 tests in five modules, 148 unit and 61 artifact. Each of 105 small changes that break one invariant in the two new modules or the differential script makes its named test fail (mutation results). Black and Ruff pass on all eight changed Python files.

Status

This PR stays a draft until:

  • the two new source paths join the seal tuple, and the new tests join tests/tier_counts.json, in a commit at the next tier-count slot (until then the tier-count check fails);
  • an independent review approves it.

axiom: n/a: microcosm-dynamics parameter projection; it checks rulespec-us's 1382f(a) module and changes no RuleSpec

🤖 Generated with Claude Code

Add populace_dynamics.income_resources.ssi.parameters. It projects SSI's
federal parameters by the statute's cost-of-living rule, with exact carry
and rounding, explicit COLA paths, fixed nominal parameters, frozen D4
state supplements and SSI0 overrides. parameter_evidence parses the
verified captures, reads SSA's published history and the seed values, and
compares the projection with PolicyEngine-US.

Also add the RuleSpec differential script, five test modules, ten
verified captures with their manifest, and the recorded Axiom results.
No existing SSI0, D4, tier or seal file changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vercel

vercel Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
social-security-model Ready Ready Preview Nov 29, 2026 1:23pm UTC

Request Review

A host mutant that dropped repr=False from FrozenSupplementTable.cells
survived, because AggregateCell already hides each amount. The test now
also asserts that no cell enters the repr, and that the invented chart
yields cells, so the check can't pass on an empty result.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@MaxGhenis

Copy link
Copy Markdown
Contributor Author

The build's mutation runner makes 105 small changes to SSI1's two new modules and its differential script, one at a time, and runs the named test for each. Each change breaks one invariant, and the named test catches it by failing.

The first run stopped at its 68th change, the one change a named test let through. That change dropped repr=False from the frozen supplement chart's cells. The result's repr still showed no amounts, because each cell already hides its own amount, and the test checked for amounts alone. cd92ab4 makes the test also check that no cell enters the repr. On that commit, the named tests catch that change and the 37 the first run hadn't reached, so all 105 do.

This branch was successfully deployed

1 active deployment
Preview — cd92ab46 Deployed Nov 29, 2026 by vercel[bot]
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