Repository navigation
Conversation
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
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.
Summary
Certification now writes
us_snap_caseload_composition_holdout.jsonbeside the other held-out reports. On the written release H5, at the release's weights, nationally and by state, it reports: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
is_snap_eligible, and receives when its annualsnapis 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.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:
Run locally on this branch, at #1676's head
ba410438e:ruff checkandruff format --checkpass on the nine changed Python files.tools/ci_test_plan.py verifyis ok.I did not run the full engine-free and US engine suites locally. They are left to CI.
🤖 Generated with Claude Code