Skip to content

Repay post-2006 Direct Consolidation Loans over the 10-to-30-year standard term - #11696

Merged
DTrim99 merged 2 commits into
mainfrom
student-loan-consolidation-standard-term
Dec 4, 2026
Merged

DTrim99 merged 2 commits into
mainfrom
student-loan-consolidation-standard-term

Conversation

@DTrim99

@DTrim99 DTrim99 commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Fixes #10485

What was wrong

standard_repayment_payment amortized every federal_student_loan_balance over the 10-year standard plan. Under 34 CFR 685.208(b)(1), the 10-year plan covers Direct Consolidation Loans only if they entered repayment before July 1, 2006. A consolidation loan that entered repayment on or after that date repays under 685.208(b)(2) (685.208(c) and (j) before July 1, 2026). Its term runs 10 to 30 years, set by the total of the consolidation loan and the borrower's other education loans. Those other loans count only up to the consolidation loan's amount (685.220(i)(2)(ii), (i)(3)(i)). #10415 added that scale (standard_repayment.consolidation_repayment_period), but only consolidated parent PLUS loans used it.

At 6% with no other loans, main gives $333.06, $555.10 and $888.16 for $30,000, $50,000 and $80,000. The 20-, 25- and 30-year terms give $214.93, $322.15 and $479.64.

What changes

  • New input federal_student_loan_is_consolidated (Person, YEAR, bool, default false). It marks federal_student_loan_balance as a Direct Consolidation Loan that entered repayment from July 1, 2006 through June 30, 2026 and did not repay parent PLUS loans. A consolidation loan made on or after July 1, 2026 is a new Direct Loan, so has_federal_student_loan_made_on_or_after_2026_07_01 already moves that borrower to the tiered plan. Pre-July 2006 consolidation loans stay unflagged and repay over 10 years.
  • student_loan_amortization_helpers.py: a new standard_repayment_period helper holds the 685.208(b)(2)(iii) / 685.220(i)(3)(i) logic. Both direct_standard_amortized_payment and parent_plus_standard_amortized_payment now call it. For a flagged Direct balance, the other education loans are federal_parent_plus_loan_balance plus federal_ffel_loan_balance. This mirrors the parent PLUS helper, which counts the Direct and FFEL balances. The parent PLUS result is unchanged.
  • combined_standard_repayment_payment: before this PR, the two separate payments were added (two minimums) whenever the parent PLUS loan was consolidated. Now that happens when exactly one of the two balances is a post-2006 consolidation loan, so the borrower's loans fall under two plans. Where both are, both loans fall under (b)(2), and the two level payments share one (b)(2)(ii) minimum, just as two (b)(1) loans share one. The us:standard-plan-minimum-consolidated note in source_conflicts/candidates.yaml now describes this rule. It follows the per-plan reading that entry already ruled, so it adds no new reading and no marker.
  • income_driven_repayment_standard_payment stays on the 10-year term for flagged borrowers. 685.209(f)(2)(ii) and (f)(3)(ii) cap IBR and PAYE payments at what the borrower "would have paid on a 10-year standard repayment plan". That variable never called the Direct helper, so only its documentation changes.
  • minimum_payment.yaml: the first reference title now cites (b)(2)(ii) next to (b)(1)(ii), since the same $50 applies to (b)(2) loans. The value and href are unchanged.

Who is affected

The change only affects households that set federal_student_loan_is_consolidated to true. No dataset supplies it, and its default is false, so microsimulation results don't change. Household calculations that set it get the consolidation term. For example, a $30,000 consolidation loan at 6% pays $214.93 a month instead of $333.06.

Tests

All new cases are appended. No existing expected value changes (6 added, 0 changed).

File, case Household (6%) Main Branch
standard_repayment_payment.yaml Case 8 Consolidated $30,000 / $50,000 / $80,000 333.06 / 555.10 / 888.16 214.93 / 322.15 / 479.64 (IDR cap stays 333.06 / 555.10 / 888.16)
Case 9 Pre-July 2006 consolidation loan (flag false), $30,000 333.06 333.06
Case 10 Consolidated $5,000 / $8,000 / $3,000 55.51 / 88.82 / 50 55.51 / 78.07 / 50
Case 11 Consolidated $15,000 with $50,000 parent PLUS; with $5,000 FFEL 166.53 / 166.53 107.46 / 107.46
combined_standard_repayment_payment.yaml Case 9 Consolidated Direct $30,000 and unconsolidated parent PLUS $3,000 366.37 264.93
Case 10 Consolidated Direct $2,000 and consolidated parent PLUS $20,000 193.29 165.49

Every expected value was worked out by hand from the formula balance × i / (1 − (1 + i)^−n). The YAML comments show the arithmetic. All 6 new cases fail on main (50af7fba69) because the input doesn't exist there. The "Main" column comes from running the same households on main without the flag. Cases 9, 10 ($5,000 and $3,000) and the IDR column give the same values on both, as they should. Those cases pin the 10-year results that must not move.

