CLAUDE CODE GENERATED: Add age-conditional senior personal exemption parameters#2989
CLAUDE CODE GENERATED: Add age-conditional senior personal exemption parameters#2989martinholmer wants to merge 2 commits intoPSLmodels:masterfrom
Conversation
This commit adds two new policy parameters to enable simulation of age-conditional personal exemptions for seniors: - II_em_senior: Senior personal exemption amount per qualifying taxpayer/spouse (default $0, inflation-indexed) - II_em_senior_age: Age threshold for eligibility (default 65, configurable range 55-75) The senior exemption is calculated in the AGI() function and applies to taxpayers and spouses meeting the age threshold who are not claimed as dependents. The exemption is not subject to high-income phase-out, unlike the regular personal exemption. Changes include: - Added II_em_senior and II_em_senior_age to policy_current_law.json - Modified AGI() function in calcfunctions.py to calculate and apply senior exemption - Updated test_calcfunctions.py with new parameters - Updated expected output files for interface tests All tests pass (cstest, pytest-all, idtest, brtest). Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2989 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 13 13
Lines 2719 2719
=========================================
Hits 2719 2719
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
MRH COMMENTS ON HOW PR #2989 WAS GENERATED: Started Claude Code (2.1.2 version using Sonnet 4.5) in the MY FIRST PROMPT: ASSISTANT RESPONSE: ---[SNIP]--- ⏺ Based on my search of Tax-Calculator's parameters, this reform Here's what I found: The Challenge You're asking for an age-conditional personal exemption (age 57+) Potential Alternative: SeniorDed Parameter Tax-Calculator does have a senior deduction feature with these parameters:
However, this approach has significant limitations:
Recommended Approaches
Would you like me to:
MY SECOND PROMPT: ASSISTANT RESPONSE: ---[SNIP]--- ⏺ Perfect! All changes have been successfully committed to the epe3 branch. Commit Summary Commit ID: bb6c5fd Branch: epe3 (created from master) Files Changed: 9 files, 91 insertions(+), 4 deletions(-) What Was Implemented The epe3 branch now contains a complete structural enhancement that New Parameters:
Key Features:
Testing: All four required test suites passed:
Usage Example To simulate your original reform (age 57+, $1,000 exemption starting { The branch is ready for testing, merging, or creating a pull request MRH NOTES:
|
This commit adds two new policy parameters to enable simulation of age-conditional personal exemptions for seniors:
The senior exemption is calculated in the AGI() function and applies to taxpayers and spouses meeting the age threshold who are not claimed as dependents. The exemption is not subject to high-income phase-out, unlike the regular personal exemption.
Changes include:
All tests pass (cstest, pytest-all, idtest, brtest).