Repository navigation
Add companion cases: interest, dividends and rent are not UC unearned income - #388
Merged
Merged
Conversation
… income UC Regs 2013 reg 66(1) lists every description of unearned income. Interest (ITTOIA 2005 Part 4 Ch 2), dividends (Part 4 Ch 3) and rent (Part 3) fall in none of them; reg 66(1)(m) reaches only Part 5 income. Reg 72(3) treats actual income from capital as capital, and reg 66(1)(k) counts the assumed yield instead. Test files only; no module bytes change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review follow-ups: reg 72(3) applies only where capital is treated as yielding income; non-UK dividends are Part 4 Ch 4 (s.402); capital figures are after reg 49 valuation; add a case where disregarded capital's rent is not deemed capital (reg 72(2)), pinning the else branch with non-zero income. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis
added a commit
that referenced
this pull request
Oct 1, 2026
…cases Both branches appended companion cases to 66.test.yaml. Keep main's five (#388) followed by these ten. No module bytes change; all 22 cases pass with axiom-encode c326d1ac and axiom-rules-engine 05eac9d2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds seven companion cases showing that actual interest, dividends and rent are not Universal Credit unearned income, and that capital counts through its assumed yield instead. It changes test files only; no module bytes change. Precedent: #350.
The existing modules already get this right:
uk/regulations/uksi/2013/376/66.yamlclassifies payments through a closed list of reg 66(1) descriptions. A payment for which no description holds givesunearned_income_amount_from_payment= 0.72.yamlencodes reg 72(3).No case exercised either behaviour for interest, dividends or rent. PolicyEngine had it wrong, which PolicyEngine/policyengine-uk#1950 fixes, so under the parity rule the Axiom side needs a test that pins it.
66.test.yaml66.test.yaml66.test.yaml66.test.yaml66.test.yaml72.test.yamlactual_income_from_tariffed_capital_treated_as_capital= 40072.test.yamlactual_income_from_tariffed_capital_treated_as_capital= 0Law
Texts are from legislation.gov.uk (
/data.xml), retrieved 2026-09-30.UC Regs 2013 reg 66(1) (https://www.legislation.gov.uk/uksi/2013/376/regulation/66):
Reg 72(3) (https://www.legislation.gov.uk/uksi/2013/376/regulation/72), unamended since it was made:
The Part 5 leaf is false for all three because of where ITTOIA 2005 charges them:
Under s.575(2)–(3), income that could fall in Part 5 and also in Part 3 (UK property business) or Part 4 Chapters 2–3 "is dealt with under" Part 3 or Part 4. The residual s.687(1) charge applies only to "income from any source that is not charged to income tax under or as a result of any other provision of this Act or any other Act".
DWP Advice for Decision Making, Chapter H5:
The UC Regs (NI) 2016 (SR 2016/216) regs 66(1)(m) and 72(3) are the same in effect.
Contains public sector information licensed under the Open Government Licence v3.0.
Oracle note
axiom-oraclesfills reg 22's unearned income input from PolicyEngine'suc_unearned_income. Until PolicyEngine/policyengine-uk#1950 merges, the EFRS UC comparison inherits PolicyEngine's inclusion of interest, dividends and rent.🤖 Generated with Claude Code