Skip to content

Conversation

@anth-volk
Copy link
Contributor

@anth-volk anth-volk commented Jan 7, 2026

Summary

Requires PolicyEngine/policyengine.py#209. Add breakdown_labels metadata to parameters with range() dimensions to provide semantic labels for numeric breakdown dimensions.

This enables human-readable labels like "Household size 3" instead of raw "3".

Updated parameters (25 files):

  • SNAP: max_allotment, income deductions standard
  • IL AABD utility params (7 files): bottled_gas, coal, cooking_fuel, electricity, fuel_oil, metered_gas, water
  • VT renter credit (3 files): fair_market_rent, income_limit_ami (30%, 50%)
  • DC LIHEAP (2 files): electricity, gas
  • NC SCCA: childcare_market_rates
  • IRS: state_sales_tax_table/tax
  • ACA: state_rating_area_cost
  • OR: WFHDC credit match
  • State TANF/benefits: DC, MN MFIP, UT FEP (2), MO, AR TEA, RI Works

Test plan

  • Parameters load correctly with new metadata
  • Labels generate correctly when used with policyengine.py changes

🤖 Generated with Claude Code

@codecov
Copy link

codecov bot commented Jan 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.12%. Comparing base (fc2b613) to head (e2be743).
⚠️ Report is 45 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##              main    #7126       +/-   ##
============================================
- Coverage   100.00%   82.12%   -17.88%     
============================================
  Files           10     3649     +3639     
  Lines          144    52526    +52382     
  Branches         0      263      +263     
============================================
+ Hits           144    43135    +42991     
- Misses           0     9359     +9359     
- Partials         0       32       +32     
Flag Coverage Δ
unittests 82.12% <ø> (-17.88%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@anth-volk anth-volk requested a review from hua7450 January 9, 2026 19:14
@anth-volk anth-volk marked this pull request as ready for review January 9, 2026 19:15
Copy link
Collaborator

@hua7450 hua7450 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PavelMakarchuk what do you think about this breakdown_labels ?

@anth-volk
Copy link
Contributor Author

@PavelMakarchuk what do you think about this breakdown_labels ?

Sorry, perhaps I should've provided some context. The PR that I closed that had one type of fix for each missing label case also had this. I ran it by Pavel as a solution to the fact that we can't directly label range(x,y) breakdown params. At the time, he was supportive, but obviously happy to wait for him to approve this PR.

anth-volk and others added 3 commits January 9, 2026 23:03
Add breakdown_labels to params with range() dimensions to provide
semantic labels for numeric breakdown dimensions. This enables
human-readable labels like "Household size 3" instead of raw "3".

Updated params:
- SNAP max_allotment.main: Household size
- SNAP income deductions standard: Household size
- NC SCCA childcare market rates: Age group
- IRS state sales tax table: Family size, Income bracket
- ACA state rating area cost: Rating area
- IL AABD utility params (7 files): Household size
- VT renter credit params (3 files): Household size
- DC LIHEAP params (2 files): Income level, Household size
- OR WFHDC credit: FPL bracket
- DC TANF standard payment: Household size
- MN MFIP transitional standard: Assistance unit size
- UT FEP params (2 files): Household size
- MO TANF standard of need: Assistance unit size
- AR TEA payment standard: Assistance unit size
- RI Works payment standard: Household size

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Adds breakdown_labels metadata to 63 parameter files with range() dimensions,
enabling semantic labels like "Household size 3" instead of raw "3".

Includes federal (HUD, IRS, SNAP), contrib, local, and state parameters.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@anth-volk anth-volk force-pushed the fix/fix-nested-params branch from b77dbec to 5381fe0 Compare January 9, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants