Implement CPP retirement pension#525
Conversation
Program Review: CPP Retirement Pension (PR #525)Program: Canada Pension Plan (CPP) -- Retirement Pension Critical (Must Fix)
Should Address
Suggestions
Validation Summary
Review Severity: REQUEST_CHANGESBlocking issues: The formula design (using population average instead of individual earnings -- Critical #1) produces fundamentally misleading results for any non-average recipient. The stale branch (Critical #2) causes CI failures and will produce merge conflicts. These two issues must be resolved before this PR can be merged. Test coverage score: 6/10 -- Tests are well-structured and mathematically verified for the current (simplified) formula, but miss edge cases and lack separate eligibility tests. Recommended path forward:
|
- Add CPP retirement pension parameters (maximum, average, eligibility age) - Implement eligibility based on age 60+ and contribution history - Calculate benefit proportional to years of contribution (up to 40 years) - Use average monthly benefit as basis for calculation - Add test coverage for various age and contribution scenarios 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Add cpp_retirement_pension to household benefits aggregation - Remove unnecessary self-referential adds declaration 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Cap benefit at maximum_monthly: min_(avg * factor, max) * 12 - Extract hard-coded 40 into max_contributory_years parameter - Fix 2025 average monthly: $844.53 → $803.76 per canada.ca - Add reference URLs to all 3 variable files - Move tests to tests/gov/cra/benefits/cpp/ (correct path) - Add changelog fragment - Update parameter descriptions to active-voice format Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
be4ae6d to
d05b442
Compare
- Fix max_contributory_years href to CPP Act s. 49 (page-11) - Add approximation note explaining 40-year simplification - Make all reference titles specific (Act section, data type) - Add historical data sourcing notes to average and maximum params Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Summary
Changes
Test Coverage
Simplifications
This is a simplified implementation that:
References
🤖 Generated with Claude Code