Repository navigation
Finish South Carolina TANF boundary and source follow-ups - #10829
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #10829 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 5 +4
Lines 37 73 +36
=========================================
+ Hits 37 73 +36
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
PR Review: Finish South Carolina TANF boundary and source follow-upsSummaryThe PR closes the four follow-ups that the #10581 merge audit listed under "Next":
The diff changes no formula or parameter value. The Two items need changes, both on the current-loss record:
I did not run Python or any tests. The claims below rest on four things:
Critical (must fix)None. Should address1.
Fix: Set 2. The recorded reading isn't what the model does for the same kind of loss elsewhere, and the entry doesn't say so (
Fix: State both paths in the candidate's
The ruling in item 1 should then say whether it covers those paths. If it does, open a follow-up issue to change them. If it doesn't, widen the question so the record covers every current loss the model handles. Suggestions
Verified correct
Axiom line assessmentThe line reads: "axiom: TheAxiomFoundation/rulespec-us#1728 should extend its companion tests with the equality and school-level cases and the documented current-loss reading." That is not one of the four forms ( TheAxiomFoundation/rulespec-us#1728 is OPEN and labelled The PR changes no formula or parameter value, so
CI statusAll 38 checks pass at
Branch statusThe branch is 5 commits ahead of main and 76 behind.
Verdict: REQUEST_CHANGES |
DTrim99
left a comment
There was a problem hiding this comment.
Requesting changes: 0 critical, 2 should address, 5 suggestions (details in the report above). No formula or parameter value changes. The $2,053.50 equality case, the school-level candidate and the Volume 67 refresh all check out, and every new anchor shows the cited text. The two items are both on us-sc:tanf-current-self-employment-loss-offset:
- It is
state: ruledwithfollows: statute, but no statute is involved, the entry says neither source settles the question, and no ruling record is linked. Eitherstate: openor a linked ruling would fix it. - The model takes the opposite reading in two other places, and the entry should say so: the $100-disregard months set the loss to zero, and
positive_sources.yamlzeroes partnership and rental losses.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The candidate now covers every current loss the model handles in South Carolina TANF: self-employment and farm losses in the 50% and $100 disregard months and in the gross income test, and the unearned net amounts the model counts only when positive. It sets `state: open` and `pe_us.follows: unknown`, links the 2025 Schedule C instructions by year, and gives one household's January and May 2026 results. Integration Case 39 pins the May result. The test comments and the changelog fragment describe the model's current behavior. The school-level candidate now starts in fiscal 2025: Volume 65 of the DSS manual, effective October 1, 2024, has the same section 4.10 text as Volume 67. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ters The Department of Social Services sets the 50% disregard and its four months in 114-1150(C)(1), the $100 disregard in (C)(2) and the gross income limit in (A). The four parameters now cite the regulation ahead of the manual. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Dependent-child Case 11 repeats Case 10 with K-12 attendance switched off and expects the same results. Remove the Python property file: its tests repeated YAML cases or restated the countable-income formula. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The note carries the Volume 65 link that dates the difference from fiscal 2025, and the candidate's sources stay the regulation and the current manual. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
In May 2026 the example household counts $1,000 and receives $44, against $400 and $287 in January. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
David, here's where each item of your review stands at
Three merges of main, 🤖 Generated with Claude Code |
Commits since this review answer both items and suggestions 1 to 4, and a follow-up issue tracks suggestion 5. My reply above maps each item to its commit, file and line, or to the issue.
|
US + core hub merge audit, us#10829 at
🤖 Generated with Claude Code |
Finish four South Carolina TANF follow-ups from #10581: test the gross income boundary, record the school-level conflict, record the open question on current losses, and refresh the manual and regulation citations. This PR changes no formula and no parameter value.
For January 2026, the need standard for three people equals floor(($15,650 + 2 × $5,500) ÷ 12 × 0.5) = $1,110, and the gross limit equals $1,110 × 1.85 = $2,053.50. Under S.C. Code Regs. 114-1150(A), gross income "must not exceed 185 percent of the need standard", so a group with income equal to the limit passes.
The model follows 114-1130(E): an eighteen-year-old qualifies as a dependent child only as a full-time student in secondary school or equivalent-level training. DSS also admits primary-school students in Volume 67 §4.10 of its manual, and this PR records the difference as
us-sc:tanf-dependent-child-school-level. Volume 65 §4.10, effective October 1, 2024, has the same text, so the candidate starts in fiscal 2025.Current losses
This PR records an open question as
us-sc:tanf-current-self-employment-loss-offset, withstate: openandpe_us.follows: unknown. When a benefit group member has a current net loss, does the loss reduce the other income the group counts, or does it count as zero?In 114-1150(B)(3), DSS defines self-employment income as "the total profit from a business enterprise" and determines that profit "using Internal Revenue Service methods". In its manual, DSS defines income as "money received" (§7.1) and gives the arithmetic in §8.9 and §8.16. DSS names no current loss in any of them.
The model applies each reading on a different path, and this PR changes none of them:
sc_tanf_countable_earned_income_personhalves a self-employment or farm loss, andsc_tanf_countable_incomeadds the negative result to the group's other income.positive_sources.yamlcounts capital gains, rental, farm rent, partnership and S corporation, estate and miscellaneous income only when positive, andsc_tanf_gross_unearned_incomestops interest and dividends at zero.For example, adult A receives $1,000 a month of alimony and adult B loses $1,200 a month in self-employment, with one child and a need standard of $1,110.
integration.yamlIf B's loss came from a partnership, the model would count $1,000 and pay $44 in both months. Cases 35, 36 and 38 of
integration.yamlpin the January results, and Case 39 pins the May result. Cases 12, 13 and 15 to 18 ofsc_tanf_gross_unearned_income.yamlpin the unearned floors. The candidate's note lists each path, so an answer can cover them all.References
Four variables and eight parameters move their manual citations from Volume 65 to Volume 67, and
unearned/sources.yamldrops a superseded Volume 65 entry. I compared the cited provisions with Volume 65 and corrected misplaced page anchors. DSS updated the annual poverty table between those volumes; the cited rates remain unchanged.Four parameters also cite the regulation: 114-1150(C)(1) for the 50% disregard and its four months, 114-1150(C)(2) for the $100 disregard, and 114-1150(A) for the gross income limit. The loss candidate links the 2025 Schedule C instructions by year; page 14 gives line 31.
Invariants
YAML cases check the first two, and a static comparison checks the third:
sc_tanf_dependent_child.yamlrun the same six members with K-12 attendance on and off.mainat9a63ae6605. All 14 changed parameter and variable files matchmainapart from their references.Methodology choices
main's treatment of current losses on every path. DSS names no current loss in the regulation or the manual, and the candidate holds the question open.us-rulespec-2026-10-29-ecfr-section-text, doesn't list those three scopes yet.Validation
Pull request run 43637899334 at
d3d63e1c13passed all 36 jobs on GitHub's merge with main61c743cb61.A static comparison at
d3d63e1c13finds all 14 changed parameter and variable files equal tomainapart from their references. Pinned Ruff 0.15.5 formatting and lint passed.At the same head, the model returns the table's figures for the example household. It returns the same figures when B's loss comes from farming. When the loss comes from a partnership, rent, farm rent, capital gains or an estate, it counts $1,000 and pays $44 in January and in May.
I made three mutations at the same head, and the case that targets each one failed:
sc_tanf_dependent_child.yamlfailed and the other ten cases passed.integration.yamlfailed, along with Cases 21, 22, 23, 32, 33 and 34.Mutation runs at
231a11e0f7, whose formulas this head keeps, failed the new cases they targeted: an exclusive gross limit, a primary-school extension, and a zero floor on current losses in January.PR #10639 touches a separate SC resource-eligibility test.
Microsimulation impact
This PR changes no formula, parameter value or dataset, so it leaves nothing to measure.
impact: none: the PR changes reference metadata, comments, tests, two source-conflict candidates and a changelog fragment
axiom: TheAxiomFoundation/rulespec-us#1728 queued
🤖 Generated with Claude Code