Backdate Kentucky K-TAP parameters#7497
Open
hua7450 wants to merge 6 commits intoPolicyEngine:mainfrom
Open
Conversation
Starting implementation of backdating Kentucky K-TAP (TANF) parameters to program inception. Documentation and parallel development will follow. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add 1997-07-01 historical entries to all 10 parameter files (frozen AFDC-era values) - Add Nov 2025 payment maximum reduction (~35% cut) - Create earned_income_flat_disregard parameter for pre-2023 $30+1/3 formula - Rewrite EID formula as unified expression (no branching, both eras via parameters) - Add 92 new tests: 47 historical/boundary + 45 edge cases across all 3 eras - Add dual references (current + superseded 921 KAR 2:016) - Fix gross_income_limit_rate pre-2023 section citation (1(11) → 1(12)) - Clean up hardcoded comments in benefit and dependent care variables Ref PolicyEngine#7496 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7497 +/- ##
===========================================
+ Coverage 97.82% 100.00% +2.17%
===========================================
Files 3 3
Lines 92 55 -37
Branches 2 1 -1
===========================================
- Hits 90 55 -35
+ Misses 1 0 -1
+ Partials 1 0 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…urce - Fix earned_income_flat_disregard.yaml: subsection 5(3)(c)-(d) → 5(3)(e), add current ref - Fix earned_income_disregard_rate.yaml: pre-2023 subsection 5(3)(c)-(d) → 5(3)(e) - Add WKMS news source citation for Nov 2025 payment maximum values Ref PolicyEngine#7496 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
4 parameters had identical values at both 1997-07-01 and 2023-03-01. Per parameter patterns skill, only keep earliest date when value is unchanged: - gross_income_limit_rate: 1.85 (single entry) - rate: 0.55 (single entry) - max_unit_size: 7 (single entry) - child_support_disregard: 50 (single entry) Ref PolicyEngine#7496 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Create earned_income_flat_disregard_in_effect.yaml (true 1997, false 2023) - Remove 2023-03-01: 0 sentinel from earned_income_flat_disregard.yaml - Use if p.in_effect: branching in formula instead of relying on flat=0 The zero-sentinel anti-pattern (value=0 meaning "not in effect") violates PolicyEngine conventions. An explicit boolean is clearer and self-documenting. Ref PolicyEngine#7496 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
Backdates Kentucky K-TAP (TANF) parameters to 1997 (program inception) and adds a unified earned income disregard formula supporting both the pre-2023 AFDC-era "$30 + 1/3" and post-2023 "50%" disregards.
Closes #7496
Changes
earned_income_flat_disregard($30 pre-2023, $0 post-2023)flat + rate * (earned - flat)— handles both eras without branchingThree Parameter Eras
Regulatory Sources
Review Summary
Known Limitations
Test Plan
make formatclean