Skip to content

Report held-out SNAP caseload composition and take-up at certification (#647) - #1714

Open
DTrim99 wants to merge 1 commit into
us-engine-refresh-route-afrom
snap-caseload-composition-report
Open

DTrim99 wants to merge 1 commit into
us-engine-refresh-route-afrom
snap-caseload-composition-report

Conversation

@DTrim99

@DTrim99 DTrim99 commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

Certification now writes us_snap_caseload_composition_holdout.json beside the other held-out reports. On the written release H5, at the release's weights, nationally and by state, it reports:

  • the SPM units receiving SNAP, split by whether they pass the federal gross and net income tests and the federal resource test;
  • take-up among eligible units;
  • the states where the share of eligible units carrying the take-up flag, or receiving, reaches 0.999.

It is validation only. It never enters the calibration registry or a take-up stage, it never refuses a release, and it reports an unavailable measurement as unavailable.

This is the report-only response to #647. In the 24 October build at final weights, 16 states are at full take-up and hold 45% of recipients. A blocking gate would fail the next national build, so this PR reports the numbers instead.

Stacked on #1676

The base is #1676's branch (us-engine-refresh-route-a), so the diff shows only this change. The engine-scenario test pins policyengine-us 2.145.3, which #1676 brings in.

CI in this repository runs only on pull requests into main. It will run on #1676 if this merges there, or on this PR once it retargets.

Definitions

  • A unit is eligible on its December is_snap_eligible, and receives when its annual snap is also positive. policyengine-core reports a monthly true-or-false variable for a year as its December value. This matches what the take-up stage reads. SNAP household target counts part-year recipients as whole households, and take-up reads December eligibility only #1713 covers the counting basis itself.
  • A unit that fails both an income test and the resource test counts under income.
  • The take-up stage's own diagnostic measures saturation at weights before calibration. This report measures it at the release's weights.

The national shares sit beside USDA's estimates in its proposed rule on categorical eligibility (91 FR 72454, at 72457 and 72459). USDA puts 5.4% of participating households above an income limit and 11.5% above the resource limit alone. Those figures are held out and are never a target. #1712 covers the resource side.

Tests

New tests:

  • Hand-computed composition, take-up and state rows.
  • Hypothesis invariants: inputs are never written, totals are linear in the weights, results are order-invariant and additive over batches, and the groups partition the receiving units.
  • Batch-size invariance through the household-batched scorer.
  • No ledger mapping or pinned Chronicle record set carries a federal-test measure.
  • An engine-scenario test pins the December rule and the groups on policyengine-us 2.145.3.

Run locally on this branch, at #1676's head ba410438e:

  • ruff check and ruff format --check pass on the nine changed Python files.
  • tools/ci_test_plan.py verify is ok.
  • The four changed engine-free test files pass (1,070 tests).
  • The engine-scenario and engine-workflow tests for the new module pass (3 tests).

I did not run the full engine-free and US engine suites locally. They are left to CI.

🤖 Generated with Claude Code

Adds us_snap_caseload_composition_holdout.json beside the other held-out
reports certification writes: on the written release H5, the SPM units
receiving SNAP split by whether they pass the federal gross and net income
tests and the federal resource test, and take-up among eligible units,
nationally and by state at the release's weights. Validation only: it never
enters the calibration registry or a take-up stage and never refuses a
release; an unavailable measurement is reported as such.

A unit is eligible on its December is_snap_eligible and receives when its
annual snap is also positive: policyengine-core reports a monthly
true-or-false variable for a year as its December value. A unit failing an
income test and the resource test counts under income. The report lists the
states where the share of eligible units carrying the take-up flag, or
receiving, reaches 0.999; the take-up stage's own diagnostic measures
saturation at pre-calibration weights.

The national shares sit beside USDA's estimates in its proposed rule on
categorical eligibility (91 FR 72454, at 72457 and 72459): 5.4% of
participating households above an income limit and 11.5% above the resource
limit alone.

The post-export scoring plan gains one consumer of ten SPM-unit keys, so a
build made at this commit records it and its certification scores one more
baseline pass. The build itself runs no new engine pass.

Tests: hand-computed composition, take-up and state rows; Hypothesis
invariants (inputs never written, totals linear in the weights, order
invariant and additive over batches, groups partition the receiving units);
batch-size invariance through the household-batched scorer; no ledger
mapping or pinned Chronicle record set carries a federal-test measure; an
engine-scenario test pins the December rule and the groups on
policyengine-us 2.145.3.

Co-Authored-By: Claude Fable 5.2 <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