From f50780e4dac3f8c322dd8c74690f59aba0148bd0 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Thu, 12 Nov 2026 00:49:18 -0500 Subject: [PATCH 01/10] Test South Carolina TANF gross income at the limit Co-Authored-By: Claude Opus 5.5 --- changelog.d/sc-tanf-followups-10581.changed.md | 1 + .../sc/tanf/sc_tanf_gross_income_eligible.yaml | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 changelog.d/sc-tanf-followups-10581.changed.md diff --git a/changelog.d/sc-tanf-followups-10581.changed.md b/changelog.d/sc-tanf-followups-10581.changed.md new file mode 100644 index 00000000000..058adfe35ff --- /dev/null +++ b/changelog.d/sc-tanf-followups-10581.changed.md @@ -0,0 +1 @@ +Added a South Carolina TANF test at the gross income limit. diff --git a/policyengine_us/tests/policy/baseline/gov/states/sc/tanf/sc_tanf_gross_income_eligible.yaml b/policyengine_us/tests/policy/baseline/gov/states/sc/tanf/sc_tanf_gross_income_eligible.yaml index 0c1a1169601..9adce5475ec 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/sc/tanf/sc_tanf_gross_income_eligible.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/sc/tanf/sc_tanf_gross_income_eligible.yaml @@ -119,6 +119,20 @@ # Need standard 1,110; limit 1,110 x 1.85 = 2,053.50. sc_tanf_gross_income_eligible: true +- name: Gross income equal to the limit passes for a benefit group of three. + period: 2026-01 + input: + state_code: SC + sc_tanf_benefit_group_size: 3 + sc_tanf_gross_income: 2_053.50 + output: + # January uses the guidelines in effect on October 1, 2025: + # 15,650 + 2 x 5,500 = 26,650 a year. + # Need = floor(26,650 / 12 x 0.5) = 1,110. + # Limit = 1,110 x 1.85 = 2,053.50. 114-1150(A) includes equality. + sc_tanf_need_standard: 1_110 + sc_tanf_gross_income_eligible: true + - name: Section 8.15 table, gross income one cent above the limit for a benefit group of 3. period: 2026-01 input: From 2303e13923fd58b32ad80ebcfa5329fc5602110c Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Thu, 12 Nov 2026 00:51:17 -0500 Subject: [PATCH 02/10] Record South Carolina TANF secondary-school reading Co-Authored-By: Claude Opus 5.5 --- .../sc-tanf-followups-10581.changed.md | 2 +- .../sc/tanf/sc_tanf_dependent_child.yaml | 50 +++++++++++++++++++ .../states/sc/tanf/sc_tanf_dependent_child.py | 4 +- source_conflicts/candidates.yaml | 32 ++++++++++++ 4 files changed, 85 insertions(+), 3 deletions(-) diff --git a/changelog.d/sc-tanf-followups-10581.changed.md b/changelog.d/sc-tanf-followups-10581.changed.md index 058adfe35ff..8952c201075 100644 --- a/changelog.d/sc-tanf-followups-10581.changed.md +++ b/changelog.d/sc-tanf-followups-10581.changed.md @@ -1 +1 @@ -Added a South Carolina TANF test at the gross income limit. +Added South Carolina TANF boundary tests and recorded the secondary-school source conflict. diff --git a/policyengine_us/tests/policy/baseline/gov/states/sc/tanf/sc_tanf_dependent_child.yaml b/policyengine_us/tests/policy/baseline/gov/states/sc/tanf/sc_tanf_dependent_child.yaml index c8b99662c6a..059b6bc5124 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/sc/tanf/sc_tanf_dependent_child.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/sc/tanf/sc_tanf_dependent_child.yaml @@ -215,3 +215,53 @@ # group too, 500 less the 50% January disregard, 250, would count, and # floor((1,110 - 250) x 0.4046 = 347.96) = 347. sc_tanf: 449 + +- name: Case 10, only secondary students keep dependent-child status at eighteen. + period: 2026-01 + input: + people: + parent: + age: 45 + is_tax_unit_head: true + primary_seventeen: + age: 17 + is_in_k12_school: true + is_in_secondary_school: false + is_tax_unit_dependent: true + employment_income_before_lsr: 6_000 + primary_eighteen: + age: 18 + is_in_k12_school: true + is_in_secondary_school: false + is_tax_unit_dependent: true + employment_income_before_lsr: 6_000 + secondary_seventeen: + age: 17 + is_in_k12_school: true + is_in_secondary_school: true + is_tax_unit_dependent: true + employment_income_before_lsr: 6_000 + secondary_eighteen: + age: 18 + is_in_k12_school: true + is_in_secondary_school: true + is_tax_unit_dependent: true + employment_income_before_lsr: 6_000 + secondary_nineteen: + age: 19 + is_in_k12_school: true + is_in_secondary_school: true + is_tax_unit_dependent: true + employment_income_before_lsr: 6_000 + households: + household: + members: [parent, primary_seventeen, primary_eighteen, secondary_seventeen, secondary_eighteen, secondary_nineteen] + state_code: SC + output: + # Under 114-1130(E), 17 < 18 passes without secondary attendance. + # At 18, only secondary attendance gives 18 < 19; at 19 it fails. + # Primary students have K-12 attendance and no secondary attendance. + sc_tanf_dependent_child: [false, true, false, true, true, false] + # Each earner receives 6,000 / 12 = 500 a month. Only the primary + # student at 18 and the secondary student at 19 keep counted earnings. + sc_tanf_gross_earned_income: [0, 0, 500, 0, 0, 500] diff --git a/policyengine_us/variables/gov/states/sc/tanf/sc_tanf_dependent_child.py b/policyengine_us/variables/gov/states/sc/tanf/sc_tanf_dependent_child.py index d3b1cb93dd4..7aa2e44421e 100644 --- a/policyengine_us/variables/gov/states/sc/tanf/sc_tanf_dependent_child.py +++ b/policyengine_us/variables/gov/states/sc/tanf/sc_tanf_dependent_child.py @@ -10,8 +10,8 @@ class sc_tanf_dependent_child(Variable): reference = ( # PDF pages 204, 213 "https://www.scstatehouse.gov/coderegs/Chapter%20114.pdf#page=204", - # PDF pages 105, 132, 134 - "https://dss.sc.gov/media/bxwc1jdj/tanf-policy-manual-volume-67-final.pdf#page=105", + # PDF pages 75, 105, 132, 134 + "https://dss.sc.gov/media/bxwc1jdj/tanf-policy-manual-volume-67-final.pdf#page=75", ) documentation = ( "A member who meets the dependent-child age test, under 18 or under " diff --git a/source_conflicts/candidates.yaml b/source_conflicts/candidates.yaml index 9d02eda84fd..a786527ccdb 100644 --- a/source_conflicts/candidates.yaml +++ b/source_conflicts/candidates.yaml @@ -10245,6 +10245,38 @@ candidates: note: The regulation governs. The model deducts each payer's support from that payer's earned income after the section 8.12 disregards, then unearned income, never below zero. Because 114-1140(L) covers any budget group member, a dependent child's support comes off the child's unearned income. +- id: us-sc:tanf-dependent-child-school-level + program: tanf + years: + from: 2026 + type: federal-fiscal + question: Can an eighteen-year-old full-time primary-school student qualify as a South Carolina TANF dependent child, + or must the student attend secondary school or an equivalent level of vocational or technical training? + sources: + - kind: regulation + citation: S.C. Code Regs. 114-1130(E) + url: https://www.scstatehouse.gov/coderegs/Chapter%20114.pdf#page=204 + - kind: manual + citation: SC DSS TANF Policy Manual Vol. 67 section 4.10 + url: https://dss.sc.gov/media/bxwc1jdj/tanf-policy-manual-volume-67-final.pdf#page=75 + readings: + statute: No statute is supplied; 114-1130(E) permits the extension from under eighteen to under nineteen only for + full-time students in secondary school or an equivalent level of vocational or technical training. + other: Section 4.10 permits full-time primary-school students, as well as secondary-school students, to receive + benefits until age nineteen. + example: An eighteen-year-old full-time primary-school student who does not head the household fails the regulation's + dependent-child age test and passes the manual's. An otherwise identical secondary-school student passes both. + pe_us: + follows: statute + code: + - policyengine_us/variables/gov/states/sc/tanf/sc_tanf_dependent_child.py + prs: + - https://github.com/PolicyEngine/policyengine-us/pull/10581 + - https://github.com/PolicyEngine/policyengine-us/pull/10829 + state: ruled + note: The regulation governs. The model uses is_in_secondary_school, which includes equivalent-level training, for + the under-nineteen extension. This entry addresses school level only; it does not resolve the manual's unmarried + condition or change the model's head-of-household inference. - id: us-sc:tanf-gross-income-limit-cents program: tanf years: From 8221f983a3a42972348d94e0fd1ecc073545beff Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Thu, 12 Nov 2026 00:53:09 -0500 Subject: [PATCH 03/10] Refresh South Carolina TANF manual references to Volume 67 Co-Authored-By: Claude Opus 5.5 --- changelog.d/sc-tanf-followups-10581.changed.md | 2 +- .../gov/states/sc/tanf/income/earned/disregard/amount.yaml | 4 ++-- .../sc/tanf/income/earned/disregard/percentage/months.yaml | 4 ++-- .../sc/tanf/income/earned/disregard/percentage/rate.yaml | 4 ++-- .../gov/states/sc/tanf/income/gross_income_limit.yaml | 4 ++-- .../gov/states/sc/tanf/income/need_standard/rate.yaml | 4 ++-- .../gov/states/sc/tanf/income/unearned/sources.yaml | 2 -- .../parameters/gov/states/sc/tanf/minimum_payment.yaml | 4 ++-- .../parameters/gov/states/sc/tanf/payment/rate.yaml | 4 ++-- .../parameters/gov/states/sc/tanf/resources/limit.yaml | 4 ++-- .../sc/tanf/eligibility/sc_tanf_countable_income_eligible.py | 4 +--- .../states/sc/tanf/eligibility/sc_tanf_income_eligible.py | 5 ++--- .../sc/tanf/income/sc_tanf_countable_earned_income_person.py | 3 ++- .../gov/states/sc/tanf/income/sc_tanf_gross_income.py | 4 +--- 14 files changed, 23 insertions(+), 29 deletions(-) diff --git a/changelog.d/sc-tanf-followups-10581.changed.md b/changelog.d/sc-tanf-followups-10581.changed.md index 8952c201075..e0de667803b 100644 --- a/changelog.d/sc-tanf-followups-10581.changed.md +++ b/changelog.d/sc-tanf-followups-10581.changed.md @@ -1 +1 @@ -Added South Carolina TANF boundary tests and recorded the secondary-school source conflict. +Added South Carolina TANF boundary tests, recorded the secondary-school source conflict, and refreshed manual references. diff --git a/policyengine_us/parameters/gov/states/sc/tanf/income/earned/disregard/amount.yaml b/policyengine_us/parameters/gov/states/sc/tanf/income/earned/disregard/amount.yaml index ae71efe23d7..238748dbae7 100644 --- a/policyengine_us/parameters/gov/states/sc/tanf/income/earned/disregard/amount.yaml +++ b/policyengine_us/parameters/gov/states/sc/tanf/income/earned/disregard/amount.yaml @@ -7,5 +7,5 @@ metadata: period: month label: South Carolina TANF earned income disregard amount reference: - - title: SC DSS TANF Policy Manual Section 8.12 - href: https://dss.sc.gov/media/ojqddxsk/tanf-policy-manual-volume-65.pdf#page=130 + - title: SC DSS TANF Policy Manual (Volume 67), Section 8.12.4 + href: https://dss.sc.gov/media/bxwc1jdj/tanf-policy-manual-volume-67-final.pdf#page=132 diff --git a/policyengine_us/parameters/gov/states/sc/tanf/income/earned/disregard/percentage/months.yaml b/policyengine_us/parameters/gov/states/sc/tanf/income/earned/disregard/percentage/months.yaml index d80916562a5..dd37c89ef30 100644 --- a/policyengine_us/parameters/gov/states/sc/tanf/income/earned/disregard/percentage/months.yaml +++ b/policyengine_us/parameters/gov/states/sc/tanf/income/earned/disregard/percentage/months.yaml @@ -7,5 +7,5 @@ metadata: period: month label: South Carolina TANF earned income percentage disregard applicable months reference: - - title: SC DSS TANF Policy Manual Section 8.12 - href: https://dss.sc.gov/media/ojqddxsk/tanf-policy-manual-volume-65.pdf#page=130 + - title: "SC DSS TANF Policy Manual (Volume 67), Section 8.12.1 #page 131-132" + href: https://dss.sc.gov/media/bxwc1jdj/tanf-policy-manual-volume-67-final.pdf#page=131 diff --git a/policyengine_us/parameters/gov/states/sc/tanf/income/earned/disregard/percentage/rate.yaml b/policyengine_us/parameters/gov/states/sc/tanf/income/earned/disregard/percentage/rate.yaml index 97cf9e46956..8ccb1d06ec5 100644 --- a/policyengine_us/parameters/gov/states/sc/tanf/income/earned/disregard/percentage/rate.yaml +++ b/policyengine_us/parameters/gov/states/sc/tanf/income/earned/disregard/percentage/rate.yaml @@ -7,5 +7,5 @@ metadata: period: month label: South Carolina TANF earned income disregard percentage reference: - - title: SC DSS TANF Policy Manual Section 8.12 - href: https://dss.sc.gov/media/ojqddxsk/tanf-policy-manual-volume-65.pdf#page=130 + - title: SC DSS TANF Policy Manual (Volume 67), Section 8.12.1 + href: https://dss.sc.gov/media/bxwc1jdj/tanf-policy-manual-volume-67-final.pdf#page=131 diff --git a/policyengine_us/parameters/gov/states/sc/tanf/income/gross_income_limit.yaml b/policyengine_us/parameters/gov/states/sc/tanf/income/gross_income_limit.yaml index 7ffed0cd6ba..c54dfe7df3e 100644 --- a/policyengine_us/parameters/gov/states/sc/tanf/income/gross_income_limit.yaml +++ b/policyengine_us/parameters/gov/states/sc/tanf/income/gross_income_limit.yaml @@ -7,5 +7,5 @@ metadata: period: month label: South Carolina TANF gross income limit reference: - - title: SC DSS TANF Policy Manual Section 8.15 - href: https://dss.sc.gov/media/ojqddxsk/tanf-policy-manual-volume-65.pdf#page=132 + - title: SC DSS TANF Policy Manual (Volume 67), Section 8.15 + href: https://dss.sc.gov/media/bxwc1jdj/tanf-policy-manual-volume-67-final.pdf#page=133 diff --git a/policyengine_us/parameters/gov/states/sc/tanf/income/need_standard/rate.yaml b/policyengine_us/parameters/gov/states/sc/tanf/income/need_standard/rate.yaml index 94e28622b5b..17bb775f15b 100644 --- a/policyengine_us/parameters/gov/states/sc/tanf/income/need_standard/rate.yaml +++ b/policyengine_us/parameters/gov/states/sc/tanf/income/need_standard/rate.yaml @@ -9,5 +9,5 @@ metadata: reference: - title: S.C. Code Regs. § 114-1140(A)(2) href: https://www.law.cornell.edu/regulations/south-carolina/R-114-1140 - - title: The South Carolina Department of Social Services TANF Policy Manual - href: https://dss.sc.gov/media/ojqddxsk/tanf-policy-manual-volume-65.pdf#page=131 + - title: SC DSS TANF Policy Manual (Volume 67), Section 8.15 + href: https://dss.sc.gov/media/bxwc1jdj/tanf-policy-manual-volume-67-final.pdf#page=133 diff --git a/policyengine_us/parameters/gov/states/sc/tanf/income/unearned/sources.yaml b/policyengine_us/parameters/gov/states/sc/tanf/income/unearned/sources.yaml index 79772c6c220..17c0fd64194 100644 --- a/policyengine_us/parameters/gov/states/sc/tanf/income/unearned/sources.yaml +++ b/policyengine_us/parameters/gov/states/sc/tanf/income/unearned/sources.yaml @@ -29,5 +29,3 @@ metadata: reference: - title: "SC DSS TANF Policy Manual (Volume 67), Sections 7.1 and 7.7 #page 102,107-120" href: https://dss.sc.gov/media/bxwc1jdj/tanf-policy-manual-volume-67-final.pdf#page=102 - - title: "SC DSS TANF Policy Manual (Volume 65), Section 7.7, SSA benefits and unemployment compensation #page 115,117" - href: https://dss.sc.gov/media/ojqddxsk/tanf-policy-manual-volume-65.pdf#page=115 diff --git a/policyengine_us/parameters/gov/states/sc/tanf/minimum_payment.yaml b/policyengine_us/parameters/gov/states/sc/tanf/minimum_payment.yaml index c78b87bad99..94fcfe88dcb 100644 --- a/policyengine_us/parameters/gov/states/sc/tanf/minimum_payment.yaml +++ b/policyengine_us/parameters/gov/states/sc/tanf/minimum_payment.yaml @@ -11,5 +11,5 @@ metadata: reference: - title: S.C. Code Regs. 114-1140(A)(5) - Financial Criteria href: https://www.scstatehouse.gov/coderegs/Chapter%20114.pdf#page=210 - - title: South Carolina TANF Policy Manual Volume 65, Section 8.16 I - Manual Benefit Calculation - href: https://dss.sc.gov/media/ojqddxsk/tanf-policy-manual-volume-65.pdf#page=133 + - title: SC DSS TANF Policy Manual (Volume 67), Section 8.16 I - Manual Benefit Calculation + href: https://dss.sc.gov/media/bxwc1jdj/tanf-policy-manual-volume-67-final.pdf#page=134 diff --git a/policyengine_us/parameters/gov/states/sc/tanf/payment/rate.yaml b/policyengine_us/parameters/gov/states/sc/tanf/payment/rate.yaml index e6228dad713..d870264a1ae 100644 --- a/policyengine_us/parameters/gov/states/sc/tanf/payment/rate.yaml +++ b/policyengine_us/parameters/gov/states/sc/tanf/payment/rate.yaml @@ -10,5 +10,5 @@ metadata: reference: - title: S.C. Code Regs. § 114-1140(A)(3) href: https://www.law.cornell.edu/regulations/south-carolina/R-114-1140 - - title: The South Carolina Department of Social Services TANF Policy Manual - href: https://dss.sc.gov/media/ojqddxsk/tanf-policy-manual-volume-65.pdf#page=131 + - title: SC DSS TANF Policy Manual (Volume 67), Section 8.15 + href: https://dss.sc.gov/media/bxwc1jdj/tanf-policy-manual-volume-67-final.pdf#page=133 diff --git a/policyengine_us/parameters/gov/states/sc/tanf/resources/limit.yaml b/policyengine_us/parameters/gov/states/sc/tanf/resources/limit.yaml index d14e13b9766..04a9b797f98 100644 --- a/policyengine_us/parameters/gov/states/sc/tanf/resources/limit.yaml +++ b/policyengine_us/parameters/gov/states/sc/tanf/resources/limit.yaml @@ -9,5 +9,5 @@ metadata: reference: - title: S.C. Code Regs. § 114-1140(C) href: https://www.law.cornell.edu/regulations/south-carolina/R-114-1140 - - title: The South Carolina Department of Social Services TANF Policy Manual - href: https://dss.sc.gov/media/ojqddxsk/tanf-policy-manual-volume-65.pdf#page=90 + - title: SC DSS TANF Policy Manual (Volume 67), Section 6.4 + href: https://dss.sc.gov/media/bxwc1jdj/tanf-policy-manual-volume-67-final.pdf#page=91 diff --git a/policyengine_us/variables/gov/states/sc/tanf/eligibility/sc_tanf_countable_income_eligible.py b/policyengine_us/variables/gov/states/sc/tanf/eligibility/sc_tanf_countable_income_eligible.py index f6583d47d06..051cd262054 100644 --- a/policyengine_us/variables/gov/states/sc/tanf/eligibility/sc_tanf_countable_income_eligible.py +++ b/policyengine_us/variables/gov/states/sc/tanf/eligibility/sc_tanf_countable_income_eligible.py @@ -7,9 +7,7 @@ class sc_tanf_countable_income_eligible(Variable): label = "South Carolina TANF countable income eligible" definition_period = MONTH defined_for = StateCode.SC - reference = ( - "https://dss.sc.gov/media/ojqddxsk/tanf-policy-manual-volume-65.pdf#page=131" - ) + reference = "https://dss.sc.gov/media/bxwc1jdj/tanf-policy-manual-volume-67-final.pdf#page=134" def formula(spm_unit, period, parameters): need_standard = spm_unit("sc_tanf_need_standard", period) diff --git a/policyengine_us/variables/gov/states/sc/tanf/eligibility/sc_tanf_income_eligible.py b/policyengine_us/variables/gov/states/sc/tanf/eligibility/sc_tanf_income_eligible.py index d41e48aa2fe..1b1414739dd 100644 --- a/policyengine_us/variables/gov/states/sc/tanf/eligibility/sc_tanf_income_eligible.py +++ b/policyengine_us/variables/gov/states/sc/tanf/eligibility/sc_tanf_income_eligible.py @@ -7,9 +7,8 @@ class sc_tanf_income_eligible(Variable): label = "South Carolina TANF income eligible" definition_period = MONTH defined_for = StateCode.SC - reference = ( - "https://dss.sc.gov/media/ojqddxsk/tanf-policy-manual-volume-65.pdf#page=131" - ) + # PDF pages 133-134 + reference = "https://dss.sc.gov/media/bxwc1jdj/tanf-policy-manual-volume-67-final.pdf#page=133" def formula(spm_unit, period, parameters): gross_income_eligible = spm_unit("sc_tanf_gross_income_eligible", period) diff --git a/policyengine_us/variables/gov/states/sc/tanf/income/sc_tanf_countable_earned_income_person.py b/policyengine_us/variables/gov/states/sc/tanf/income/sc_tanf_countable_earned_income_person.py index 4ac9a3f8583..3534234348b 100644 --- a/policyengine_us/variables/gov/states/sc/tanf/income/sc_tanf_countable_earned_income_person.py +++ b/policyengine_us/variables/gov/states/sc/tanf/income/sc_tanf_countable_earned_income_person.py @@ -8,7 +8,8 @@ class sc_tanf_countable_earned_income_person(Variable): unit = USD definition_period = MONTH defined_for = StateCode.SC - reference = "https://dss.sc.gov/media/ojqddxsk/tanf-policy-manual-volume-65.pdf#page=130" # Section 8.12 + # PDF pages 131-132 + reference = "https://dss.sc.gov/media/bxwc1jdj/tanf-policy-manual-volume-67-final.pdf#page=131" # Section 8.12 def formula(person, period, parameters): p = parameters(period).gov.states.sc.tanf.income.earned.disregard diff --git a/policyengine_us/variables/gov/states/sc/tanf/income/sc_tanf_gross_income.py b/policyengine_us/variables/gov/states/sc/tanf/income/sc_tanf_gross_income.py index 259a67d8eca..0855ad8a397 100644 --- a/policyengine_us/variables/gov/states/sc/tanf/income/sc_tanf_gross_income.py +++ b/policyengine_us/variables/gov/states/sc/tanf/income/sc_tanf_gross_income.py @@ -8,9 +8,7 @@ class sc_tanf_gross_income(Variable): unit = USD definition_period = MONTH defined_for = StateCode.SC - reference = ( - "https://dss.sc.gov/media/ojqddxsk/tanf-policy-manual-volume-65.pdf#page=131" - ) + reference = "https://dss.sc.gov/media/bxwc1jdj/tanf-policy-manual-volume-67-final.pdf#page=102" adds = [ "sc_tanf_gross_earned_income", From 231a11e0f78d3a14f8b9eda56f5102c2a66faaf5 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Thu, 12 Nov 2026 00:54:25 -0500 Subject: [PATCH 04/10] Document and test South Carolina TANF current loss offsets Co-Authored-By: Claude Opus 5.5 --- .../sc-tanf-followups-10581.changed.md | 2 +- .../core/test_sc_tanf_followup_properties.py | 124 ++++++++++++++++++ .../gov/states/sc/tanf/integration.yaml | 48 +++++++ 3 files changed, 173 insertions(+), 1 deletion(-) create mode 100644 policyengine_us/tests/core/test_sc_tanf_followup_properties.py diff --git a/changelog.d/sc-tanf-followups-10581.changed.md b/changelog.d/sc-tanf-followups-10581.changed.md index e0de667803b..81a37182bd5 100644 --- a/changelog.d/sc-tanf-followups-10581.changed.md +++ b/changelog.d/sc-tanf-followups-10581.changed.md @@ -1 +1 @@ -Added South Carolina TANF boundary tests, recorded the secondary-school source conflict, and refreshed manual references. +Added South Carolina TANF boundary and loss-offset tests, recorded the secondary-school source conflict, and refreshed manual references. diff --git a/policyengine_us/tests/core/test_sc_tanf_followup_properties.py b/policyengine_us/tests/core/test_sc_tanf_followup_properties.py new file mode 100644 index 00000000000..481b740b5bb --- /dev/null +++ b/policyengine_us/tests/core/test_sc_tanf_followup_properties.py @@ -0,0 +1,124 @@ +"""SC TANF gross-limit, school-level and current-loss invariants. + +Sources: S.C. Code Regs. 114-1130(E), 114-1150(A), (B)(3), (C), and +DSS TANF Policy Manual Volume 67 sections 8.9 and 8.16 C and E. +""" + +import numpy as np +from hypothesis import HealthCheck, example, given, settings, strategies as st + +from policyengine_us import Simulation + +YEAR = 2026 +MONTH = "2026-01" + + +def simulation_for(groups): + people, units, households = {}, {}, {} + for index, (members, inputs) in enumerate(groups): + names = [] + for j, member in enumerate(members): + name = f"p{index}_{j}" + names.append(name) + people[name] = {key: {YEAR: value} for key, value in member.items()} + units[f"u{index}"] = {"members": names, **inputs} + households[f"h{index}"] = { + "members": names, + "state_code": {YEAR: "SC"}, + } + return Simulation( + situation={ + "people": people, + "tax_units": {key: {"members": u["members"]} for key, u in units.items()}, + "spm_units": units, + "households": households, + } + ) + + +@settings(max_examples=10, deadline=None, suppress_health_check=[HealthCheck.too_slow]) +@given(cents=st.integers(0, 410_700)) +def test_gross_limit_includes_equality_and_is_monotone(cents): + # January uses 2025 FPG: floor((15,650 + 2 * 5,500) / 12 * .5) + # = 1,110; 1,110 * 1.85 = 2,053.50. Test the boundary in every draw. + incomes = sorted({cents, 205_349, 205_350, 205_351}) + sim = simulation_for( + [ + ( + [{"age": 40}], + { + "sc_tanf_benefit_group_size": {MONTH: 3}, + "sc_tanf_gross_income": {MONTH: income / 100}, + }, + ) + for income in incomes + ] + ) + actual = sim.calculate("sc_tanf_gross_income_eligible", MONTH) + np.testing.assert_array_equal(actual, [income <= 205_350 for income in incomes]) + assert np.all(np.diff(actual.astype(int)) <= 0) + + +@settings(max_examples=10, deadline=None, suppress_health_check=[HealthCheck.too_slow]) +@example(age=17, secondary=False, k12=True) +@example(age=18, secondary=False, k12=True) +@example(age=18, secondary=True, k12=True) +@example(age=19, secondary=True, k12=True) +@given(age=st.integers(0, 25), secondary=st.booleans(), k12=st.booleans()) +def test_k12_attendance_never_extends_dependent_child_age(age, secondary, k12): + sim = simulation_for( + [ + ( + [ + {"age": 45, "is_tax_unit_head": True}, + { + "age": age, + "is_tax_unit_dependent": True, + "is_in_secondary_school": secondary, + "is_in_k12_school": school, + }, + ], + {}, + ) + for school in (k12, not k12) + ] + ) + # 114-1130(E): turning general K-12 attendance on or off changes nothing. + expected = age < 18 or (age == 18 and secondary) + np.testing.assert_array_equal( + sim.calculate("sc_tanf_dependent_child", MONTH), + [False, expected, False, expected], + ) + + +@settings(max_examples=10, deadline=None, suppress_health_check=[HealthCheck.too_slow]) +@example(loss=1200, unearned=1000) +@given(loss=st.integers(0, 2_000), unearned=st.integers(0, 2_000)) +def test_current_loss_offsets_other_income_before_payment_cap(loss, unearned): + # Keep the signed IRS-method result and the manual's 50% arithmetic. + # This interpretation adds no zero floor before section 8.16 E's sum. + sim = simulation_for( + [ + ( + [ + { + "age": 40, + "is_tax_unit_head": True, + "alimony_income": unearned * 12, + }, + { + "age": 38, + "is_tax_unit_spouse": True, + "self_employment_income_before_lsr": -loss * 12, + }, + {"age": 10, "is_tax_unit_dependent": True}, + ], + {}, + ) + ] + ) + countable = sim.calculate("sc_tanf_countable_income", MONTH)[0] + assert abs(countable - (unearned - loss / 2)) < 0.01 + benefit = sim.calculate("sc_tanf", MONTH)[0] + assert 0 <= benefit <= 449 + assert benefit == np.floor(benefit) diff --git a/policyengine_us/tests/policy/baseline/gov/states/sc/tanf/integration.yaml b/policyengine_us/tests/policy/baseline/gov/states/sc/tanf/integration.yaml index 53414844eaa..508eb626939 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/sc/tanf/integration.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/sc/tanf/integration.yaml @@ -1086,6 +1086,13 @@ members: [parent, child1, child2] state_code: SC output: + # We keep the signed business result under 114-1150(B)(3)'s IRS + # calculation. DSS subtracts business costs in Section 8.9, applies + # 50% to each person's earnings in Section 8.16 C, then adds them in E. + # We apply those calculations to current losses without adding a zero + # floor; DSS does not expressly address current-loss offsets here. + # We read Section 7.1's general definition of income as money received + # together with the specific calculation of business income for current losses. # -14,400 / 12 = -1,200 a month, and the 50% January disregard leaves # -600. With no support paid, countable income stays at -600. sc_tanf_gross_earned_income: [-1_200, 0, 0] @@ -1121,6 +1128,8 @@ members: [adult_a, adult_b, child] state_code: SC output: + # We keep B's signed business result under 114-1150(B)(3) and + # Sections 8.9 and 8.16 C and E, without adding a zero floor. # A: 600 x 0.5 = 300, less A's 2,400 / 12 = 200 of support, leaves 100. # B: -1,200 x 0.5 = -600. Countable income is 100 - 600 = -500. # Deducting from the group's income (300 - 600 = -300) would leave @@ -1155,3 +1164,42 @@ sc_tanf_countable_income: 814.75 # floor((881 - 814.75) x 0.4046 = 26.80) = 26. sc_tanf: 26 + +- name: Case 38, a current self-employment loss offsets another member's unearned income in January. + period: 2026-01 + input: + people: + adult_a: + age: 40 + is_tax_unit_head: true + alimony_income: 12_000 + adult_b: + age: 38 + is_tax_unit_spouse: true + self_employment_income_before_lsr: -14_400 + child: + age: 10 + is_tax_unit_dependent: true + marital_units: + couple: + members: [adult_a, adult_b] + child_unit: + members: [child] + households: + household: + members: [adult_a, adult_b, child] + state_code: SC + output: + # Under 114-1150(B)(3) and Sections 8.9 and 8.16 C and E, we keep + # the signed current business result through the disregard and sum. + # A: 12,000 / 12 = 1,000 of monthly unearned income. + # B: -14,400 / 12 = -1,200; the 50% disregard leaves -600. + sc_tanf_gross_earned_income: [0, -1_200, 0] + sc_tanf_gross_unearned_income: [1_000, 0, 0] + sc_tanf_child_support_deduction: 0 + # 1,000 - 600 = 400. Flooring B's earnings at zero would leave 1,000. + sc_tanf_countable_income: 400 + # Size 3: floor((15,650 + 2 x 5,500) / 12 x 0.5) = 1,110. + # floor((1,110 - 400) x 0.4046 = 287.266) = 287. + # Flooring B's earnings would give floor(110 x 0.4046 = 44.506) = 44. + sc_tanf: 287 From a83f156e78163bc28877a7971415ebfe62cfe210 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Thu, 12 Nov 2026 01:51:20 -0500 Subject: [PATCH 05/10] Record South Carolina TANF current loss interpretation Co-Authored-By: Claude Opus 5.5 --- .../sc-tanf-followups-10581.changed.md | 2 +- source_conflicts/candidates.yaml | 39 +++++++++++++++++++ 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/changelog.d/sc-tanf-followups-10581.changed.md b/changelog.d/sc-tanf-followups-10581.changed.md index 81a37182bd5..7d2ae9f690b 100644 --- a/changelog.d/sc-tanf-followups-10581.changed.md +++ b/changelog.d/sc-tanf-followups-10581.changed.md @@ -1 +1 @@ -Added South Carolina TANF boundary and loss-offset tests, recorded the secondary-school source conflict, and refreshed manual references. +Added South Carolina TANF boundary and loss-offset tests, recorded the school and loss interpretations, and refreshed manual references. diff --git a/source_conflicts/candidates.yaml b/source_conflicts/candidates.yaml index a786527ccdb..6ff8f9deadb 100644 --- a/source_conflicts/candidates.yaml +++ b/source_conflicts/candidates.yaml @@ -10245,6 +10245,45 @@ candidates: note: The regulation governs. The model deducts each payer's support from that payer's earned income after the section 8.12 disregards, then unearned income, never below zero. Because 114-1140(L) covers any budget group member, a dependent child's support comes off the child's unearned income. +- id: us-sc:tanf-current-self-employment-loss-offset + program: tanf + years: + from: 2026 + type: federal-fiscal + question: During South Carolina TANF's fifty-percent earned-income disregard, does a current self-employment loss + offset other members' income, or must each person's earned income stop at zero before aggregation? + sources: + - kind: regulation + citation: S.C. Code Regs. 114-1150(B)(3) and (C)(1) + url: https://www.scstatehouse.gov/coderegs/Chapter%20114.pdf#page=217 + - kind: manual + citation: SC DSS TANF Policy Manual Vol. 67 sections 7.1, 8.9 and 8.16 C and E + url: https://dss.sc.gov/media/bxwc1jdj/tanf-policy-manual-volume-67-final.pdf#page=102 + - kind: instructions + citation: 2025 IRS Instructions for Schedule C, Line 31 + url: https://www.irs.gov/pub/irs-pdf/i1040sc.pdf#page=14 + readings: + statute: No statute is supplied; 114-1150(B)(3) computes business profit from receipts less expenses using IRS + methods, and (C)(1) applies the fifty-percent disregard per person. Retaining the signed current business + result through that calculation and the section 8.16 E sum permits offsets against other members' income. + other: Section 7.1 describes income as money received. Treating that general definition as a nonnegative bound + would floor each person's earned income at zero before aggregation. Neither source expressly addresses + current-loss offsets or directs that floor. + example: In January 2026 adult A receives $1,000 monthly alimony and adult B has a $1,200 monthly self-employment + loss, with one child. The signed calculation gives $400 countable income and a $287 payment. Flooring B's + earnings gives $1,000 countable income and a $44 payment. + pe_us: + follows: statute + code: + - policyengine_us/variables/gov/states/sc/tanf/income/sc_tanf_countable_earned_income_person.py + - policyengine_us/variables/gov/states/sc/tanf/income/sc_tanf_countable_income.py + prs: + - https://github.com/PolicyEngine/policyengine-us/pull/10581 + - https://github.com/PolicyEngine/policyengine-us/pull/10829 + state: ruled + note: We retain the signed calculation under the specific IRS-method and aggregation provisions. DSS supplies + no express current-loss offset policy in the cited sections. This entry records competing interpretations, + rather than an express disagreement between those sources. The continuing $100 disregard remains unchanged. - id: us-sc:tanf-dependent-child-school-level program: tanf years: From 745432368daad7dfed8ec73d97953cb42db97168 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Fri, 13 Nov 2026 21:34:34 -0500 Subject: [PATCH 06/10] Record the South Carolina TANF current-loss question as open 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 --- .../sc-tanf-followups-10581.changed.md | 2 +- .../core/test_sc_tanf_followup_properties.py | 124 ------------------ .../gov/states/sc/tanf/integration.yaml | 69 ++++++++-- source_conflicts/candidates.yaml | 68 ++++++---- 4 files changed, 105 insertions(+), 158 deletions(-) delete mode 100644 policyengine_us/tests/core/test_sc_tanf_followup_properties.py diff --git a/changelog.d/sc-tanf-followups-10581.changed.md b/changelog.d/sc-tanf-followups-10581.changed.md index 7d2ae9f690b..60d1e93e27e 100644 --- a/changelog.d/sc-tanf-followups-10581.changed.md +++ b/changelog.d/sc-tanf-followups-10581.changed.md @@ -1 +1 @@ -Added South Carolina TANF boundary and loss-offset tests, recorded the school and loss interpretations, and refreshed manual references. +Added South Carolina TANF gross-limit, school-level and current-loss tests, recorded the school-level reading and the open current-loss question as source-conflict candidates, and refreshed manual and regulation references. diff --git a/policyengine_us/tests/core/test_sc_tanf_followup_properties.py b/policyengine_us/tests/core/test_sc_tanf_followup_properties.py deleted file mode 100644 index 481b740b5bb..00000000000 --- a/policyengine_us/tests/core/test_sc_tanf_followup_properties.py +++ /dev/null @@ -1,124 +0,0 @@ -"""SC TANF gross-limit, school-level and current-loss invariants. - -Sources: S.C. Code Regs. 114-1130(E), 114-1150(A), (B)(3), (C), and -DSS TANF Policy Manual Volume 67 sections 8.9 and 8.16 C and E. -""" - -import numpy as np -from hypothesis import HealthCheck, example, given, settings, strategies as st - -from policyengine_us import Simulation - -YEAR = 2026 -MONTH = "2026-01" - - -def simulation_for(groups): - people, units, households = {}, {}, {} - for index, (members, inputs) in enumerate(groups): - names = [] - for j, member in enumerate(members): - name = f"p{index}_{j}" - names.append(name) - people[name] = {key: {YEAR: value} for key, value in member.items()} - units[f"u{index}"] = {"members": names, **inputs} - households[f"h{index}"] = { - "members": names, - "state_code": {YEAR: "SC"}, - } - return Simulation( - situation={ - "people": people, - "tax_units": {key: {"members": u["members"]} for key, u in units.items()}, - "spm_units": units, - "households": households, - } - ) - - -@settings(max_examples=10, deadline=None, suppress_health_check=[HealthCheck.too_slow]) -@given(cents=st.integers(0, 410_700)) -def test_gross_limit_includes_equality_and_is_monotone(cents): - # January uses 2025 FPG: floor((15,650 + 2 * 5,500) / 12 * .5) - # = 1,110; 1,110 * 1.85 = 2,053.50. Test the boundary in every draw. - incomes = sorted({cents, 205_349, 205_350, 205_351}) - sim = simulation_for( - [ - ( - [{"age": 40}], - { - "sc_tanf_benefit_group_size": {MONTH: 3}, - "sc_tanf_gross_income": {MONTH: income / 100}, - }, - ) - for income in incomes - ] - ) - actual = sim.calculate("sc_tanf_gross_income_eligible", MONTH) - np.testing.assert_array_equal(actual, [income <= 205_350 for income in incomes]) - assert np.all(np.diff(actual.astype(int)) <= 0) - - -@settings(max_examples=10, deadline=None, suppress_health_check=[HealthCheck.too_slow]) -@example(age=17, secondary=False, k12=True) -@example(age=18, secondary=False, k12=True) -@example(age=18, secondary=True, k12=True) -@example(age=19, secondary=True, k12=True) -@given(age=st.integers(0, 25), secondary=st.booleans(), k12=st.booleans()) -def test_k12_attendance_never_extends_dependent_child_age(age, secondary, k12): - sim = simulation_for( - [ - ( - [ - {"age": 45, "is_tax_unit_head": True}, - { - "age": age, - "is_tax_unit_dependent": True, - "is_in_secondary_school": secondary, - "is_in_k12_school": school, - }, - ], - {}, - ) - for school in (k12, not k12) - ] - ) - # 114-1130(E): turning general K-12 attendance on or off changes nothing. - expected = age < 18 or (age == 18 and secondary) - np.testing.assert_array_equal( - sim.calculate("sc_tanf_dependent_child", MONTH), - [False, expected, False, expected], - ) - - -@settings(max_examples=10, deadline=None, suppress_health_check=[HealthCheck.too_slow]) -@example(loss=1200, unearned=1000) -@given(loss=st.integers(0, 2_000), unearned=st.integers(0, 2_000)) -def test_current_loss_offsets_other_income_before_payment_cap(loss, unearned): - # Keep the signed IRS-method result and the manual's 50% arithmetic. - # This interpretation adds no zero floor before section 8.16 E's sum. - sim = simulation_for( - [ - ( - [ - { - "age": 40, - "is_tax_unit_head": True, - "alimony_income": unearned * 12, - }, - { - "age": 38, - "is_tax_unit_spouse": True, - "self_employment_income_before_lsr": -loss * 12, - }, - {"age": 10, "is_tax_unit_dependent": True}, - ], - {}, - ) - ] - ) - countable = sim.calculate("sc_tanf_countable_income", MONTH)[0] - assert abs(countable - (unearned - loss / 2)) < 0.01 - benefit = sim.calculate("sc_tanf", MONTH)[0] - assert 0 <= benefit <= 449 - assert benefit == np.floor(benefit) diff --git a/policyengine_us/tests/policy/baseline/gov/states/sc/tanf/integration.yaml b/policyengine_us/tests/policy/baseline/gov/states/sc/tanf/integration.yaml index 508eb626939..125d4edca7d 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/sc/tanf/integration.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/sc/tanf/integration.yaml @@ -1086,13 +1086,11 @@ members: [parent, child1, child2] state_code: SC output: - # We keep the signed business result under 114-1150(B)(3)'s IRS - # calculation. DSS subtracts business costs in Section 8.9, applies - # 50% to each person's earnings in Section 8.16 C, then adds them in E. - # We apply those calculations to current losses without adding a zero - # floor; DSS does not expressly address current-loss offsets here. - # We read Section 7.1's general definition of income as money received - # together with the specific calculation of business income for current losses. + # This case pins the model's current behavior: in a month of the 50% + # disregard the formula halves a self-employment loss and keeps it + # negative. 114-1150(B)(3) and Sections 7.1, 8.9 and 8.16 name no + # current loss, and source_conflicts/candidates.yaml records the open + # question as us-sc:tanf-current-self-employment-loss-offset. # -14,400 / 12 = -1,200 a month, and the 50% January disregard leaves # -600. With no support paid, countable income stays at -600. sc_tanf_gross_earned_income: [-1_200, 0, 0] @@ -1128,8 +1126,8 @@ members: [adult_a, adult_b, child] state_code: SC output: - # We keep B's signed business result under 114-1150(B)(3) and - # Sections 8.9 and 8.16 C and E, without adding a zero floor. + # B's loss stays negative in a month of the 50% disregard, the model's + # current behavior that Case 35 describes. # A: 600 x 0.5 = 300, less A's 2,400 / 12 = 200 of support, leaves 100. # B: -1,200 x 0.5 = -600. Countable income is 100 - 600 = -500. # Deducting from the group's income (300 - 600 = -300) would leave @@ -1190,8 +1188,11 @@ members: [adult_a, adult_b, child] state_code: SC output: - # Under 114-1150(B)(3) and Sections 8.9 and 8.16 C and E, we keep - # the signed current business result through the disregard and sum. + # This case pins the model's current behavior in a month of the 50% + # disregard, where B's loss reduces A's unearned income. Case 39 pins + # the $100 disregard months, and source_conflicts/candidates.yaml + # records the open question as + # us-sc:tanf-current-self-employment-loss-offset. # A: 12,000 / 12 = 1,000 of monthly unearned income. # B: -14,400 / 12 = -1,200; the 50% disregard leaves -600. sc_tanf_gross_earned_income: [0, -1_200, 0] @@ -1203,3 +1204,49 @@ # floor((1,110 - 400) x 0.4046 = 287.266) = 287. # Flooring B's earnings would give floor(110 x 0.4046 = 44.506) = 44. sc_tanf: 287 + +- name: Case 39, the Case 38 household in May, when the $100 disregard sets the loss to zero. + # Annual inputs cover calendar 2026; outputs select May, when the $100 + # disregard applies. + period: 2026 + input: + people: + adult_a: + age: 40 + is_tax_unit_head: true + alimony_income: 12_000 + adult_b: + age: 38 + is_tax_unit_spouse: true + self_employment_income_before_lsr: -14_400 + child: + age: 10 + is_tax_unit_dependent: true + marital_units: + couple: + members: [adult_a, adult_b] + child_unit: + members: [child] + households: + household: + members: [adult_a, adult_b, child] + state_code: SC + output: + # This case pins the model's current behavior in a month of the $100 + # disregard, the other earned-income path of the open question in + # Case 38. + # The gross test adds B's whole loss: 1,000 - 1,200 = -200, under the + # limit of 1,110 x 1.85 = 2,053.50. + sc_tanf_gross_income: + 2026-05: -200 + sc_tanf_gross_income_eligible: + 2026-05: true + # B: max(-1,200 - 100, 0) = 0, so the loss reduces nothing. + sc_tanf_countable_earned_income_person: + 2026-05: [0, 0, 0] + # A's 1,000 of alimony counts in full. + sc_tanf_countable_income: + 2026-05: 1_000 + # floor((1,110 - 1,000) x 0.4046 = 44.506) = 44. + sc_tanf: + 2026-05: 44 diff --git a/source_conflicts/candidates.yaml b/source_conflicts/candidates.yaml index 38514c6e0f2..43f948be77b 100644 --- a/source_conflicts/candidates.yaml +++ b/source_conflicts/candidates.yaml @@ -10850,44 +10850,64 @@ candidates: years: from: 2026 type: federal-fiscal - question: During South Carolina TANF's fifty-percent earned-income disregard, does a current self-employment loss - offset other members' income, or must each person's earned income stop at zero before aggregation? + question: When a South Carolina TANF benefit group member has a current net loss from self-employment or farming, + or from rent, a partnership or S corporation, capital, or a trust or estate, does the loss reduce the other income + the group counts, or does it count as zero? sources: - kind: regulation - citation: S.C. Code Regs. 114-1150(B)(3) and (C)(1) + citation: S.C. Code Regs. 114-1150(A), (B)(3), (B)(4), (C) and (E) url: https://www.scstatehouse.gov/coderegs/Chapter%20114.pdf#page=217 - kind: manual - citation: SC DSS TANF Policy Manual Vol. 67 sections 7.1, 8.9 and 8.16 C and E + citation: SC DSS TANF Policy Manual Vol. 67 sections 7.1, 7.7, 8.9, 8.12 and 8.16 url: https://dss.sc.gov/media/bxwc1jdj/tanf-policy-manual-volume-67-final.pdf#page=102 - kind: instructions citation: 2025 IRS Instructions for Schedule C, Line 31 - url: https://www.irs.gov/pub/irs-pdf/i1040sc.pdf#page=14 - readings: - statute: No statute is supplied; 114-1150(B)(3) computes business profit from receipts less expenses using IRS - methods, and (C)(1) applies the fifty-percent disregard per person. Retaining the signed current business - result through that calculation and the section 8.16 E sum permits offsets against other members' income. - other: Section 7.1 describes income as money received. Treating that general definition as a nonnegative bound - would floor each person's earned income at zero before aggregation. Neither source expressly addresses - current-loss offsets or directs that floor. - example: In January 2026 adult A receives $1,000 monthly alimony and adult B has a $1,200 monthly self-employment - loss, with one child. The signed calculation gives $400 countable income and a $287 payment. Flooring B's - earnings gives $1,000 countable income and a $44 payment. + url: https://www.irs.gov/pub/irs-prior/i1040sc--2025.pdf#page=14 + readings: + statute: No statute is supplied. 114-1150(B)(3) defines self-employment earned income as "the total profit from + a business enterprise, farming, etc.", determined "using Internal Revenue Service methods", and Schedule C line + 31 reports a net profit or a loss. On one reading that signed result carries through the disregard in section + 8.16 C and the sum in 8.16 E, so a current loss reduces the other income the group counts. + other: Section 7.1 says "Income is money received by a BG member (s) from any source", and section 8.9 calls + self-employment income "the total profit from a business enterprise". On the other reading a loss is no income, + so it counts as zero and reduces nothing. Section 8.9 item 7 B bars "Net losses from previous providers" as a + business cost. + example: Adult A receives $1,000 a month of alimony and adult B has a $1,200 monthly self-employment loss, with + one child and a need standard of $1,110. In January 2026 the model halves the loss, counts 1,000 - 600 = $400 and + pays floor(710 x 0.4046) = $287. In May 2026 it sets the loss to zero, counts $1,000 and pays floor(110 x 0.4046) + = $44. pe_us: - follows: statute + follows: unknown code: - policyengine_us/variables/gov/states/sc/tanf/income/sc_tanf_countable_earned_income_person.py - policyengine_us/variables/gov/states/sc/tanf/income/sc_tanf_countable_income.py + - policyengine_us/variables/gov/states/sc/tanf/income/sc_tanf_gross_income.py + - policyengine_us/variables/gov/states/sc/tanf/income/sc_tanf_gross_unearned_income.py + - policyengine_us/parameters/gov/states/sc/tanf/income/unearned/positive_sources.yaml prs: + - https://github.com/PolicyEngine/policyengine-us/pull/10184 - https://github.com/PolicyEngine/policyengine-us/pull/10581 - https://github.com/PolicyEngine/policyengine-us/pull/10829 - state: ruled - note: We retain the signed calculation under the specific IRS-method and aggregation provisions. DSS supplies - no express current-loss offset policy in the cited sections. This entry records competing interpretations, - rather than an express disagreement between those sources. The continuing $100 disregard remains unchanged. + state: open + note: Neither source names a current loss, an offset between members or a floor at zero, so both readings + interpret silent texts. The model applies each reading on a different path. In the months it gives the + fifty-percent disregard (January to April, a calendar proxy), sc_tanf_countable_earned_income_person.py halves a + self-employment or farm loss and sc_tanf_countable_income.py adds the negative result to the group's other income. + In the $100-disregard months (May to December) the same formula takes max(earned income - 100, 0), so the same + loss counts as zero. In every month sc_tanf_gross_income.py adds the whole signed loss for the gross income test, + where the example household has -$200. positive_sources.yaml counts capital gains, rental, farm rent, partnership + and S corporation, estate and miscellaneous income only when positive, citing section 7.1, and + sc_tanf_gross_unearned_income.py stops interest and dividends at zero. If B's loss came from a partnership, the + example household would count $1,000 and receive $44 in both months. Section 7.7 counts rent as self-employment + when the member manages the property 20 or more hours a week, and the model counts all rental_income as unearned. + integration.yaml Cases 35, 36 and 38 pin the January results and Case 39 the May result, and + sc_tanf_gross_unearned_income.yaml Cases 12, 13 and 15 to 18 pin the unearned floors. An answer should cover each + path and say whether a fifty-percent month counts half the loss or all of it. Counting all of it gives the example + household -$200 of countable income and the $449 payment standard. - id: us-sc:tanf-dependent-child-school-level program: tanf years: - from: 2026 + from: 2025 type: federal-fiscal question: Can an eighteen-year-old full-time primary-school student qualify as a South Carolina TANF dependent child, or must the student attend secondary school or an equivalent level of vocational or technical training? @@ -10898,6 +10918,9 @@ candidates: - kind: manual citation: SC DSS TANF Policy Manual Vol. 67 section 4.10 url: https://dss.sc.gov/media/bxwc1jdj/tanf-policy-manual-volume-67-final.pdf#page=75 + - kind: manual + citation: SC DSS TANF Policy Manual Vol. 65 section 4.10 + url: https://dss.sc.gov/media/ojqddxsk/tanf-policy-manual-volume-65.pdf#page=74 readings: statute: No statute is supplied; 114-1130(E) permits the extension from under eighteen to under nineteen only for full-time students in secondary school or an equivalent level of vocational or technical training. @@ -10915,7 +10938,8 @@ candidates: state: ruled note: The regulation governs. The model uses is_in_secondary_school, which includes equivalent-level training, for the under-nineteen extension. This entry addresses school level only; it does not resolve the manual's unmarried - condition or change the model's head-of-household inference. + condition or change the model's head-of-household inference. Volume 65, effective October 1, 2024, has the same + section 4.10 text as Volume 67, so the difference dates from fiscal 2025 at the latest. - id: us-sc:tanf-gross-income-limit-cents program: tanf years: From 2dc1b8e2e0560bd06a2d51fdce542d42679a1e0c Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Fri, 13 Nov 2026 21:34:35 -0500 Subject: [PATCH 07/10] Cite 114-1150 on South Carolina TANF disregard and gross-limit parameters 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 --- .../gov/states/sc/tanf/income/earned/disregard/amount.yaml | 2 ++ .../sc/tanf/income/earned/disregard/percentage/months.yaml | 2 ++ .../states/sc/tanf/income/earned/disregard/percentage/rate.yaml | 2 ++ .../gov/states/sc/tanf/income/gross_income_limit.yaml | 2 ++ 4 files changed, 8 insertions(+) diff --git a/policyengine_us/parameters/gov/states/sc/tanf/income/earned/disregard/amount.yaml b/policyengine_us/parameters/gov/states/sc/tanf/income/earned/disregard/amount.yaml index 238748dbae7..05177264572 100644 --- a/policyengine_us/parameters/gov/states/sc/tanf/income/earned/disregard/amount.yaml +++ b/policyengine_us/parameters/gov/states/sc/tanf/income/earned/disregard/amount.yaml @@ -7,5 +7,7 @@ metadata: period: month label: South Carolina TANF earned income disregard amount reference: + - title: S.C. Code Regs. 114-1150(C)(2) + href: https://www.scstatehouse.gov/coderegs/Chapter%20114.pdf#page=218 - title: SC DSS TANF Policy Manual (Volume 67), Section 8.12.4 href: https://dss.sc.gov/media/bxwc1jdj/tanf-policy-manual-volume-67-final.pdf#page=132 diff --git a/policyengine_us/parameters/gov/states/sc/tanf/income/earned/disregard/percentage/months.yaml b/policyengine_us/parameters/gov/states/sc/tanf/income/earned/disregard/percentage/months.yaml index dd37c89ef30..55126867681 100644 --- a/policyengine_us/parameters/gov/states/sc/tanf/income/earned/disregard/percentage/months.yaml +++ b/policyengine_us/parameters/gov/states/sc/tanf/income/earned/disregard/percentage/months.yaml @@ -7,5 +7,7 @@ metadata: period: month label: South Carolina TANF earned income percentage disregard applicable months reference: + - title: S.C. Code Regs. 114-1150(C)(1) + href: https://www.scstatehouse.gov/coderegs/Chapter%20114.pdf#page=217 - title: "SC DSS TANF Policy Manual (Volume 67), Section 8.12.1 #page 131-132" href: https://dss.sc.gov/media/bxwc1jdj/tanf-policy-manual-volume-67-final.pdf#page=131 diff --git a/policyengine_us/parameters/gov/states/sc/tanf/income/earned/disregard/percentage/rate.yaml b/policyengine_us/parameters/gov/states/sc/tanf/income/earned/disregard/percentage/rate.yaml index 8ccb1d06ec5..83f1b9e6acf 100644 --- a/policyengine_us/parameters/gov/states/sc/tanf/income/earned/disregard/percentage/rate.yaml +++ b/policyengine_us/parameters/gov/states/sc/tanf/income/earned/disregard/percentage/rate.yaml @@ -7,5 +7,7 @@ metadata: period: month label: South Carolina TANF earned income disregard percentage reference: + - title: S.C. Code Regs. 114-1150(C)(1) + href: https://www.scstatehouse.gov/coderegs/Chapter%20114.pdf#page=217 - title: SC DSS TANF Policy Manual (Volume 67), Section 8.12.1 href: https://dss.sc.gov/media/bxwc1jdj/tanf-policy-manual-volume-67-final.pdf#page=131 diff --git a/policyengine_us/parameters/gov/states/sc/tanf/income/gross_income_limit.yaml b/policyengine_us/parameters/gov/states/sc/tanf/income/gross_income_limit.yaml index c54dfe7df3e..265302270ea 100644 --- a/policyengine_us/parameters/gov/states/sc/tanf/income/gross_income_limit.yaml +++ b/policyengine_us/parameters/gov/states/sc/tanf/income/gross_income_limit.yaml @@ -7,5 +7,7 @@ metadata: period: month label: South Carolina TANF gross income limit reference: + - title: S.C. Code Regs. 114-1150(A) + href: https://www.scstatehouse.gov/coderegs/Chapter%20114.pdf#page=217 - title: SC DSS TANF Policy Manual (Volume 67), Section 8.15 href: https://dss.sc.gov/media/bxwc1jdj/tanf-policy-manual-volume-67-final.pdf#page=133 From fdc0c2bfebe3f63916c675dcc674d09336155160 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Fri, 13 Nov 2026 21:34:35 -0500 Subject: [PATCH 08/10] Test the South Carolina TANF K-12 input in YAML 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 --- .../sc/tanf/sc_tanf_dependent_child.yaml | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/policyengine_us/tests/policy/baseline/gov/states/sc/tanf/sc_tanf_dependent_child.yaml b/policyengine_us/tests/policy/baseline/gov/states/sc/tanf/sc_tanf_dependent_child.yaml index 059b6bc5124..a9b3d833329 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/sc/tanf/sc_tanf_dependent_child.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/sc/tanf/sc_tanf_dependent_child.yaml @@ -265,3 +265,55 @@ # Each earner receives 6,000 / 12 = 500 a month. Only the primary # student at 18 and the secondary student at 19 keep counted earnings. sc_tanf_gross_earned_income: [0, 0, 500, 0, 0, 500] + +- name: Case 11, Case 10 with K-12 attendance switched off gives the same results. + period: 2026-01 + input: + people: + parent: + age: 45 + is_tax_unit_head: true + seventeen: + age: 17 + is_in_k12_school: false + is_in_secondary_school: false + is_tax_unit_dependent: true + employment_income_before_lsr: 6_000 + eighteen: + age: 18 + is_in_k12_school: false + is_in_secondary_school: false + is_tax_unit_dependent: true + employment_income_before_lsr: 6_000 + training_seventeen: + age: 17 + is_in_k12_school: false + is_in_secondary_school: true + is_tax_unit_dependent: true + employment_income_before_lsr: 6_000 + training_eighteen: + age: 18 + is_in_k12_school: false + is_in_secondary_school: true + is_tax_unit_dependent: true + employment_income_before_lsr: 6_000 + training_nineteen: + age: 19 + is_in_k12_school: false + is_in_secondary_school: true + is_tax_unit_dependent: true + employment_income_before_lsr: 6_000 + households: + household: + members: [parent, seventeen, eighteen, training_seventeen, training_eighteen, training_nineteen] + state_code: SC + output: + # 114-1130(E) names secondary school and equivalent-level vocational or + # technical training, and no other school attendance. The last three + # members are in that training outside a K-12 school. + # 17 < 18 passes with no school. At 18, only the member in training + # passes 18 < 19; at 19 the member in training fails. + sc_tanf_dependent_child: [false, true, false, true, true, false] + # Each earner receives 6,000 / 12 = 500 a month. Only the 18-year-old + # with no school and the 19-year-old keep counted earnings. + sc_tanf_gross_earned_income: [0, 0, 500, 0, 0, 500] From 9242a4caf17c5c6db5f340169732481fc9bc8485 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Fri, 13 Nov 2026 21:36:27 -0500 Subject: [PATCH 09/10] Link Volume 65 from the school-level candidate's note 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 --- source_conflicts/candidates.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source_conflicts/candidates.yaml b/source_conflicts/candidates.yaml index 43f948be77b..dd85da0618d 100644 --- a/source_conflicts/candidates.yaml +++ b/source_conflicts/candidates.yaml @@ -10918,9 +10918,6 @@ candidates: - kind: manual citation: SC DSS TANF Policy Manual Vol. 67 section 4.10 url: https://dss.sc.gov/media/bxwc1jdj/tanf-policy-manual-volume-67-final.pdf#page=75 - - kind: manual - citation: SC DSS TANF Policy Manual Vol. 65 section 4.10 - url: https://dss.sc.gov/media/ojqddxsk/tanf-policy-manual-volume-65.pdf#page=74 readings: statute: No statute is supplied; 114-1130(E) permits the extension from under eighteen to under nineteen only for full-time students in secondary school or an equivalent level of vocational or technical training. @@ -10939,7 +10936,8 @@ candidates: note: The regulation governs. The model uses is_in_secondary_school, which includes equivalent-level training, for the under-nineteen extension. This entry addresses school level only; it does not resolve the manual's unmarried condition or change the model's head-of-household inference. Volume 65, effective October 1, 2024, has the same - section 4.10 text as Volume 67, so the difference dates from fiscal 2025 at the latest. + section 4.10 text as Volume 67 (https://dss.sc.gov/media/ojqddxsk/tanf-policy-manual-volume-65.pdf#page=74), so + the difference dates from fiscal 2025 at the latest. - id: us-sc:tanf-gross-income-limit-cents program: tanf years: From 48b31f8e6e860b2cf201f2c421cbf05a9d8eea1f Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Sat, 14 Nov 2026 09:23:40 -0500 Subject: [PATCH 10/10] State the May 2026 results in the current-loss candidate's note 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 --- source_conflicts/candidates.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source_conflicts/candidates.yaml b/source_conflicts/candidates.yaml index 409109f6767..cdce3ffc71b 100644 --- a/source_conflicts/candidates.yaml +++ b/source_conflicts/candidates.yaml @@ -10989,9 +10989,10 @@ candidates: fifty-percent disregard (January to April, a calendar proxy), sc_tanf_countable_earned_income_person.py halves a self-employment or farm loss and sc_tanf_countable_income.py adds the negative result to the group's other income. In the $100-disregard months (May to December) the same formula takes max(earned income - 100, 0), so the same - loss counts as zero. In every month sc_tanf_gross_income.py adds the whole signed loss for the gross income test, - where the example household has -$200. positive_sources.yaml counts capital gains, rental, farm rent, partnership - and S corporation, estate and miscellaneous income only when positive, citing section 7.1, and + loss counts as zero. In May 2026 the example household counts $1,000 and receives $44, against $400 and $287 in + January. In every month sc_tanf_gross_income.py adds the whole signed loss for the gross income test, where the + example household has -$200. positive_sources.yaml counts capital gains, rental, farm rent, partnership and S + corporation, estate and miscellaneous income only when positive, citing section 7.1, and sc_tanf_gross_unearned_income.py stops interest and dividends at zero. If B's loss came from a partnership, the example household would count $1,000 and receive $44 in both months. Section 7.7 counts rent as self-employment when the member manages the property 20 or more hours a week, and the model counts all rental_income as unearned.