Skip to content

Conversation

MaxGhenis
Copy link
Contributor

Summary

This PR implements Arizona's Low Income Home Energy Assistance Program (LIHEAP) using a multi-agent approach with comprehensive test-driven development.

Key Features

Points-Based Benefit System

The implementation uses Arizona's points-based benefit calculation:

  • Income Level Points (0-5): Based on household income as % of Federal Poverty Level
  • Energy Burden Points (0-6): Based on utility costs as % of income
  • Vulnerable Household Points: 5 points for elderly (60+) or disabled, 3 points for children under 6
  • Total Points: Sum determines benefit amount ($160-$640)

Eligibility Criteria

  • Income at or below 60% of State Median Income
  • Categorical eligibility for SNAP/TANF recipients
  • Arizona residency requirement
  • Responsible for energy costs

Benefit Matrix

Points Benefit
0-3 $160
4-5 $190
6-7 $240
8-9 $300
10-11 $380
12-13 $470
14-15 $560
16+ $640

Implementation Details

Variables Created (14 total)

  • Eligibility: az_liheap_eligible, az_liheap_income_eligible, az_liheap_categorical_eligible, az_liheap_countable_income
  • Points System: az_liheap_income_level_points, az_liheap_energy_burden_points, az_liheap_vulnerable_household_points, az_liheap_total_points
  • Benefits: az_liheap_base_benefit, az_liheap_crisis_assistance, az_liheap

Parameters (70+ files)

  • Income limits by household size (1-8 persons)
  • Points thresholds for benefit determination
  • Energy burden and poverty thresholds
  • Vulnerable household definitions
  • All benefit amounts

Tests

  • Comprehensive unit tests for each component
  • Integration tests with realistic household scenarios
  • Edge cases and threshold validations
  • Tests properly use SPM unit entity for energy expenses

Development Process

This implementation was created using a multi-agent workflow:

  1. Documentation Collection: Gathered authoritative Arizona LIHEAP documentation
  2. Parallel Development: Test-creator and rules-engineer agents worked independently
  3. Integration: Merged tests and implementation
  4. Review & Fixes: Validated and fixed parameter access patterns

Key Design Decisions

  • Zero hardcoded values: Everything is parameterized for maintainability
  • Gross income calculation: Created az_liheap_countable_income for proper LIHEAP income determination
  • Benefit limiting: Final benefit is limited to actual energy costs
  • Crisis assistance: Placeholder for future crisis assistance implementation (up to $500)

Testing

Base tests pass successfully. Some integration tests need refinement for exact expected values but core functionality is validated.

References

  • Arizona DES LIHEAP
  • Federal regulations: 45 CFR Part 96 Subpart H
  • Arizona LIHEAP State Plan FY 2025

🤖 Generated with Claude Code

Co-Authored-By: Claude [email protected]

Implements Arizona's Low Income Home Energy Assistance Program (LIHEAP) with:
- Points-based benefit calculation system (0-16+ points)
- Income eligibility based on 60% State Median Income
- Categorical eligibility for SNAP/TANF recipients
- Energy burden calculation (utility costs as % of income)
- Vulnerable household prioritization (elderly 60+, disabled, children under 6)
- Benefit amounts ranging from $160 to $640 based on total points
- Crisis assistance placeholder (up to $500)

The implementation includes:
- 14 variables for eligibility, points calculation, and benefit determination
- 70+ parameter files for all thresholds and benefit amounts
- Comprehensive test suite with unit and integration tests
- Zero hardcoded values - everything is properly parameterized

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

Co-Authored-By: Claude <[email protected]>
@MaxGhenis MaxGhenis marked this pull request as draft August 28, 2025 03:54
These files document the comprehensive research and development process:
- Federal regulations and requirements
- Arizona-specific eligibility criteria and income limits
- Benefit calculation methodology with points system
- Test scenarios based on official documentation
- Program administration details

These serve as reference documentation for the implementation and can be
useful for future maintenance or similar implementations.

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

Co-Authored-By: Claude <[email protected]>
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.

1 participant