Local runs on the branch, one process at a time (policyengine-core 3.37.2):

  • tests/policy/baseline/gov/ed/student_loans/standard_repayment: 43/43
  • The rest of tests/policy/baseline/gov/ed/student_loans (integration plus the IBR, ICR, IDR, PAYE, RAP and SAVE folders): 174/174
  • test_combined_standard_repayment_property.py, code_health/test_source_conflicts.py, test_parameter_yaml_keys.py, test_reference_urls.py, test_known_dead_reference_urls.py, test_no_concatenated_reference_urls.py: 407/407. test_source_conflicts.py was re-run after the candidate edit: 251/251.
  • test_parameter_files.py, test_parameter_scale_thresholds.py, test_student_loan_idr_cap_order_property.py: 37/37

No partner test reads any changed variable. Ruff format and check are clean.

Not in this PR

axiom: TheAxiomFoundation/rulespec-us#1711 queued

🤖 Generated with Claude Code

DTrim99 and others added 2 commits December 2, 2026 22:37
…ndard term

Add federal_student_loan_is_consolidated, a Person YEAR input that marks
federal_student_loan_balance as a Direct Consolidation Loan that entered
repayment on or after July 1, 2006. For flagged borrowers,
standard_repayment_payment uses the 34 CFR 685.208(b)(2)(iii) term scale,
keyed to the consolidation loan plus the borrower's other education loans
counted up to the consolidation loan's amount (685.220(i)(2)(ii), (i)(3)(i)),
through a helper shared with consolidated parent PLUS loans.
combined_standard_repayment_payment applies one minimum where both balances
are under the same paragraph of 685.208(b) and two where they are not. The
income-driven repayment cap stays on the 10-year plan (685.209(f)(2)(ii),
(f)(3)(ii)).

Fixes #10485.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (8999568) to head (0e2563c).
⚠️ Report is 453 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main    #11696   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         6    +5     
  Lines           24       110   +86     
=========================================
+ Hits            24       110   +86     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

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

☔ View full report in Codecov by Harness.
📢 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.

@DTrim99
DTrim99 marked this pull request as ready for review December 3, 2026 15:07
@DTrim99
DTrim99 requested a review from hua7450 December 3, 2026 15:07

@hua7450 hua7450 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks, David. The term schedule matches 34 CFR 685.208(b)(2) and 685.220(i):

  • 10 to 30 years, set by the consolidation loan plus the borrower's other education loans, which count up to the consolidation loan's amount;
  • consolidation loans that entered repayment before July 1, 2006 stay on 10 years;
  • before July 1, 2026 the same rules sat at 685.208(c) and (j), and a consolidation loan made from that date is a new Direct Loan, so the existing new-loan flag rightly wins;
  • the income-driven cap stays on 10 years, as 685.209(f)(2)(ii) and (f)(3)(ii) say.

All four flag combinations in the combined payment give the expected minimums, a zero balance never adds a second $50 minimum, and the new expected values check out by hand. The candidates.yaml edit follows the existing ruled per-plan reading. Approving.

Optional:

  • Property test (worth doing here). tests/test_combined_standard_repayment_property.py still states the old rule and never sets federal_student_loan_is_consolidated. At 6% with a $30,000 Direct balance and a $3,000 parent PLUS balance:

    • both flagged: the combined payment is 248.24, not the D + P = 264.93 its invariant 2 predicts;
    • only the Direct loan flagged: it is 264.93, not invariant 5's 366.37.

    It passes only because the flag stays false. Drawing the flag in the generator and restating invariants 2 and 5 by plan would keep it a real check of this rule.

  • Help text. federal_ffel_loan_balance (lines 15-17) still says the FFEL balance sets only a consolidated parent PLUS loan's term, and federal_parent_plus_loan_balance doesn't say it now sets a consolidated Direct loan's term. The header of standard_repayment_payment.yaml still says 10 years only, and the documentation in combined_standard_repayment_payment.py (lines 28-29) breaks off after "FFEL loans are not".

  • Pre-July 2026 citation. Before the 2026 restructuring, this minimum sat at 685.208(c)(2): "A borrower's payments under this repayment plan are at least $50 per month". Adding "(c)(2)" to the title of the existing historical reference in minimum_payment.yaml would cover 2016-2025. The value is right.

  • Other education loans. The regulation also counts Perkins and FFEL parent PLUS loans. The model has no inputs for them, so the PR body's not-modeled list could name them next to private loans.

  • Repeated case. Case 9 in standard_repayment_payment.yaml gives the same 333.06 as Case 1 from the same inputs. It can go, or its point (a pre-July 2006 consolidation loan stays on 10 years) can move into Case 1's name.

@DTrim99
DTrim99 merged commit ac5dc58 into main Dec 4, 2026
37 checks passed
@DTrim99
DTrim99 deleted the student-loan-consolidation-standard-term branch December 4, 2026 00:56
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.

Standard repayment: Direct Consolidation Loans that entered repayment after June 30, 2006 use the 10-to-30-year term

2 participants