Skip to content

Use monthly age for New Mexico SSI supplement eligibility - #11512

Draft
MaxGhenis wants to merge 4 commits into
mainfrom
nm-ssi-supplement-monthly-age
Draft

MaxGhenis wants to merge 4 commits into
mainfrom
nm-ssi-supplement-monthly-age

Conversation

@MaxGhenis

@MaxGhenis MaxGhenis commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Agent-written for Max, by a Codex cloud task and Claude Code for Max Ghenis; no person has reviewed it yet.

What and why

Use monthly_age in the payment month for the New Mexico SSI state supplement’s age test (nm_ssi_state_supplement_eligible.py:22). A person who omits monthly age falls back to their own annual age, even when someone else in the household supplies one. A supplied monthly age of zero stays zero.

preprocess_situation in system.py calls preserve_partial_monthly_ages in tools/monthly_age.py. When only some people supply monthly_age for a month, it moves their values to the hidden input reported_monthly_age and marks them in the hidden input has_reported_monthly_age. The monthly_age formula uses the reported value where one exists and annual age otherwise. Without this step, an omitted monthly age reads as zero when another household member supplies one. Other programs that read monthly_age get the same per-person fallback. A situation with any monthly_age input keyed to a period longer than a month, or with a monthly_age axis, skips this step and keeps Core’s existing handling.

SSA’s New Mexico scope of coverage excludes children under 18 from optional supplementation. SSA New Mexico, Scope of coverage

Sections 8.106.500.10(A)–(C) NMAC require SSI receipt and licensed residential care and set the payment at $100 per month. New Mexico Administrative Code

The NM Works resource tests in #10639 and the Premium Assistance FPL change in #10328 share no files with this change. The Census income changes in #10726 also edit policyengine_us/system.py and conflict with this change at the household input hook.

Not done yet: the supplement has no Axiom encoding. nm_ssi_state_supplement_historical.yaml cites SSA POMS pages for its 2017–2019 rates, but those pages omit New Mexico, so those rates need a New Mexico source. The July 2004 start date in min_age.yaml and amount.yaml is also unverified.

Test plan

The birthday and care cases start at nm_ssi_state_supplement_eligible.yaml:149, :177, and :197. Each cell gives eligibility and payment.

Case Main Branch
January 2026 before birthday, annual age 18 and monthly age 17 True, $100 False, $0
October 2026 after birthday, annual and monthly age 18 True, $100 True, $100
October 2026 entry to licensed care, annual age 17 and monthly age 18 False, $0 True, $100
January 2026, age 70, reported SSI and licensed care True, $100 True, $100
February 2026, age 70, reported SSI and no licensed care False, $0 False, $0

The cases at :226, :254, :273, :291, and :310 give these branch results. All residents live in licensed care, and all except the one at :254 receive $500 in SSI.

  • :226: one resident supplies monthly age 70 and the other omits it with annual age 18. Both are eligible and get $100.

  • :254: computed SSI is −$1 and SSI receipt is not reported. Not eligible, $0.

  • :273: monthly age is 17 in June 2026 and 18 in July. June pays $0, July pays $100, and the 2026 total is $100.

  • :291: a supplied monthly age of 0. Not eligible, $0.

  • :310: one resident supplies monthly age 0 and the other omits it with annual age 18. The first gets $0 and the second gets $100.

  • All 38 YAML files that use monthly_age, nm_ssi_state_supplement_eligible, or nm_ssi_state_supplement pass on the branch and on its merge with main, 454 cases in all.

  • With the monthly_age formula change removed, the :310 case fails because the resident who supplied monthly age 0 gets annual age 18.

  • The source-conflict check passes. A register entry and marker are inapplicable because the sources agree.

  • make format leaves every file unchanged, and ruff format --check and ruff check pass on the changed Python files.

  • Changelog fragment in changelog.d/.

axiom: needed

🤖 Generated with Claude Code

MaxGhenis and others added 2 commits December 1, 2026 02:56
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (8999568) to head (2da7fc2).
⚠️ Report is 414 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main    #11512   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           24        15    -9     
=========================================
- Hits            24        15    -9     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

MaxGhenis and others added 2 commits December 1, 2026 15:09
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

No deployments
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