Skip to content

Hybrid DB-FDC pension system and pension_FOC_linkage (FDC part 5) - #1288

Merged
rickecon merged 2 commits into
PSLmodels:masterfrom
jdebacker:FDC_HYBRID
Nov 23, 2026
Merged

rickecon merged 2 commits into
PSLmodels:masterfrom
jdebacker:FDC_HYBRID

Conversation

@jdebacker

@jdebacker jdebacker commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

The earlier FDC parts (#1283–#1286) and the NDC crediting change (#1287) have merged, and this branch is synced with master, so the diff now shows only the part 5 changes.

This is part 5 of the funded defined contribution (FDC) work. It adds a hybrid defined benefit and funded defined contribution system, with the same structure as the Hybrid DB-NDC system and an FDC account in place of the notional account. It also adds pension_FOC_linkage, a switch for whether households value the pension benefit their labor earns.

Hybrid DB-FDC (pension_system = "Hybrid DB-FDC")

  • Defined benefit band. Labor income up to db_earn_cap_factor × avg_labor_inc_t1_model_units earns a defined benefit (pensions.DB_FDC_hybrid_amount). This is the system's only public pension, and it is scaled by replacement_rate_adjust.
  • FDC band. Labor income between that cutoff and dc_earn_cap_factor × avg_labor_inc_t1_model_units pays fdc_tau into an FDC account. Under this system, pensions.fdc_earn_bands returns these cutoffs and ignores fdc_earn_floor_factor and pension_earn_cap.
  • Shared cutoff check. The cutoff check used by both hybrid systems is now pensions.hybrid_earn_cutoffs. Specifications checks that the cutoffs are ordered for every cohort under both systems. It warns if fdc_tau is zero under the new system, because the system then reduces to a capped DB.
  • Funding. As under Hybrid DB-NDC, tau_payroll applies to all labor income and finances the defined benefit. FDC benefits are paid by the fund, not the government.

pension_FOC_linkage (bool, default false)

  • What it switches. It sets whether the labor first order condition includes the value of the additional pension benefit that an extra unit of labor earns.
  • Current scope. It affects only the FDC pillar. When it is false, household.fdc_labor_wedge drops the accrual term, which is the value of the annuity bought by a marginal contribution. The contribution cost always stays in the FOC, so FDC contributions act on labor supply like a tax on earnings in the FDC band. Benefits are still computed from actual contributions.
  • Consistency with the pay-as-you-go systems. This is how those systems already work: none of them puts an accrual term in the labor FOC. The parameter has a general name so they can use it once they have such terms.
  • ⚠ Behavior change. FDC results change by default, because earlier versions always included the accrual term. Setting pension_FOC_linkage = true reproduces them, and the existing FDC tests now do that.

Solver note

Under Hybrid DB-FDC, contributions start at the DB cutoff. That puts a discrete change in the marginal return to labor at the cutoff, whatever the value of pension_FOC_linkage. The default hybr household root finder does not converge in the steady-state test, but FOC_root_method = "lm" does. The test uses lm, and the docs tell users to do the same when the FDC band starts above zero. A standalone FDC pillar with contributions on all earnings solves with hybr.

Docs

  • The pensions chapter (government.md) has a new section on the hybrid DB-FDC system.
  • The FDC household-problem text now explains pension_FOC_linkage and the solver note.
  • parameters.md and api/pensions.rst are updated.

Release 0.25.2

The version is bumped to 0.25.2 in ogcore/__init__.py, pyproject.toml and uv.lock, and the CHANGELOG entries for the Hybrid DB-FDC system and pension_FOC_linkage are in a new [0.25.2] - 2026-11-23 section, above the 0.25.1 NDC crediting release.

Tests

  • Pension functions. The hybrid's public pension equals the capped DB benefit. Its FDC band lies between the two cutoffs, and contributions are correct. The cutoff checks and the warning when fdc_tau is zero are tested. The new system is also added to the existing tests of every pension system.
  • Steady state. test_SS_hybrid_db_fdc checks that the steady state solves. It also checks that the steady state matches Defined Benefits with pension_earn_cap and the FDC floor at the DB cap (Y, K, L, r, w, F and pension outlays match within rtol 1e-8).
  • Linkage switch. test_fdc_labor_wedge_linkage checks that setting the switch to false removes only the accrual term.
  • Local results. After syncing with master, the full non-local suite passes (872 passed, 1 skipped), and the docs build passes with no new warnings.

🤖 Generated with Claude Code

Adds pension_system 'Hybrid DB-FDC': a defined benefit on labor income
up to db_earn_cap_factor times avg_labor_inc_t1_model_units, and funded
defined contribution (FDC) contributions on labor income between that
cutoff and dc_earn_cap_factor times avg_labor_inc_t1_model_units. The
two hybrid systems share pensions.hybrid_earn_cutoffs.

Adds pension_FOC_linkage (default false), which sets whether the labor
first order condition includes the value of the benefit an extra unit
of labor earns. It currently affects only the FDC accrual term; the
contribution cost always enters. FDC tests set it to true, which
reproduces earlier results.

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

codecov-commenter commented Nov 21, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.16%. Comparing base (11dd99b) to head (5793ce6).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1288      +/-   ##
==========================================
+ Coverage   80.10%   80.16%   +0.05%     
==========================================
  Files          24       24              
  Lines        7208     7223      +15     
==========================================
+ Hits         5774     5790      +16     
+ Misses       1434     1433       -1     
Flag Coverage Δ
unittests 80.16% <100.00%> (+0.05%) ⬆️

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

Files with missing lines Coverage Δ
ogcore/__init__.py 100.00% <100.00%> (ø)
ogcore/household.py 90.98% <100.00%> (+0.02%) ⬆️
ogcore/parameters.py 90.85% <100.00%> (+0.07%) ⬆️
ogcore/pensions.py 75.11% <100.00%> (+0.31%) ⬆️

... and 1 file with indirect coverage changes

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

Keeps master's CHANGELOG line for the FDC reform shown in the docs and
moves the hybrid DB-FDC and pension_FOC_linkage entries to version
0.25.2, above the 0.25.1 NDC crediting release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jdebacker
jdebacker requested a review from rickecon November 23, 2026 15:16
@rickecon
rickecon merged commit aa6c019 into PSLmodels:master Nov 23, 2026
12 of 14 checks passed
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